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

Screen stutters for modern GPU acceleration based terminals like Alacritty, iTerm2, etc; use redraw with NOT_VALID #29

Open
poetaman opened this issue Jul 25, 2021 · 0 comments

Comments

@poetaman
Copy link

Modern GPU based terminals draw the entire frame on redraws. The way to avoid screen from stuttering is to use a different approach to redrawing screen.

The solution is mentioned in neovim/neovim#14225 (comment), and vim/vim#8002 (comment). The solution is to redraw with
NOT_VALID, which would redraw everything but not clear the screen.

This problem is similar to vim on GPU accelerated terminals also has the problem and plans to fix it: vim/vim#8002

Here's an example of screen stuttering in peaclock (I am not pressing any keys in the video):

screensutter.mp4
@poetaman poetaman changed the title Screen stutters for modern GPU acceleration based terminals like Alacritty, iTerm2, etc Screen stutters for modern GPU acceleration based terminals like Alacritty, iTerm2, etc; use redraw with NOT_VALID Jul 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant