You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
After upgrade to MacOS Monterey, vscode unusable, extremely slow rendering #136260
chromiumIssues and items related to Chromiumfixed-in-electron-16Issues fixed with Electron 16.x updategpuIssues concerning GPU related itemsinsiders-releasedPatch has been released in VS Code Insidersmacos-montereyupstreamIssue identified as 'upstream' component related (exists outside of VS Code)upstream-issue-pendingIssues that are caused by chromium but have not been reported due to pending minimal repro
My vscode window spans two external monitors. After installing MacOS Monterey, vscode is able to draw about 2 frames per second (it works fine on the laptop display).
The cli says this doing code --use-cmd-decoder=passthrough. The LAG still happens Warning: 'use-cmd-decoder' is not in the list of known options, but still passed to Electron/Chromium.
The lag still happens, tried scroll through lines and switching b/w files.
Another bit of information: the lag seems to grow significantly with the number of vscode windows open, even when they are fully covered by the top-most vscode window. With 7 open vscode windows, even menus are sluggish, the menu selection is updated something like once every 4 seconds (!) on my laptop. Minimizing all but one window makes the menus completely responsive, but the rest (editor scrolling) is still very slow.
Emil Dotchevski (@zajo) can you also attach the output of system_profiler SPDisplaysDataType. Shubham Verma (@ShubhamVerma1811) setup does not seem to have an external monitor and you have mentioned originally that the problem does not repro with external monitors disconnected. So looks like there are two different issues here, I don't have a multi-monitor setup but asked my colleague to check on this and they were not able to repro with a single external monitor. So very likely issue is associated with the type of display and gpu driver.
Additionally Emil Dotchevski (@zajo) can you also attach the profile following the steps below,
1) Start the app like
code --enable-gpu-service-tracing --enable-tracing="blink,cc,gpu,renderer.scheduler,sequence_manager,v8,toplevel,viz,disabled-by-default-viz.overdraw" --trace-startup-file="/tmp/vscode_slow_trace.log"
2) Perform all the steps to repro the slowdown
3) Quit the application (Cmd + Q)
3) Log file `vscode_slow_trace.log` will be generated inside `/tmp`
I have updated my vscode-insiders release to the latest, and the problem has returned. I had been using the older version from about 4 weeks ago without issue. Based on this being closed I had assumed that insiders had been updated, or do I need to wait for next insiders release ?
I'd rather wait for the 1.66 release, if you don't mind. I have a suspicion that this may in the end turn out to be a temporary thing, when I originally opened this issue it also was after a OS version update -- is it possible that the new OS is doing some system-specific optimizations that interfere somehow with vscode?
My theory seems to be correct: after the MacOS upgrade, for two days vscode was having this issue. Now the issue is gone, without rebooting the OS and without even restarting vscode. As to what's causing it, who knows, maybe the new OS is reindexing files, maybe it's optimizing something, and maybe that interferes somehow with vscode. I hope this info helps.
chromiumIssues and items related to Chromiumfixed-in-electron-16Issues fixed with Electron 16.x updategpuIssues concerning GPU related itemsinsiders-releasedPatch has been released in VS Code Insidersmacos-montereyupstreamIssue identified as 'upstream' component related (exists outside of VS Code)upstream-issue-pendingIssues that are caused by chromium but have not been reported due to pending minimal repro
Activity
ShubhamVerma1811 commentedon Nov 2, 2021
Experiencing the same lag on Mac Monterey
Tried by disabling all extension.
Still happening.
deepak1556 commentedon Nov 2, 2021
Can you attach the following data points to further debug the issue, thanks!
--use-cmd-decoder=passthrough--disable-gpucode --verbosesystem_profiler SPDisplaysDataTypeShubhamVerma1811 commentedon Nov 2, 2021
Hey Robo (@deepak1556) ,
Tried the steps.
code --use-cmd-decoder=passthrough. The LAG still happensWarning: 'use-cmd-decoder' is not in the list of known options, but still passed to Electron/Chromium.EDIT: Logs with ext monitor attached, and performance profile logs
deepak1556 commentedon Nov 3, 2021
Can you also attach the profile following these steps https://github.com/microsoft/vscode/wiki/Performance-Issues#visual-studio-code-is-sluggish
zajo commentedon Nov 3, 2021
Thank you for looking into this. I can confirm that neither of
--disable-gpuor--use-cmd-decoder=passthroughfixes anything.zajo commentedon Nov 3, 2021
Another bit of information: the lag seems to grow significantly with the number of vscode windows open, even when they are fully covered by the top-most vscode window. With 7 open vscode windows, even menus are sluggish, the menu selection is updated something like once every 4 seconds (!) on my laptop. Minimizing all but one window makes the menus completely responsive, but the rest (editor scrolling) is still very slow.
deepak1556 commentedon Nov 3, 2021
Emil Dotchevski (@zajo) can you also attach the output of
system_profiler SPDisplaysDataType. Shubham Verma (@ShubhamVerma1811) setup does not seem to have an external monitor and you have mentioned originally that the problem does not repro with external monitors disconnected. So looks like there are two different issues here, I don't have a multi-monitor setup but asked my colleague to check on this and they were not able to repro with a single external monitor. So very likely issue is associated with the type of display and gpu driver.Additionally Emil Dotchevski (@zajo) can you also attach the profile following the steps below,
ShubhamVerma1811 commentedon Nov 3, 2021
I do have a external monitor, but I didn't have it connected when gathered the logs.
For me the issue happens with and without external monitor.
I could re gather the logs with external monitor connected.
Edit: I have added the logs with external monitor in my earlier comment
43 remaining items
deepak1556 commentedon Feb 24, 2022
Runtime version has been reverted for February milestone #143851
NorthernMan54 commentedon Mar 11, 2022
I have updated my vscode-insiders release to the latest, and the problem has returned. I had been using the older version from about 4 weeks ago without issue. Based on this being closed I had assumed that insiders had been updated, or do I need to wait for next insiders release ?
Kamlesh502 commentedon Mar 15, 2022
changing the editor.fontFamily solved my issue
zajo commentedon Mar 25, 2022
Please reopen, it's broken again after upgrading to macOS Monterey 12.3, see image.
The excessive CPU usage persist even after all vscode windows are minimized.
Visual Studio Code info:
deepak1556 commentedon Mar 25, 2022
Emil Dotchevski (@zajo) the fix has not yet made into the stable release, it will be available in
1.66. Can you check if the issue persists with https://code.visualstudio.com/insiders ?zajo commentedon Mar 25, 2022
I'd rather wait for the 1.66 release, if you don't mind. I have a suspicion that this may in the end turn out to be a temporary thing, when I originally opened this issue it also was after a OS version update -- is it possible that the new OS is doing some system-specific optimizations that interfere somehow with vscode?
zajo commentedon Mar 29, 2022
My theory seems to be correct: after the MacOS upgrade, for two days vscode was having this issue. Now the issue is gone, without rebooting the OS and without even restarting vscode. As to what's causing it, who knows, maybe the new OS is reindexing files, maybe it's optimizing something, and maybe that interferes somehow with vscode. I hope this info helps.
pedaars commentedon Mar 30, 2022
I have tried the latest insiders build and the lag is the same for me