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

FR: Update API to allow setting refresh rate #96

Open
bramp opened this issue Oct 4, 2023 · 0 comments
Open

FR: Update API to allow setting refresh rate #96

bramp opened this issue Oct 4, 2023 · 0 comments

Comments

@bramp
Copy link

bramp commented Oct 4, 2023

The refresh rate is every ~32ms (Android, and iOS). I noticed my app spends more time than it should dealing with compass updates, and I'd happily receive them at a slower rate.

Would it be possible to change the API to make that configurable? Perhaps as arguments to the FlutterCompass constructor?

For now I rate limit myself, but it would be good if this rate limit goes all the way up to the OS.

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