# UE 5.1 Preview 2 - Using Raytracing leads to weird light flickering / noise on screen

**URL:** <https://forums.unrealengine.com/t/ue-5-1-preview-2-using-raytracing-leads-to-weird-light-flickering-noise-on-screen/686285>\
**Category:** Rendering\
**Tags:** Shadows, unreal-engine, Rendering, Lighting\
**Created:** [November 8, 2022, 2:08am UTC](https://forums.unrealengine.com/t/ue-5-1-preview-2-using-raytracing-leads-to-weird-light-flickering-noise-on-screen/686285 "2022-11-08T02:08:54Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![4everL000W](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@4everL000W](https://forums.unrealengine.com/u/4everL000W)\
**Post date:** [November 8, 2022, 2:08am UTC](https://forums.unrealengine.com/t/ue-5-1-preview-2-using-raytracing-leads-to-weird-light-flickering-noise-on-screen/686285/1 "2022-11-08T02:08:54Z")

</div>

Heyo, I’ve had this problem for a while using UE5-main too, enabling RayTracing in any Project, even blank ones with no other settings leads to some weird flickering of the light. Turning “Cast Shadows” off fixes the problem but I need my shadows 😃

This only happens in any UE version above 5.0.3… in 5.0.3 everything works just fine.

Changing Shadowmaps or Lighting Method didn’t fix the issue.

What I’ve noticed is that Emissive Materials are excluded from this as well as Point- Directional- and Spotlights with a Source Radius of 0,0 work as intended… changing the Source Radius above 0,0 makes them flicker again. RectLights flicker anyways.

I’ve tried using different GPU drivers but to no avail.

Maybe someone has the same Problem or might know what’s going on ?

RX6900XT - Adrenaline 22.10.1  
Ryzen 7 3700x

 ![Flicker.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/6/2/c6252550e2fe62ed2b745b27d34f261bf76c16be.jpeg)

---

<div class="post-metadata">

**Author:** ![LoneBullet78](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LoneBullet78](https://forums.unrealengine.com/u/LoneBullet78)\
**Post date:** [November 15, 2022, 2:32am UTC](https://forums.unrealengine.com/t/ue-5-1-preview-2-using-raytracing-leads-to-weird-light-flickering-noise-on-screen/686285/2 "2022-11-15T02:32:19Z")

</div>

Ryzen3900x  
Asrock Taichi oc 6800xt  
Adrenalin2e 22.10.3

---

<div class="post-metadata">

**Author:** ![LoneBullet78](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LoneBullet78](https://forums.unrealengine.com/u/LoneBullet78)\
**Post date:** [November 15, 2022, 2:32am UTC](https://forums.unrealengine.com/t/ue-5-1-preview-2-using-raytracing-leads-to-weird-light-flickering-noise-on-screen/686285/3 "2022-11-15T02:32:39Z")

</div>

I’m having this same issue when I migrated my project from 5.0.3 to 5.1. The problem is in the raytraced shadows because if you turn it off it goes away. I wish they would fix this because I’m stuck.

 ![Screenshot_20221115_095324](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/1/6/81641bedc145c12b658f23ddd44f06ac3c70ea6b.jpeg)

---

<div class="post-metadata">

**Author:** ![PLGelton](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PLGelton](https://forums.unrealengine.com/u/PLGelton)\
**Post date:** [December 17, 2022, 8:57pm UTC](https://forums.unrealengine.com/t/ue-5-1-preview-2-using-raytracing-leads-to-weird-light-flickering-noise-on-screen/686285/4 "2022-12-17T20:57:33Z")

</div>

Hi there,

Any solution here? Because it’s really a pain…

 ![UE001](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/f/e/2fe0a05e1e3679df70c1151b25c94920b923f436.png)  
 ![UE002](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/4/5/f4567733d7ca7260c051409d9ed960d30d8730a5.jpeg)  
 ![UE003](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/3/3/633955c53b13077167bf0bb7efd33b385a52c59f.png)  
 ![UE005](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/d/4/1d40a9349f81069359b367006d51026b1c0578ca.jpeg)  
 ![UE006](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/3/2/9328aea3b0334d41bdd2de82c851a4141562733d.jpeg)

---

<div class="post-metadata">

**Author:** ![HappyPie\_PewPew](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HappyPie\_PewPew](https://forums.unrealengine.com/u/HappyPie_PewPew)\
**Post date:** [December 23, 2022, 12:58am UTC](https://forums.unrealengine.com/t/ue-5-1-preview-2-using-raytracing-leads-to-weird-light-flickering-noise-on-screen/686285/5 "2022-12-23T00:58:00Z")

</div>

Try turning off the Ray traced Shadows in:  
Project settings → Engine → Rendering → Hardware Ray Trace → Ray Traced Shadow

Also have the this problem using Radeon 6800

---

<div class="post-metadata">

**Author:** ![Thoper\_Chang](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Thoper\_Chang](https://forums.unrealengine.com/u/Thoper_Chang)\
**Post date:** [December 26, 2022, 9:09am UTC](https://forums.unrealengine.com/t/ue-5-1-preview-2-using-raytracing-leads-to-weird-light-flickering-noise-on-screen/686285/6 "2022-12-26T09:09:39Z")

</div>

Hello,

 ![Captura de pantalla 2022-12-26 095936](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/c/f/ecf146ccf3628e55c1a0d2c120f1d7a1a237f764.jpeg)

I resolved the problem desactivating the global illumination on the PostprocessVolumen.

---

<div class="post-metadata">

**Author:** ![4everL000W](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@4everL000W](https://forums.unrealengine.com/u/4everL000W)\
**Post date:** [December 28, 2022, 3:07pm UTC](https://forums.unrealengine.com/t/ue-5-1-preview-2-using-raytracing-leads-to-weird-light-flickering-noise-on-screen/686285/7 "2022-12-28T15:07:32Z")

</div>

Unfortunately no 😒, still stuck with the same Problem. Honestly I’m kinda hoping for a possible hotfix, but until then no Raytracing for me.  
If I happen to find a solution that actually works without disabling anything really important I will let y’all know

---

<div class="post-metadata">

**Author:** ![HappyPie\_PewPew](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HappyPie\_PewPew](https://forums.unrealengine.com/u/HappyPie_PewPew)\
**Post date:** [December 29, 2022, 4:57am UTC](https://forums.unrealengine.com/t/ue-5-1-preview-2-using-raytracing-leads-to-weird-light-flickering-noise-on-screen/686285/8 "2022-12-29T04:57:17Z")

</div>

Problem seems to be related to hardware raytraced shadows. The solution… or rather the workaround for me was to change the r.Shadow.Denoiser.\* values if I wanted to use the hardware acceleration for shadows.

> // enable or disable the denoiser entirely, default 2 for me (can’t see difference between 1 and 2)  
> r.Shadow.Denoiser  
> .  
> // Try value around 4-16, increase until flicker goes away (costly)  
> r.Shadow.Denoiser.PreConvolution  
> .  
> // enable or disable the temporal function, I kept it on  
> r.Shadow.Denoiser.TemporalAccumulation  
> .  
> // Lowering this reduced the flicker in my case (read below)  
> r.Shadow.Denoiser.MaxBatchSize 1  
> .  
> // When Translucency is set to Raster in PostProcessVolume (default) it gives best result  
> r.Shadow.Denoiser.HistoryConvolutionSamples 1

Rest of the values under r.Shadow.Denoiser.\* was a bit finicky in my case with Radeon 6800

In the PostProcessVolume I set the GI for lumens final gather [Global illumination → Lumen Global lllumination → Final Gather Quality] to 6 (costly) and as above mentioned kept the translucency [Rendering Features → Translucency] to raster.

There might be other settings that I have also done in the project settings but I do not know which ones actually has an affect on it (for the better or worse) for when using the lumen hardware raytracing shadow… aside from activating it of course [Engine → Rendering → Hardware Ray Tracing → Ray Traced Shadows]

The denoiser seem to have a great cost and is very finicky with this card (or in general) so you might want to disable it entirely or tweak it proper.  
I ended up disabling the denoiser entirely because of the high cost and it still had some very few flickers.

Using current devbranch as of 2022 12 29 (the “5.2”)

I think the hardware acceleration (at least for AMD cards?) needs some love from the Epic dev team.

---

<div class="post-metadata">

**Author:** ![4everL000W](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@4everL000W](https://forums.unrealengine.com/u/4everL000W)\
**Post date:** [February 1, 2023, 11:21pm UTC](https://forums.unrealengine.com/t/ue-5-1-preview-2-using-raytracing-leads-to-weird-light-flickering-noise-on-screen/686285/10 "2023-02-01T23:21:01Z")

</div>

Okay the Denoiser does actually seem to be the main problem, I’ve tried your approach and it did fix my shadows, actually the only thing I had to do was just disable the Denoiser. Easy workaround to get your Ray Traced shadows back.

Now obviously depending on your lights there will be noise in the shadows, though at least in my scenes it was barely noticable.

---

<div class="post-metadata">

**Author:** ![nuclearpeace](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@nuclearpeace](https://forums.unrealengine.com/u/nuclearpeace)\
**Post date:** [February 2, 2023, 11:21am UTC](https://forums.unrealengine.com/t/ue-5-1-preview-2-using-raytracing-leads-to-weird-light-flickering-noise-on-screen/686285/11 "2023-02-02T11:21:28Z")

</div>

Hello, I have the same problem [here](https://forums.unrealengine.com/t/weird-artifacts-with-ray-traced-shadows-enabled/741175/3), managed to find temp workaround: If in UE5.1 you will switch from SM6 to SM5, turn off virtual shadow maps (switch to another type) and turn on Raytraced shadows - issue will be gone.

---

<div class="post-metadata">

**Author:** ![tylersherwood](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tylersherwood](https://forums.unrealengine.com/u/tylersherwood)\
**Post date:** [August 30, 2023, 8:08am UTC](https://forums.unrealengine.com/t/ue-5-1-preview-2-using-raytracing-leads-to-weird-light-flickering-noise-on-screen/686285/12 "2023-08-30T08:08:42Z")

</div>

Thank you it help me a bit, still flickering with material editor

---

<div class="post-metadata">

**Author:** ![JRFernandes](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JRFernandes](https://forums.unrealengine.com/u/JRFernandes)\
**Post date:** [October 28, 2024, 3:19am UTC](https://forums.unrealengine.com/t/ue-5-1-preview-2-using-raytracing-leads-to-weird-light-flickering-noise-on-screen/686285/13 "2024-10-28T03:19:27Z")

</div>

I’m having the same problem
