-
-
Notifications
You must be signed in to change notification settings - Fork 833
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
Input lag when typing when webgpu is enabled #3122
Comments
I think I am getting the same issue on MacOS (delay). It must have started pretty recently as I have never noticed that before.
Lag is noticable/only occurs after few moments of inactivity. Lag is gone when
are removed from configuration. Also, I am not getting those OSC warnings, only message printed in debug overlay is
|
If the two settings you mentioned to the configuration, the lag becomes significantly worse, to the point where wezterm basically freezes. |
I was having the same problem as you, but on a nvidia card. I fixed it by launching wezterm with: Btw, I'm also using webgpu front end. |
Unfortunately that doesn't fix it for me. I also tried different shells, just in case it's to do with one of my zsh plugins. But it even happens with sh. |
For my case, it's fixed when I changed |
This should be resolved now in It typically takes about an hour before commits are available as nightly builds for all platforms. Linux builds are the fastest to build and are often available within about 20 minutes. Windows and macOS builds take a bit longer. Please take a few moments to try out the fix and let me know how that works out. You can find the nightly downloads for your system in the wezterm installation docs. If you prefer to use packages provided by your distribution or package manager of choice and don't want to replace that with a nightly download, keep in mind that you can download portable packages (eg: a If you are eager and can build from source then you may be able to try this out more quickly. |
I'm still experiencing the exact behavior OP described on arch linux, wayland, KDE, nvidia gpu drivers, and wezterm 20230423-141957-9ec79733 run via the WezTerm-nightly-Ubuntu20.04.AppImage Colors are substantially off as well as very noticeable input lag. Happy to provide any logs that could be helpful! |
@bleomycin Some users have reported performance problems when running the AppImage that are not present when using packages built for their system. Can you try a non-flatpak, non-appimage package to rule that out? |
Happy to! I just tested again with the binary from "wezterm-nightly.Ubuntu20.04.tar.xz" as well as compiling the latest from master:
Both of these versions, as well as the latest version available from the arch repo all exhibit the same behavior:
|
I am also still experiencing it on front_end = 'WebGpu',
webgpu_power_preference = 'HighPerformance',
Any kids/debug information I can provide on top of that? |
I'm going to close this issue as the one that we were tracking with this has been resolved. If you are using macOS, please open a separate issue: the original issue was entirely Wayland specific and there's no way it can be the same root cause. If you are using nvidiva + wayland note that there are several open issues:
If you are experiencing an issue, please open a new issue so that we can work through it effectively. |
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. |
What Operating System(s) are you seeing this problem on?
Linux Wayland
Which Wayland compositor or X11 Window manager(s) are you using?
arch linux wayland with Hyprland compositor.
WezTerm version
20230212-103106-a5c2b1f3
Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?
Yes, and I updated the version box above to show the version of the nightly that I tried
Describe the bug
Input lag when typing. It's hard to show an example, but there seems to be a 100-200ms delay when I type into wezterm for the first few characters. I suspect it has to do with the error about the unhandled OSC 12 escape sequence.
The shell I use is zsh. No issues when using Alacritty or Kitty. I recently downloaded wezterm and only have a minimal configuration.
Apart from the input lag, the colors seem to be off. Here is a screenshot of alacritty (left), wezterm (middle) and kitty (right) with the same neovim config side by side.
When I open neovim, I get the following error in the debug overlay:
17:50:18.803 WARN wezterm_term::terminalstate::performer > Unhandled OSC 12
To Reproduce
Install wezterm-git via the aur and launch it with a minimal config on a wlr-based compositor.
I also tried the the binary included in standard arch repos. No difference.
Configuration
Expected Behavior
No response
Logs
Anything else?
No
The text was updated successfully, but these errors were encountered: