OpenGL glIsEnabled Calls
2 posters
OpenGL glIsEnabled Calls
Im still a super newbie in openGL so please correct me if i am wrong on this. From the couple books i am in the process of reading they all make mention that you should try to reduce or eliminate any calls to glIsEnabled and keep the state yourself in your own code. I see a lot of calls like the following in sio2:
Would there be a significant advantage to keeping state in the sio2 struct instead of querying openGL?
- Code:
if( !glIsEnabled( GL_BLEND ) )
{ glEnable( GL_BLEND ); }
Would there be a significant advantage to keeping state in the sio2 struct instead of querying openGL?
uprise78- Posts : 228
Join date : 2008-10-31
Re: OpenGL glIsEnabled Calls
yes that can be done... however glIsEnabled will check the client state on a GL_CONTEXT basis held in the client memory (and from what I understand in software) so basically Im not sure that the speed gain will be significant... but still worth the try...
Similar topics
» [Request] Dont Call glBindTexture Unless Necessary ... and glIsEnabled/glEnable
» Avoid sio2PhysicCollisionCallback calls
» optimizing GFX calls on iphone 2G and 3G
» SIO2 and iPhone OS 3.0
» Create primitives
» Avoid sio2PhysicCollisionCallback calls
» optimizing GFX calls on iphone 2G and 3G
» SIO2 and iPhone OS 3.0
» Create primitives
Permissions in this forum:
You cannot reply to topics in this forum