-
Notifications
You must be signed in to change notification settings - Fork 30k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After upgrade to MacOS Monterey, vscode unusable, extremely slow rendering #136260
Comments
Experiencing the same lag on Mac Monterey Tried by disabling all extension. |
Can you attach the following data points to further debug the issue, thanks!
|
Hey @deepak1556 ,
|
Can you also attach the profile following these steps https://github.com/microsoft/vscode/wiki/Performance-Issues#visual-studio-code-is-sluggish |
Thank you for looking into this. I can confirm that neither of |
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. |
@zajo can you also attach the output of Additionally @zajo can you also attach the profile following the steps below,
|
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 |
@ShubhamVerma1811 thanks for confirming, can you test if the slowdown happens when you use the application only from the external monitor. Also it would be helpful to get a trace from your setup based on the steps outlined here #136260 (comment) |
Hey @deepak1556 , |
Thanks for the log, first highlight is there is aggressive gpu flushing via
|
@deepak1556 I followed your steps but after quitting there was no
Just in case I tried generating a log in the home directory, also no output. |
Followed steps from here - #136260 (comment)
|
@zajo thanks for trying the debug steps, you can ignore those warnings. The file might take a couple of seconds to generate depending on the active time of the application. Can you ensure there was no code process running after you quit the app. @ShubhamVerma1811 thanks for testing
As a next step here, can you help open an issue with chromium https://bugs.chromium.org/p/chromium/issues/list using
Did you also try this ? |
Yes, I did try with You want me to open this issue in bugs .chromium? |
@deepak1556 I'm pretty sure there was no process running (the indicator on the icon in the MacOS dock went off). It is possible that something didn't work correctly because vcode was running extremely slowly, menu selection moved at 0.5 frames per second (it takes two seconds for the menu selection to follow the mouse cursor). |
I've also noticed performance tank after upgrading to Monterey, most noticeable when selecting text. Clicking and dragging feels slow & unresponsive, and sometimes when hitting cmd+a to select all, it can take a second or two. It's especially noticeable with template literals in JS I've also tried disabling all extensions but still noticed a slowdown |
@ShubhamVerma1811 yes, also please use running |
@deepak1556 and everyone here, Try this thing, So I believe some property of some extension is causing this effect. I need to perform trial and error to get the extact extension. EDIT: So in your settings.json add this
Although this is just a temporary fix because people like me really what that option to be set to "all". |
I have the same problem, tried everything mentioned without success. |
I've filed an issue here: https://bugs.chromium.org/p/chromium/issues/detail?id=1291590 |
@zajo sorry for the delay on getting back to this thread, can you test our exploration build based on a newer runtime version and see if the lag continues. Thanks! |
@deepak1556 Thanks! I think I have some useful information for you, though we're in the unfortunate situation that my configuration has changed since I reported the original issue: previously I was using multiple external monitors, and now I'm using a single 4K external monitor. Another difference is that I've upgraded to the newest macOS Monterey 12.2. With this changed setup, vscode worked well for weeks until I downloaded this latest update today:
And now it's very slow again, although probably for a different reason, since the original problem was gone when I switched to one external monitor. I have multiple vscode windows open (which I need, and was not a problem before the today's update), I get this in Activity Monitor: The good news is that the exploration build you attached does not have this problem. Also, I downgraded to the previous vscode version, and I can confirm it worked fine (in my newer simplified configuration). If you want me to run more experiments, let me know. |
It's good. I guess we should close the issue now, even though we don't know if it's fixed on my setup when I reported it originally. |
@deepak1556 This is good as well. I was also suffering from sluggish behaviour on my dual monitor setup, but it was only triggered after running my selenium/chromedriver test scripts. Or that was when I had noticed it. Installing the insiders version resolved it. I was also experiencing Electron crashes as well, and these are resolved as well. |
Closing based on insiders testing, thanks for self-hosting with the build! |
Hello, I've been paying attention to this issue recently. {
"editor.fontFamily": "YaHei Consolas Hybrid, monospace",
"editor.renderWhitespace": "all",
}
I tried to use |
@im0qianqian thanks for the repro, I can confirm the issue. I have updated #111816 with your test case, can you follow that issue for updates, thanks! |
I'd like to come back to my earlier comments about slowdowns in typing happening across the board. I have specifically traced a huge typing slowdown to aggressive frequency throttling that macOS Monterey is now doing when on the integrated gpu. This is a measurable slowdown that makes typing in vscode (and chrome, and basically anything else) almost impossible. I have to completely disable the intel gpu and rely on the discrete card to even type on my device now. |
Hey there. Thank you so much for finding the culprit. I was having this issue quite a while after upgrade.
|
Runtime version has been reverted for February milestone #143851 |
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 ?
|
changing the editor.fontFamily solved my issue |
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:
|
@zajo the fix has not yet made into the stable release, it will be available in |
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. |
I have tried the latest insiders build and the lag is the same for me |
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?
The text was updated successfully, but these errors were encountered: