Author Topic: Static uniforms  (Read 2352 times)

Offline Thomas.

  • double
  • *****
  • Posts: 833
    • View Profile
Static uniforms
« on: August 11, 2012, 07:18:14 pm »
Static uniforms is not sent to shader after application is restored. What differences are among static and "classic" uniforms?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12203
    • View Profile
Re: Static uniforms
« Reply #1 on: August 11, 2012, 09:10:31 pm »
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.