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
1 registered members (M_D), 1,430 guests, and 3 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
System Memory Problem #28799
06/13/04 11:53
06/13/04 11:53
Joined: Aug 2003
Posts: 169
Tennessee, US
Ahriman Offline OP
Member
Ahriman  Offline OP
Member

Joined: Aug 2003
Posts: 169
Tennessee, US
I am having problems getting the System Memory consumption down, Right now I have a 3D menu and it is taking up around 256MB of RAM by itself. I have tried removing all the entities and only have them created when needed then removed again when they are not on the screen but this is not affecting the memory consumption can someone please help me out here. I need to get the system requirements down.

Re: System Memory Problem [Re: Ahriman] #28800
06/14/04 05:34
06/14/04 05:34
Joined: Mar 2002
Posts: 7,726
old_bill Offline
Senior Expert
old_bill  Offline
Senior Expert

Joined: Mar 2002
Posts: 7,726
Hi,

could you tell us a bit about the menu, what it consist, how many images are in such...

old_bill


Success is walking from failure to failure with no loss of enthusiasm.
Re: System Memory Problem [Re: old_bill] #28801
06/14/04 09:29
06/14/04 09:29
Joined: Aug 2003
Posts: 169
Tennessee, US
Ahriman Offline OP
Member
Ahriman  Offline OP
Member

Joined: Aug 2003
Posts: 169
Tennessee, US
Actually after working on it some more I am bringing it down a little bit but still it seems rather high. The menu is made up of all entities quite a few though most of the textures are 256 x 256. I think it will be ok once I am done but if there is another way to bring the RAM usage down it would be great...There are a lot of paths in the menu but I wouldn't think that would take up a lot of memory.

Re: System Memory Problem [Re: Ahriman] #28802
06/15/04 01:06
06/15/04 01:06
Joined: Mar 2002
Posts: 7,726
old_bill Offline
Senior Expert
old_bill  Offline
Senior Expert

Joined: Mar 2002
Posts: 7,726
Hm,
what about the skin of the models, are they 256x256 too?
I can't imagine, that just a few models and som textures can cause 256 MB Video RAM use, there must be something else??
Could you publish the level that we could have a look at it?

old_bill


Success is walking from failure to failure with no loss of enthusiasm.
Re: System Memory Problem [Re: Ahriman] #28803
06/15/04 02:04
06/15/04 02:04
Joined: Mar 2002
Posts: 1,123
California
Cellulaer Offline
Expert
Cellulaer  Offline
Expert

Joined: Mar 2002
Posts: 1,123
California

The nexus is how much system ram it uses. If you set it to 256 it will take 256 megs of SYSTEM ram when it loads. I believe the default is a nexus of 30 so that would take 30 megs of SYSTEM ram when it loads. Also, I believe (could be wrong) each model loaded counts for ~1 meg of SYSTEM ram minimum (two entities using the same model would only take 1 meg). A terrain with a lot of vertices (like 130,000 polygons) will take up much more than 1 meg of SYSTEM ram however.


Buy, Sell, & Archive Realtime 3D Content @ RedRock7.com *BETA* A5.5+ Plugin DLLs: GSADO, GSHTTP, GSImgLst, FreeMod, GSFlash, GSPython http://cellulear.slashbang.com/
Re: System Memory Problem [Re: old_bill] #28804
06/15/04 06:47
06/15/04 06:47
Joined: Aug 2003
Posts: 169
Tennessee, US
Ahriman Offline OP
Member
Ahriman  Offline OP
Member

Joined: Aug 2003
Posts: 169
Tennessee, US
Each model has around 30 skins which I have been using to change textures when the user mouse is over a certain entity. Also a lot of menu items use the same model just uses different skins. The nexus is set to 128 which I thought would be plenty and it worked but if I look at the resources being used by the menu it was around 260. So far with further optimizations I have brought it down to 184, and I still have work to do. When the game loads it actually only has to load 8 entities. I was a little worried before which is why I wrote in here because I was setting the nexus to 128 and it was taking up about double that. But now that it is starting to go down more and more I think it will be fine.

Most people these days have about 256 MB to 512 MB of RAM anyway I think, I hope. I would like to share the current build so that I could get help but there is no copyright on the title yet which limits me to what I can discuss in the forums. The game is supposed to go retail in 1 week and we still have so much work to do. This memory problem has delayed us quite a bit. Hopefully though we have it figured out.

So in a couple weeks you can see what I was talking about better I will post up a demo in Showcase 2 or you will be able to go to our distributors site and download a demo. I appreciate the assistance you have provided.

Re: System Memory Problem [Re: Ahriman] #28805
06/15/04 07:59
06/15/04 07:59
Joined: Sep 2003
Posts: 3,236
San Diego, CA
M
Marco_Grubert Offline
Expert
Marco_Grubert  Offline
Expert
M

Joined: Sep 2003
Posts: 3,236
San Diego, CA
1) What size textures are you using? Using TGAs will require more memory than PCXs.

2) Remove all level_load, ent_create code, nexus settings and max_entities settings. The amount of memory used should be less than 50Meg. Work your way up from there by adding ent_creates and level_loads in and check memory usage. You should get an error message if you are exceeding limits.

3) Do your customers a favor and forget about the 1 week release date; if you are losing memory somewhere and don't know where it's obviously not at a release stage yet. A (c) sign is not necessary to have copyright though it is helpful of course.

Re: System Memory Problem [Re: Marco_Grubert] #28806
06/15/04 18:45
06/15/04 18:45
Joined: Aug 2003
Posts: 169
Tennessee, US
Ahriman Offline OP
Member
Ahriman  Offline OP
Member

Joined: Aug 2003
Posts: 169
Tennessee, US
1) Texture sizes average 256 x 256...PCX's

2) I have done this and now I am at this point I am starting to see where the memory is actually going, shouldn't really be a problem now. I am not sure why memory wasn't addressed earlier than this.

3) We have a contract with a distributor and I am not sure they are going to be willing to wait. We set a date figuring we had plenty of time. The game itself is pretty much done few minor things to do. But I was given a month for the menu after the memory is fixed we are back on track.


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