Skip to content

test a flickering issue that was happening with FreeSync->Extended only

Notifications You must be signed in to change notification settings

correabuscar/glutin_simple1

Repository files navigation

glutin_simple1

A subtle flickering issue was happening with iced but then i've noticed it with egui as well, and tracked it down to glutin but didn't try to go deeper than that, as it's already way past my current understanding of how things work.

This flickering issue is happening only when all of the below are true at the same time:

NVidia G-SYNC is enabled for windowed mode

gsync link

displayed on an LG 24UD58-B monitor (manufactured: January 2018) with FreeSync->Extended (but not with Basic, or Off) setting in its OSD menu(The on-screen display menu).

OSD1of3

OSD2of3

OSD3of3

`context.swap_buffers()` is called either directly(as it is in this here project) or indirectly (iced, egui)

context.swap_buffers().unwrap();

The following video attempts to show the SUBTLE flickering that happens only when resizing of window is going on(as this is when swap_buffers() is called, but not when moving the window), but this flickering is much more visible when viewed on mobile screens and is almost imperceptible(except in real life) otherwise:

click to open video in new tab then choose Raw

Workaround

Use FreeSync->Basic (or Off)

WARNING

While running it uses 100% CPU (in top, aka 1 full core), so don't let it run unsupervised. Unsure if it needs to run this fast, else I could've put a delay in the loop. I'm unable to (re)test at the time of writing this line.

About

test a flickering issue that was happening with FreeSync->Extended only

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published