microsoft / vscode

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

Sluggish when scrolling. Freeze time increases with scroll time #217841

Open AnotiaWang opened 6 days ago

AnotiaWang commented 6 days ago

Type: Performance Issue

This issue appears aftering coding for hours on tens of files. Scrolling becomes laggy, and the editor freezes when scrolling for seconds.

I use touchpad on my laptop to scroll browse the code, if I scroll slowly, the freeze time increases rapidly and becomes noticeable after about 2 seconds, freezing the editor for seconds each time.

VS Code version: Code 1.90.2 (5437499feb04f7a586f677b155b039bc2b3669eb, 2024-06-18T22:54:35.075Z) OS version: Darwin arm64 24.0.0 Modes:

System Info |Item|Value| |---|---| |CPUs|Apple M2 Pro (10 x 2400)| |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
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|3, 2, 2| |Memory (System)|32.00GB (0.06GB free)| |Process Argv|--crash-reporter-id 33f2db18-d6d2-4571-bcf7-5ce1184f51fc| |Screen Reader|no| |VM|0%|
Process Info ``` CPU % Mem MB PID Process 61 393 57733 code main 1 164 57736 gpu-process 0 33 57737 utility-network-service 0 131 58025 shared-process 0 66 58068 ptyHost 0 0 8046 /bin/zsh -il 0 98 43582 node /Users/anoti/.nvm/versions/node/v20.11.0/bin/pnpm start:dev 0 328 43592 node /Users/anoti/Documents/project/one-yige-vue/backend/node_modules/.bin/../@nestjs/cli/bin/nest.js start --watch 0 98 46492 node -r /Users/anoti/Documents/project/one-yige-vue/backend/node_modules/.pnpm/source-map-support@0.5.21/node_modules/source-map-support/register.js /Users/anoti/Documents/project/one-yige-vue/backend/dist/main 0 0 9207 /bin/zsh -il 0 98 44734 node /Users/anoti/.nvm/versions/node/v20.11.0/bin/pnpm dev:h5 0 229 44744 node /Users/anoti/Documents/project/one-yige-vue/frontend/node_modules/.bin/../@dcloudio/vite-plugin-uni/bin/uni.js 0 66 44752 /Users/anoti/Documents/project/one-yige-vue/frontend/node_modules/.pnpm/@esbuild+darwin-arm64@0.20.2/node_modules/@esbuild/darwin-arm64/bin/esbuild --service=0.20.2 --ping ```
Workspace Info ``` | Window (auto-imports.d.ts — one-yige-vue) | Folder (one-yige-vue): 161 files | File types: ts(40) js(26) json(14) map(12) png(8) vue(6) woff2(5) | css(3) gitignore(2) prettierrc(2) | Conf files: package.json(2) tsconfig.json(2) launch.json(1); ```
Extensions (62) Extension|Author (truncated)|Version ---|---|--- TabOut|alb|0.2.2 unocss|ant|0.61.0 vscode-apollo|apo|1.20.0 vscode-tailwindcss|bra|0.12.0 wechat-snippet|Cha|0.4.11 dart-code|Dar|3.90.0 flutter|Dar|3.90.0 vscode-eslint|dba|3.0.10 xml|Dot|2.5.1 gitlens|eam|15.1.0 vscode-html-css|ecm|2.0.10 prettier-vscode|esb|10.4.0 html-preview-vscode|geo|0.2.5 codespaces|Git|1.16.23 copilot|Git|1.207.0 copilot-chat|Git|0.16.2024061102 remotehub|Git|0.62.0 vscode-github-actions|git|0.26.3 vscode-pull-request-github|Git|0.90.0 go|gol|0.41.4 vscode-graphql|Gra|0.11.0 vscode-graphql-syntax|Gra|1.3.6 todo-tree|Gru|0.0.226 better-cpp-syntax|jef|1.17.2 intellij-idea-keybindings|k--|1.7.2 vsc-python-indent|Kev|1.18.0 vscode-leetcode|Lee|0.18.2 i18n-ally|lok|2.12.0 linecounter|lyz|0.2.7 vscode-docker|ms-|1.29.1 vscode-language-pack-zh-hans|MS-|1.90.2024061209 debugpy|ms-|2024.6.0 python|ms-|2024.8.1 remote-ssh|ms-|0.112.0 remote-ssh-edit|ms-|0.86.0 cmake-tools|ms-|1.18.42 cpptools|ms-|1.21.0 cpptools-extension-pack|ms-|1.3.0 makefile-tools|ms-|0.9.10 remote-explorer|ms-|0.4.3 remote-repositories|ms-|0.40.0 vsliveshare|ms-|1.0.5932 vscode-pbkit|pbk|0.0.7 material-icon-theme|PKi|5.4.2 java|red|1.31.0 vscode-yaml|red|1.15.0 swift-lang|ssw|1.10.3 svelte-vscode|sve|108.5.2 cmake|twx|0.0.17 uni-highlight-vscode|uni|0.3.10 errorlens|use|3.20.0 vscode-lldb|vad|1.10.0 vscode-spring-boot|vmw|1.55.1 vscode-java-debug|vsc|0.57.0 vscode-java-dependency|vsc|0.23.6 vscode-java-pack|vsc|0.27.0 vscode-java-test|vsc|0.41.1 vscode-maven|vsc|0.44.0 volar|Vue|2.0.22 vscode-wakatime|Wak|24.6.0 console-ninja|Wal|1.0.326 quokka-vscode|Wal|1.0.646 (3 theme extensions excluded)
AnotiaWang commented 6 days ago

Performance trace: Trace-20240625T164715.zip