You are not logged in.

#1 2024-04-11 22:11:55

insain
Member
Registered: 2021-06-29
Posts: 2

Screen Flickering in Visual Studio Code after wayland 6 update

Hi, my screen is flickering in visual studio code and obsidian (notes). The Problem is only with Wayland AND Hyperland, on x11 plasma it's fine.... But hope to get some advice here anyway. I think it was the update from wayland plasma 5 to plasma 6, but not sure as I didn't use VS code and obsidian for a while. Switched to Hyperland, but problem persists.

When scrolling or something is redrawn in the mentioned softwares, it starts to flicker for a while and sometimes the whole app blends into the background color or it is just the part which is refreshing, but it is always only within one window. Sometimes the window freezes graphical, but still responsive, just some time until you can see all updates. Works fine in other apps, videos do fine in VLC and Firefox, scrolling is fine everywhere.

Tried different refresh rates for monitor, in sync and desynced, but still same issue.

System:

kernel 6.8.4-arch1-1
Nvidia GeForce RTX 3070 Ti
3 Monitors, flickering on all screens, just within software window

Hyperland monitor config:
monitor=HDMI-A-1,1920x1080@59.95,0x0,1 # left
monitor=DP-2,2560x1440@59.95,1920x0,1 # middle
monitor=DP-1,1920x1080@59.95,4480x0,1,transform,1 # right

NVIDIA-SMI 550.40.59              Driver Version: 550.40.59      CUDA Version: 12.4

|    0   N/A  N/A     43677      G   /usr/lib/Xorg                                  42MiB |
|    0   N/A  N/A     43792      G   Hyprland                                      332MiB |
|    0   N/A  N/A     44066      G   Xwayland                                        3MiB |
|    0   N/A  N/A     44957      G   /usr/lib/firefox/firefox                      994MiB |
|    0   N/A  N/A     47585      G   ...bin/plasma-browser-integration-host          3MiB |
|    0   N/A  N/A     51106      G   alacritty                                      28MiB |
|    0   N/A  N/A     51688      G   ...erProcess --variations-seed-version         36MiB |

code --version
1.88.0

Offline

#2 2024-04-11 22:48:19

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,768

Re: Screen Flickering in Visual Studio Code after wayland 6 update

Nvidia's xwayland support leads to flickering on xwayland clients, https://aur.archlinux.org/packages/xorg … t-sync-git can be used to somewhat mitigate (with proper fixes expected for nvidia 555 in may), a better strategy would be to configure Electron clients to use the wayland api: https://wiki.archlinux.org/title/Wayland#Electron

Offline

#3 2024-04-12 08:09:03

insain
Member
Registered: 2021-06-29
Posts: 2

Re: Screen Flickering in Visual Studio Code after wayland 6 update

Thanks a lot, V1del!

Setting environment parameter worked for me:

ELECTRON_OZONE_PLATFORM_HINT=auto

Offline

Board footer

Powered by FluxBB