- Home /
What is the in right way to Warm Up Shaders?
Hello, I'm trying to find a way to effectively Warm Up necessary shaders in minimum amount of time. Shader.WarmupAllShaders takes extremely long (20s, I'm using lots of shaders). I'm honestly don't understand how Shader.WarmupAllShaders works, but it seems to me that it load shaders in all possible combinations(?) and most of them never show in game. So as i understand i need to manually chose and show necessary shaders to warm up them, or there is better way? Do i need to do it at the start of each scene, or one time on app stat is enough?
Thank's!
Answer by KBVDev · Jan 12, 2018 at 01:33 PM
It's an old post, but just in case anyone stumbles across this, here's a link:
https://docs.unity3d.com/ScriptReference/ShaderVariantCollection.html
Your answer
![](https://koobas.hobune.stream/wayback/20220613083139im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
See through issue in iOs 0 Answers
Unwanted rendering on top of all objects!? 0 Answers
Weird iPad render bug 0 Answers