Re: How to load many textures without leaking memory?
Posted by
gouessej on
Jun 19, 2012; 11:25am
URL: https://forum.jogamp.org/How-to-load-many-textures-without-leaking-memory-tp4025245p4025248.html
Ok I know a better workaround, it comes from the laziness of the virtual machine to reclaim unused native memory. Get the buffer of the texture data, get its cleaner and call Cleaner.clean(). Using System.gc() may have some unwanted effects...