microsoft / vscode

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

vs code keeps flickers #222085

Closed Ketan-33 closed 4 months ago

Ketan-33 commented 4 months ago

Type: Performance Issue

nd its not because of my display drivers.Only vs code flickers

VS Code version: Code 1.91.1 (f1e16e1e6214d7c44d078b1f0607b2388f29d729, 2024-07-09T22:06:49.809Z) OS version: Windows_NT x64 10.0.22631 Modes:

System Info |Item|Value| |---|---| |CPUs|AMD Ryzen 5 4600H with Radeon Graphics (12 x 2994)| |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| |Load (avg)|undefined| |Memory (System)|7.42GB (1.86GB free)| |Process Argv|--crash-reporter-id ce2db659-9a82-4320-ac2f-5b9045a75bf0| |Screen Reader|no| |VM|0%|
Process Info ``` CPU % Mem MB PID Process 0 192 10080 code main 0 284 1624 window [1] (LetterCombination.java - JAVA_Training - Visual Studio Code) 0 798 2700 extensionHost [1] 0 36 6544 electron-nodejs (bundle.js ) 0 341 10064 c:\Users\ketan\.vscode\extensions\oracle.oracle-java-22.0.1\nbcode\bin\nbcode64.exe --userdir c:\Users\ketan\AppData\Roaming\Code\User\workspaceStorage\373a860c2b43afa5b5987f6fd408ada0\Oracle.oracle-java\userdir --jdkhome "C:\Users\ketan\AppData\Local\Programs\Eclipse Adoptium\jdk-17.0.11.9-hotspot\\" "-J-Dnetbeans.extra.dirs=\"\"" --modules --list -J-XX:PerfMaxStringConstLength=10240 0 7 11168 "c:\Program Files\Python312\python.exe" c:\Users\ketan\.vscode\extensions\ms-python.isort-2023.10.1\bundled\tool\lsp_server.py 0 5 18288 C:\WINDOWS\system32\conhost.exe 0x4 0 25 11888 electron-nodejs (server.js ) 0 23 14616 electron-nodejs (tailwindServer.js ) 0 20 15692 electron-nodejs (eslintServer.js ) 0 16 15724 electron-nodejs (serverMain.js ) 0 11 15840 electron-nodejs (languageserver.js ) 0 14 15984 electron-nodejs (languageServer.js ) 0 20 16524 "C:\Users\ketan\AppData\Local\Programs\Microsoft VS Code\Code.exe" "c:\Users\ketan\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\json-language-features\server\dist\node\jsonServerMain" --node-ipc --clientProcessId=2700 0 14 16952 c:\Users\ketan\AppData\Roaming\Code\User\globalStorage\tabnine.tabnine-vscode\binaries\4.180.0\x86_64-pc-windows-msvc\TabNine.exe --tls_config insecure=false --no-lsp=true --client=vscode --client-metadata clientVersion=1.91.1 pluginVersion=3.129.0 t9-vscode-AutoImportEnabled=true t9-vscode-TSAutoImportEnabled=true t9-vscode-JSAutoImportEnabled=true vscode-telemetry-enabled=true vscode-remote=false vscode-extension-kind=1 "vscode-theme-name=Material Theme Darker High Contrast" vscode-theme-kind=Dark vscode-machine-id=104df7c1347bbdcbb71e5033e69b7b18dd654ea6c76c0be29918cfb43649316d vscode-is-new-app-install=false vscode-session-id=52028ab8-4691-4f10-97fd-7c4db75b16b41721304989727 vscode-language=en "vscode-app-name=Visual Studio Code" vscode-beta-channel-enabled=false vscode-status-customization=unknown vscode-inline-api-enabled=true vscode-code-lens-enabled=true vscode-found-intellicode=false ide-restart-counter=0 0 32 7740 "c:\Users\ketan\AppData\Roaming\Code\User\globalStorage\tabnine.tabnine-vscode\binaries\4.180.0\x86_64-pc-windows-msvc\TabNine.exe" --tls_config insecure=false --no-lsp=true --client=vscode --client-metadata clientVersion=1.91.1 pluginVersion=3.129.0 t9-vscode-AutoImportEnabled=true t9-vscode-TSAutoImportEnabled=true t9-vscode-JSAutoImportEnabled=true vscode-telemetry-enabled=true vscode-remote=false vscode-extension-kind=1 "vscode-theme-name=Material Theme Darker High Contrast" vscode-theme-kind=Dark vscode-machine-id=104df7c1347bbdcbb71e5033e69b7b18dd654ea6c76c0be29918cfb43649316d vscode-is-new-app-install=false vscode-session-id=52028ab8-4691-4f10-97fd-7c4db75b16b41721304989727 vscode-language=en "vscode-app-name=Visual Studio Code" vscode-beta-channel-enabled=false vscode-status-customization=unknown vscode-inline-api-enabled=true vscode-code-lens-enabled=true vscode-found-intellicode=false ide-restart-counter=0 --no_bootstrap 0 16 8064 "c:\Users\ketan\AppData\Roaming\Code\User\globalStorage\tabnine.tabnine-vscode\binaries\4.180.0\x86_64-pc-windows-msvc\TabNine-server-runner.exe" vdb 1.7.3-fix.1 --tls_config insecure=false --port_env_var QDRANT__SERVICE__GRPC_PORT -- --config-path {BINARY_DIR}/config.yaml 0 25 12000 C:\Users\ketan\AppData\Roaming\TabNine\servers\vdb\1.7.3-fix.1\download\vdb.exe --config-path C:\Users\ketan\AppData\Roaming\TabNine\servers\vdb\1.7.3-fix.1\download/config.yaml 0 302 17256 "c:\Users\ketan\AppData\Roaming\Code\User\globalStorage\tabnine.tabnine-vscode\binaries\4.180.0\x86_64-pc-windows-msvc\TabNine-deep-local.exe" --settings C:\Users\ketan\AppData\Roaming\TabNine\local.settingsce94127bSmall --settings-version 1 --client vscode --client-metadata clientVersion=1.91.1 pluginVersion=3.129.0 t9-vscode-AutoImportEnabled=true t9-vscode-TSAutoImportEnabled=true t9-vscode-JSAutoImportEnabled=true vscode-telemetry-enabled=true vscode-remote=false vscode-extension-kind=1 "vscode-theme-name=Material Theme Darker High Contrast" vscode-theme-kind=Dark vscode-machine-id=104df7c1347bbdcbb71e5033e69b7b18dd654ea6c76c0be29918cfb43649316d vscode-is-new-app-install=false vscode-session-id=52028ab8-4691-4f10-97fd-7c4db75b16b41721304989727 vscode-language=en "vscode-app-name=Visual Studio Code" vscode-beta-channel-enabled=false vscode-status-customization=unknown vscode-inline-api-enabled=true vscode-code-lens-enabled=true vscode-found-intellicode=false ide-restart-counter=0 --tls_config insecure=false 0 15 16948 "C:\Users\ketan\AppData\Roaming\Code\User\globalStorage\tabnine.tabnine-vscode\binaries\4.180.0\x86_64-pc-windows-msvc\WD-TabNine.exe" --tls_config insecure=false --client vscode --client-metadata clientVersion=1.91.1 pluginVersion=3.129.0 t9-vscode-AutoImportEnabled=true t9-vscode-TSAutoImportEnabled=true t9-vscode-JSAutoImportEnabled=true vscode-telemetry-enabled=true vscode-remote=false vscode-extension-kind=1 "vscode-theme-name=Material Theme Darker High Contrast" vscode-theme-kind=Dark vscode-machine-id=104df7c1347bbdcbb71e5033e69b7b18dd654ea6c76c0be29918cfb43649316d vscode-is-new-app-install=false vscode-session-id=52028ab8-4691-4f10-97fd-7c4db75b16b41721304989727 vscode-language=en "vscode-app-name=Visual Studio Code" vscode-beta-channel-enabled=false vscode-status-customization=unknown vscode-inline-api-enabled=true vscode-code-lens-enabled=true vscode-found-intellicode=false ide-restart-counter=0 0 6 16960 C:\WINDOWS\system32\conhost.exe 0x4 0 251 17140 c:\Users\ketan\.vscode\extensions\redhat.java-1.32.0-win32-x64\jre\17.0.11-win32-x86_64\bin\java --add-modules=ALL-SYSTEM --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/sun.nio.fs=ALL-UNNAMED -Declipse.application=org.eclipse.jdt.ls.core.id1 -Dosgi.bundles.defaultStartLevel=4 -Declipse.product=org.eclipse.jdt.ls.core.product -Djava.import.generatesMetadataFilesAtProjectRoot=false -DDetectVMInstallationsJob.disabled=true -Dfile.encoding=utf8 -XX:+UseParallelGC -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true -Xmx1G -Xms100m -Xlog:disable -javaagent:c:\Users\ketan\.vscode\extensions\redhat.java-1.32.0-win32-x64\lombok\lombok-1.18.33.jar -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=c:\Users\ketan\AppData\Roaming\Code\User\workspaceStorage\373a860c2b43afa5b5987f6fd408ada0\redhat.java -Daether.dependencyCollector.impl=bf -jar c:\Users\ketan\.vscode\extensions\redhat.java-1.32.0-win32-x64\server\plugins\org.eclipse.equinox.launcher_1.6.900.v20240613-2009.jar -configuration c:\Users\ketan\AppData\Roaming\Code\User\globalStorage\redhat.java\1.32.0\config_win -data c:\Users\ketan\AppData\Roaming\Code\User\workspaceStorage\373a860c2b43afa5b5987f6fd408ada0\redhat.java\jdt_ws --pipe=\\.\pipe\lsp-4e3ccfceeebdd848f984913613236795-sock 0 10 17684 c:\Users\ketan\AppData\Roaming\Code\User\globalStorage\sourcegraph.cody-ai\cody-engine\cody-engine-5.4.6040-windows-x64 0 5 17692 C:\WINDOWS\system32\conhost.exe 0x4 0 3 18132 c:\Users\ketan\.vscode\extensions\ms-python.python-2024.10.0-win32-x64\python-env-tools\bin\pet.exe server 0 5 18140 C:\WINDOWS\system32\conhost.exe 0x4 0 7 18280 "c:\Program Files\Python312\python.exe" c:\Users\ketan\.vscode\extensions\ms-python.autopep8-2024.0.0\bundled\tool\lsp_server.py 0 6 16608 C:\WINDOWS\system32\conhost.exe 0x4 0 21 18328 electron-nodejs (server.js ) 0 102 2784 gpu-process 0 10 2932 crashpad-handler 0 101 6508 window [3] (Issue Reporter) 0 66 7400 shared-process 0 43 7528 ptyHost 0 13 6164 C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -noexit -command "try { . \"c:\Users\ketan\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\contrib\terminal\browser\media\shellIntegration.ps1\" } catch {}" 0 5 6348 conpty-agent 0 47 7380 C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -noexit -command "try { . \"c:\Users\ketan\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\contrib\terminal\browser\media\shellIntegration.ps1\" } catch {}" 0 20 7616 C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -noexit -command "try { . \"c:\Users\ketan\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\contrib\terminal\browser\media\shellIntegration.ps1\" } catch {}" 0 21 10340 C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -noexit -command "try { . \"c:\Users\ketan\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\contrib\terminal\browser\media\shellIntegration.ps1\" } catch {}" 0 4 12312 conpty-agent 0 6 13720 conpty-agent 0 6 17668 conpty-agent 0 32 7676 fileWatcher [1] 0 17 9332 utility-network-service ```
Workspace Info ``` | Window (LetterCombination.java - JAVA_Training - Visual Studio Code) | Folder (JAVA_Training): 39 files | File types: class(12) java(7) xml(4) gitignore(3) iml(2) prob(1) md(1) | Conf files:; ```
Extensions (133) Extension|Author (truncated)|Version ---|---|--- better-comments|aar|3.0.2 html-snippets|abu|0.2.1 codesnap|adp|1.3.4 emmet-keybindings|agu|1.2.1 vscode-essentials|agu|1.0.5 TabOut|alb|0.2.2 html-end-tag-labels|ant|1.0.0 change-color-format|bbu|1.2.0 vscode-intelephense-client|bme|1.10.4 file-browser|bod|0.2.11 vscode-tailwindcss|bra|0.12.5 vscode-toggle-quotes|Bri|0.3.6 directory-files|cas|0.0.5 npm-intellisense|chr|1.4.5 path-intellisense|chr|2.9.0 cssrem|cip|3.1.1 macros|ctf|1.1.0 dbclient-jdbc|cwe|1.3.5 vscode-mysql-client2|cwe|7.5.6 vscode-markdownlint|Dav|0.55.0 vscode-eslint|dba|3.0.10 vscode-faker|dee|2.0.0 composer-php-vscode|DEV|1.49.15728 intelli-php-vscode|DEV|0.12.15062 phptools-vscode|DEV|1.49.15728 profiler-php-vscode|DEV|1.49.15728 vscode-notes|dio|1.2.1 competitive-programming-helper|Div|2024.6.1719243911 githistory|don|0.6.20 es7-react-js-snippets|dsz|4.4.3 gitlens|eam|15.2.0 vscode-html-css|ecm|2.0.10 EditorConfig|Edi|0.16.4 vscode-npm-script|eg2|0.3.29 vsc-material-theme|Equ|34.4.0 vsc-material-theme-icons|equ|3.6.1 prettier-vscode|esb|10.4.0 comment-anchors|Exo|1.10.4 git-project-manager|fel|1.8.2 vscode-firefox-debug|fir|2.9.10 auto-close-tag|for|0.5.15 auto-rename-tag|for|0.1.10 code-runner|for|0.12.2 copilot|Git|1.214.0 copilot-chat|Git|0.17.1 vscode-pull-request-github|Git|0.92.0 vscode-graphql|Gra|0.11.0 vscode-graphql-syntax|Gra|1.3.6 directory-to-text|gus|0.0.1 es7-react-js-snippets-hanopp|han|1.0.4 rest-client|hum|0.25.1 easy-snippet|inu|0.7.5 vscode-picture|Jak|1.0.0 hungry-delete|jas|1.7.0 competitive-coding-helper|km|6.0.3 vscode-phpfmt|kok|1.2.12 tag-inserter|l7s|1.4.0 quickstart|lol|0.1.0 alex-html|Luc|1.1.1 rainbow-csv|mec|3.12.0 php-namespace-resolver|Meh|1.1.9 vscode-language-babel|mgm|0.0.40 vscode-checkpoints|mic|1.3.3 dotenv|mik|1.0.1 goto-next-previous-member|mis|0.0.6 mongodb-vscode|mon|1.6.1 vscode-duplicate|mrm|1.2.1 vscode-scss|mrm|0.10.0 vscode-docker|ms-|1.29.1 vscode-dotnet-runtime|ms-|2.1.1 vscode-edge-devtools|ms-|2.1.5 autopep8|ms-|2024.0.0 debugpy|ms-|2024.8.0 isort|ms-|2023.10.1 python|ms-|2024.10.0 vscode-pylance|ms-|2024.7.1 datawrangler|ms-|1.4.2 jupyter|ms-|2024.6.0 jupyter-keymap|ms-|1.1.2 jupyter-renderers|ms-|1.0.18 vscode-jupyter-cell-tags|ms-|0.1.9 vscode-jupyter-slideshow|ms-|0.1.6 cmake-tools|ms-|1.18.43 cpptools|ms-|1.20.5 cpptools-extension-pack|ms-|1.3.0 vscode-typescript-next|ms-|5.6.20240717 vsliveshare|ms-|1.0.5936 sqltools|mtx|0.28.3 copy-json-path|nid|0.4.0 laravel-blade|one|1.36.1 laravel5-snippets|one|1.18.0 oracle-java|Ora|22.0.1 vscode-gitignore-generator|pio|1.0.3 postman-for-vscode|Pos|1.1.0 toggle|reb|0.0.2 java|red|1.32.0 vscode-xml|red|0.27.1 vscode-yaml|red|1.15.0 vscode-sort-json|ric|1.20.0 LiveServer|rit|5.7.9 es7-react-js-snippets|rod|1.9.3 gi|rub|0.2.11 laravel-artisan|rya|0.0.31 partial-diff|ryu|1.4.3 vscode-javascript-booster|sbu|14.0.1 vscode-scss-formatter|sib|3.0.0 html5-boilerplate|sid|1.1.1 mdx|sil|0.1.1 cody-ai|sou|1.26.4 tabnine-vscode|Tab|3.129.0 icons|tal|3.8.0 ejs-snippets|Tao|0.1.0 open-in-browser|tec|2.0.0 pdf|tom|1.2.2 cmake|twx|0.0.17 sort-lines|Tyr|1.11.0 errorlens|use|3.20.0 intellicode-api-usage-examples|Vis|0.2.8 vscodeintellicode|Vis|1.3.1 vscode-java-debug|vsc|0.58.0 vscode-java-dependency|vsc|0.23.7 vscode-java-pack|vsc|0.27.0 vscode-java-test|vsc|0.41.1 vscode-maven|vsc|0.44.0 gistfs|vsl|0.6.0 HTML5-extension-pack|wal|1.0.0 change-case|wma|1.0.0 vscode-jumpy|wma|0.3.1 es7-react-js-snippets|woo|2.5.1 JavaScriptSnippets|xab|1.8.0 php-debug|xde|1.35.0 vscode-surround|yat|1.5.0 markdown-all-in-one|yzh|3.6.2 (1 theme extensions excluded)
A/B Experiments ``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscoreces:30445986 vscod805:30301674 binariesv615:30325510 vsaa593:30376534 py29gd2263:31024239 c4g48928:30535728 azure-dev_surveyone:30548225 962ge761:30959799 pythongtdpath:30769146 welcomedialog:30910333 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 f3je6385:31013174 pythoncenvpt:31062603 a69g1124:31058053 dvdeprecation:31068756 dwnewjupyter:31046869 legacy_priority:31094926 refactorc:31098050 pythonrstrctxt:31093869 ```
gjsjohnmurray commented 4 months ago

Does it help if you launch VS Code from a command prompt and add the option to disable the GPU?

code --disable-gpu

Ketan-33 commented 4 months ago

Now it's not flickering but how do I fix this?

deepak1556 commented 4 months ago

Merging to https://github.com/microsoft/vscode/issues/124226

Please disable hw acceleration in the application as workaround,

* Command Palette search for "Configure Runtime Arguments"
* Set disable-hardware-acceleration: true
* Restart