Some info from the current admin of the openbor forum
Online Damon Caskey
Administrator
Hero Member
*****
2451
View Profile DC Current Email Personal Message (Online)
Reply #2 on:Today at 06:39:53 AM
Logged
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.So it's not supposed to unload sound and sprite's .. guess what's crashing it, I really dont think we have a memory leak at all.. It hold's on to all sound's music and sprite's.. So new music and sprite's that you dont reuse is still held in memory .. till it goes over 16 meg . When it load's new music and sprite's .. then it crash's because that's the way the engine work's ,i have been using nulldc working build i made ,and that's exactly what , i'm seeing on the debugger
.. but there is a fix by hand in the script's
=======================================
load_model("model_name");
unload_model("model_name");
=======================================
Be aware that manual memory management can be tricky and could lead to crashes.. If you want to, fix game's that crash you will have to do it from script's using manual mode.. No bor mod that load's more then 16 meg on start up can work.. The dreamcast could load 800mb 5 meg at time. But a 20 meg game that try's to load 20 meg at start up no way.. Silly example but yeah...
Example level one has 1 2 3 4 5 music.. Before level 2 use the script to unload these, if your not reusing them.. load new music sprite's not the same one's Use unload_model("model_name");
before entering next level, then you can load the rest no crash at all.. So you would have to really port bor mod's and go thru the whole thing.. unload what's not reused before next level . then load new file's etc.. If you need more help i will try to make it clearer.. So far i see no memory leak's using the debugger.. it's doing what it's susposed to do..
Here is the beta. Now loading on Nulldc Dreamcast emulator
Make's it easy to see if it was ram that crashed it , or scipting error's or missing file's in your pak...
==============NULLDC fixed Openbor DC port ================================
https://drive.google.com/open?id=1gRvaS ... d1nMQTu5Jn
Will help all Bor mod's to be ported to dreamcast