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

Don't redraw plot when scrolling #171

Open
dominikh opened this issue Jan 7, 2025 · 0 comments
Open

Don't redraw plot when scrolling #171

dominikh opened this issue Jan 7, 2025 · 0 comments

Comments

@dominikh
Copy link
Owner

dominikh commented Jan 7, 2025

Plot caches its draw calls and only repaints when the canvas has changed, as do many other parts of Gotraceui. However, using Canvas.unchanged invalidates the cache way too frequently, for example whenever the y position changes, i.e. when we scroll. We're only interested in changes to the canvas start and end, as well as the UI scale factor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant