• 0h, you're right, so that is wasteful indeed, doing it only in the interval of possible wake up would be enough. as for poll vs event, it doesn't matter if the event is fired with same frequency or setInterval is used, in both cases it drains battery by same amount of cpu computation. moving the math to native code could save a lot. Not sure how current step counting works but the trick to save power is to let the accelerometer work in batched mode - let it fill buffer while cpu sleeps and handle the buffer of more samples in one go

  • The step counter doesn't do that . I was going to ask about it, because I had a look at the documentation for the accelerometer and saw that we could, but I'm not sure if it is plausible because something else might consume the buffer before the step counter does (don't "taps" require the accelerometer too?). Or can the accelerometer provide the latest value while still filling the buffer until the step counter needs it?

About

Avatar for myownself @myownself started