Disabling and re-enabling a monitor causes wrong refresh #13238
Unanswered
Lownin
asked this question in
Bugs - DRM
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm having an issue with frame pacing in games. I sometimes enable and disable monitors because my computer feeds multiple rooms. If I run a game on monitor DP-2, and tell the game to limit to 60FPS, or use vsync, it runs at ~60FPS as expected. If i disable DP-2 with
hyprctl keyword monitor "DP-2, disable"and then re-enable it withhyprctl keyword monitor "DP-2, 3440x1440@60, 0x0, 1"then the game appears to run uncapped.I'm using vkcube to test.
VK_INSTANCE_LAYERS=VK_LAYER_MESA_overlay WAYLAND_DEBVUG=1 vkcubesees vkcube running at 120FPS after disabling and re-enabling DP-2. Before disable/re-enable, vkcube runs at 60FPS. vkcube does not have to be running for the issue to occur. I can start vkcube after toggling the monitor, and it still runs at 120. The only way I've found to reset the monitor to 60 is a full reboot.hyprctl monitorscorrectly returns DP-2 as being 3440x1440@59.97300 at 0x0. I have vrr is false.Finally, if I drag vkcube to a monitor that was not disabled and re-enabled, the fame rate returns to the expected 60FPS.
I have some workarounds available to me for taking my monitor out of all my workspace contexts instead of disabling it, but I'd much rather use basic enable/disable commands. Any insights about what's going on here and how to fix it are welcome.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions