Microsoft/vscode

High CPU usage due to spinner animation in VSCode status bar

Closed

#178,311 opened on Mar 25, 2023

 (8 comments) (8 reactions) (1 assignee)TypeScript (39,847 forks)batch import
buggood first issueperf

Repository metrics

Stars
 (184,936 stars)
PR merge metrics
 (Avg merge 11h 43m) (1,000 merged PRs in 30d)

Description

Type: Performance Issue

When the Github Copilot extension is installed in VSCode, the spinner animation in the status bar may get stuck and cause high CPU usage for the "Code - Insiders Helper (GPU)" process, even when the editor is idle.

I have attached a video demonstrating the behavior.

https://user-images.githubusercontent.com/697707/227707172-66f5eeb7-7b7f-4fc3-837a-81892f926fca.mp4

This seems to occur for both Github Copilot or other extensions that may produce a spinner. See https://github.com/phenomnomnominal/betterer/issues/1132 for a related issue.

VS Code version: Code - Insiders 1.77.0-insider (833ac685084e2028b09753392b82c641c7025bbc, 2023-03-21T05:24:48.595Z) OS version: Darwin arm64 22.3.0 Modes: Sandboxed: Yes

Item Value
CPUs Apple M1 Max (10 x 24)
GPU Status 2d_canvas: enabledcanvas_oop_rasterization: disabled_offdirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_renderer: enabled_onvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: disabled_off
Load (avg) 28, 23, 20
Memory (System) 64.00GB (2.56GB free)
Process Argv --crash-reporter-id 31bc4592-32b5-4760-a625-0d4a1e53c114
Screen Reader no
VM 0%
vsliv695:30137379
vsins829:30139715
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstes627:30244334
vslsvsres303:30308271
pythonvspyl392:30422396
pythontb:30258533
pythonptprofiler:30281269
vshan820:30294714
pythondataviewer:30285072
vscod805cf:30301675
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593cf:30376535
pythonvs932:30404738
cppdebug:30492333
vsclangdf:30492506
c4g48928:30535728
dsvsc012cf:30540253
pynewext54:30618038
pylantcb52:30590116
pyindex848:30611229
nodejswelcome1:30587009
pyind779:30611226
pythonsymbol12:30651887
a9j8j154:30646983
showlangstatbar:30659908
pythonb192cf:30661257
azdwalk:30687957
pythonms35:30671666
f08j5886:30680471
7ij38806:30687742

Contributor guide