PDA

View Full Version : Vertex Arrays added to Display Lists



Nick's a Novice
04-28-2006, 02:17 PM
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?

Nick's a Novice
05-02-2006, 03:35 PM
anyone know the answer to this?

Komat
05-02-2006, 03:37 PM
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.

Nick's a Novice
05-03-2006, 10:31 AM
ok thanks for the reply!