Skip to content

Add support for explicit sync (nvidia xwayland glitches) #2927

@xiaomx32

Description

@xiaomx32

Describe the bug
Open visual studio code in wayfire, the screen flashes, tears, and artifacts crazily.
When moving the mouse to the blinking and unable to load area, the situation improved slightly.
When using wayfire normally, there may also be slight flickering, especially after opening multiple windows and switching to other desktops(Tab + Alt).

To Reproduce
Steps to reproduce the behavior:

  1. wayfire
  2. yay -S visual-studio-code-bin
  3. code test.cpp

Expected behavior
the code window can display normally

Software version

pacman -Qi wayfire-lily-git 
Name            : wayfire-lily-git
Version         : 0.11.0.20251127.144214.g23a101a0-1
Description     : 3D wayland compositor (lilydjwg's version)
Architecture    : x86_64
URL             : https://github.com/lilydjwg/wayfire
Licenses        : MIT
Groups          : None
Provides        : wayfire  wayfire-git
Depends On      : wlroots-lily-git  cairo  pango  glm  libjpeg  yyjson  libyyjson.so=0-64
Optional Deps   : None
Required By     : None
Optional For    : None
Conflicts With  : wayfire  wayfire-git
Replaces        : None
Installed Size  : 8.71 MiB
Packager        : lilydjwg <lilydjwg@gmail.com>
Build Date      : Thu 27 Nov 2025 11:13:02 PM CST
Install Date    : Fri 28 Nov 2025 11:31:39 AM CST
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : SHA-256 Sum  Signature
pacman -Qi wlroots-lily-git 
Name            : wlroots-lily-git
Version         : 0.19.2.20251104.031626-1
Description     : Modular Wayland compositor library (with patches)
Architecture    : x86_64
URL             : https://gitlab.freedesktop.org/lilydjwg/wlroots
Licenses        : MIT
Groups          : None
Provides        : libwlroots-0.19.so=libwlroots-0.19.so-64  wlroots0.19=0.19.2.20251104.031626
Depends On      : libdisplay-info.so=3-64  libglvnd  libinput  liblcms2.so=2-64  libliftoff.so=0-64  libpixman-1.so=0-64  libseat.so=1-64  libudev.so=1-64  libvulkan.so=1-64
                  libwayland-client.so=0-64  libwayland-server.so=0-64  libxcb  libxkbcommon.so=0-64  opengl-driver  xcb-util-errors  xcb-util-renderutil  xcb-util-wm
Optional Deps   : xorg-xwayland: Xwayland support [installed]
                  xorg-xwayland-lily: HiDPI Xwayland support, see https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/733
Required By     : wayfire-lily-git
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 1615.16 KiB
Packager        : lilydjwg <lilydjwg@gmail.com>
Build Date      : Tue 04 Nov 2025 11:16:33 AM CST
Install Date    : Wed 05 Nov 2025 04:35:11 PM CST
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : SHA-256 Sum  Signature
code --version
1.107.0
618725e67565b290ba4da6fe2d29f8fa1d4e3622
x64

Strangely, these cannot be seen from the screenshot.
Could it be a problem with my graphics card itself?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions