-
Notifications
You must be signed in to change notification settings - Fork 30k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slow output rendering in terminal when ConPty is enabled #72634
Comments
I tried to enable escape sequence logging, and see the following in the console in the developer tools when re-running Get-Process: |
I could reproduce this on my work machine, for me it was an issue with GPU/canvas drawing performance and the simple fix it to add this to your settings:
It's meant to switch this setting automatically if you haven't set it already and this sort of slow down happens 🤔 Does that fix your problem? |
The setting was already present when I tried to add it. However, it might have been added automatically, as performance seems to be much improved now. CommandLine Duration I haven`t done anything besides closing/re-opening VS Code a few times during testing. |
I've been having a similar problem for a couple VS Code versions, I think all since conpty support landed. Today, I tried the dom renderer setting, and it fixed the slow terminal output. FWIW, I often use Code via RDP, but I'm pretty sure I observed the same problem on the same machine working locally. Code 1.35.0 |
Issue Type: Performance Issue
When running a command which produces a long list of output, the rendering in the terminal is very slow. Here is an example running Get-Process in PowerShell Core 6.2:
Get-Process
Get-History -Count 1 | Format-Table Commandline,Duration
CommandLine Duration
Get-Process 00:00:26.3913173
The same command run with ConPty disabled:
CommandLine Duration
Get-Process 00:00:00.7955070
The same command run outside of VS Code (from pwsh.exe):
CommandLine Duration
Get-Process 00:00:00.7453859
VS Code version: Code 1.33.1 (51b0b28, 2019-04-11T08:27:14.102Z)
OS version: Windows_NT x64 10.0.18362
System Info
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: enabled
surface_synchronization: enabled_on
video_decode: enabled
webgl: enabled
webgl2: enabled
Process Info
Workspace Info
Extensions (34)
(1 theme extensions excluded)
The text was updated successfully, but these errors were encountered: