-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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 input is slow #18263
Comments
This bothers me too (on macOS). It's not that the terminal is slow, per se—it doesn't visibly lag when writing lots of output. The problem seems to be the keystroke latency, especially when editing the command line. For example, if you simply hold down the spacebar, you can see the cursor stuttering and juddering, slowing down and speeding up from time to time as it struggles to keep up. It's annoying enough that I now switch to a dedicated terminal app when doing anything non-trivial in the Zed terminal. |
Would love to see a screen video of this, as I can't seem to reproduce it on my end on macOS (haven't tested on Linux yet). |
@JosephTLyons , thanks for your attention. Here zed is struggling: zed.webmWhile alacritty is fine enough (inside Zellij): alacritty.webm |
I noticed the same (Linux, 0.156.0), but mostly in nvim inside zed |
Same issue especially when using |
Same issue especially when using msys2 and powershell on windows in terminal. |
Similar issue using remote ssh with zed, I believe it's related to network performance. The character input in terminal has extremely high latency on poor network connections (coffee shop, hotel, etc). It sometimes becomes unbearably slow to type with characters appearing a few seconds after input. The issue isn't present with a strong/fast internet connection.. Seems for ssh, the terminal rendering each character is network dependent (send character -> receive confirmation -> render?) |
I can see the same input lag on macOS as well, when I open up Neovim (even if I start it in --clean mode) in the Zed terminal. It's a bit annoying, as I'm using Neovim to resolve merge conflicts, but the terminal gets so slow that I have to use something else. |
I noticed that when I open a remote session with Zed and launch a terminal and Neovim on the host, I cannot detect the stuttering that occurs in a local session. |
Okay, one more thing, I have a hunch that it might be related somehow to how much I zoomed in on the terminal. I managed to reproduce it quite deterministically by zooming in and out in the terminal and stepping on j and k in Neovim. As I zoom out, after a certain time, the scrolling of the buffer freezes until I stop pressing the key again. Screen.Recording.2024-12-03.at.00.01.33.mov |
Check for existing issues
Describe the bug / provide steps to reproduce it
Hi,
Thanks for Zed. It's getting better and better every weeks.
I adopted Zed the day it was available for Linux. I already use alacritty as my terminal, it's super fast. Ever since, typing in Zed embedded terminal is slow. Sometime, it's snappy. But most of the time, it stutters.
Environment
If applicable, add mockups / screenshots to help explain present your vision of the feature
I don't know how to investigate this. I'm open to help.
If applicable, attach your Zed.log file to this issue.
I did not found anything special regarding this in Zed log.
Regards,
Étienne
The text was updated successfully, but these errors were encountered: