Should I replace the array based openGL calls to the Buffer-based version?

Hello!

I migrated my game engine from jogl 1.1.1 to JSR-231, it’s a big code-jungle.
I use the array based version of the methods (glVertexPointer). Should I rewrite my code to buffer based version? Will itt speed up anything significally?

Thanks…

You’re probably thinking of other routines, because glVertexPointer and some others have never had an array based version. Such routines require a direct buffer of the appropriate type, which is specified in the documentation. Routines not requiring direct buffers can sometimes take a Buffer of appropriate type.

There won’t be any speedup by switching from the array based versions to buffer based versions if the routine has array based versions exposed. One is implemented in terms of the other.