microsoft / vscode

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

fix: flickering #193908

Open jjangga0214 opened 11 months ago

jjangga0214 commented 11 months ago

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

Steps to Reproduce:

It just flickers when I am using

  1. vscode across two monitors (I am using two 28mq780) AND
  2. BetterDisplay with HiDPI.

To explain, BetterDisplay enables HiDPI by mirroring. Why is this useful? Because macOS doesn't allow HiDPI for monitors of resolutions less than 4K. HiDPI is possible technically, but Apply intentionally (to let people buy 4K monitors) doesn't support by built-in feature. So the open source project BetterDisplay does trick by mirroring. The mirroring is like fooling the OS that it's connected to hi-res monitor(4K) in fact it isn't.

https://github.com/microsoft/vscode/assets/28584151/573b23a0-6245-4973-84d8-090fe5a0bfb0

When scrolling, it always flicker. When not scrolling, it sometimes flickers.

I only executed vscode, not other applications. I also rebooted the computer.

But this happens repeatedly.

This happens only in vscode as far as I experienced. For example, when I open web browser and vscode simultaneously side by side, only the latter flickers.

I installed it by homebrew (visual-studio-code formula), and haven't given any custom options.

jjangga0214 commented 11 months ago

Hi, is this happening with BetterDisplay? If so, the problem might be a general issue with VSCode if it can't hande a display put to EDR mode when XDR/HDR upscaling is enabled. You can disable this feature or turn off "Continuous XDR upscaling readiness" under "Advanced color table and upscaling settings" at Displays/Overview.

Refer to https://github.com/waydabber/BetterDisplay/issues/2230 as well for help.

deepak1556 commented 11 months ago

Does the issue happen with files opened on https://vscode.dev ?