www.jpct.net

jPCT-AE - a 3d engine for Android => Bugs => Topic started by: Thomas. on August 11, 2012, 07:18:14 pm

Title: Static uniforms
Post by: Thomas. 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?
Title: Re: Static uniforms
Post by: EgonOlsen 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.