The GPU Resident Drawer automatically uses the BatchRendererGroup
API to draw GameObjects with GPU instancing, which reduces the number of draw calls and frees CPU processing time. For more information, refer to How BatchRendererGroup works.
The GPU Resident Drawer works only with the following:
Otherwise, Unity falls back to drawing the GameObject without GPU instancing.
If you enable the GPU Resident Drawer, the following applies:
BatchRendererGroup
shader variants into your build.Follow these steps:
If you change or create GameObjects each frame, the GPU Resident Drawer updates with the changes.
To include or exclude GameObjects from the GPU Resident Drawer, refer to Make a GameObject compatible with the GPU Resident Drawer.
To analyze the results of the GPU Resident Drawer, you can use the following:
How much the GPU Resident Drawer speeds up rendering depends on your scene. The GPU Resident Drawer is most effective in the following setups:
Rendering usually speeds up less in the Scene view and the Game view, compared to Play mode or your final built project.
The following might speed up the GPU Resident Drawer: