Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by Zheka. 06/20/24 14:26
Lapsa's very own thread
by rki. 06/19/24 11:27
A simple game ...
by VoroneTZ. 06/18/24 10:50
Face player all the time ...
by bbn1982. 06/18/24 10:25
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 678 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
squik, AemStones, LucasJoshua, Baklazhan, Hanky27
19060 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
memory increases (Thread in "Starting with Gamestudio") #274015
06/25/09 11:11
06/25/09 11:11
Joined: Jun 2009
Posts: 43
MCKiller Offline OP
Newbie
MCKiller  Offline OP
Newbie

Joined: Jun 2009
Posts: 43
Is it possible that a developer can take a look into the following thread?

http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=273854#Post273854

I try to find out, how I can debug memory problems. Is it possible to get the function names out of the “function scheduler list?”

Thanks

Re: memory increases (Thread in "Starting with Gamestudio") [Re: MCKiller] #274019
06/25/09 11:28
06/25/09 11:28
Joined: Jul 2000
Posts: 27,987
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,987
Frankfurt
You can see the number of running functions in the F11 panel. If this number permanently increases, then the bug is a repeated call to a function containing a wait() somewhere in your code. Should be easy to find.

If the number of entities permanently increases, then the reason is a repeated ent_create call. The +1KB increase that you describe in your thread is possibly an entity creation because their size is just 1 KB.

If it's none of both, but the "mem" value increases permanently, then it's another create function of an engine object, f.i. of a panel, bitmap, material, sound or the like.

Re: memory increases (Thread in "Starting with Gamestudio") [Re: jcl] #274023
06/25/09 11:36
06/25/09 11:36
Joined: Feb 2006
Posts: 1,011
Germany
pegamode Offline
Serious User
pegamode  Offline
Serious User

Joined: Feb 2006
Posts: 1,011
Germany
Hi jcl,

MCKiller wrote that the number of functions and the number of entities are stable.

Isn't it possible to get the names of all currently running functions? If not maybe you could add it to a future version of gs?

It could be hard to find out which functions are currently running if the overall number of functions is big. And with that it could be hard to find out where a panel, bitmap, material, sound or the like is created in a loop.

Regards,
Pegamode

Re: memory increases (Thread in "Starting with Gamestudio") [Re: pegamode] #274028
06/25/09 12:00
06/25/09 12:00
Joined: Jul 2000
Posts: 27,987
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,987
Frankfurt
A way to list all running functions would be useful indeed. I'll implement this as an engine feature and also in the SED debugger.

My next suspect for a +1KB increase would be a material creation, or a truetype font creation. All other objects use either less or more than 1 KB. So, look for functions that create materials or fonts - or any functions that have "_create" in them.

Re: memory increases (Thread in "Starting with Gamestudio") [Re: jcl] #274029
06/25/09 12:02
06/25/09 12:02
Joined: Feb 2006
Posts: 1,011
Germany
pegamode Offline
Serious User
pegamode  Offline
Serious User

Joined: Feb 2006
Posts: 1,011
Germany
Originally Posted By: jcl
A way to list all running functions would be useful indeed. I'll implement this as an engine feature and also in the SED debugger.


That're great news ... thanks so much. That'll make debugging much easier.

Regards,
Pegamode.

Re: memory increases (Thread in "Starting with Gamestudio") [Re: pegamode] #274035
06/25/09 12:34
06/25/09 12:34
Joined: Jun 2009
Posts: 43
MCKiller Offline OP
Newbie
MCKiller  Offline OP
Newbie

Joined: Jun 2009
Posts: 43
That's realy great. I think it will help a lot of people.


Moderated by  old_bill, Tobias 

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