Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 831 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Is it the engine or my code? #32276
08/25/04 03:05
08/25/04 03:05
Joined: Aug 2004
Posts: 90
Canada
Generik Offline OP
Junior Member
Generik  Offline OP
Junior Member

Joined: Aug 2004
Posts: 90
Canada
Heres just a general question i really wanted answered.... I have a simple code pretty much just picking up a weapon calling on its action with a pickup function creates a new model in the hands. When you pick the gun up the pc runs incredibly slow and sometimes it will run out of memory. Could just be my pc but just wondering what it could be.

SPECS:

Pentium 4 14.ghz
128 Ram (Im guessing it could be this)
ATI Radeon 9600 se
Windows Xp Pro
A6.30 Comm

Any ideas?

Re: Is it the engine or my code? [Re: Generik] #32277
08/25/04 03:13
08/25/04 03:13
Joined: Oct 2001
Posts: 1,407
Helsinki, Finland
Phantom88 Offline
Expert
Phantom88  Offline
Expert

Joined: Oct 2001
Posts: 1,407
Helsinki, Finland
128MB is way too low for Windows XP, but i can't tell you if thats the problem... Good that I have 1GB ram ;D

~Phantom88~


Programmer, Gamer ICQ #: 157485106 | Xfire: Phantom1988 | MSN: lauri_andler@hotmail.com | AIM: FinPhantom | YAHOO: FinPhantom
Re: Is it the engine or my code? [Re: Generik] #32278
08/25/04 06:11
08/25/04 06:11
Joined: Sep 2003
Posts: 4,959
US
G
Grimber Offline
Expert
Grimber  Offline
Expert
G

Joined: Sep 2003
Posts: 4,959
US
sounds like you got an infinate function call ( the slow down in performace and ultimatly out of memory problems) i.e. inside a while loop you call a function that itself has a while loop that doesn't end


function do_this()
{
while(1)
{
wait(1);
}
}

action entity_do_that
{
while(1)
{
do_this();
}
}


this is an infinate function call. Your createing an indless stream of do_this functions that will bog down the cpu and eventualy eat up your ram


Last edited by Grimber; 08/25/04 06:15.
Re: Is it the engine or my code? [Re: Grimber] #32279
08/25/04 11:25
08/25/04 11:25
Joined: Aug 2004
Posts: 90
Canada
Generik Offline OP
Junior Member
Generik  Offline OP
Junior Member

Joined: Aug 2004
Posts: 90
Canada
i think its just my ram my code has no while.

Re: Is it the engine or my code? [Re: Generik] #32280
08/28/04 07:44
08/28/04 07:44
Joined: Sep 2003
Posts: 4,959
US
G
Grimber Offline
Expert
Grimber  Offline
Expert
G

Joined: Sep 2003
Posts: 4,959
US
you may want to check the flow of the code though, your running an ent create create nmodel in the plaeyrs hands) make sure its not continualy generating new models.

even with some a few BIG poly count models won't eat up 128 meg of ram or cause an out of memory problem unelss you got apps also running eating up allot of that ram in the first place.


Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1