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
- pseudo code
if (!shaderComplexityInCache)
{
callUnityOpenCompiledShaderUsingRelection();
extractVertexAndFragmentShaderFromCompiledShaderFile();
callMaliOfflineComilerWithExtracedShaderFile();
parseShaderComplexityInfo();
cache();
}
return cachedShaderComplexity;
- pseudo code
quadOverdrawAccumulate();
quadOverdrawApp(); // full screen image effect
quadOverdrawClear();
ref: Counting Quads