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

Add reduce function to prevent sheet from lagging #368

Merged
merged 1 commit into from
Dec 23, 2023

Conversation

PaulPickhardt
Copy link
Member

The laggy scroll is caused by too many line items being painted in the height chart.
Tries to cache or repaint the height chart less didn't work for me.

The solution applied is to reduce the number of lines used for the height chart. This is made by homogeneously removing coordinates from the given dataset of the height chart so that 100 points are left at max.

The difference in the quality of the height chart is shown below:
Before
Bildschirmfoto 2023-12-22 um 15 20 46
After
Bildschirmfoto 2023-12-22 um 15 19 41

The algorithm could be optimized by not removing local maxima.

@PhilippMatthes PhilippMatthes merged commit 6f3f376 into dev Dec 23, 2023
1 check passed
@PhilippMatthes PhilippMatthes deleted the fix/sheet-laggy branch December 23, 2023 07:41
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