Skip to content
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

Lag on input (severe with a held key) #1556

Open
patrick-kidger opened this issue Jul 3, 2022 · 6 comments
Open

Lag on input (severe with a held key) #1556

patrick-kidger opened this issue Jul 3, 2022 · 6 comments

Comments

@patrick-kidger
Copy link

patrick-kidger commented Jul 3, 2022

I recently discovered Zellij and it seems pretty cool!

However, I've come across poor performance in one particular case. I'm connecting to a remote Linux machine over SSH; Zellij is installed on the remote machine; the local machine is using Chrome Secure Shell.

In this case, I'm getting pretty bad input lag. After typing a single key it only appears after about (eyeball'd guesstimate) 200ms. When holding down a key, the stream of inputs seems to back up. For example I might hold the enter key (on the terminal) for 5 seconds, release it, and then have the window continue scrolling for another 5 seconds before stopping. This behaviour is common across programs (fish, nvim, etc.)

What's pretty weird is that I'm only getting this issue in this one scenario. Using Zellij with a different terminal is fine. (Which is why I mention the choice of terminal above.) Using Zellij locally is fine. The SSH connection is also fine: when using no multiplexer, or using tmux, there is no lag at all.

Info

Unfortunately I can't attach any output from a corporate machine. :/

Further information

This is Zellij version 0.30.0, installed via cargo install zellij.

I appreciate this report may be borderline-unreproducible on your end! If you've seen anything like this before I'd be happy to try a few possible fixes and see if anything sticks. Other than that, I just thought I'd make you aware of this issue.

@raphCode
Copy link
Contributor

raphCode commented Jul 5, 2022

Hi, thanks for reaching out!
You could try to get some CPU / system load readings to see if some processes involved (zellij server, zellij client, ssh, chrome native shell) show something suspicious.

The tmux comparison is using the same terminal implementation?

@patrick-kidger
Copy link
Author

patrick-kidger commented Jul 5, 2022

Nothing seems suspicious unfortunately; the CPU isn't being overloaded etc.

Yes, the tmux comparison is using the same terminal implementation.

@raphCode
Copy link
Contributor

raphCode commented Jul 6, 2022

I'm a bit out of luck then, but I remember similar reports of low performance in some niche setups.

You could try to throw a sampling profiler at the zellij processes to see where the time is spend. I am new to profiling, so I don't know if that works properly, since we use a lot of threads.

@raphCode
Copy link
Contributor

Here I collected some info on how to do some profiling, maybe you can give it a try?
#296 (comment)

@raphCode
Copy link
Contributor

Interesting information, I will try to investigate.

@a-kenji
Copy link
Contributor

a-kenji commented Jul 31, 2022

@dzerus3,
If you are using cargo install, did you try installing it with the information in the readme?

cargo install --locked zellij

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants