Static uniforms

Started by Thomas., August 11, 2012, 07:18:14 PM

Previous topic - Next topic

Thomas.

Static uniforms is not sent to shader after application is restored. What differences are among static and "classic" uniforms?

EgonOlsen

Yes, that's true. If you are using static uniforms, you have to set them again on resume. The difference is that static uniforms will set once into the shader while non-static ones will be set again each frame. Static uniforms might be a little faster. At least that was the idea...but in the end, it doesn't really matter unless you are using a lot of them.