openbor engine not releasing ram between levels

load_model("model_name");
unload_model("model_name");

Be aware that manual memory management can be tricky and could lead to crashes if done wrong and if you load a model more then once you could end up using more ram.
 
Pretty much what msmalik681 said. OpenBOR knows what its doing. The memory it doesn't release is for sounds and sprites that are almost always reused, so there isn't much point in loading them over and over. Unless you are working with severe memory limitations or are 100% certain you'll never use a given asset again it's usually best to let the engine handle management.

DC
 
Thank you ... this is for the dreamcast port.  We only have 16meg.  People allways said it was a memory leak.  but i dont think so.  If it need's the model's it keep's then . then loading new model's crash's it. I went all thru the code. For memory leak's and kos.  A very large bor.pak would have to, be  New model's for each level,  then we could unload the old model's with that command ..  the whole bor game would have to be written in that way.. I dont think there's anything wrong with the dreamcast port.  It's fantastic work.. I have been a dreamcast developer since 2002..  My written word is not good im sorry for that.. Hope you can understand.. I had a stroke in my 20's  I never been able to get spell and grammer back..
 
Youre doing great, we appreciate the efforts and enthusiasm ! You could create your topic for your development process , this way you will get answers more quickly and it could help others in the future to find them in one place more easily.
 
Back
Top Bottom