Skip to content

Simulating Unreal's Shader Complexity and Quad Overdraw in Unity

Notifications You must be signed in to change notification settings

garric/ShadingPerfInUnity

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published