microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.61k stars 29.03k forks source link

Super sluggish on M1 Mac Pro with 16 GB RAM #213672

Closed montescout closed 4 months ago

montescout commented 4 months ago

Type: Performance Issue

I saw it getting better by uninstalling @fortawesome icon packages, but the ones currently installed are all needed. It seems project related as in other projects it's faster. Any way to find out what's slowing it down?

VS Code version: Code 1.85.2 (Universal) (8b3775030ed1a69b13e4f4c628c612102e30a681, 2024-01-18T06:40:32.531Z) OS version: Darwin arm64 22.6.0 Modes:

System Info |Item|Value| |---|---| |CPUs|Apple M1 Pro (8 x 24)| |GPU Status|2d_canvas: enabled
canvas_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)|3, 4, 5| |Memory (System)|16.00GB (1.41GB free)| |Process Argv|--crash-reporter-id d6ce8b55-a025-4a24-b9c7-193bd04f7de6| |Screen Reader|no| |VM|0%|
Process Info ``` CPU % Mem MB PID Process 18 180 85437 code main 0 82 85440 gpu-process 0 33 85441 utility-network-service 1 459 85444 window [1] (page.tsx — xoxno) 0 98 85732 shared-process 0 0 87942 /bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command= 0 66 85733 fileWatcher [1] 0 164 85734 extensionHost [1] 0 115 85736 electron-nodejs (/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) --ms-enable-electron-run-as-node --max-old-space-size=3072 /Users/bpoehland/Desktop/Freelancing/xoxno/xoxno/node_modules/typescript/lib/tsserver.js --serverMode partialSemantic --useInferredProjectPerProjectRoot --disableAutomaticTypingAcquisition --cancellationPipeName /var/folders/7g/390yd3690pd4cc9slj413nvm0000gn/T/vscode-typescript501/ecb5a47c9f27a410c0ec/tscancellation-f9f8ae13edda4622783c.tmp* --locale en --noGetErrOnBackgroundUpdate --validateDefaultNpmLocation --useNodeIpc) 0 1851 85737 electron-nodejs (/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) --ms-enable-electron-run-as-node --max-old-space-size=3072 /Users/bpoehland/Desktop/Freelancing/xoxno/xoxno/node_modules/typescript/lib/tsserver.js --useInferredProjectPerProjectRoot --enableTelemetry --cancellationPipeName /var/folders/7g/390yd3690pd4cc9slj413nvm0000gn/T/vscode-typescript501/ecb5a47c9f27a410c0ec/tscancellation-747427fe4ca213180bff.tmp* --locale en --noGetErrOnBackgroundUpdate --validateDefaultNpmLocation --useNodeIpc) 0 49 85739 electron-nodejs (/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) --ms-enable-electron-run-as-node /Users/bpoehland/Desktop/Freelancing/xoxno/xoxno/node_modules/typescript/lib/typingsInstaller.js --globalTypingsCacheLocation /Users/bpoehland/Library/Caches/typescript/5.4 --enableTelemetry --typesMapLocation /Users/bpoehland/Desktop/Freelancing/xoxno/xoxno/node_modules/typescript/lib/typesMap.json --validateDefaultNpmLocation) 0 49 87876 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=85734) 0 66 85735 ptyHost 0 0 85762 /bin/zsh -il 0 0 85771 /bin/zsh -il 0 0 85777 /bin/zsh -il 0 0 85781 /bin/zsh -il 0 0 85783 /bin/zsh -il 0 0 85790 /bin/zsh -il 0 0 85793 /bin/zsh -il 0 0 85795 /bin/zsh -il 0 0 85821 /bin/zsh -il 0 0 85904 /bin/zsh -il 0 98 87938 window [2] (Issue Reporter) ```
Workspace Info ``` | Window (page.tsx — xoxno) | Folder (xoxno): 2718 files | File types: tsx(801) js(449) ts(258) gz(128) webp(122) json(83) | pack(63) svg(24) woff2(20) DS_Store(7) | Conf files: package.json(3) github-actions(2) project.json(1) | launch.json(1) settings.json(1) dockerfile(1) | tsconfig.json(1) | Launch Configs: node-terminal(2) chrome; ```

Extensions: none

A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscorecescf:30445987
vscod805cf:30301675
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
vscrp:30673768
2i9eh265:30646982
962ge761:30959799
pythongtdpath:30769146
welcomedialogc:30910334
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pythonmypyd1:30879173
pythoncet0:30885854
pythontbext0:30879054
accentitlementst:30995554
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
chatpanelt:31048053
dsvsc021:30996838
724cj586:31013169
a69g1124:31058053
pythonprt:31056678
dwnewjupyter:31046869
26j00206:31048877

vscodenpa commented 4 months ago

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.89.1. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

montescout commented 4 months ago

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.89.1. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

Thank you. Unfortunately after updating it's still super slow. If there was a way to find out what slows it down, that'd be so nice

chrmarti commented 4 months ago

What exactly is slow? The UI interactions? Certain extension commands? (See https://github.com/Microsoft/vscode/wiki/Performance-Issues for a few ideas on how to retrieve additional information.)

vscodenpa commented 4 months ago

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!