Screen flickering during using high amount of clouds with shadows enabled

D5 Render Version:
2.11.1.016
Graphics Card:
RTX 4090
Driver Version:
Studio 581.29
Issue Description:
Screen flickering during using high amount of clouds with shadows enabled
Screenshots/Videos Description:
included

Steps to Reproduce (optional):
Make high amount of clouds with shadows turned on. Probably on reflective surfaces
flick(4).zip (2.8 MB)

Hi @Smolak

I just tried it on my test file with maximum clouds, enabled Shadow, and Fog, but still can’t replicate it. Can you send us this specific file? Thanks.

Let me know if you have sent it.

I noticed that I have this issue while frame generation is turned off. When I set it to Auto or On this issue is gone.

It can even render with fully clouds but without cloud shadows at all when frame generation is turned off.

Unfortunately it still flicker even with frame generation turned on :

flicker(4).zip (3.3 MB)

Is this issue related to the one you have posted before? You did mention you’re enabling custom GI + Enabled the shadow
Clouds shadow issues - Get Help / Tech Support - D5 RENDER FORUM

I tried using lowest settings for GI and reflection without success. Enabling frame generation was good before but when scene was growing, when I added many more object it started to flicker again.

This is not only flickering but while accumulation it can render just like without cloud shadows at all. It looks like cloud shadows are leaks Sunlight.

It was most probably caused by my custom Nvidia driver settings. When I reset them to default this problem gone. I hope :slight_smile:

Unfortunately it started to flicker again. It must be something random that cause this issue.

Strange but when I restarted D5 it works fine again. So it looks like it is not driver issue but something cause that there is need to restart D5.

Hi @Smolak

Were you able to share this file before? If you haven’t please do,

  • Please send it to support@d5techs.com and have it titled Clov-Forum Screen Flickering during using High Amount of Clouds with Shadows

Hi @Clov

This is big scene 2GB I will send it soon. Unfortunately when scene is small I don’t have this issue.

I found that it stopped flickering when I set DLSS version in Nvidia panel to “use 3d application setting”. Before I had - use latest :

I will test this more using default DLSS settings.


Still flickering, this is totally randomly, independent from any settings.

Finally I found issue ! When I created video to another thread about volume fog issue I noticed something very strange.

While using fully clouded sky Sun is not visible. But when this invisible Sun position is obstructed by object it started to be visible ! In this example

Cloud_shadow_flicker_1.zip (3.0 MB)

you will see that this Sun start to cast shadows when it is visible between tree leaves and it start to flicker.

Please see when I move camera fast this visible between leaves Sun start to fade when it is not obstructed by tree object.

Cloud_shadow_flicker2.zip (1.2 MB)

Scene :
cloud_sky_flicker.zip (1.2 MB)

But I have scene when it flicker and Sun is not obstructed by object while looking to it from Camera position. Probably this needs more investigation from D5 technical team - in which situations Sun stays visible from behind clouds. I found first one, probably there is more.

For example - flickering is not visible when D5 screen is very small, when I resize it to very large size it start to flicker.

Here is good example :

flick2 (2).zip (3.6 MB)

It show that this issue occur only when many objects is visible in scene.


It stop flickering when I resize D5 window to fullscreen for a moment. After that I can reduce D5 window size and it still works fine. Very strange.

I use widescreen monitor with resolution 5120x1440 so normally I use D5 on only half center.

Hi @Smolak

This seems to be unnatural, we’ll be investigating this further. Thank you so much for your detailed information.

1 Like

Great but please test it using reduced D5 window size like this :

It looks like it has big impact to trigger this issue.

1 Like

It still doesn’t work after months. Features which doesn’t work should be removed :wink:

cloud_shad22 (2).zip (2.6 MB)

It looks like

image

makes that it works fine now.

I had turned this off before. So this is related to my ultra wide screen monitor which I described in this thread before.

cloud_shad_OK (2).zip (2.9 MB)

