hyprwm / Hyprland

Hyprland is an independent, highly customizable, dynamic tiling Wayland compositor that doesn't sacrifice on its looks.
https://hyprland.org
BSD 3-Clause "New" or "Revised" License
19.63k stars 829 forks source link

tearing: transition from tearing -> vsync freezes window #4601

Open zakk4223 opened 7 months ago

zakk4223 commented 7 months ago

Hyprland Version

System/Version info ```sh Hyprland, built from branch main at commit 504ebe1b373726947a44fa2d6a68498d0edb85b6 dirty (box: add missing include). Date: Fri Feb 2 20:31:52 2024 Tag: v0.34.0-96-g504ebe1b flags: (if any) System Information: System name: Linux Node name: blkheart Release: 6.7.3-zen1-1-zen Version: #1 ZEN SMP PREEMPT_DYNAMIC Thu, 01 Feb 2024 10:30:25 +0000 GPU information: 0d:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 21 [Radeon RX 6800/6800 XT / 6900 XT] [1002:73bf] (rev c0) (prog-if 00 [VGA controller]) os-release: NAME="Arch Linux" PRETTY_NAME="Arch Linux" ID=arch BUILD_ID=rolling ANSI_COLOR="38;2;23;147;209" HOME_URL="https://archlinux.org/" DOCUMENTATION_URL="https://wiki.archlinux.org/" SUPPORT_URL="https://bbs.archlinux.org/" BUG_REPORT_URL="https://gitlab.archlinux.org/groups/archlinux/-/issues" PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/" LOGO=archlinux-logo plugins: split-monitor-workspaces by Duckonaut ver 1.1.0 Monitor WS rules by Zakk ver 1.0 River Layout by Zakk ver 1.0 XWayland Primary Display by Zakk ver 1.0 N_Stack layout by Zakk ver 1.0 Workspace layouts by Zakk ver 1.0 ```

Bug or Regression?

Bug

Description

Xwayland game: In game if you toggle vsync setting from 'off' to 'on', the entire window freezes. You can get it back by toggling fullscreen off and on.

I don't get this behavior in KDE or weston. The only other wlroots compositor I know of that has tearing implemented is labwc, but they have another bug that prevents me from testing if this happens :/

I don't know if it is Xwayland specific or not. Need to find a native wayland client that lets you runtime toggle vsync...

How to reproduce

Start some game and twiddle the vsync setting.

Crash reports, logs, images, videos

No response

zakk4223 commented 4 months ago

just a quick note: still an issue even after b52a49b4c4c344784b3085cb93d3882d3ce9b4bb