PDA

View Full Version : OpenGL state changes performance?



cronodragon
11-11-2007, 06:22 PM
In DirectX changing states lowers the performance. Is the same happening in OpenGL? If so, which states are the most/less resource consuming? :?

JernejL
11-11-2007, 07:16 PM
In DirectX changing states lowers the performance. Is the same happening in OpenGL? If so, which states are the most/less resource consuming? :?

Yes, depending on what state you change, usually most expensive is binding shaders, then next one is binding textures (which is not as nearly expensive as binding another shader).

in opengl state changes are generally cheap.