Login  Register

Re: Poor Performance with glVertexAttribPointer

Posted by bgroenks96 on Jan 14, 2014; 4:11pm
URL: https://forum.jogamp.org/Poor-Performance-with-glVertexAttribPointer-tp4031170p4031214.html

gouessej wrote
I'm not completely surprised, maybe there is a leak in your driver that affects glMapBuffer & glUnmapBuffer, glBufferSubData doesn't do any memory allocation. In my humble opinion, you shouldn't rely on inconsistent speedups obtained by using glBufferData to invalidate the data store and resend the data, rather use glBufferSubData even to update the content of the whole buffer.
So you mean write individual object data to a local FloatBuffer then upload everything at once on the draw call via glBufferSubData?