Re: Drawing more than a certain number of triangles at one time/method/stack crash
Posted by
gouessej on
Dec 15, 2015; 10:29am
URL: https://forum.jogamp.org/Drawing-more-than-a-certain-number-of-triangles-at-one-time-method-stack-crash-tp4035900p4035905.html
Hi
You can use com.jogamp.opengl.util.ImmModeSink in order to minimize the changes in your code and still benefit of retained mode instead of using immediate mode. By the way, immediate mode shouldn't be used even for compatibility reasons (it's badly supported in numerous drivers like the display lists, you might get a large performance penalty when using them with shaders or during the picking). The vertex buffer objects are in the core of OpenGL since its version 1.4 and the vertex arrays are in its core with its version 1.2.
I draw about ten times more triangles in my game and it works flawlessly even in immediate mode. Please give us a
SSCCE if you want to get some help.