Re: Help Updating GLArrayDataServer
Posted by
glangho on
May 26, 2016; 3:33pm
URL: https://forum.jogamp.org/Help-Updating-GLArrayDataServer-tp4036745p4036750.html
gouessej wrote
Hi
glMultiDrawArrays() is broken on some platforms, it's not worth it.
You use GL_STATIC_DRAW, it's not a good idea if you'd like to modify the content of GLArrayDataServer.
I was going to change that to DYNAMIC_DRAW, but from what I'm reading in 2D it's probably easier to just use STREAM_DRAW and replace the entire buffer whenever anything changes on screen. Is it OK to continuously replace my GLArrayDataServer object or should I reuse the same GLArrayDataServer and only replace its buffer?
Thanks for the glMultiDrawArrays() tip. I'll be switching to glDrawArrays() once I get down to a single VBO of all my onscreen objects.