OpenGL Display lists

I know how to code OpenGL and know there are display lists, which make it's performance better. Does jME already implement this, or is there a way I can implement it my self?

Display lists are pretty much deprecated as of now…

Instead you should use VBO (Vertex Buffer Object). In jME, you have to call setVBOInfo(new VBOInfo(true)) on your mesh objects to create VBOs for their geometry.

Ok. Can I do that for the root node to speed up every mesh in the game?

How can i setVBO for a model imported from a file?

Momoko_Fan said:

Display lists are pretty much deprecated as of now..

Do you mean in JME or opengl 3.0?

I like display lists much better than vbos. VBOs needs too much setup. This means it has a very high overhead. The GL_ARB_vertex_array_object extension solved this problem, but it was approved by the ARB on July 11, 2008. It's going to be a while until you can rely on it. Until then display lists will probably be faster, and certainly easier to use.

I beleive locking creates display lists

theprism said:

I beleive locking creates display lists


correct

if you want to update the meshes now and then though, you should go with VBOs. recreating a displaylist takes for ever in comparison.

MrCoder said:

if you want to update the meshes now and then though, you should go with VBOs. recreating a displaylist takes for ever in comparison.


Can this be done outside the jme thread to prevent fps loss