Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (Akow, TipmyPip, tomaslolo), 788 guests, and 11 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
memory increases every Second #273854
06/24/09 18:15
06/24/09 18:15
Joined: Jun 2009
Posts: 43
MCKiller Offline OP
Newbie
MCKiller  Offline OP
Newbie

Joined: Jun 2009
Posts: 43
Hi @ll
Can someone give me a hint how to debug the memory of a running 3dStudio Game? I use the SED Editor but the debugging functions are not the best.
If I run our game in –diag mode and hit “F11” I see that the memory increases every Second (or Frame) but the amount of entities didn’t increase. So is there a fast solution to find out why this happens? How will you solve memory – problems?

Thanks

Re: memory increases every Second [Re: MCKiller] #273855
06/24/09 18:18
06/24/09 18:18
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline
Expert
Cowabanga  Offline
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Hi,
Are you making entities by "ent_create"?? If yes, make sure you didn't put it in a "while".

Re: memory increases every Second [Re: Cowabanga] #273862
06/24/09 18:40
06/24/09 18:40
Joined: Jun 2009
Posts: 43
MCKiller Offline OP
Newbie
MCKiller  Offline OP
Newbie

Joined: Jun 2009
Posts: 43
Yes,

that's right. But I not see that the amount of entities increase. They are stable. So I thinkt that it must be an other problem.

Re: memory increases every Second [Re: MCKiller] #273863
06/24/09 18:43
06/24/09 18:43
Joined: Nov 2007
Posts: 1,032
Croatia
croman Offline
Serious User
croman  Offline
Serious User

Joined: Nov 2007
Posts: 1,032
Croatia
can you post your code? if it's not too big...



Ubi bene, ibi Patria.
Re: memory increases every Second [Re: croman] #273866
06/24/09 18:52
06/24/09 18:52
Joined: Jun 2009
Posts: 43
MCKiller Offline OP
Newbie
MCKiller  Offline OP
Newbie

Joined: Jun 2009
Posts: 43
Oh I think it is too big.
So that’s why I would find a good solution to solve the problem. We have a lot of functions, and files and so on.

Isn't it possible to retrieve the names of all the functions that are currently running? So I have a point to start with.

So what thinks can increase the memory regularly, except the Entities?

Re: memory increases every Second [Re: MCKiller] #273867
06/24/09 18:59
06/24/09 18:59
Joined: Nov 2007
Posts: 1,032
Croatia
croman Offline
Serious User
croman  Offline
Serious User

Joined: Nov 2007
Posts: 1,032
Croatia
check your while loops. there's got to be something that's adding and adding constantly.

does your problem occur when running compiled(exe) version?

how much the memory increases? every second 1mb? how much aprox.?



Ubi bene, ibi Patria.
Re: memory increases every Second [Re: croman] #273874
06/24/09 19:28
06/24/09 19:28
Joined: Jun 2009
Posts: 43
MCKiller Offline OP
Newbie
MCKiller  Offline OP
Newbie

Joined: Jun 2009
Posts: 43
No, I have not tried it with an .exe but I will test it if I am at home.

The increase has the following cycle every 1/2 second:

+1KB
+1KB
+1KB
+1KB
+~300KB
+1KB

And then from the beginning.

Maybe it is the Debug Modus? I must check.

Last edited by MCKiller; 06/24/09 19:29.
Re: memory increases every Second [Re: MCKiller] #273875
06/24/09 19:31
06/24/09 19:31
Joined: Nov 2007
Posts: 1,032
Croatia
croman Offline
Serious User
croman  Offline
Serious User

Joined: Nov 2007
Posts: 1,032
Croatia
do you maybe have some loop that runs or does something every 2-3 seconds?



Ubi bene, ibi Patria.
Re: memory increases every Second [Re: croman] #273878
06/24/09 19:44
06/24/09 19:44
Joined: Jun 2009
Posts: 43
MCKiller Offline OP
Newbie
MCKiller  Offline OP
Newbie

Joined: Jun 2009
Posts: 43
I will check all this thinks if I'm out of the office.
And then I will come back here :-)

Re: memory increases every Second [Re: MCKiller] #273880
06/24/09 19:57
06/24/09 19:57
Joined: Feb 2009
Posts: 2,154
Damocles_ Offline
Expert
Damocles_  Offline
Expert

Joined: Feb 2009
Posts: 2,154
Could be some memory-leak in the engine itself.
Maybe a bug in some function.
Or the engine does not garbage-collect temporary objects/arrays.

The only chance to find it would be then to turn certain parts of
the code on and off.

Do you use physics or particles, or an enternal dll?

Try out a level-load and see if the memory gets cleared up.

If you cant figure out what the cause is, and its not
some fault in your code (undeleted entities or unexited functions in a loop), you should contact the developers.

Page 1 of 2 1 2

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