/ShadingPerfInUnity

Simulating Unreal's Shader Complexity and Quad Overdraw in Unity

Primary LanguageGLSL

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