https://youtu.be/Knlis2jOzZw
An interior scene. Same on the viewport and Rendering. When I change shadows to ‘Shadow Map’ mode - there is no flickering. I tried to increase Lumen samples - no effect. Any idea how to keep a virtual shadow map without this flickering? UE 5.3.2
Hello there @olegwer1!
Checking through the community for similar scenarios, there are a few parameter changes to test around. From your light’s source details’ panel, adjust the following:
-
Shadow Map Channel: set to 0
-
Shadow Map Resolution Scale: switch between 2.0 to 4.0
-
Virtual Shadow Map Bias: go from 0.01 to 0.1
-
Normal Bias: switch between 0.2 to 0.3
-
Dynamic Shadow Distance Movable Light: increase to 20000
-
Also, it is always useful to update UE to the latest, stable version (these days, either 5.5.4 or 5.6.0 will do the trick), as well as setting your video drivers to the developer version.
-
Finally, check the thread and documentation below for more methods to test:
To add on to @brs-sebascova’s answer,
This could also be due to a physical page pool overflow- or when the number of cached pages exceeds the max page limit. You can use r.ShaderPrintEnable 1 and r.Shadow.Virtual.ShowStats 2 to debug and see if this is your problem. If it is, you will need to either decrease your number of shadow-casting lights, decrease the shadow resolution, or if you aren’t too worried about performance you can increase the maximum page pool size with the command r.Shadow.Virtual.MaxPhysicalPages