microsoft / vscode

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

VS code terminal runs very slow after update #224761

Open Subham38170 opened 1 month ago

Subham38170 commented 1 month ago

Type: Performance Issue

VS code terminal running very well before update. Now however it runs but very slow. Please help me to solve this issue. I don't know for which purpose this is happening.

VS Code version: Code 1.92.0 (b1c0a14de1414fcdaa400695b4db1c0799bc3124, 2024-07-31T23:26:45.634Z) OS version: Windows_NT x64 10.0.22631 Modes:

System Info |Item|Value| |---|---| |CPUs|AMD Ryzen 7 5700U with Radeon Graphics (16 x 1797)| |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
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off| |Load (avg)|undefined| |Memory (System)|15.33GB (8.77GB free)| |Process Argv|--crash-reporter-id 1d125a53-deb8-4cc9-9c76-767f31ff3ed5| |Screen Reader|no| |VM|0%|
Process Info ``` CPU % Mem MB PID Process 0 110 24444 code main 0 107 4656 shared-process 0 86 9536 fileWatcher [1] 0 146 10044 gpu-process 1 100 12632 window [2] (Issue Reporter) 0 255 12780 window [1] (fileopt.c - Cprogramming - Visual Studio Code) 0 27 13776 crashpad-handler 0 49 19532 utility-network-service 0 87 21720 ptyHost 0 208 21860 extensionHost [1] 0 44 12056 c:\Users\ssahu\.vscode\extensions\ms-vscode.cpptools-1.21.5-win32-x64\bin\cpptools.exe 0 3 24012 "c:\Users\ssahu\.vscode\extensions\ms-vscode.cpptools-1.21.5-win32-x64\bin\cpptools.exe" 0 16 6548 c:\Users\ssahu\.vscode\extensions\ms-vscode.cpptools-1.21.5-win32-x64/bin/cpptools-srv.exe 12056 {CCB3F68D-60BF-4EA8-A525-E8402F5D6819} 0 10 9400 C:\windows\system32\conhost.exe 0x4 0 17 11420 c:\Users\ssahu\.vscode\extensions\ms-vscode.cpptools-1.21.5-win32-x64/bin/cpptools-srv.exe 12056 {96D825CB-A9F3-4831-9806-34E593E22C21} 0 10 26916 C:\windows\system32\conhost.exe 0x4 0 37 14608 c:\Users\ssahu\.vscode\extensions\ms-vscode.cpptools-1.21.5-win32-x64/bin/cpptools-srv.exe 12056 {542D8A46-6840-49A7-82CC-4C02F87A344F} 0 10 5208 C:\windows\system32\conhost.exe 0x4 0 10 25824 C:\windows\system32\conhost.exe 0x4 0 92 24336 "C:\vscode\Microsoft VS Code\Code.exe" "c:\vscode\Microsoft VS Code\resources\app\extensions\json-language-features\server\dist\node\jsonServerMain" --node-ipc --clientProcessId=21860 ```
Workspace Info ``` | Window (fileopt.c - Cprogramming - Visual Studio Code) | Folder (Cprogramming): 24 files | File types: exe(9) c(7) json(2) cpp(2) txt(1) | Conf files: launch.json(1) tasks.json(1) | Launch Configs: cppdbg; ```
Extensions (6) Extension|Author (truncated)|Version ---|---|--- prettier-vscode|esb|10.4.0 code-runner|for|0.12.2 cmake-tools|ms-|1.18.44 cpptools|ms-|1.21.5 cpptools-extension-pack|ms-|1.3.0 cmake|twx|0.0.17 (1 theme extensions excluded)
A/B Experiments ``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vswsl492:30256859 vscorecescf:30445987 vscod805:30301674 binariesv615:30325510 vsaa593:30376534 py29gd2263:31024239 c4g48928:30535728 azure-dev_surveyone:30548225 962ge761:30959799 pythongtdpath:30769146 welcomedialogc:30910334 pythonnoceb:30805159 asynctok:30898717 pythonregdiag2:30936856 pythonmypyd1:30879173 h48ei257:31000450 pythontbext0:30879054 accentitlementsc:30995553 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 dsvsc021:30996838 9c06g630:31013171 pythoncenvpt:31062603 a69g1124:31058053 dvdeprecation:31068756 dwnewjupyter:31046869 newcmakeconfigv2:31071590 impr_priority:31102340 refactort:31108082 ccplc:31103425 pythonrstrctxt:31103193 ```
mingjitianming commented 1 month ago

image try this

johan-boule commented 1 month ago

I just found a case where Microsoft Visual Studio Code Terminal is capped to about 12,000 bauds. All you need is to print a log with lots of color escape sequences. I used tmux to compare the speed with the native terminal mintty. I can confirm it's only VS code's problem.

johan-boule commented 1 month ago

Why the SCM label ? How can you conclude that it's some Git SCM background process that's ruining the terminal performance ?

lszomoru commented 1 month ago

I just found a case where Microsoft Visual Studio Code Terminal is capped to about 12,000 bauds. All you need is to print a log with lots of color escape sequences. I used tmux to compare the speed with the native terminal mintty. I can confirm it's only VS code's problem.

@Tyriar, could you please take a look at this? Thanks!

Tyriar commented 4 weeks ago

@meganrogge is this the problem you were seeing? I can't reproduce any issue here on Windows and I don't have my mac. If so could you try could get a profile to see if it's an issue on the renderer/window side?