What it does

GPU Instancing draws repeated copies of one mesh together while allowing differences such as position or supported color data. A field of identical trees is a typical use. The mesh, Material, Shader, and Renderer must meet the instancing requirements.

Figure: Conceptual relationship: Shared mesh/material → Instance attributes → Draw compatible instances
Figure: Conceptual relationship: Shared mesh/material → Instance attributes → Draw compatible instances

How to use it

Use a shared mesh and compatible material on several MeshRenderers and inspect shader instancing support. Transforms are instance attributes; arbitrary material changes are not automatically combined.

A concrete example

Repeated rocks provide a useful example. Creating a separate material copy per rock or selecting different shader keywords can prevent the expected grouping.

How to check it

  1. Verify actual instanced rendering in Frame Debugger and compare Player CPU/GPU time.
    Change one variable, then remeasure
    Change one variable, then remeasure
  2. Account for SRP Batcher priority, transparency sorting and restrictions on renderer types.
    Check compatibility and actual draw events
    Check compatibility and actual draw events

Limitations

Check pipeline priority, skinned-mesh support, and sorting constraints.

References