Max batch size for BatchRendererGroup

Many parts of Unity only allow 1023 instances per call (e.g. DrawMeshInstanced). Is this also true for BatchRendererGroup?

I’d assume it was but obviously some things don’t have this limit (e.g.DrawMeshInstancedIndirect)

The limit is 1023 instance per batch

Important side note. UNITY_INSTANCED_ARRAY_SIZE limits still apply so on desktop your probably getting ~500 instances per batch. Unity seems to overflow batches larger than this (but below 1024) into multiple batches, which can really screw with your instance-ids if you weren’t expecting it :stuck_out_tongue:

1 Like