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
Avoid screen refreshes #34
Labels
upstream
Must be fixed in some dependency
Comments
Closed
walles
added a commit
that referenced
this issue
Apr 18, 2021
* Fixes #37 * Fixes #34 * Replaces #44 * Makes window resizing smoother. Before this change, the main loop was roughly: * Await one single user input event * Handle single user input event * Redraw screen With this change in place, the main loop is: * Await one single user input event (like before) * Handle single user input event (like before) * If there are no more events, redraw screen (new!) The difference is huge if you do a fling scroll on a trackpad. Before, scrolling was slow at constant speed, and the scrolling kept on at that slow constant speed way longer than what it should have. Now, scrolling feels just like it should.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using this: gdamore/tcell#422
I did some profiling, and my terminal app is maxing out the CPU while I'm scrolling.
If I could not update the screen when there are pending events, that would improve things. I have experimented and it was nice!
Ref:
moar/m/pager.go
Lines 781 to 782 in db4acb5
The text was updated successfully, but these errors were encountered: