Login  Register

Re: Does openGL has a limit of how many vertices one can pass to glDrawArrays() function?

Posted by gouessej on Feb 11, 2016; 10:23am
URL: https://forum.jogamp.org/Does-openGL-has-a-limit-of-how-many-vertices-one-can-pass-to-glDrawArrays-function-tp4036161p4036178.html

Hi

Look at GL_MAX_ELEMENTS_VERTICES and GL_MAX_ELEMENTS_INDICES. If it returns weird values (the biggest integer or a negative value), assume it's around 3000 and 4096. Of course, you can perform several calls of glDrawArrays or use glMultiDrawArrays (but it's sometimes buggy and not noticeably more efficient that a dummy loop).

N.B: It's an hint, you can ignore it but your program will become slower.
Julien Gouesse | Personal blog | Website