View Full Version : vertex array vs display list

01-19-2003, 11:56 AM
if i simply want to draw single textured objects, what is faster ?

01-19-2003, 01:04 PM

Why not use VA in your display lists? http://www.opengl.org/discussion_boards/ubb/smile.gif

01-19-2003, 01:42 PM
you cant do that because vertex arrays display where ever you put them.

01-19-2003, 07:56 PM
I thought that the vertex arrays are compiled into the display list

01-19-2003, 08:50 PM
no you can find this in the glNewList documentation:

Certain commands are not compiled into the display list, but are executed immediately, regardless of the display list mode. These commands are glColorPointer, glDeleteLists, glDisableClientState, glEdgeFlagPointer, glEnableClientState, glFeedbackBuffer, glFinish, glFlush, glGenLists, glIndexPointer, glInterleavedArrays, glIsEnabled, glIsList, glNormalPointer, glPopClientAttrib, glPixelStore, glPushClientAttrib, glReadPixels, glRenderMode, glSelectBuffer, glTexCoordPointer, glVertexPointer, and all of the glGet routines.

01-19-2003, 11:16 PM
Vertex arrays are not compiled into a display list, but you can use a vertex array to build a display list. When compiling the display list, the vertex array data is dereferenced and moved into the display list.

01-20-2003, 12:45 PM
I still think the original question has not been answered and I would like to know myself. What is faster display lists or vertex arrays.

01-20-2003, 01:10 PM
depending on how much geometry you draw, display lists are generally faster. however they are static. if you would dynamic geometry and are crunching for speed use compiled vertex arrays.

01-21-2003, 12:54 AM
It also depends on the card and driver do there is not one direct answer for this, but gererally are DLs faster