If I press F11 and look at the available video memory it gets less everytime I change the levels.
For example:
When I start in Level 1 the stats show me about 350mb of free video memory. Then I change to Level 2 and I have 270mb free. Then I change back to Level 1 it shows me 180mb of free video memory and so on.
Have I missed some lines of code that could free the used video memory?
I don't use any bmaps that I could purge or something and all Levels are pure model-level.
Just a comment on my experience today. I upgraded to 7.664 today and changed the visible flags. This helped with the speed. The program does'nt have to maintaint backward codes I guess.
Ottawa
edit : look in ask the developers for situation with memory.
Last edited by Ottawa; 01/29/0900:13.
Re: help with out of video memory ...
[Re: Ottawa]
#248797 01/29/0905:2901/29/0905:29
There's one thing I've tested and it seems to be one reason of my video memory issue.
My three playable characters are set by ent_create into the level if they are located in this level.
So, everytime I change the level ent_create is called after level_load. It seems that the allocated video memory for this entities are not set free with level_load. A short test with ent_purge before level_load seems to work.
Can someone confirm that the allocated video memory for entities that are set by ent_create isn't set free with level_load ???
hmmm...how much capacity that your video card contains?? my video card contains 256 MB but it can render big map but slower rendering...and if i run it there is no error else if my code are wrong...
I added ent_purge for all entities that were created by ent_create before changing the level and now it works ... but I think I have to take a deeper look into that, because as fas as jcl told me I don't have to do that for entities created by ent_create ... but if I remove those lines the problem comes back.
@unknown_master ... it doesn't depend on the capacity of the video card, because the video memory gets less step by step with every level change. Even with 1GB or more it would get out of memory, sooner or later.