Search Unity

Question GPU instancing strange behavour

Discussion in 'General Graphics' started by marckv, Jul 25, 2022.

  1. marckv

    marckv

    Joined:
    Sep 19, 2013
    Posts:
    61
    Hey all, hoping someone can help me here.

    Does anyone know why my objects don't batch together at certain distances?

    upload_2022-7-25_1-0-37.png

    As you can see, when the plants have some distance between them, they do not batch, yet when they are next to each other they do.
    I am using GPU instancing on the material, SRP batcher is off, same thing happens with shadows on or off. It's really strange. 2021.3.2 URP.
    Any ideas?

    I assumed the draw call order was the problem. But that doesnt seem to be it.

    It seems to be distance from camera, or something that is linked to that at least.
     
    Last edited: Jul 25, 2022
  2. c0d3_m0nk3y

    c0d3_m0nk3y

    Joined:
    Oct 21, 2021
    Posts:
    675
    Usually it tells you why it couldn't batch when you click on it (I know it does in the built-in render pipeline)