microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.82k stars 29.12k forks source link

Blurry UI in Wayland with integer scaling #223261

Open MKuranowski opened 3 months ago

MKuranowski commented 3 months ago

Does this issue occur when all extensions are disabled?: Yes

Steps to Reproduce:

  1. code --ozone-platform-hint=wayland
  2. image

Compared with code --ozone-platform-hint=x11: image

This issue is the exact opposite of the usual scaling-related issues; where switching to Wayland mode makes UI look normal; but with integer scaling (set to 200%) the Wayland mode looks awful, and X11 looks okay.

M3t4ll1k0 commented 2 months ago

Same problem here: Arch Linux with latest gnome, no fractional scaling, 2 monitors one with 100% scaling and another 4k with 200% scaling integer. If using in x11 mode text is not blurry but cant use in the 100% scale monitor since it is big and scaled to 200%, in Wayland mode the windows scales correctly when switched to the secondary monitor (the one with 100%) but is very blurry as OP demonstrates. Tried insiders version (the one in aur) and the problem persist. code version: 1.92.0 GNOME Shell: 46.4 primary display: 4k @ 200% integer scaling (portrait) secondary display: 1080p @ 100% integer scaling (vertical left)