Search Unity

Batching GPU instanced objects with same material/mesh not working

Discussion in 'Universal Render Pipeline' started by mrCharli3, Dec 12, 2019.

  1. mrCharli3

    mrCharli3

    Joined:
    Mar 22, 2017
    Posts:
    976
    I have 100 units (exact same prefab) on screen. The material is a URP Lit using a texture with GPU instancing enabled. Why is it not batching? Am I missing something?

    I also noticed it requires 3-4 batches per model, why is this?

    See screenshots for stats and info.

    11.jpg 33.jpg 22.jpg
     
  2. Andre_Mcgrail

    Andre_Mcgrail

    Unity Technologies

    Joined:
    Dec 9, 2016
    Posts:
    244
    Hi,

    Make sure you have SRP Batcher disabled in the Render Pipeline asset that you are using in the graphics settings, SRP Batcher is the new replacement for both GPU Instancing and Dynamic Batching, but when it is enabled GPU instancing is disabled.

    You are also not seeing any SRP patchers because those look like Skinned Mesh Renderers, SRP Batcher support for Skinned Mesh Renderers was recently added in 19.3.
     
    Polynook likes this.