I want to believe that I’m sure :slight_smile:

It looks like Adaptive Scaling off reduce not only image quality on hi-res view but internal lighting accuracy too.

Update :

sometimes it still flicker but not as noticeable as before. Turning on Adaptive Scaling + Frame Generation resolve it in 90% in my situation.

Update 2 :

I was wrong - it doesn’t flicker only after scene loading and using only Amount clouds parameter. Changing other cloud parameters especially Random Seed cause that it start to flicker again.

Unfortunately shadows completely doesn’t work when scene is growing. They flicker or they are completely disabled. Maybe this is related to VRam usage.

This is related to amount of geometry on screen and enabled Adaptive Screen Scalling ( which greatly improve screen quality ) :

cl_shad 2 (2).zip (2.7 MB)
cl_shad 3 (2).zip (4.0 MB)

cl_shad 4 (2).zip (3.8 MB)

Rendered image completely without shadows !

Simplified scene : Screen_Flicker.rar

To trigger this issue change cloud seed and play with their amount value - especially near 50% when shadows will start to appear. Try to accumulating when you will have them at 100% - shadows gone.

shad_acc.zip (1.5 MB)

Finally ! I know what is going on here and I have solution. Anyway there is technical issue. @Clov please report this to technical team :

While using Adaptive System Scaling cloud shadows will flicker when D5 screen FPS drop below monitor frame rate. More difference = more flickering.

This is why I noticed that this is related to big projects, ultra-wide screen size using Adaptive System Scaling to compensate this.

Something wrong you have inside D5 cloud shadow. But here is simple workaround :

  1. In Nvidia driver panel or Nvidia App set vertical sync ( full one ) for D5 Render\d5_immerse\Binaries\Win64\d5_immerse.exe

  2. Use D5 FPS Booster or/and Nvidia Frame Generation to increase D5 frame rate to match your monitor refresh rate - 60, 120hz.

or

Set Adaptive ( half resolution ) Vertical Sync for d5_immerse.exe without the need of turning on FPS booster or Frame Generation.

It works with all situation ! Who pay me for investigation :slight_smile:

Anyway - D5 must have turned on Vertical Sync for clamping refresh rate to work properly at the moment. If you notice input delay you can resolve it by set Ultra Low Latency Mode in Nvidia panel for d5_immerse.exe

Unfortunately this workaround doesn’t work for monitor refresh screen set above 60hz because final rendering is never faster than 60-80 frames per second even on 5090 in complex scenes - it will always render without cloud shadow visible. So screen refresh rate must be clamped to 60fps.

I know where you did mistake.

You have bunch of points on the ground which fire rays to Sun position and checking if these rays are blocked by Clouds volume with frequency set to system display like 60hz, 120hz.

You created array of cells where array has length of screen refresh rate like 60hz and every cell of this array is a frame. You check if array is filled by zero ( ray is not blocked by cloud ) or filled by 1 ( ray is blocked by cloud ).

That’s good and fast. But you have bug inside. If array like 60 cells is not fully filled by 0 or 1 because graphics card can’t fill them all within given by system refresh rate time you have empty cells within this array and algorithm doesn’t work in this situation - it start to flicker because of these empty cells inside 60 cells array.

In my opinion there are two workarounds :

  1. You must create variable array size based on real frame rate ( not system one ) where length of array will be the same as real frame rate produced by graphic card.

  2. Create different algorithm that will be based on timing not framing. Just send rays every 0,5 second to check if they are blocked by cloud shape or not.

Using interpolation it would be great. Cloud shadow accuracy within time is really not as important.

Hi @Smolak

Thank you for your detailed explanation and for breaking down your observations and theory. Your insights are very helpful, particularly your notes on how the issue relates to frame rate, cloud parameters, and screen scaling.

We have shared this information with our team for further investigation. I may need to verify internally whether the root cause aligns with your hypothesis regarding frame-based sampling and performance dependency.

1 Like