zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
49.04k stars 2.96k forks source link

Terminal input is slow #18263

Open bersace opened 1 month ago

bersace commented 1 month ago

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

Zed: v0.153.6 (Zed)
OS: Linux Wayland debian 12
Memory: 15.3 GiB
Architecture: x86_64
GPU: Intel(R) UHD Graphics 620 (WHL GT2) || Intel open-source Mesa driver || Mesa 22.3.6

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

bitfield commented 1 month ago

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.

JosephTLyons commented 4 weeks ago

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).

bersace commented 3 weeks ago

@JosephTLyons , thanks for your attention.

Here zed is struggling:

zed.webm

While alacritty is fine enough (inside Zellij):

alacritty.webm

Sh4d1 commented 2 weeks ago

I noticed the same (Linux, 0.156.0), but mostly in nvim inside zed

failable commented 2 weeks ago

Same issue especially when using helix in terminal.