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

Automatically Adjust Detector Update Rate #16

Open
Valkryst opened this issue Nov 29, 2023 · 0 comments
Open

Automatically Adjust Detector Update Rate #16

Valkryst opened this issue Nov 29, 2023 · 0 comments

Comments

@Valkryst
Copy link
Owner

Though detectors should make an effort to respect the updatesPerSecond value passed to their start function, it is entirely possible that the user's device cannot run as fast as the developer requests. In these cases, we could use the StatRecorder class to keep track of the average runtime and adjust the update rate as necessary.

We never want to run faster than the specified updatesPerSecond, but it is acceptable to run more slowly.

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

No branches or pull requests

1 participant