Shader.CreateGPUProgram spikes : any way to get more info from the Profiler?

Hi,

I get calls to Shader.CreateGPUProgram that creates FPS spikes, however the information I get from the profiler is limited on the origin of these calls.

Is there a way to get the name of the gameobject renderer that triggers this call or which material/shader is involved?

Any help will be usefull,
thanks in advance!

Have you tried a deep profile? Though I don’t think you will be able to determine the material / gameobject which might cause this. However you may want to have a look at Optimizing Shader Load Time and maybe at Shader.WarmupAllShaders which you can call at the beginning / loading of the game.