Shadow performance in dense forests

I’m developing an RTS with a free Movement Camera Controller so prolem is that when I zoom in a dense forest FPS drops to 40 because of shadows.

My setup: 1 realtime directional light, No baked or precomputed light. Trees are speedtree but Instanced, so the problem is the shadow casters and the high number of triangles due to shadows.

Would a shadow baking solution increase performance(I have no practical experience in GI and Baking)?
Or is there a way to compromise shadow quality for performance I’m not after the perfect shadow

What if you have lower poly trees that are batched together in groups and set to cast shadows only?

1 Like

Baking would perform much better, but would look worse, especially if you have characters or other dynamic objects under the trees. In that case you wouldn’t get the look of individual leaves and branches moving and casting shadows. Baked tree shadows just look awful.

Did you profile to see what’s going on? How many draw calls do you have? Speedtree models are notorious for not being very … speedy.

1 Like

Necroposting but yeah I resolved this with shadow proxy meshes I was GPU bound because of too many vertices (and having a low-end GPU :smile:)