Skip to content

FIx redraw mechanism to be based on buffer and not viewport #913

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

Closed
wants to merge 2 commits into from

Conversation

LudvigHz
Copy link
Contributor

@LudvigHz LudvigHz commented Aug 23, 2023

Also updates node-sass to latest version to support newer node versions.

The README states that the canvas should redraw when there is 1/2 of the buffer left off-screen on any side of the viewport. However, the code calculates the redraw based on 1/2 of the viewport and not the buffer. This PR fixes this. This means that for buffers larger than the default, we re-render way less often, providing for better performance with large timelines. As it is now, for many tasks (~1000) the canvas continuously re-renders when scrolling, and the rendering cannot keep up with scrolling, forcing the items to appear as they jump around a lot.

I don't know if this repo is actively maintained, but we will use our own fork (NPM) as long as this PR is open and the repo appears unmaintained.

Previously, when to redraw was statically set to 0.5x the displayed
interval. Most likely this is a bug as it should redraw when only half
of the configured buffer size remains outside the viewport.
@LudvigHz
Copy link
Contributor Author

LudvigHz commented Oct 1, 2024

This is obviously not maintained, so I'm going ahead and closing this :)

@LudvigHz LudvigHz closed this Oct 1, 2024
@Ilaiwi
Copy link
Collaborator

Ilaiwi commented Nov 17, 2024

Hi @LudvigHz, we released a new version with updated dependencies. Please feel free to test out the new version and reopen this PR.

@LudvigHz
Copy link
Contributor Author

Thanks @Ilaiwi. I rebased the changes on master and opened a new PR: #936

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.

2 participants