PDA

View Full Version : glCallLists guaranteed to execute in order?



CatAtWork
10-01-2003, 11:52 AM
Does the spec require glCallLists to execute the array of lists in order? I was being lazy, and thought that maybe some drivers would batch the lists based on state. Yes, in most it would be way too costly to sort, even requiring a heuristic, but maybe the driver could coarsely sort by texture object, or even materials.

Just a thought.

Humus
10-01-2003, 03:08 PM
The only thing that would make sense is that lists are executed in order.

[This message has been edited by Humus (edited 10-01-2003).]

jwatte
10-01-2003, 05:57 PM
The spec, in fact, requires them to be called in order: "Each of the n constructed offsets is taken in order and added to a display list
base to obtain a display list number."

Also, display lists is not the best way to get both flexibility and expressive power while maintaining high performance. If your display lists contain state, in addition to pure vertex/index data, then they're even less likely to follow an optimized path.

CatAtWork
10-01-2003, 06:20 PM
I know it's not the best way, I was just being lazy. http://www.opengl.org/discussion_boards/ubb/smile.gif Thanks for the clarification.