Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

SRP Batching error?

Discussion in 'High Definition Render Pipeline' started by strongbox3d, Apr 21, 2020.

  1. strongbox3d

    strongbox3d

    Joined:
    May 8, 2012
    Posts:
    816
    Hello guys,

    I am trying to use SRP batching in my project so I have around 300 prefabs of the same mesh with the same material (the material has the Instancing checked in the advance tab) HDRP/Lit type. This prefab is a minnow simple mesh which I have in a school moving around.

    When I run the frame debugger it gives me this explanation:

    Why this draw call can't be batched with the previous one
    SRP: First call from ScriptableRenderLoopJob

    And in the statistics window it says:

    Batches: 3530 Saved by batching: - 2867

    I thought that the idea is to have less Batches and a positive number in the saved by batching.

    Could someone help me to understand what this means and how to fix it?

    Regards,
    Carlos
     
  2. Callumnibus

    Callumnibus

    Joined:
    Jul 23, 2015
    Posts:
    4
    Bump, also need answer to this
     
  3. Camarent

    Camarent

    Joined:
    Feb 19, 2014
    Posts:
    82
    Statistic window works pretty bad with SRP right now. I would recommend you to look ar Frame analyzer or use RenderDoc to see real results.
     
  4. Camarent

    Camarent

    Joined:
    Feb 19, 2014
    Posts:
    82
unityunity