Search Unity

SRP Batching Shadowcaster draw calls

Discussion in 'General Graphics' started by fleity, Feb 3, 2022.

  1. fleity

    fleity

    Joined:
    Oct 13, 2015
    Posts:
    345
    I looked at the frame debugger today and started to wonder why does the SRP Batcher not batch shadowcaster drawcalls between different shaders?

    Yes srp batcher does not batch different shaders by default but shadow caster draw calls are often the same except when they use vertex displacement. Especially if you would use Usepass to get actually the exact same code and cbuffer.