- Home /
Other
Answer by spraycanmansam · Mar 15, 2014 at 09:07 PM
http://docs.unity3d.com/Documentation/Components/SL-ShaderPerformance.html
Talks a bit about mobile performance as well :) One little thing to be aware of is there's a performance overhead from converting between precisions, ie: highp variables to lowp (or float to fixed). I loved reading a few of Aras' articles on optimization, where 'optimized' code actually ran slower from conversions! Like all programming, premature optimization is the root of all evil. Get it working first and then test your optimisations to see if they're effective. Shader programming can be more of an art than a science sometimes..
Answer by NutellaDaddy · Jan 11, 2014 at 04:33 AM
It just depends on how exact/precise you want to be. Not too much of a difference.
And what about mobiles? It's not much of a difference there too?
Answer by mprivat · Nov 24, 2017 at 02:02 PM
This page has the details: https://docs.unity3d.com/Manual/SL-DataTypesAndPrecision.html
Follow this Question
Related Questions
Shaders; fixed, half or float for PC? 1 Answer
Sizeof float in cg shader 1 Answer
UV data type 0 Answers
How to make a GameObject collide properly with an animated plane? 0 Answers
Fixed pipeline normal mapping on iPhone 2 Answers