-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
Terminal canvas renderer can be slow sometimes #72538
Comments
Have you compare the loading speed of native Terminal.app and VScode Terminal panel? |
Yes, normal Terminal is "normal" speed. If I close the terminal panel, VSC returns to normal speed. Note that it's not just the terminal panel in VSC that is slow ... it's the entire app, including any editor panels. I noticed same behavior on 3 separate machines. |
I see extreme slowness without having a terminal panel open. For now I downgraded to 1.32.3, and disabled auto update to make VSCode usable again. |
@dzg does this setting fix the problem?
See https://github.com/Microsoft/vscode/wiki/Performance-Issues for diagnosing performance issues. |
Yes, seems that it does! Thanks! |
You're probably hitting one of the issues that the canvas renderer just can't handle very well, such as:
The workaround for this is to use the DOM renderer, which typically will degrade performance in some focuses cases, but it should have better overall performance:
The end fix here is to bring xterm.js' WebGL renderer into VS Code xtermjs/xterm.js#2033 |
Even when I set it to This is what scrolling in 1987 looked like: |
@clankill3r the DOM being too slow for a huge highly dynamic buffer is exactly why I pursued the canvas implementation, but there are issues with a 2d rendering context that we simply cannot overcome without going lower level which is why I put together the WebGL renderer. Since your hardware seems to have issues with both, you can try it out if you want and let me know if it solves the perf issue. To try it out clone the xterm.js repo, launch the demo and hit the Enable WebGL Renderer button down the bottom: https://github.com/xtermjs/xterm.js/wiki/Contributing#linux-or-macos |
This isn't actionable outside of electron updates improving GPU support, new hardware or xtermjs/xterm.js#2033 |
Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for existing issues here. See also our issue reporting guidelines. Happy Coding! |
Issue Type: Performance Issue
Since a few days ago VS Code is EXTREMELY sluggish, to the point of not being useable.
I tried disabling ALL extensions (except builtin) but did not help.
I also deleted all support files/folders in ~/Library. Did not help.
This is even with just 1 single editor open.
Help!!!
UPDATE After some testing, it seems to happen when I open a terminal panel in VS Code. If I close the terminal panel, it returns to normal speed.
VS Code version: Code 1.33.1 (51b0b28, 2019-04-11T08:22:55.268Z)
OS version: Darwin x64 15.6.0
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: enabled
rasterization: unavailable_off
surface_synchronization: enabled_on
video_decode: enabled
webgl: enabled
webgl2: enabled
Process Info
Workspace Info
The text was updated successfully, but these errors were encountered: