Update texture images very fast

Hi,



i want to set the color of a specific pixel in the ByteBuffer of a JME Image 60 times per second.

Now i would like to show these changes on the screen.



At the moment i update the texture in this way:



       //Delete first texture unit

       ts.delete(0);



       //Update the texture

       ts.setNeedsRefresh(true);



The problem is, that the memory usage of the programm increases with the time.

I have a 2562563 Image (RGB8). The memory usage increases by ca. 2mb / second.



Where is the failure ?



Greetings,

Chris

I tried the Renderer.updateTexture method, but it still has the same effect. I think there is somewhere a bug in the texture management from jME.

i've read somewhere JME2 don't properly unload texture… but i can't find the post, sorry

http://www.jmonkeyengine.com/forum/index.php?topic=13048.0