The number of draw calls increases when the number of meshes in a scene is increased
Unity: Mesh
As Designed
6.0.X
2023.2.X
2022.3.X
2021.3.X
The drawcall separation is due to the camera using front-to-back sorting. Selecting the NoDistanceSort opaqueSortMode resolves the separation
Reproduction steps:
1. Open the attached “BugRepro” project
2. Open the “Scenes/AllCubes” Scene
3. Open the Frame Debugger window (Window > Analysis > Frame Debugger)
4. Press the “Enable” button
5. Observe the “DrawOpaqueObjects” calls
6. Open the “Scenes/HalfCubesHalfSpheres” Scene
7. Observe the “DrawOpaqueObjects” calls
Expected result: The total sum of calls is 6
Actual result: The total sum of calls is 10 or 11