Ray tracing - huge flickering. What is the problem? (VIDEO attached)

Hello,
I have huge flickering (half of the screen gets black). I use Ray tracing. UE 4.24.1, 2080ti + latest Nvidia studio drivers. Please check out my video with this issue:

Thank you in advance!

Hm, havent seen that happening in my workflow. Are you sure that you dont have duplicates of the same mesh? Also when you play the level does that happen there too?

Hello! No duplicates, as far as I can see. Yes, it flickers even when I play it (and capturing movie). It looks like GPU switches between RTX and RTX OFF modes and back for a millisecond.
It can be a materials-issue. Iā€™ve used Datasmith for this project. Another project (mush simpler) works ok.

Can you try to migrate the whole level to e new project and see if you get the same problem?

Hi,

Same issue hereā€¦(when RTGI is on)

Nico

Iā€™ve tried to migrate my level to the new EPIC ā€œArchvizRTā€ sample project. And the base level of the example project started to flicker (there were no issues with ArchvizRT before on my PC). Even when my level is not loaded. Iā€™ve tried to capture youtube video, but at some point, it just stopped flicker.

I have also changed in my original project all materials to standard grey but flickering continues. Only removing half of movable RT lights helps. So, I thought that it can be because of the number of lights. I opened ā€œArchvizRTā€ example project and added 20 new different movable RT lights. Iā€™ve expected that it starts flickering, but no, no flickering at all. Will write if I will find the real cause.

Hi Nico, what is your graphics card?

My first thought was about well-known hardware issues with RTX cards. I have Gigabyte Aorus Extreme 2080ti with Samsung video memory chips, that work on 1990MHz core frequency and 1400MHz memory frequency. I have tried to lower the core frequency to 1300MHz and memory frequency to 1000MHz. But it keeps flicker.

Also, I have downloaded and tried the newest game-ready and studio drivers with no success.

ahh, interesting. Post an update if you fixed the problem. :wink:

I know itā€™s a basic check, but are any of the movable lights overlapping? Thereā€™s a default of 4 overlapping lights noted in one of the lighting tutorials in UEā€™s learning portal, and the docs. It can be set to a higher number of overlapping lights.

Could it be reflection captures?

Hi mifa,

asus RTX2080 (1110mhz gpu clock, 1400mhz memory clock)ā€¦ Preston42382 might have explain the pb :slight_smile:

Another thing to check is out of bounds pixels for meshes and lights. Thereā€™s a visualizer for it in the Show button. Go to Show > Visualize > Out of Bounds Pixels, and any blue, yellow, and white colors mean areas of the meshes / lights are extending beyond their bounding boxes (default color of bounding boxes is purple, and can also be shown / hidden in the Show button via Show > Advanced > Bounds). The directional light doesnā€™t count because it casts light through the whole scene, so mainly point, spot, rect, and other area lights. Hereā€™s a link for it:

https://docs.unrealengine.com/en-US/ā€¦els/index.html

Would you be able to upload a project that exhibits the flickering issue somewhere for us to investigate?

Hello,

****** HEREā€™S FLICKERING FIX *********************

Official 4.25 and 4.26 having some glitches in calculations, namely TemporalAAHistory structure was not filled out correctly

Hereā€™s the only solution that will surely fix for both 4.25 and 4.26 versions (building from the source and fixing engine glitch), since 4.25 will not have any more updates and 4.26 also has the same issue:

  1. get Unreal 4.25 source, following link is a step by step instructions on how to get the source (no need for the building until you change buggy scripts, just when you get 4.25 source unzipped from git, run Setup.bat, after that **run GenerateProjectFiles.bat **): Building Unreal Engine 4 (UE4) From Source Code / GitHub - YouTube

  2. **change this 2 scripts **as explained in the below link, and finally, **build the source **
    https://github.com/EpicGames/UnrealEā€¦48f5a38dfb53ea

  3. compile your project from source (in the following link, instructions are around 8.50 min): Building Unreal Engine 4 (UE4) From Source Code / GitHub - YouTube


Enjoy again your UE4.25/26

Cheers,
Mike

1 Like

I found the flickering issue is always associated with a skylight actor in the scene that has Real Time Capture enabled. I suppose that was the main cause of the issue.

Same issue, but with HDRI map on Skylight. It works fine for a while, but then starts flickering. Additional settings that cause this:

  • Cast Shadows = True (on SkyLight either Stationary or Movable)
  • Cast Ray Tracing Shadows = True (on SkyLight either Stationary or Movable)

Ray Tracing Global Illumination (on PostProcess)

  • Type = Brute Force
  • Max. Bounces >= 1

I had that same issue and in my case the problem was that the Sky Light had Cast Ray Traced Sadows Enabled. What solved the problem was to increase the Samples per Pixel in the Ray Tracing section of the Sky Light. I know you had this problem a while ago but I hope this helps someone with this same issue.