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

App sucks battery #6

Open
stuartpb opened this issue Apr 20, 2013 · 1 comment
Open

App sucks battery #6

stuartpb opened this issue Apr 20, 2013 · 1 comment

Comments

@stuartpb
Copy link
Member

StepDub's constant accelerometer polling and background running cause it to be kind of a troublemaker with a phone's battery life.

Plan of action:

  • See if there's a profiler I can run the app through.
  • Add a "sleep mode" with reduced polling when the phone seems to be standing still (for when it's left on on a desk or something).
  • Maybe also activate this sleep mode liberally (or just make noise as a reminder that the app is running) when using/backgrounding the ninja shoes.
@stuartpb
Copy link
Member Author

Sleep mode implemented and working as of 6520aa0. I'm not sure if this necessarily fixed the battery life issue (or if it's even the app's code's fault and not, say, a byproduct of building with debug on), but I left it running for a while and then played one stage of Plants Vs. Zombies, and Plants Vs. Zombies had the higher battery use, so it's probably OK to at least some degree.

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