Re: high memory consumption in JOGL
Posted by
gouessej on
Jan 03, 2011; 4:24pm
URL: https://forum.jogamp.org/high-memory-consumption-in-JOGL-tp2141331p2185854.html
Ok I have solved my problem of GLException by using the flags earlier.
In JAWT_JNI.c, I see that Java_com_jogamp_nativewindow_impl_jawt_JAWT_GetDrawingSurface0__Ljava_nio_ByteBuffer_2Ljava_lang_Object_2 creates a new NIO buffer each time whereas it is totally useless. A JAWT_DrawingSurface instance should contain a single NIO buffer as a class member and reuses it instead of creating a new direct buffer at each call.