Closed nukopy closed 1 year ago
Does this reproduce in other workspaces (languages) as well, or is this rust-specific?
Yes, rust-specific on my local development environment at least. It happens even when all the VSCode extensions are disable.
However, this screen flickering doesn't always occur. Thus, it's hard to reproduce consistently. (Unfortunately, it doesn't occur right now while I'm writing this comment...) It's entirely possible that it's not rust-specific.
But, this screen flickering always occurs in the window where I'm writing code on Rust project. Even if I have multiple windows open, including Rust projects and, for instance, TypeScript and Go projects, the flickering always occurs only in the window with the Rust project.
Lately, this has been happening frequently while I'm working, and it's been distressing. I'd be happy to help, so could you tell me how to investigate this phenomenon on VSCode? What should I pay attention to the next time this phenomenon occurs?
Let me know if you need any more information.
Can you provide the output of system_profiler SPDisplaysDataType
. Do you have a multi monitor setup or using something like https://github.com/waydabber/BetterDisplay to get HiDPI ?
I am using two external monitors with FHD and 4K resolutions. I'm not sure if it's related, but I am using an application MonitorControl to control display settings with DDC protocol, which might be similar to BetterDisplay (see a screenshot below).
Result of system_profiler SPDisplaysDataType
is the following:
$ system_profiler SPDisplaysDataType
Graphics/Displays:
Apple M1 Max:
Chipset Model: Apple M1 Max
Type: GPU
Bus: Built-In
Total Number of Cores: 32
Vendor: Apple (0x106b)
Metal Support: Metal 3
Displays:
Color LCD:
Display Type: Built-in Liquid Retina XDR Display
Resolution: 3024 x 1964 Retina
Main Display: Yes
Mirror: Off
Online: Yes
Automatically Adjust Brightness: No
Connection Type: Internal
PL2790:
Resolution: 1920 x 1080 (1080p FHD - Full High Definition)
UI Looks like: 1920 x 1080 @ 60.00Hz
Mirror: Off
Online: Yes
Rotation: Supported
DELL U3223QE:
Resolution: 5120 x 2880 (5K/UHD+ - Ultra High Definition Plus)
UI Looks like: 2560 x 1440 @ 60.00Hz
Mirror: Off
Online: Yes
Rotation: Supported
Can you clarify if the rust project window is placed on the primary built-in display or any of the external displays when the flickering happens. Can you try to narrow down if a particular display is trigger for the issue.
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!
Can you clarify if the rust project window is placed on the primary built-in display or any of the external displays when the flickering happens. Can you try to narrow down if a particular display is trigger for the issue.
@deepak1556 Screen flickering occurs on an external 4K display and doesn't occur on built-in Retina display. Output of the command system_profiler SPDisplaysDataType
is the following:
$ system_profiler SPDisplaysDataType
Graphics/Displays:
Apple M1 Max:
Chipset Model: Apple M1 Max
Type: GPU
Bus: Built-In
Total Number of Cores: 32
Vendor: Apple (0x106b)
Metal Support: Metal 3
Displays:
Color LCD:
Display Type: Built-in Liquid Retina XDR Display
Resolution: 3024 x 1964 Retina
Main Display: Yes
Mirror: Off
Online: Yes
Automatically Adjust Brightness: No
Connection Type: Internal
Pro Display XDR:
Display Type: 2D backlit LCD
Resolution: 6016 x 3384 Retina 6K
Display Serial Number: C02GL03YML9W
Display Firmware Version: 4.2.37
Mirror: Off
Online: Yes
Automatically Adjust Brightness: Yes
Thanks for testing, the relevant issue is tracked in https://github.com/microsoft/vscode/issues/165681
Can you check if the issue is resolved with our exploration build based on a newer version of the runtime.
Type: Performance Issue
Screen flicker occured on Rust project, but not on any other languages project.
Reproduce a issue:
Screen flicker like this:
https://github.com/microsoft/vscode/assets/42367320/020b8dce-d156-4728-94d5-cb36a036b00a
VS Code version: Code 1.83.1 (f1b07bd25dfad64b0167beb15359ae573aecd2cc, 2023-10-10T23:57:32.750Z) OS version: Darwin arm64 23.1.0 Modes:
System Info
|Item|Value| |---|---| |CPUs|Apple M1 Max (10 x 24)| |GPU Status|2d_canvas: enabledcanvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|4, 4, 5| |Memory (System)|64.00GB (7.22GB free)| |Process Argv|--crash-reporter-id 67a27090-cfea-48f8-ad1e-a9f4fc0b89f6| |Screen Reader|yes| |VM|0%|
Process Info
``` CPU % Mem MB PID Process 18 262 7271 code main 6 66 7276 gpu-process 0 66 7277 utility-network-service 65 918 7279 window [1] (Startup Performance — data-processor) 0 66 7592 ptyHost 0 0 7874 zsh (figterm) 0 0 7894 /bin/zsh --login 46 197 7644 shared-process 0 0 14265 /bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command= 0 66 13495 fileWatcher [1] 0 197 13496 extensionHost [1] 0 66 13734 electron-nodejs (/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) --ms-enable-electron-run-as-node /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/json-language-features/server/dist/node/jsonServerMain --node-ipc --clientProcessId=13496) 0 66 14098 electron-nodejs (/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) --ms-enable-electron-run-as-node /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/markdown-language-features/server/dist/node/workerMain --node-ipc --clientProcessId=13496) 32 66 14263 window [3] (Issue Reporter) ```Workspace Info
``` | Window (Startup Performance — data-processor) | Folder (data-processor): more than 23420 files | File types: html(9210) o(4461) js(723) json(646) timestamp(499) d(449) | rmeta(386) rlib(188) bin(119) rs(49) | Conf files: github-actions(1); ```Extensions: none