wez / wezterm

A GPU-accelerated cross-platform terminal emulator and multiplexer written by @wez and implemented in Rust
https://wezfurlong.org/wezterm/
Other
17.28k stars 781 forks source link

Very slow when typing #546

Closed octavz closed 3 years ago

octavz commented 3 years ago

Trying to use it in Windows 10, and I have for comparison Alacritty and Windows Terminal.

WezTerm seems to be fast enough when rendering and everything seems fine overall, a lot of features which makes it a very interesting choice on Windows and not only, given it's documentation, Lua configuration and a lot of other things.

However when I am typing there is quite a delay compared with others which makes it feel sluggish.

I don't have steps to reproduce, can't say if it is the same on other OSes, just typing everywhere seems to be delayed, tried it with different front_end, is the same, though I could see rendering being faster with OpenGL compared to Software.

Is there a settings that could affect the delay between key up and showing the character on the screen?

Thank you

mborejdo commented 3 years ago

I am also on windows and also really love wezterms featureset and capabilites. Definitely (one of) the best terminal emulators on windows. Considering your problem, I cannot reproduce this on windows 10. I once experienced this problem, running some scripts in the "update-right-status" event-handler, which spawned a lot of processes and also had this very sluggish typing feeling. Fixing that, solved the problem

wez commented 3 years ago

Could you provide more details that will help reproduce this? For keyboard related things, the following information can be helpful:

You mentioned a delay after key up; wezterm generates key events when the key is pressed rather than released, so I wonder if this might be latency with repaint/invalidation rather than input recognition.

Something else you may wish to try is changing https://wezfurlong.org/wezterm/config/lua/config/prefer_egl.html to false to see if that makes a difference.

alexherbo2 commented 3 years ago

I also feel like the typing is slow, running on NixOS with Sway.

The typing feels slow, but not very slow; just enough for me to notice. On the Kakoune Discord, we had others complaining about the slowness.

wez commented 3 years ago

The typing feels slow, but not very slow; just enough for me to notice. On the Kakoune Discord, we had others complaining about the slowness.

@alexherbo2 I tried to find those mentions on discord, but didn't find any matches when searching for wezterm

octavz commented 3 years ago

Also I am comparing same setup with Alacritty and Windows Terminal, Alacritty is very fast with everything, Windows Terminal is so so, Wezterm unfortunately is the slowest of these. Using it with Neovim with heavy colored files and scrolling back and forth also causing "screen tearing", is not always smooth

You can close this, I don't consider this a bug, but for me the speed is a game changer, since I use terminal to edit text faster :) otherwise would just use some desktop app.

Thank you

wez commented 3 years ago

@octavz would you mind trying the prior release and see if it feels better?

octavz commented 3 years ago

I tried it, unfortunately is not better. Like I said might be something local here, is just strange that the rest are faster.

octavz commented 3 years ago

Also I recorded, to see the difference for rendering on my computer, on the right is windows terminal:

Hope you can see it:

https://user-images.githubusercontent.com/23629302/111585772-791bb500-87c8-11eb-86bc-f95603aeb148.mp4

wez commented 3 years ago

Please give the latest nightly build a try when you have a few moments!

octavz commented 3 years ago

I downloaded from the site "Nightly Build" but it appears is a 14 march commit, where exactly do I get the nightly build from? Thanks.

wez commented 3 years ago

The "Nightly" download buttons are what you want: https://wezfurlong.org/wezterm/install/windows.html The version number reported by wezterm comes from git describe --tags and references the last release tag, along with the number of commits since that tag, and the git hash.

octavz commented 3 years ago

Well then, I tried it, tbh I don't see much improvement. I tried to use it on WSL (with X server) but it doesn't work, probably egl issues, it starts but it shows very bad colors.

So next I will make time and confirm if is sluggish on Ubuntu as well, I have a dual boot.

Thanks for trying to fix this, but if is only me then could be something on my machine (btw I don't have a slow machine, using last year XPS with I7, GTX 1650 Ti, 32GB).

If there is not much else to do please feel free to close the issue.

octavz commented 3 years ago

btw, checking my resource usage I observed that same setup, same file, same coloring, same everything, scrolling in vim with weztem eats a core 100% by comparison scrolling in Windows Terminal is negligible, might be related ?

azrsh commented 3 years ago

When using WezTerm on Windows 10, I too find the typing to be slower than with Alacritty or Windows Terminal.

wez commented 3 years ago

@azarashi2931 please also share wezterm --version

azrsh commented 3 years ago

wezterm --version outputs:

wezterm 20210314-114017-04b7cedd-141-gd7b78b41
wez commented 3 years ago

I've had a couple of users report slowness in vim when using airline. We traced this down to fallback font resolution and a number of improvements have been made in that area recently.

Please try the latest nightly build when you have a few moments and let me know how things feel!

octavz commented 3 years ago

Hey,

Just tried it for a few mins and it seems indeed better, will get back to you next week after I will spend some time with it.

Thanks

no-response[bot] commented 3 years ago

This issue has been automatically closed because there has been no response to the request for more information from the original author. With only the information that is currently in the issue, there isn't enough information to take further action. Please reach out if you have or find the answers we need so that we can investigate further.

azrsh commented 3 years ago

I just updated and tried it, and it seems to have solved this problem in my environment! Thanks! wezterm --version outputs:

wezterm 20210501-232335-6a1d14b2
aramacs commented 2 years ago

Don't know how the improvements are, but updating: The slow typing is happening yet with Neovim with Lualine installed. Made the same attempts with same files with vim and neovim without lualine and the typing was smoooth

egolep commented 2 years ago

I got the same problem with any colorscheme I use. If I don't use a colorscheme everything is smooth, independently from any other plugin and setup.

I'm using wezterm 20220905-171004-86c9d781

wez commented 2 years ago

Please file a new separate issue of your own if you are experiencing problems!

github-actions[bot] commented 1 year ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.