microsoft / vscode

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

Freesync Issue #187347

Open cobbertine opened 1 year ago

cobbertine commented 1 year ago

Type: Performance Issue

This issue began with v1.78 and is still present in 1.80. If I revert to v1.77, it's fine. Disabling freesync for code.exe also works to stop this issue.

Hitting F11 on the keyboard (full screen shortcut) causes my monitor's refresh rate to drop by roughly half from 144hz, followed by random fluctuations. Exiting full screen may result in the refresh rate returning to 144hz, but not always. If the frame rate does not return to normal, then restarting the computer is required to fix it. Have tested by disabling all extensions as well, no change. The reduction in frame rate is clear and is the same if I were to specifically choose a lower refresh rate in Windows' display options. The refresh rate has been confirmed by using my monitor's OSD tools.

Windows 11 22H2 AOC 24G2W1G4 RX 6600, v23.7.1 (tried many other driver versions)


Steps:

  1. Open Code
  2. Hit F11
  3. Observe reduced refresh rate

Profile-20230708T184409.zip

VS Code version: Code 1.80.0 (660393deaaa6d1996740ff4880f1bad43768c814, 2023-07-04T15:06:02.407Z) OS version: Windows_NT x64 10.0.22621 Modes: Restricted

System Info |Item|Value| |---|---| |CPUs|AMD Ryzen 5 3600 6-Core Processor (12 x 3600)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
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)|undefined| |Memory (System)|31.93GB (20.53GB free)| |Process Argv|--crash-reporter-id f09cc018-6a18-4dba-871e-f35a855e1b72| |Screen Reader|no| |VM|50%|
Process Info ``` CPU % Mem MB PID Process 0 106 11056 code main 0 164 1580 window [2] (Untitled-1 - Visual Studio Code) 0 32 1992 crashpad-handler 0 86 3180 fileWatcher [2] 0 84 8620 shared-process 0 43 9904 utility-network-service 0 160 16184 gpu-process 0 88 20064 window [5] (Issue Reporter) 0 120 20440 extensionHost [2] 0 71 20948 ptyHost ```
Workspace Info ``` ; ```
Extensions (4) Extension|Author (truncated)|Version ---|---|--- prettier-vscode|esb|9.19.0 remote-ssh|ms-|0.102.0 remote-ssh-edit|ms-|0.86.0 remote-explorer|ms-|0.4.1
A/B Experiments ``` vsliv368:30146709 vsreu685:30147344 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 vswsl492cf:30256860 vslsvsres303:30308271 vserr242:30382549 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 vscod805cf:30301675 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593cf:30376535 pythonvs932:30410667 py29gd2263:30784847 vsclangdc:30486549 c4g48928:30535728 dsvsc012:30540252 pynewext54:30695312 azure-dev_surveyone:30548225 282f8724:30602487 pyind779:30671433 f6dab269:30613381 pythonsymbol12:30671437 2i9eh265:30646982 showlangstatbar:30737416 vsctsb:30748421 pythonms35:30701012 03d35959:30757346 pythonfmttext:30731395 pythoncmv:30756943 fixshowwlkth:30771522 showindicator:30785052 pythongtdpath:30769146 bgfeh915:30780428 pythonnosmt12:30779714 pythonidxpt:30784022 pythonnoceb:30776495 h7j2d465:30772216 cmakestatusbarv2:30779594 ```
deepak1556 commented 9 months ago

This needs to be resolved in the runtime, refs https://bugs.chromium.org/p/chromium/issues/detail?id=807406

You can also use --disable-gpu-vsync as a workaround.