alex-courtis / way-displays

way-displays: Auto Manage Your Wayland Displays
MIT License
239 stars 12 forks source link

VRR not working as intended? #129

Closed GrabbenD closed 10 months ago

GrabbenD commented 10 months ago

Issue

Every game has incredible stutter / output latency. It seems like the monitor isn't actually updating fast enough / vblank being incredibly slow. One example of this is Halo Infinite (XWayland) which is free to play on Steam

Setup

GrabbenD commented 10 months ago

For reference, it makes no difference if VRR is disabled, makes me wonder if it even works in the first place?

VRR_OFF:
   - DP-2
alex-courtis commented 10 months ago

Which version of river are you using?

The AUR package river-git is 2f3272d from Wed Jan 18 15:58 which is quite old.

VRR support was only enabled in river Jan 24 https://github.com/riverwm/river/commit/4c6f47669bbd869fea22841601f9fe98aa6ed52e

I've been running my own build of river at c16628c from Tue Jul 11 01:11 with no issues.

alex-courtis commented 10 months ago

Please post the contents of /tmp/way-displays.${XDG_VTNR}.${USER}.log

That will give some insight as to what the monitor is capable of and what it is actually running.

It would be useful to see if the Cannot enable VRR, display or compositor may not support it. warning is present.

alex-courtis commented 10 months ago

What happens when you run river without way-displays? It should run the preferred mode with no VRR.

GrabbenD commented 10 months ago

Thanks for replying!

I actually installed latest River git this way (but I think it's the same as yay -S river-git as the PKGBUILD points at git instead of pinned commits/versions):

$ mkdir river-git && cd river-git
$ yay -G river-git
$ makepkg -Csfi
$ cd river && git rev-parse HEAD
c16628c7f57c51d50f2d10a96c265fb0afaddb02

The extreme choppiness is almost gone after properly configurating the monitor: https://github.com/alex-courtis/way-displays/issues/128

The remaining stuttering seems to be caused by a upstream issue: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3721

alex-courtis commented 10 months ago

This is great news, it sounds like VRR is indeed working.

I'll close this one and we can work on refresh in #128