Wheres my memory going?
BlitzMax Forums/MiniB3D Module/Wheres my memory going?
| ||
I'm developing a large memory intensive program that loads a lot of textures and it sucks up a lot of ram but I can't find a way to fully remove the textures such that the ram is given back to the system. As I result my current test system sucks up 1GB of ram but I expect my customers to use much larger texture banks and its going to quickly cause a crash due to not having enough memory. The code I'm using is commercial so I made a small test code to show my point. The textures are being loaded from 4 threads. In my program I load 5 sets of large textures, free them, load another (different) 5 set of large textures, free them, then load the first 5 sets of large textures, the ram usage keeps going up and up (measuring from task manager). Edit 2: No matter I fixed it. Stupid me was trying to free open gl textures from a thread. No wonder the memory wasn't being freed. Doh! Last edited 2012 Last edited 2012 |