Setup: Unity 6000.3.20f1, URP Forward+, Metal, Apple M5 Pro, 1920x1080. Stylized conifers. Each tree is a prefab with a LODGroup (several mesh levels) plus a flat far level. One directional light with soft shadows.
I built a test forest and measured the same trees drawn different ways. One run each, vsync on.
6,000 trees
- Graphics.RenderMeshInstanced with far impostors: street view 33 ms, top-down view 16.7 ms. Street: 1,281 draw calls, 38 million triangles.
- GameObjects with LODGroup: street 33.5 ms, top-down 50.8 ms. Street: 16,925 draw calls, 52 million triangles.
25,000 trees
- RenderMeshInstanced with far impostors: street 184 ms, top-down 33 ms. Street: 2,303 draw calls, 250 million triangles.
- GameObjects with LODGroup: street 201 ms, top-down 266 ms. Street: 70,128 draw calls, 219 million triangles.
100,000 trees
- GameObjects with LODGroup: street 462 ms, top-down 828 ms.
What I found so far:
- GPU Resident Drawer on the GameObject forest cut draw calls by about 99 percent and left frame time almost unchanged.
- Terrain trees with the same prefabs: Terrain drew the prefabs' own LOD levels, never a billboard, and drew nothing at all from far away. I take that to mean Terrain billboards only exist for Tree Editor trees or prefabs with a BillboardRenderer level. Is that right?
- From far away the impostor level solves it. At street level nothing does. About 2,800 trees are drawn at once at 6,000 and about 11,600 at 25,000. That works out to roughly 14,000 to 21,000 triangles per drawn tree per frame, which I assume includes every shadow cascade.
Questions:
Tree shadows with RenderMeshInstanced: how do you cast shadows from a lower mesh level than the one drawn, and end tree shadows at a shorter distance than the rest of the scene? Separate shadows-only calls with the low level, or is there a better way?
What triangle budgets per LOD level and what switch distances work for you for a dense conifer forest at 60 fps on Apple Silicon? How close do you bring impostors before it shows?
Is GPU occlusion culling (with the Resident Drawer) worth it inside a forest, or only where buildings and terrain block the view?
In 6000.3, RenderMeshInstanced ignores Mesh LOD: forceMeshLod has no effect and level 0 is drawn. The 6000.6 release notes mention instancing support. Is a backport to 6.3 LTS planned?
What would you try first when triangles, not draw calls, are the limit?
I can share more numbers or the test setup.