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

Fixes for analog timer. #3

Merged
4 commits merged into from
Oct 24, 2010
Merged

Fixes for analog timer. #3

4 commits merged into from
Oct 24, 2010

Conversation

kamitchell
Copy link
Contributor

Please pull these fixes, which fix some edge cases with floating point rounding errors due to non-integral timer interval.

I know the math is kind of belabored, probably there will be refactorings; Randy is looking into that.

Nothing like patching up the code 1 hour before the Blitz talks.

Thanks for starting this project!

Kevin

- Use in appropriate places.
- Account for floating point rounding errors in adding up
  secondsElapsed.
- Account for rounding errors with a timer in fractional seconds.
- If within UPDATES_PER_SECOND/2 of the stopping time, suppress the
  slide advance.
This pull request was closed.
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.

1 participant