Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (alibaba, vicknick), 1,492 guests, and 4 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
Big memory usage! #157969
09/30/07 19:13
09/30/07 19:13
Joined: May 2007
Posts: 16
At the Gates of Midian
Illegitima Offline OP
Newbie
Illegitima  Offline OP
Newbie

Joined: May 2007
Posts: 16
At the Gates of Midian
Hi,
I have a big problem with a huge memory usage of my game. I got 19mb of objects and external textures in Targa format. When I run the level with "Preview Map" It takes around 65mb RAM max (which is due to the targa compression I believe) and this seems pretty normal number for me. But when using a script to load all entities and their coordinates and scale values taken from an XML file... and run the game - it takes 255mb RAM ! And I believe this is hell a lot of memory for 2-room level with a bunch of furniture.
Any idea what might me the problem here, speaking generally - the textures, the models... or the script.
Also is it better in terms of memory usage to use external texture files (what we do) or integrated in the model? We decided to use the external textures due to the fact that several objects use the same textures.
Thanks in advance!

Re: Big memory usage! [Re: Illegitima] #157970
10/01/07 04:09
10/01/07 04:09
Joined: Mar 2003
Posts: 4,264
Wellington
Nems Offline

.
Nems  Offline

.

Joined: Mar 2003
Posts: 4,264
Wellington
You probably need to check your code if all load up well without it.
You could have loops continually calling functions/actions when they no longer need to or alphas with heaps of shader calls etc...

Re: Big memory usage! [Re: Nems] #157971
10/03/07 05:13
10/03/07 05:13
Joined: Jun 2007
Posts: 152
Norway
D
Darkyyes Offline
Member
Darkyyes  Offline
Member
D

Joined: Jun 2007
Posts: 152
Norway
Illegitima have you tried letting it stay open a while to see if the memory usage continoues to rise? if so its a memory leak in your script I think =|

when it uses 255mb RAM is it compiled as a finished level? if so perhaps its because all the runtime files have to be opened through the one exe file instead of running through the wed(takes ram) and then the gamestudio just allocate stuff from wed thus preview takes less ram?


New to lite-c and gamestudio in general, thank you for reading.
Com, A7 v7.7

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