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

Android low fps #7

Closed
devoren opened this issue Oct 10, 2023 · 1 comment · Fixed by #9
Closed

Android low fps #7

devoren opened this issue Oct 10, 2023 · 1 comment · Fixed by #9

Comments

@devoren
Copy link

devoren commented Oct 10, 2023

Hello! Thanks for the wonderful library! On Android the timer mode is blocking my js and I can't do anything 😢 with my custom countDown that uses useState fps being around 52-55 fps but I have multiple timers of around 10 on the page so I tried this library. Works fine but js is blocked :(

image
@rgommezz
Copy link
Owner

From version 1.3.0 onwards, you can use the intervalMs prop to decrease the frequency at which the interval fires to update the timer, in combination with trailingZeros.

Looking at your screenshot, probably a good configuration could be:
intervalMs = 100
trailingZeros = 1

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