Search Unity

GPU Instancing limited to 128 per call on Adreno 540?

Discussion in 'General Graphics' started by fortgreeneVR, Mar 29, 2019.

  1. fortgreeneVR

    fortgreeneVR

    Joined:
    Sep 5, 2018
    Posts:
    50
    Hi, quick question about GPU instancing.

    The Unity doc says that GPU instancing is limited to 1023 instances when using Graphics.DrawMeshInstanced.

    However, when I use 1023 instances and look at a Renderdoc frame grab, I see
    • 2 calls of DrawIndexedInstanced with a 511 count and 1 regular DrawIndexed on my desktop (Windows 10, NVidia RTX 2080)
    • 7 calls of glDrawElementsInstanced with a 128 and one with a 127 count on Android 7.1, Adreno 540 / Snapdragon 835.

    I'm trying to find out if that's a driver/hardware limit or if it is Unity.

    Thanks.
     
  2. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    3,023
    Hi!
    This is a workaround on Unity side for Adreno GPUs.
     
  3. fortgreeneVR

    fortgreeneVR

    Joined:
    Sep 5, 2018
    Posts:
    50
    Ok, thanks for the info.
     
  4. Lenakeiz

    Lenakeiz

    Joined:
    Jun 11, 2015
    Posts:
    34
    @aleksandrk Is this being solved? I am hitting the same problem
     
  5. Sluggy

    Sluggy

    Joined:
    Nov 27, 2012
    Posts:
    989
    You'd have to ask the fine folks at Adreno.