- Home /
Color white does nothing consider mobile... really?
I understand that most Mobile shaders are fixed function, which are different than the Normal shaders, which are mostly CG. But if I were to write my own shaders and used Color anyway, would it really dampen performance so much compared to leaving color out completely? I guess my questions is, is there really much performance difference from adding that one line to include color?
I haven't tested myself yet, but I wanted to know if anyone else has tried. Or knows if adding a Color property to a shader is really that bad for performance.
Answer by stingman · Nov 22, 2012 at 07:27 AM
I use color shaders when necessary. With all of the new mobile devices and significant increase in power it's not "that" big of a deal. But if you're targeting older devices, it is just good practice to use strict mobile shaders without the color property. In general, use them where you need to is a good way to go about doing it. I've yet to see a performance hit on any device when I use this strategy. This is just one more area in which you can optimize for mobile devices.
Your answer
Follow this Question
Related Questions
Shader performance question. 0 Answers
Shader.WarmupAllShaders ? What it does? 0 Answers
Intensive Shaders + Dynamic Batching 1 Answer
Efficient shader for solid color 0 Answers
Transparency issue on iOS 1 Answer