- Home /
Large Shader.CreateGPUProgram despite preloading shaders?
I'm making a project for WebGL and finding that everytime it starts up I get several big dips in framerate due to Shader.CreateGPUProgram presumably where its loading in the shader variants. I went through the steps of creating a shader variant collection and adding it to the Preloaded Shaders in Player Settings>Graphics but nothing seems to work to stop these spikes.
I have used the Standard shader on every single material in my scene that I can find to try and drive down the shaders, but then when I look at the generated shader collection it only seems to have two - one relating to TextMeshPro. Do I need to manually add the Standard shader to this collection?
Am I completely misunderstanding something here, is there any way to get rid of these spikes from preloading and preloading properly?

alt text

Your answer
Follow this Question
Related Questions
Shader Problem 0 Answers
perform action on shader compilation/update 0 Answers
Shaders problems after moving to URP 0 Answers
shader problem 0 Answers