Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (TipmyPip, 1 invisible), 18,699 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Free my memory #132293
05/27/07 11:16
05/27/07 11:16
Joined: Jan 2006
Posts: 13
Kishinev, Moldova
Maxim Offline OP
Newbie
Maxim  Offline OP
Newbie

Joined: Jan 2006
Posts: 13
Kishinev, Moldova
I'm making a huge level. To get a better texture quality i'm using around 100 hmp-terrains, which are dynamically loaded, if my player gets near them. (using ent_create). If player moves away - terrains are removed by ent_remove. Everything works fine, but when the entity is removed - the RAM memory (reserved for texture i supose) doesn't free - so it grows and grows!!! Can i manually clear it?
Oh, and one more thing: ent_create'ing a hmp-terrain in real-time kills my fps for a moment. Can this proccess work parallel without making the game process stop waiting for terrain to be loaded?

Re: Free my memory [Re: Maxim] #132294
05/27/07 11:54
05/27/07 11:54
Joined: Nov 2005
Posts: 1,007
jigalypuff Offline
Serious User
jigalypuff  Offline
Serious User

Joined: Nov 2005
Posts: 1,007
try ent_purge after ent_remove


Why does everyone like dolphins? Never trust a species which smiles all the time!
Re: Free my memory [Re: jigalypuff] #132295
05/27/07 12:14
05/27/07 12:14
Joined: Sep 2002
Posts: 1,604
Deutschland
ChrisB Offline
Serious User
ChrisB  Offline
Serious User

Joined: Sep 2002
Posts: 1,604
Deutschland
For deleting models/terrains in the cache you must load the level again, or use level_mark/level_free.


www.Swollen-Eyeballs.org
ICQ:169213431
#3dgs@quakenet
Re: Free my memory [Re: ChrisB] #132296
05/27/07 13:10
05/27/07 13:10
Joined: Jan 2006
Posts: 13
Kishinev, Moldova
Maxim Offline OP
Newbie
Maxim  Offline OP
Newbie

Joined: Jan 2006
Posts: 13
Kishinev, Moldova
I wonder, how can i load a level in real-time in a racing game?

Re: Free my memory [Re: Maxim] #132297
05/27/07 15:23
05/27/07 15:23
Joined: Apr 2006
Posts: 265
V
vartan_s Offline
Member
vartan_s  Offline
Member
V

Joined: Apr 2006
Posts: 265
I don't know, but maybe a good bet would be to use the two terrains, and deform them according to a 2d array of vertex values, and if required change the skin. That way, you can alternate between the terrains that the player is on. However, you would have to set up and array management system for the vertexes, and for alternating between terrains.

Re: Free my memory [Re: vartan_s] #132298
05/27/07 18:24
05/27/07 18:24
Joined: Jan 2006
Posts: 13
Kishinev, Moldova
Maxim Offline OP
Newbie
Maxim  Offline OP
Newbie

Joined: Jan 2006
Posts: 13
Kishinev, Moldova
Too difficult and the result would be less than expected. So I guess the only way to do this is to find the ballance between my memory and my ideas. But I think it'll be really hard to fit 2sqr kilometers of reasonable quality of terrain in 100mb of RAM.


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | 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