Skip to content

Overall slow performance #106456

Closed
Closed

Description

Issue Type: Performance Issue

Especially, scrolling using mouse or keyboard is really laggy.
I've tested file under version control and not under version control. But they behaved almost same.
Larger lines more laggy.

VS Code version: Code 1.49.0 (e790b93, 2020-09-10T13:22:08.892Z)
OS version: Windows_NT x64 10.0.19041

System Info
Item Value
CPUs Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz (12 x 2208)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: enabled_on
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 15.94GB (9.62GB free)
Process Argv --crash-reporter-id 515b2b29-a108-4178-9745-df82f9b97546 --crash-reporter-id 515b2b29-a108-4178-9745-df82f9b97546 --crash-reporter-id 515b2b29-a108-4178-9745-df82f9b97546
Screen Reader no
VM 0%
Process Info
CPU %	Mem MB	   PID	Process
    0	   127	  9784	code main
    0	    86	  2568	   utility
    1	   100	  4160	   window (Issue Reporter)
    0	    79	  4804	   crashpad-handler
    0	    82	  8936	   utility
    0	   186	 14492	   window (● Untitled-1 - Visual Studio Code)
    0	   107	 18752	     extensionHost
    0	   105	 17812	   shared-process
    1	   141	 18180	   gpu-process
Workspace Info
;
Extensions (7)
Extension Author (truncated) Version
amvim aui 1.32.0
vscode-great-icons emm 2.1.52
todo-tree Gru 0.0.178
python ms- 2020.8.108011
remote-wsl ms- 0.44.5
trailing-spaces sha 0.3.1
markdown-all-in-one yzh 3.3.0

(1 theme extensions excluded)

Activity

  1. alexdima commented on Sep 11, 2020

    @alexdima
    Member

    Minkyu Choi (@Minkyu-Choi) From the CPU trace, I see that a lot of time is unaccounted and is spent in a section called "(program)", which is not helpful in pointing us to what is causing the slowness. Does this reproduce when you disable all extensions? (Press F1 and then choose Developer: Reload Window with Extensions Disabled).

    Can you attempt to comment out your settings? Do you have a screen reader attached to the editor? Did you customize editor.accessibilitySupport ?

  2. added
    info-needed
    on Sep 11, 2020
  3. Minkyu-Choi commented on Sep 11, 2020

    @Minkyu-Choi
    Author
  4. Halkinn commented on Sep 11, 2020

    @Halkinn

    Also seeing major slow down while scrolling with a keyboard since the new update.

  5. alexdima commented on Sep 11, 2020

    @alexdima
    Member

    The CPU profile does not reveal anything. Also we did not change anything in the editor rendering in the past milestones. IIRC we have had some discussions about slowness around Electron 9, and that it might impact some older hardware.

    I'm adding more people, maybe someone has an idea how to figure out what is the root cause.

  6. added
    freeze-slow-crash-leak
    on Sep 11, 2020
  7. deepak1556 commented on Sep 11, 2020

    @deepak1556
    Collaborator

    program stacks indicate internal calls of v8. Since slowdown is happening inside v8 we need to look at some chrome traces for this. Minkyu Choi (@Minkyu-Choi) can you follow the steps to get the trace

    1. Create trace.json somewhere on your disk with the following content:
    {
     "result_file": "chrometrace.log",
     "trace_config": {
     "record_mode": "record-until-full",
     "included_categories": [
         "blink",
         "benchmark",
         "gpu",
         "cc",
         "toplevel",
         "viz",
         "v8",
         "disabled-by-default-v8.runtime",
         "disabled-by-default-v8.ic_stats",
         "disabled-by-default-v8.runtime_stats"
     ],
     "excluded_categories": ["*"]
     }
    }
    
    1. Start code --trace-config-file <path-to>/trace.json
    2. Use the editor as normal and ensure the slowdown is seen
    3. Quit the editor
    4. Attach the generated chrometrace.log
  8. added
    windows
    on Sep 11, 2020
  9. 9 remaining items

  10. deepak1556 commented on Sep 15, 2020

    @deepak1556
    Collaborator

    Actually there is mistake with the flag, sorry about that. You need to pass it like --trace-config-file="C:\Program Files\Microsoft VS Code\trace.json" . Also remove "disabled-by-default-v8.ic_stats" from the config, it currently crashes with it.

  11. Minkyu-Choi commented on Sep 15, 2020

    @Minkyu-Choi
    Author
  12. deepak1556 commented on Sep 15, 2020

    @deepak1556
    Collaborator

    Thanks! will get back further details from the trace tomorrow.

  13. removed
    info-needed
    on Sep 15, 2020
  14. Minkyu-Choi commented on Sep 18, 2020

    @Minkyu-Choi
    Author

    Robo (@deepak1556) any updates on this?

  15. deepak1556 commented on Sep 18, 2020

    @deepak1556
    Collaborator

    Sorry missed to respond, the recorded profile failed to load in chrome://tracing another bug of electron support of some tracing options. Can you record again with the following options

    {
     "result_file": "C:\Users\<name>\AppData\Local\chrometrace.log",
     "trace_config": {
     "record_mode": "record-until-full",
     "included_categories": [
         "blink",
         "benchmark",
         "gpu",
         "cc",
         "toplevel",
         "viz",
         "v8",
         "disabled-by-default-v8.runtime"
     ],
     "excluded_categories": ["*"]
     }
    }
    

    One more can also provide the following trace,

    Also I am OOF till Monday, will check into this once I get to work. Thanks!

  16. Minkyu-Choi commented on Sep 18, 2020

    @Minkyu-Choi
    Author
  17. deepak1556 commented on Sep 23, 2020

    @deepak1556
    Collaborator

    Minkyu Choi (@Minkyu-Choi) thanks for the traces, I was able to narrow down some problematic areas, I will merge this issue to #107016 for a broader conversation. Please follow that issue.

  18. locked and limited conversation to collaborators on Dec 4, 2020
  19. added
    *duplicate
    on Jan 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

*duplicatefreeze-slow-crash-leakperfwindows

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions