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

Refactor the chrono controller to have higher accuracy #72

Merged
merged 1 commit into from
Aug 11, 2023

Conversation

TrentHouliston
Copy link
Member

Currently, the chrono controller will often oversleep and the resulting timings can be a little off.
This refactors the controller so that it keeps track of how much it oversleeps and ensures that it spinlocks to have accurate timing.
This is a particular problem on the windows CI where the sleep accuracy is often up to 14ms off.

Extracted from #70

src/extension/ChronoController.hpp Show resolved Hide resolved
src/extension/ChronoController.hpp Show resolved Hide resolved
@TrentHouliston TrentHouliston merged commit 1ddd50f into main Aug 11, 2023
10 checks passed
@TrentHouliston TrentHouliston deleted the houliston/accurate_chrono branch August 11, 2023 02:21
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