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

Adjust timer use to alleviate flicker on scroll up #20

Closed
wants to merge 0 commits into from

Conversation

amarqueslee
Copy link
Contributor

I reworked the timer logic to have one timer running constantly running against the physics state. I believe that doing so reduces overheads/delays caused by repeatedly scheduling callbacks as in the original code. To keep the timer overhead light, the callback function is modified to short-circuit in cases where scrolling is not expected to take place.

On my machine, this resolves issue #17 (bad flickering scrolling up), which I experienced with vim in xterm ($TERM set to xterm-256color). I'd be interested to see feedback from others.

By the way, thanks for the cool plugin!

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

Successfully merging this pull request may close these issues.

1 participant