View Full Version : Performance comparison
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, 01: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.
Powered by vBulletin® Version 4.2.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.