# Flickering/Wobbly Shadows Issue due to Day/Night Cycle

**URL:** <https://forums.unrealengine.com/t/flickering-wobbly-shadows-issue-due-to-day-night-cycle/1965998>\
**Category:** Rendering\
**Tags:** unreal-engine, question\
**Created:** [August 7, 2024, 6:05pm UTC](https://forums.unrealengine.com/t/flickering-wobbly-shadows-issue-due-to-day-night-cycle/1965998 "2024-08-07T18:05:15Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jedm\_NZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jedm\_NZ](https://forums.unrealengine.com/u/Jedm_NZ)\
**Post date:** [August 7, 2024, 6:05pm UTC](https://forums.unrealengine.com/t/flickering-wobbly-shadows-issue-due-to-day-night-cycle/1965998/1 "2024-08-07T18:05:15Z")

</div>

Hi guys,

I’m losing my mind a little here. I have a particular issue in regards to shadows flickering or rather, wobble due to my day/night cycle and I’ve had to hit the forums to see if anyone else has mitigated the issue or have alternative ideas.

You can see the problem here: [https://www.youtube.com/watch?v=IrMHcfgrQJs](https://www.youtube.com/watch?v=IrMHcfgrQJs)

My game is using a two tone cel shaded post process for a number of foliage and assets in game and the directional light movement is updating per tick or rather, frame.

Steps I have taken so far to try and mitigate the issue (which has helped somewhat)

- Adjusted Shadow Bias, Distribution Exponent, Cascades Amount and Transition Factor (tuned to the best results I can get
- Stepped the light movement (although this helped the effect is still there, just “slower”
- Set r.shadow.filtermethod to 1 (improves the flickering very well but introduces weird artifacts on certain objects, I would like to avoid this)

I can mitigate the problem entirely by enabling virtual shadow maps but due to the WPO and animated light nature I’m invalidating every frame which is a huge performance hit.

Has anyone encountered this issue or have better knowledge than myself (very easy to achieve lol) and have some solutions?

---

<div class="post-metadata">

**Author:** ![Arkiras](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/arkiras/32/1008648_2.png) [@Arkiras](https://forums.unrealengine.com/u/Arkiras)\
**Post date:** [August 7, 2024, 7:23pm UTC](https://forums.unrealengine.com/t/flickering-wobbly-shadows-issue-due-to-day-night-cycle/1965998/2 "2024-08-07T19:23:05Z")

</div>

Probably using a post process cel shader over Lumen, which typically won’t work, because Lumen is not completely temporally stable.

---

<div class="post-metadata">

**Author:** ![Jedm\_NZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jedm\_NZ](https://forums.unrealengine.com/u/Jedm_NZ)\
**Post date:** [August 7, 2024, 7:49pm UTC](https://forums.unrealengine.com/t/flickering-wobbly-shadows-issue-due-to-day-night-cycle/1965998/3 "2024-08-07T19:49:46Z")

</div>

Thanks for the reply. Lumen is disabled already.  
I’m only using a moveable directional and all dynamic shadows

It’s hard to research the issue because everything points to Lumen in search results at the moment.

I’m assuming that’s this is some kind of shadow confusion between the hard edge of the shadow, WPO and the lights direction being updated every frame. But my assumptions don’t mean much as I don’t really know where else to look for improvements.

---

<div class="post-metadata">

**Author:** ![Arkiras](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/arkiras/32/1008648_2.png) [@Arkiras](https://forums.unrealengine.com/u/Arkiras)\
**Post date:** [August 7, 2024, 7:52pm UTC](https://forums.unrealengine.com/t/flickering-wobbly-shadows-issue-due-to-day-night-cycle/1965998/4 "2024-08-07T19:52:43Z")

</div>

Turn off your post process and post a video. If it isn’t lumen my next guess would be that it’s virtual shadowmaps and you’re using a directional light with a large source angle.

---

<div class="post-metadata">

**Author:** ![Jedm\_NZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jedm\_NZ](https://forums.unrealengine.com/u/Jedm_NZ)\
**Post date:** [August 7, 2024, 8:06pm UTC](https://forums.unrealengine.com/t/flickering-wobbly-shadows-issue-due-to-day-night-cycle/1965998/5 "2024-08-07T20:06:24Z")

</div>

I’ll get that posted in a second.  
As for virtual shadow maps, the example above is with it disabled. I can completely solve the issue by enabling virtual shadow maps.

Edit: Source Angle? is that something I should look into?

---

<div class="post-metadata">

**Author:** ![Jedm\_NZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jedm\_NZ](https://forums.unrealengine.com/u/Jedm_NZ)\
**Post date:** [August 7, 2024, 8:32pm UTC](https://forums.unrealengine.com/t/flickering-wobbly-shadows-issue-due-to-day-night-cycle/1965998/6 "2024-08-07T20:32:51Z")

</div>

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/8/0/6808c4146ce8f0ff6260bdbd9810b9896395ed16.jpeg "Post Process Material Disable Test") ](https://www.youtube.com/watch?v=6_hFs4_Ztbg)

Here is the test with Post-Process Material disabled. Issue doesn’t seem to be there nearly as bad but you can see the effect still regardless. Just far more subtle due to soft shadow gradient I guess.

I could be asking for too much precision using simpler methods of shading.

---

<div class="post-metadata">

**Author:** ![Arkiras](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/arkiras/32/1008648_2.png) [@Arkiras](https://forums.unrealengine.com/u/Arkiras)\
**Post date:** [August 7, 2024, 9:05pm UTC](https://forums.unrealengine.com/t/flickering-wobbly-shadows-issue-due-to-day-night-cycle/1965998/7 "2024-08-07T21:05:02Z")

</div>

Shouldn’t be jittering like that but it may just be that the shadow cascade resolution is just too low. I would try reducing the dynamic shadow casting distance significantly, increasing the number of cascades, or adjusting the cascade distribution (all settings in the directional light)

---

<div class="post-metadata">

**Author:** ![HuntTheHunter](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HuntTheHunter](https://forums.unrealengine.com/u/HuntTheHunter)\
**Post date:** [August 7, 2024, 9:26pm UTC](https://forums.unrealengine.com/t/flickering-wobbly-shadows-issue-due-to-day-night-cycle/1965998/8 "2024-08-07T21:26:43Z")

</div>

I’m having this same issue after changing my scalability settings, but switching it back doesn’t fix it. I wonder what the setting is that causes it.

---

<div class="post-metadata">

**Author:** ![Jedm\_NZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jedm\_NZ](https://forums.unrealengine.com/u/Jedm_NZ)\
**Post date:** [August 7, 2024, 9:57pm UTC](https://forums.unrealengine.com/t/flickering-wobbly-shadows-issue-due-to-day-night-cycle/1965998/9 "2024-08-07T21:57:24Z")

</div>

Thanks for the input Ark,

I have adjusted all settings except for reducing the dynamic shadow distance prior to making this thread. Reason for not lowering the dynamic shadow distance is because I have to have Distance Field Shadows disabled as the effect is worse with those shadows in the distance!

The cleanest settings I could get are as follows:

- Dynamic Shadow Distance 15000
- Number of Cascades = 4
- Distribution Exponent = 1.8
- Shadow Bias = 0.5 (either lower or higher values just seem to ‘move’ the effect around)
- Shadow Resolution = 2  
(may have missed some, brain is melting)

---

<div class="post-metadata">

**Author:** ![Jedm\_NZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jedm\_NZ](https://forums.unrealengine.com/u/Jedm_NZ)\
**Post date:** [August 7, 2024, 10:00pm UTC](https://forums.unrealengine.com/t/flickering-wobbly-shadows-issue-due-to-day-night-cycle/1965998/10 "2024-08-07T22:00:34Z")

</div>

This is interesting,  
I will look into this.

I haven’t really messed with scalability apart from r.screenpercentage for DLSS, and FSR upscaling, but I’m going to test that now too.

I’m not a fan of these pre-defined scalability and gameusersettings nodes. They seem to get in the way more than anything.

---

<div class="post-metadata">

**Author:** ![Jedm\_NZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jedm\_NZ](https://forums.unrealengine.com/u/Jedm_NZ)\
**Post date:** [August 14, 2024, 9:32am UTC](https://forums.unrealengine.com/t/flickering-wobbly-shadows-issue-due-to-day-night-cycle/1965998/11 "2024-08-14T09:32:22Z")

</div>

Alright,

I have done everything you mentioned again and beyond.

If I stop my animated directional light (night/day system) the problem stops. So I know the issue is with lights animated movement and some sort of shadow invalidation. (I’m not using virtual shadows or lumen)

But even with all post process materials disabled, shadow cascades at max, dynamic shadow distances checked (no significant improvements at any lower ranges), resolution at maximum, shadow bias, light source angle and intensity, auto exposure settings, skylight settings etc etc I saw miniscule improvements at major sacrifices of my visual quality. In that second video I posted above we can see that this invalidation or problem is apparent even without forcing lighting information into bands in post-process.

I just don’t understand enough about Unreal Engine’s dynamic lighting system to fix this issue, and it seems to be a rare issue… for some reason.

---

<div class="post-metadata">

**Author:** ![Tonetfal](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tonetfal/32/1119420_2.png) [@Tonetfal](https://forums.unrealengine.com/u/Tonetfal)\
**Post date:** [August 28, 2025, 4:30am UTC](https://forums.unrealengine.com/t/flickering-wobbly-shadows-issue-due-to-day-night-cycle/1965998/12 "2025-08-28T04:30:46Z")

</div>

Did you find the solution?

---

<div class="post-metadata">

**Author:** ![Tonetfal](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tonetfal/32/1119420_2.png) [@Tonetfal](https://forums.unrealengine.com/u/Tonetfal)\
**Post date:** [August 29, 2025, 4:18pm UTC](https://forums.unrealengine.com/t/flickering-wobbly-shadows-issue-due-to-day-night-cycle/1965998/13 "2025-08-29T16:18:02Z")

</div>

Alright, I got it sorted out for my game.

The thing that helped me the most is r.Shadow.MaxCSMResolution. By default it’s set to 2048; increasing it to 4096 makes a difference, but it’s not all. Without it everything below still has impact for the final shadow quality, but increasing the CSM resolution helps immensely with flickering specifically.

By default directional light has Dynamic Shadow Distance MovableLight set to 40000, Distribution Exponent set to 3.0, and Num Dynamic Cascades set to 4.

The lower the distance, the sharper the shadows will be. There’s a point where it makes it worse, but for me 4000 worked perfectly.

Shadow Exponent also helps shifting some values related to shadow computition; 1.5-2.5 works the best for me.

Num cascades of 4 is the bare minimum that you should have to have acceptable quality. Increasing it to 5 helps the situation immensely, however, increasing it to 6 seems to make it worse. Setting it to anything to 7-10 doesn’t seem to make it any better, but the performance hit is greater.

Increasing the CSM max resolution obviously will make it consume more memory, and it’ll make the computition take some more time. Increasing directional num cascades has a minor performance hit.

Using TAA makes it a bit less noticeable as it’s making the whole image blurrier.

In case of TAA, you should be able to get away with 4 cascades, 4k distance and exponent 2.0-3.0.

In case of no AA, FXAA or CMAA2, you can go with a) 40000 distance, 5 cascades and exponent of 3 b) 4000 distance, 5 cascades and exponent of 1.5.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/0/8/4087129bd76852edd50b4b2bd7be0f1276e5aed7.jpeg "Cascaded shadow maps") ](https://www.youtube.com/watch?v=Lju3jPyGNsk)

To permanently save CSM resolution, you would need to change your DefaultScalability.ini settings for each quality, for instance, to set it for Epic you do

```auto
[ShadowQuality@3]
r.Shadow.MaxResolution=4096

```

refer to this to see how to do that for other settings [Scalability Reference for Unreal Engine | Unreal Engine 5.6 Documentation | Epic Developer Community](https://dev.epicgames.com/documentation/en-us/unreal-engine/scalability-reference-for-unreal-engine).

You also might need to increase render target pool, as you might start getting this warning after increasing CSM max resolution

```auto
LogRenderTargetPool: Warning: r.RenderTargetPoolMin exceeded 653/400 MB (ok in editor, bad on fixed memory platform)

```

You would do that in the DefaultScalability.ini as well. It’s up to you to determine the value that fits your game.

---

<div class="post-metadata">

**Author:** ![sorengree](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sorengree/32/1165558_2.png) [@sorengree](https://forums.unrealengine.com/u/sorengree)\
**Post date:** [April 8, 2026, 9:51pm UTC](https://forums.unrealengine.com/t/flickering-wobbly-shadows-issue-due-to-day-night-cycle/1965998/14 "2026-04-08T21:51:51Z")

</div>

Thank you so much for following up on this post with the settings that helped you the most! I’d been fighting with this issue all afternoon before finding your post. The suggestions here greatly improved the flickering I was seeing.
