Microsoft/vscode

fix: flickering

Open

#193,908 opened on Sep 24, 2023

View on GitHub
 (2 comments) (1 reaction) (1 assignee)TypeScript (10,221 forks)batch import
chromiumconfirmation-pendinghelp wantedupstream

Repository metrics

Stars
 (74,848 stars)
PR merge metrics
 (Avg merge 11h 43m) (1,000 merged PRs in 30d)

Description

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

  • VS Code Version: 1.82.2
  • OS Version: macOS Ventura 13.5.2(22G91) (M1 Max with 32GB Memory)
Version: 1.82.2
Commit: abd2f3db4bdb28f9e95536dfa84d8479f1eb312d
Date: 2023-09-14T06:00:27.244Z (1 wk ago)
Electron: 25.8.1
ElectronBuildId: 23779380
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Darwin arm64 22.6.0

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.

Contributor guide