Hello,
We're developing a game using version 1.0.0 from repository and we're facing memory leaks (in native memory, not java heap) while switching from one screen to another. We have taken care to call dispose() method whenever needed, but we're not able to solve the memory leaks.
I've made a simple test code:
while (true) {
SpriteBatch batch = new SpriteBatch();
batch.dispose();
batch = null;
System.gc();
}
And at the moment my program native memory is continously growing (at the moment 1GByte). Can it be a bug in the JNI implementation of the SpriteBatch? or is there any other way to sove this memory problem?
I've run Valgring but it gives lots of false errors when running java, any idea about how to detect the memory leak in the java native code?
Thanks in advance,
Vicente Sirvent
