- Home /
where ( or how )can I find the number of instructions used in vertex and pixel shaders in ShaderGraph ?
where can I find the number of instructions used in vertex and pixel shaders? unity used to show this information, along with number of texture reads, in the compiled shader code, that you could see from inspector view. But I just tried doing this in 2019.3 with two shaders... a manually written one and a ShaderGraph one... and that information is no longer there...
I've tried profiler->gpu. but on a newish macbook pro it say, not supported with Metal enabled. If I try to disable the Metal checkbox... it says restart needed, I click ok. but it restarts with Metal still enabled... so I cant disable it. unity 2019.3 bug ?
Is there a way to see performance cost of each shader-graph node ?
Where can I get any kind of shader-graph performance information from please ?
Answer by JonPQ · May 26, 2020 at 10:08 PM
will answer my own question... at least in unity 2019.3, Performance info (numnber if instructions and texture reads ) is no longer in the exported shader code, it doesn't seem to be there any more. ( on mac, with either standalone or iOS targets) You should be able to use profiler to compare performance of new and old shaders by rendering to screen and profiling GPU, but the GPU profiler does not work on either of my newer (2019) or older (2012) macbook pros. :p This might work on a pc...
Your answer
Follow this Question
Related Questions
Why do static arrays in shaders cause massive slowdown? 0 Answers
Objects not drawn with custom vertex/fragment shader when in any other layer than the default layer 1 Answer
Unity 3d Sprite Shader (How do I limit Max Brightness to 1 with Multiple Lights Hitting) 0 Answers
Cross section shader for box bounding using amplify Shader 0 Answers