Quick answer: measure preparation cost, not just draw count
SRP Batcher reduces CPU work when preparing rendering settings for the GPU. It does not reduce the number of draw commands (draw calls), so that count alone cannot show whether it helps. Check that compatible draws use the SRP Batcher, then measure CPU rendering time in a built application (Player).
If the Inspector explicitly reports SRP Batcher: not compatible, start with the incompatibility checklist. This page focuses on optimization after that eligibility check.
| Observation | What to check | Evidence to keep |
|---|---|---|
| SRP batching seems absent | The active URP asset, renderer and shader compatibility | Quality level, asset assignment and one known compatible draw |
| Many short SRP batches | Shader keywords, variants and the reported batch boundary | Frame Debugger events before and after one change |
| Draw count stays high | Submeshes, shadow/depth passes and repeated geometry | Draw count separately from CPU rendering time |
| Frame time does not improve | Whether CPU rendering is actually the bottleneck | Comparable CPU and GPU Player timings |
1. Confirm the active render configuration
Record the Unity/URP versions, target device, Graphics API, resolution and quality level. Check which URP asset that quality level uses; editing an unassigned asset will not change the capture. Enable the SRP Batcher in that asset and inspect a simple compatible mesh as a control.
Do not treat every object as eligible. MaterialPropertyBlock use and an incompatible shader require a separate compatibility investigation. Particles are outside the mesh/skinned-mesh eligibility described in the referenced baseline documentation.
2. Read the batch boundaries in Frame Debugger
- Open Frame Debugger and locate a representative group of opaque draws. Check the shader pass and shader variant around each SRP batch boundary.
Inspect preparation cost and draw count separately - Compare materials that should share a variant. Material values can differ while the same compatible variant is used; enabling different keywords can select another variant.
Inspect preparation cost and draw count separately - Change one material or keyword setup and capture the same view again. Do not remove keywords needed for correct lighting merely to produce a longer batch.
Inspect preparation cost and draw count separately - Keep shadow, depth and forward passes distinct in the comparison. A single visible object can participate in more than one pass.
Inspect preparation cost and draw count separately
3. Compare CPU rendering time in a Player
Use the same camera path, content, quality settings and measurement window for SRP Batcher on/off captures. Warm the scene first so shader compilation or loading does not dominate the comparison. Inspect CPU rendering work and overall frame time, and also check GPU time before claiming a performance gain.
Frame Debugger is useful for understanding the rendering sequence; do not use its paused frame as a runtime benchmark. Keep the rendering change only when representative Player measurements support it.
4. Choose the next optimization from the evidence
If CPU preparation is cheaper but there are still many draws, inspect submeshes and material slots. If many objects reuse an identical mesh and material, compare a suitable GPU instancing path. If GPU time dominates, investigate the costly passes and pixel work instead of expecting CPU batching to fix them.
Vertex animation and object-space calculations are not automatic incompatibility reasons. Preserve the coordinate space required by the visual effect. No device benchmark or universal speedup is claimed by this article.