JNI call reduction

Sounds good. Any noticeable performance gain from that?

I'll get it into CVS soon…  Maybe today in fact :stuck_out_tongue:

Actually… in :)  There's bound to be a bug or two in a change like this, so let me know!



Edit:



I forgot to mention that this change also fixes a potential VBO memory leak.  If you are not extending SimpleGame and are using VBO (or terrain) you'll want to make sure you are calling the following in your cleanup method (you may want to do a null check on renderer if your cleanup gets called even if the user cancels startup):


        DisplaySystem.getDisplaySystem().getRenderer().cleanup();



If you aren't already cleaning up textures, do that as well:

        TextureManager.doTextureCleanup();