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:
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).
`context.swap_buffers()` is called either directly(as it is in this here project) or indirectly (iced, egui)
Line 44 in 00bbecf
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:
Use FreeSync->Basic (or Off)
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.