Skip to content

After upgrade to MacOS Monterey, vscode unusable, extremely slow rendering #136260

Closed

Description

@zajo

First, thank you for the great IDE.

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).

Any suggestions on adjusting rendering options?

Version: 1.61.2
Commit: 6cba118ac49a1b88332f312a8f67186f7f3c1643
Date: 2021-10-19T15:49:28.381Z
Electron: 13.5.1
Chrome: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Darwin x64 21.1.0

about

Activity

  1. ShubhamVerma1811 commented on Nov 2, 2021

    @ShubhamVerma1811

    Experiencing the same lag on Mac Monterey

    Tried by disabling all extension.
    Still happening.

  2. added
    chromium
    gpu
    upstream
    on Nov 2, 2021
  3. deepak1556 commented on Nov 2, 2021

    @deepak1556
    Collaborator

    Can you attach the following data points to further debug the issue, thanks!

    1. Does the issue happen when you launch with --use-cmd-decoder=passthrough
    2. Does the issue happen when you launch with --disable-gpu
    3. Can you provide the output of code --verbose
    4. Can you provide the output of system_profiler SPDisplaysDataType
  4. added
    info-needed
    on Nov 2, 2021
  5. ShubhamVerma1811 commented on Nov 2, 2021

    @ShubhamVerma1811

    Hey Robo (@deepak1556) ,
    Tried the steps.

    1. 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.
    2. The lag still happens, tried scroll through lines and switching b/w files.
    3. verbose.txt
    4. sysprof.txt with no ext monitor
      EDIT: Logs with ext monitor attached, and performance profile logs
    5. sysprofwithexternalmonitor.txt with ext monitors
    6. VSCODE LAG Monterey Profile.json.zip
  6. zajo commented on Nov 3, 2021

    @zajo
    Author

    Thank you for looking into this. I can confirm that neither of --disable-gpu or --use-cmd-decoder=passthrough fixes anything.

  7. zajo commented on Nov 3, 2021

    @zajo
    Author

    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.

  8. deepak1556 commented on Nov 3, 2021

    @deepak1556
    Collaborator

    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`
    
  9. ShubhamVerma1811 commented on Nov 3, 2021

    @ShubhamVerma1811

    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

  10. 43 remaining items

  11. added this to the March 2022 milestone on Feb 24, 2022
  12. deepak1556 commented on Feb 24, 2022

    @deepak1556
    Collaborator

    Runtime version has been reverted for February milestone #143851

  13. added
    unreleased
    insiders-released
    and removed
    unreleased
    on Mar 10, 2022
  14. NorthernMan54 commented on Mar 11, 2022

    @NorthernMan54

    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 ?

    Version: 1.66.0-insider
    Commit: 6b7453421201c888b81eae5c04ec822a6423608f
    Date: 2022-03-11T05:16:52.815Z
    Electron: 17.1.1
    Chromium: 98.0.4758.109
    Node.js: 16.13.0
    V8: 9.8.177.11-electron.0
    OS: Darwin x64 21.3.0
    
  15. Kamlesh502 commented on Mar 15, 2022

    @Kamlesh502

    changing the editor.fontFamily solved my issue

  16. zajo commented on Mar 25, 2022

    @zajo
    Author

    Please reopen, it's broken again after upgrading to macOS Monterey 12.3, see image.

    screenshot

    The excessive CPU usage persist even after all vscode windows are minimized.

    Visual Studio Code info:

    Version: 1.65.2
    Commit: c722ca6c7eed3d7987c0d5c3df5c45f6b15e77d1
    Date: 2022-03-10T14:33:49.188Z
    Electron: 13.5.2
    Chromium: 91.0.4472.164
    Node.js: 14.16.0
    V8: 9.1.269.39-electron.0
    OS: Darwin x64 21.4.0
    
  17. deepak1556 commented on Mar 25, 2022

    @deepak1556
    Collaborator

    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 ?

  18. zajo commented on Mar 25, 2022

    @zajo
    Author

    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?

  19. zajo commented on Mar 29, 2022

    @zajo
    Author

    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.

  20. pedaars commented on Mar 30, 2022

    @pedaars

    I have tried the latest insiders build and the lag is the same for me

  21. locked and limited conversation to collaborators on Apr 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

chromiumfixed-in-electron-16gpuinsiders-releasedmacos-montereyupstreamupstream-issue-pending

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions