Skip to content

Reworked decorations debounce delay with special exception for scrolling#377

Merged
AndreasArvidsson merged 4 commits intomainfrom
decoration_delay
Dec 16, 2021
Merged

Reworked decorations debounce delay with special exception for scrolling#377
AndreasArvidsson merged 4 commits intomainfrom
decoration_delay

Conversation

@AndreasArvidsson
Copy link
Copy Markdown
Member

Removed single setting for debounce delay and replaced with two different default values.
60Hz for all decorations except visible ranges at 25Hz to improve performance and remove annoyance when scrolling.

@AndreasArvidsson AndreasArvidsson added this to the 0.24.0 milestone Dec 11, 2021
Copy link
Copy Markdown
Member

@pokey pokey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good but I'd like to have a quick play with it before we merge

Comment thread src/core/HatAllocator.ts
Comment thread src/core/HatAllocator.ts
Comment thread src/core/HatAllocator.ts
@pokey
Copy link
Copy Markdown
Member

pokey commented Dec 14, 2021

Ok just wired it up. Def nice to get that 16ms thing, but I think 40ms is a bit fast for scroll, as there are a bunch of refreshes as my momentum scrolling slows at the end. Maybe we could bump it up a little bit, or make it a setting?

@AndreasArvidsson AndreasArvidsson merged commit e17c60f into main Dec 16, 2021
@AndreasArvidsson AndreasArvidsson deleted the decoration_delay branch December 16, 2021 10:52
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