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
1 registered members (Dico), 16,767 guests, and 5 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
memory management #116284
03/10/07 10:27
03/10/07 10:27
Joined: Nov 2004
Posts: 1,011
South Africa
capanno Offline OP
Serious User
capanno  Offline OP
Serious User

Joined: Nov 2004
Posts: 1,011
South Africa
Id like to know how the engine manages the memory. If I have a sequence where I show 3 bmaps on 2 panels each (6 bmaps in total), but at most only 2 bmaps are visible at the same time. Does it load the bmaps into memory when they are required, or are all 6 loaded and waiting?

Re: memory management [Re: capanno] #116285
03/10/07 10:34
03/10/07 10:34
Joined: Aug 2005
Posts: 312
Sweden
tindust Offline
Senior Member
tindust  Offline
Senior Member

Joined: Aug 2005
Posts: 312
Sweden
Have you tried adjusting the layer numbers of the panels & transparencies of the bmaps? That might help. I have had no problems displaying more than 50 bmaps on ten+ panels.
cheers,
tindust

Re: memory management [Re: capanno] #116286
03/10/07 12:30
03/10/07 12:30
Joined: Dec 2005
Posts: 414
Munich, Germany
R
Robotronic Offline
Senior Member
Robotronic  Offline
Senior Member
R

Joined: Dec 2005
Posts: 414
Munich, Germany
As far as I know the memory is allocated if the panel becomes visible for the first time. After that, the associated bitmaps will remain in texture memory, no matter if they are visible or not.
In order to remove them from memory, you have to use a bmap_purge() instruction.

Re: memory management [Re: Robotronic] #116287
03/10/07 15:21
03/10/07 15:21
Joined: Nov 2004
Posts: 1,011
South Africa
capanno Offline OP
Serious User
capanno  Offline OP
Serious User

Joined: Nov 2004
Posts: 1,011
South Africa
Thanks. So I can just use bmap_purge every time I hide a panel? When it is visible it will just reload it into memory?

can anyone from conitec confirm this?

Re: memory management [Re: capanno] #116288
03/10/07 17:20
03/10/07 17:20
Joined: Aug 2005
Posts: 312
Sweden
tindust Offline
Senior Member
tindust  Offline
Senior Member

Joined: Aug 2005
Posts: 312
Sweden
OK, missunderstood your problem. Sorry. Look in manual bmap_purge (as already said), and bmap_preload for texture memory management. It's pretty much spelled out there.
cheers

Re: memory management [Re: tindust] #116289
03/13/07 07:28
03/13/07 07:28
Joined: Nov 2004
Posts: 1,011
South Africa
capanno Offline OP
Serious User
capanno  Offline OP
Serious User

Joined: Nov 2004
Posts: 1,011
South Africa
Thanks!

Re: memory management [Re: capanno] #116290
03/14/07 02:21
03/14/07 02:21
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
Quote:

Thanks. So I can just use bmap_purge every time I hide a panel? When it is visible it will just reload it into memory?




That's only half the truth. It still remains in the memory, or to be more precise in the RAM. It's only removed from the Video memory, i.e. the memory on your graphics card. And don't forget to purge all panels at the beginning of your application. Else they will only be removed once the panel is shown and hidden.


Always learn from history, to be sure you make the same mistakes again...

Moderated by  HeelX, Spirit 

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