How to prevent shadow maps from rendering every frame?

Procedurally generated level baked shadows not possible.

Lots of dynamic lights means lots of dynamic shadows.

Dynamic lights re-render their shadow maps every frame causing unnecessary lag.

Is there a way to tell lights they can chill out on rendering their shadow maps until told again? Or just an engine/project setting or command to set the “frame rate” of lights?

Thanks

1 Like

Can you disable Virtual Shadow Maps and see if that makes any difference? Maybe the visual impact will be too noticable for you? Have you tried enabling Early Z Pass?

1 Like

I am using lumen and virtual shadow maps, changing these settings around do seem to help my frames a little but I’d still like to be able to control how often dynamic shadows need to update. As I’m still getting bad frames regardless and that would be an easy solution to really get some frames back.

If I use normal shadow maps I get light bleed from the outside of my walls, virtual shadow maps fixes this issue.

Walls are aligned correctly, and thick enough. Not sure how to fix that.

VSM should already cache shadows that don’t need to be updated. It has visualization modes so you can show which pages are being invalidated. The fact that your world is procedurally generated might be a factor here, I’m not sure.

Is the light leaking worse as you get further away?

2 Likes

Hmm okay so shadow maps are cached, good to know. And no it looks about the same level.