View Full Version : Performance comparison

08-29-2003, 01:11 AM
Is it faster to turn on-off-on-off lighting/blending/fog or use glPushAttrib ?
Does this matter, since I'm using display lists ?
Thanks in advance.

08-29-2003, 02:21 AM
Take a look at this : http://www.3dlabs.com/support/developer/GLmanpages/glpushattrib.htm

You'll see that pushing the GL_FOG_BIT for example not only pushes the enable-bit of GL_FOG, but also pushes many other attribs.So if you just need to enable/disable some states, use glEnable/glDisable instead of glPush/glPopAttrib, as it'll be faster.