PDA

View Full Version : checking state before setting state



supagu
12-11-2004, 09:40 PM
im actually wondering if its worth checking the state before changing the state, eg: i want to enable lighting. is it worth me checking to see if lighting is already enabled before enabling it?

deaf
12-11-2004, 10:55 PM
that depends wholly on how you check, if you have your own statetable for the things you check it will most likely be as fast/faster, but when dealing with GL directly it's usually better to set a state to what you want, than querying it first.

Not sure how this relates to PCI express, queries might be faster, but I doubt if their that fast