Login  Register

Re: VBO Performance Misunderstanding

Posted by gouessej on Apr 20, 2015; 7:39am
URL: https://forum.jogamp.org/VBO-Performance-Misunderstanding-tp4034319p4034332.html

Hi

GL_STREAM_DRAW is the slowest draw mode of the VBOs. Moreover, you shouldn't pass arrays to JOGL methods, it's possible just for convenience but it's less efficient especially on some code repeatedly called, rather use some fixed-size direct NIO buffers even just to get the generated buffer identifiers. You should call glDeleteBuffers if you no longer need to use some identifiers. Another solution consists in using the same identifier but binding it to another direct NIO buffer. Keep in mind that OpenGL might wait for some time to destroy a data store.

Edit.: Are you sure that you want to use this draw mode? Is it better with GL_DYNAMIC_DRAW?
https://www.opengl.org/sdk/docs/man/html/glBufferData.xhtml
Julien Gouesse | Personal blog | Website