Vertex Arrays added to Display Lists

Hi, I have a question about display lists and vertex arrays. I have a glDrawElements command that I am currently adding to a display list. It is the only thing in the display list, so I’m curious if genereating this list is actually giving me a speed boost during render time or just costing me time to genereate at runtime? I know that when draw elements is compiled the actual command is not compiled, but it is compiled as this:

dlcompile - means that the function itself is not compiled into a

display list but in turn generates commands which are

compiled into the list. These are generally the vertex

array commands like glArrayElement.

so my question is am I gaining any speed boost at all for rendering this way?

anyone know the answer to this?

This entirely depends on the driver. The driver may create a “macro” that simply issues that command on display list draw or it may optimize rendered geometry for vertex caches, use faster formats, construct command buffers for direct use by hw or precalculate some additional culling informations. The best way to know if it is boost in your situation, is to profile it.

ok thanks for the reply!