Enable the SRP Batcher
When you use HDRP, Unity enables the SRP Batcher by default. Disabling the SRP Batcher isn't recommended. However, you can temporarily disable the SRP Batcher for debugging purposes.
To enable and disable the SRP Batcher at build time using the Editor:
- In the Project window, select the HDRP Asset.
- In the Inspector for the asset, enter Debug mode. In Debug mode, you can see the properties of the HDRP Asset, including the SRP Batcher property.
- Select Enable SRP Batcher to enable or disable the SRP Batcher.
To enable or disable the SRP Batcher at runtime, toggle the following global variable in your C# code:
GraphicsSettings.useScriptableRenderPipelineBatching = true;