Unreal Engine 4 games flicker with gsync in dark areas

Talk about NVIDIA G-SYNC, a variable refresh rate (VRR) technology. G-SYNC eliminates stutters, tearing, and reduces input lag. List of G-SYNC Monitors.
y3nis
Posts: 2
Joined: 30 Dec 2020, 13:01

Re: Unreal Engine 4 games flicker with gsync in dark areas

Post by y3nis » 30 Dec 2020, 13:16

I've got the same problem. So far as I understand, the flicker is not solvable; the gamma shift.

As Jorimt says, you want to achieve a steady framerate, but that's exactly the problem. I've used some games and the pendulum demo which all show the same problem.

Tested in pendulum (and AC odyssey and DMC5 and cyberpunk) with afterburner frametime overlay.
Gsync off: the frametime graph is flat at any framerate.(but only if I restart my tv after I've switched gsync off)
Gsync on: There are microstutters every few seconds, this happens at any framerate. The same stutters that can be seen in the framtime graphs posted in the videos in this topic.

I also think this problem happens only with LG tv's, I've got the C9 myself with a RTX3060ti. So far I haven't found a sollution, I Think there is none at the www atm. That's also why I joined this forum because this topic describes the exact problem that I also have. I hope a solution will be available soon.

I'll add a video soon

User avatar
tygeezy
Posts: 104
Joined: 29 Feb 2016, 21:56

Re: Unreal Engine 4 games flicker with gsync in dark areas

Post by tygeezy » 31 Dec 2020, 11:51

I think it’s just speculation whether or not it’s hardware that is the problem. Obviously it’s more ideal if tweaks to gamma through the entire vrr range will fix it, but I don’t think there is any confirmation outside of educated guesses.

y3nis
Posts: 2
Joined: 30 Dec 2020, 13:01

Re: Unreal Engine 4 games flicker with gsync in dark areas

Post by y3nis » 31 Dec 2020, 12:06

You just want a more steady framerate.
Here's what happens with my setup. This is recorded in pendulum but it happens in all games.
https://streamable.com/4pjk5r

When I disable gsync I'm able to achieve steady framerates, sometimes after restarting my tv.
Steps taken:
Gsync off:
steady framerate

Gsync on:
Drops shown as stutter in the motion test (these correlate to the spikes in the pendulum demo)

Gsync off:
still stutter
Restart tv
still stutter
Restart tv
Strangely the stutter is gone.

https://streamable.com/3v9y9t

User avatar
jorimt
Posts: 2484
Joined: 04 Nov 2016, 10:44
Location: USA

Re: Unreal Engine 4 games flicker with gsync in dark areas

Post by jorimt » 31 Dec 2020, 13:54

y3nis wrote:
31 Dec 2020, 12:06
When I disable gsync I'm able to achieve steady framerates, sometimes after restarting my tv.
VRR being disabled on the LG isn't avoiding the issue directly because the frametime/framerate is better, it's avoiding the issue because it isn't dynamically adjusting the refresh rate of the display, thus the gamma curve remains the same regardless of frametime or framerate; you're system could be experiencing horrible frametime or framerate performance, and this flicker issue would not occur in fixed refresh rate mode.

However, when VRR is enabled on the LG, the refresh rate is dynamically adjusted, diverging from the fixed gamma curve, triggering visibility of the issue; the more sporadic the frametime = the faster/more abrupt the refresh rate change = the more apparent and severe the flicker/shift is.

Again, if I limit my framerate to a 100% achievable average in the given game with RTSS and frametime remains stable, I experience no flicker in gameplay with G-SYNC enabled.

Frametime performance and achievable framerate, however, is obviously heavily dependent on the given system capability mixed with the app/game being run, which is why some users say they don't notice it at all, and others say it's obvious.

What we're seeing is an OLED-specific reaction to fundamental VRR operation that LG didn't originally account for.
(jorimt: /jor-uhm-tee/)
Author: Blur Busters "G-SYNC 101" Series

Displays: ASUS PG27AQN, LG 48CX VR: Beyond, Quest 3, Reverb G2, Index OS: Windows 11 Pro Case: Fractal Design Torrent PSU: Seasonic PRIME TX-1000 MB: ASUS Z790 Hero CPU: Intel i9-13900k w/Noctua NH-U12A GPU: GIGABYTE RTX 4090 GAMING OC RAM: 32GB G.SKILL Trident Z5 DDR5 6400MHz CL32 SSDs: 2TB WD_BLACK SN850 (OS), 4TB WD_BLACK SN850X (Games) Keyboards: Wooting 60HE, Logitech G915 TKL Mice: Razer Viper Mini SE, Razer Viper 8kHz Sound: Creative Sound Blaster Katana V2 (speakers/amp/DAC), AFUL Performer 8 (IEMs)

User avatar
tygeezy
Posts: 104
Joined: 29 Feb 2016, 21:56

Re: Unreal Engine 4 games flicker with gsync in dark areas

Post by tygeezy » 02 Jan 2021, 21:00

jorimt wrote:
26 Dec 2020, 22:47
tygeezy wrote:
26 Dec 2020, 14:03
Keep in mind if you’re playing the windows store version you need to make sure that gsync is enabled for windowed mode since full screen exclusive isn’t available for that version of the game.

Yes oled vrr seems even more sensitive to frame time variance flicker than lcd. Perhaps it’s because of its ultra fast response time?
Microsoft Store games use Windows 10's FSO-style borderless/fullscreen hybrid mode that G-SYNC considers exclusive fullscreen, so the borderless/window G-SYNC mode need not be engaged for G-SYNC to work in that game.

I just checked again, and I experienced no flicker in that scenario, as my frametimes were steady enough with my specs in this particular game to avoid it in that instance. I also confirmed it was in VRR mode with the hidden CX menu.

As for why OLED does this, according to LG, the gamma curve is set for a fixed refresh of 120Hz, and when it deviates during VRR operation, the gamma fluctuates, creating flicker:
https://www.oled-a.org/lgersquos-48rdqu ... _9620.html
Gamma for OLED is optimized and fixed for 120Hz by establishing a fixed charging time for OLED sub-pixels. VRR is used when the frame rate is less than 120 Hz. When the OLED TV uses framerates less than 120Hz, the gamma curve is inconsistent with the frame rate. For example, a 40Hz frame rate is longer than 120Hz frame rate. Therefore, the lower frame rates results in sub pixels that are overcharged, causing flickering of dark gray images, which is noticeable for dark images rather than bright ones, because human eyes are more sensitive to low gray colors. LGD will likely solve this problem establishing multiple gamma curves optimized for lower frame rates.
Basically, while OLED doesn't need variable overdrive like an LCD does during VRR operation to reduce overdrive artifacts, it apparently needs something very similar, that being variable gamma adjustments per Hz to avoid flicker near black.
Typically store games do work like this yes. For me though the only way I get can gsync icon to pop is by telling that app to use gsync with window and full screen. Gear of war and for a horizon I get the notification without it.

User avatar
jorimt
Posts: 2484
Joined: 04 Nov 2016, 10:44
Location: USA

Re: Unreal Engine 4 games flicker with gsync in dark areas

Post by jorimt » 02 Jan 2021, 22:08

tygeezy wrote:
02 Jan 2021, 21:00
Typically store games do work like this yes. For me though the only way I get can gsync icon to pop is by telling that app to use gsync with window and full screen. Gear of war and for a horizon I get the notification without it.
You can't get SoT to work with VRR without setting G-SYNC to borderless/windowed? Hm, odd.
(jorimt: /jor-uhm-tee/)
Author: Blur Busters "G-SYNC 101" Series

Displays: ASUS PG27AQN, LG 48CX VR: Beyond, Quest 3, Reverb G2, Index OS: Windows 11 Pro Case: Fractal Design Torrent PSU: Seasonic PRIME TX-1000 MB: ASUS Z790 Hero CPU: Intel i9-13900k w/Noctua NH-U12A GPU: GIGABYTE RTX 4090 GAMING OC RAM: 32GB G.SKILL Trident Z5 DDR5 6400MHz CL32 SSDs: 2TB WD_BLACK SN850 (OS), 4TB WD_BLACK SN850X (Games) Keyboards: Wooting 60HE, Logitech G915 TKL Mice: Razer Viper Mini SE, Razer Viper 8kHz Sound: Creative Sound Blaster Katana V2 (speakers/amp/DAC), AFUL Performer 8 (IEMs)

User avatar
tygeezy
Posts: 104
Joined: 29 Feb 2016, 21:56

Re: Unreal Engine 4 games flicker with gsync in dark areas

Post by tygeezy » 02 Jan 2021, 23:29

jorimt wrote:
02 Jan 2021, 22:08
tygeezy wrote:
02 Jan 2021, 21:00
Typically store games do work like this yes. For me though the only way I get can gsync icon to pop is by telling that app to use gsync with window and full screen. Gear of war and for a horizon I get the notification without it.
You can't get SoT to work with VRR without setting G-SYNC to borderless/windowed? Hm, odd.
Yeah, it’s the only game I’ve tried from windows store that does this too.

User avatar
jorimt
Posts: 2484
Joined: 04 Nov 2016, 10:44
Location: USA

Re: Unreal Engine 4 games flicker with gsync in dark areas

Post by jorimt » 03 Jan 2021, 09:57

tygeezy wrote:
02 Jan 2021, 23:29
Yeah, it’s the only game I’ve tried from windows store that does this too.
Interesting, I can't replicate in SoT. I simply had G-SYNC set to "Enable for full screen mode" and in-game set to "Fullscreen," and VRR engaged on my CX. Do note, I did leave fullscreen optimization enabled for the exe as well.
(jorimt: /jor-uhm-tee/)
Author: Blur Busters "G-SYNC 101" Series

Displays: ASUS PG27AQN, LG 48CX VR: Beyond, Quest 3, Reverb G2, Index OS: Windows 11 Pro Case: Fractal Design Torrent PSU: Seasonic PRIME TX-1000 MB: ASUS Z790 Hero CPU: Intel i9-13900k w/Noctua NH-U12A GPU: GIGABYTE RTX 4090 GAMING OC RAM: 32GB G.SKILL Trident Z5 DDR5 6400MHz CL32 SSDs: 2TB WD_BLACK SN850 (OS), 4TB WD_BLACK SN850X (Games) Keyboards: Wooting 60HE, Logitech G915 TKL Mice: Razer Viper Mini SE, Razer Viper 8kHz Sound: Creative Sound Blaster Katana V2 (speakers/amp/DAC), AFUL Performer 8 (IEMs)

User avatar
tygeezy
Posts: 104
Joined: 29 Feb 2016, 21:56

Re: Unreal Engine 4 games flicker with gsync in dark areas

Post by tygeezy » 03 Jan 2021, 11:34

jorimt wrote:
03 Jan 2021, 09:57
tygeezy wrote:
02 Jan 2021, 23:29
Yeah, it’s the only game I’ve tried from windows store that does this too.
Interesting, I can't replicate in SoT. I simply had G-SYNC set to "Enable for full screen mode" and in-game set to "Fullscreen," and VRR engaged on my CX. Do note, I did leave fullscreen optimization enabled for the exe as well.
I don’t bother to disable full screen optimization for any game.

Post Reply