Search Unity

URP + SRP Batcher increases the Draw Calls by 1000

Discussion in 'Universal Render Pipeline' started by Opeth001, Nov 27, 2019.

  1. Opeth001

    Opeth001

    Joined:
    Jan 28, 2017
    Posts:
    1,117
    Hello Everyone,

    im using URP 7.1.5 by enabling the SRP batcher the game Draw Calls are increased by ~1000+
    SRP batcher is supposed to increase performance instead.

    this is what the Frame debug says about that:

     
  2. BattleAngelAlita

    BattleAngelAlita

    Joined:
    Nov 20, 2016
    Posts:
    400
    With SRP batcher enabled batches count in stats window totally irrelevant.
     
    Bovine, Genebris and AcidArrow like this.
  3. JesOb

    JesOb

    Joined:
    Sep 3, 2012
    Posts:
    1,109
    For our game on Galaxy S8 enabling SRP Batcher lead to almost 2x more draw calls and actually 2x lower FPS on device
    We CPU bound for now.

    So you really need to test on target device.
     
  4. Opeth001

    Opeth001

    Joined:
    Jan 28, 2017
    Posts:
    1,117
    does it mean it's correctly batched but the Stats window is showing wrong values ?
    then why when i put them inside a Subscene the batches count goes down to 80 ?
     
  5. SenseEater

    SenseEater

    Joined:
    Nov 28, 2014
    Posts:
    84
    Probably because Stats window only displays batches computed on CPU and AFAIK SRP batching happens in Shaders. Additionally since moving to subscenes destroys the GO representations , they are no more drawn as GO and draw calls are not read by stats window.
     
  6. Opeth001

    Opeth001

    Joined:
    Jan 28, 2017
    Posts:
    1,117
    does this mean, even if the stats window shows 1000+ draw calls the real draw calls are much lower ?
     
  7. BattleAngelAlita

    BattleAngelAlita

    Joined:
    Nov 20, 2016
    Posts:
    400
    You can see number of "draw calls" in frame debugger.
    Actually, real number of draw calls you can see in graphics debugging tools like RenderDoc, and it can bee 1000+ or even more. But whole idea of SRP Batcher is reduce draw call cost itself, i.e. you can draw 1000 srp draw calls in a cost of 100 old draw calls.
     
    florianhanke and Opeth001 like this.
  8. SenseEater

    SenseEater

    Joined:
    Nov 28, 2014
    Posts:
    84
    Chmyke and Opeth001 like this.