garric / ShadingPerfInUnity

Simulating Unreal's Shader Complexity and Quad Overdraw in Unity

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ShadingPerfInUnity

Simulating Unreal's Shader Complexity and Quad Overdraw in Unity

Unity 2018.4.x

Models from:

https://free3d.com/3d-model/watch-tower-made-of-wood-94934.html

https://free3d.com/3d-model/plane-table-chimny-plinth-object-516352.html

Shader Complexity

Shading Mode/Shader Complexity

  • pseudo code
if (!shaderComplexityInCache)
{
    callUnityOpenCompiledShaderUsingRelection();
    extractVertexAndFragmentShaderFromCompiledShaderFile();
    callMaliOfflineComilerWithExtracedShaderFile();
    parseShaderComplexityInfo();
    cache();
}
return cachedShaderComplexity;

ref: Arm MS Streamline 2019.2

Quad Overdraw

Shading Mode/Quad Overdraw

  • pseudo code
quadOverdrawAccumulate();
quadOverdrawApp(); // full screen image effect
quadOverdrawClear();

ref: Counting Quads

Preferences

Shading Mode/Preferences

About

Simulating Unreal's Shader Complexity and Quad Overdraw in Unity


Languages

Language:GLSL 90.1%Language:C# 6.0%Language:Batchfile 2.2%Language:ShaderLab 0.8%Language:JavaScript 0.7%Language:HLSL 0.3%