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

fix: no tick with high accuracy #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

stevenh
Copy link
Contributor

@stevenh stevenh commented May 28, 2023

Fix the ticker not firing if the accuracy so small the underlying ticker can't achieve the given accuracy.

The ticker will now send a tick as soon as the target time is matched or has been passed.

This changes the behaviour so it won't fire early even when within accuracy.

Fixes: #4

@stevenh stevenh marked this pull request as draft May 28, 2023 13:22
Fix the ticker not firing if the accuracy so small the underlying
ticker can't achieve the given accuracy.

The ticker will now send a tick as soon as the target time is matched
or has been passed.

This changes the behaviour so it won't fire early even when within
accuracy.

Correct example to not use range as that will never end as we the
channel is never closed.

Fixes: Unity-Technologies#4
@stevenh stevenh marked this pull request as ready for review May 28, 2023 16:26
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.

Infinite loop
1 participant