As the title states, i have been having this issue ever since i started using sway.
My setup is a little bit exotic, but it works really well, as this is the only issue i am encountering on sway.
I have 3 monitors attached to my laptop (XMG Fusion 15, has a GeForce RTX 2070 Mobile, thunderbolt is wired to dGPU).
One of these monitors supports a refresh rate of 144hz, which is the one i would like to use for gaming.
This is where the problem starts. When this monitor is locked to 60hz, everything works fine, but when i set it to 144hz, any Xwayland application on this monitor starts flickering IF the FPS are lower than 144fps.
I use Half-Life 2 for testing, since my GPU can run this game at basically any framerate.
If i use the console command “fps_max 144” to limit the framerate to 144fps, the average framerate is actually ~138fps and visual glitches occur.
“fps_max 160” raises the average framerate to ~152fps, no visual glitches occur.
Of course, this does not happen on Xorg, which is why i usually switch to i3 for gaming.
OS is Arch Linux, running the newest 510.60.02 driver, wlroots-git, sway-git and xorg-xwayland-git.
I have observed this ever since 495.44.
sway is being run with these environment variables:
I actually wanted to record a video of this happening, but it seems obs is segfaulting on startup again…