jPCT-AE - a 3d engine for Android > Bugs

Static uniforms

(1/1)

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.

Navigation

[0] Message Index

Go to full version