Why SRP batcher increases amount of batches?

Hi!

Straight to the point: when I enable SRP batcher inside URP asset (screenshot attached) amount of batches displayed in stats window increases 2 times. Also I’ve heard that when using SRP batcher these stats are irrelevant.

So the question, does SRP batcher actually makes performance better and stats window lies? Or it really depends on the case? If someone know how it works under the hood I would appreciate the explanation :slight_smile:

Engine version: Unity 2021.3.26f1
Build platform: Windows DX11

Thanks in advance!

9176087--1277672--Screenshot 2023-07-27 191920.png

Check the frame debugger to see the amount of draw calls actually made. In the stats window this is setpass calls. This should do down when you enable srp batcher

1 Like

There’s a good description under ‘How the SRP Batcher Works’ on this page:

2 Likes

Oh I see now. Frame debugger made it all clear! Thank you guys!

1 Like