[ClockFace + Layout] Custom clock: battery drain #5193
Replies: 1 comment
-
Posted at 2022-09-19 by Hank Not sure if ClockFace and Layout libs do that automatically because I'm currently not using them, but are you drawing the screen every minute or so? If you draw the screen every cycle, it may be the reason. Posted at 2022-09-19 by Alessandro
Yes, I configured Clockface with a "precision" of 60 seconds.
Damn, I didn't notice I forgot to redraw my topbar only if something changed .-. I'll fix asap! Thanks! Posted at 2022-09-21 by Alessandro I updated the
Am I missing anything else? Posted at 2022-09-21 by rigrig Calling You could try removing lazy rendering, and do something like this:
Posted at 2022-09-21 by Alessandro Thanks, I can try it but I'm not sure about it: without the I have no widgets installed: only alarms, messages & android app. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2022-09-19 by Alessandro
Hello!
Lately I have little free time but I am trying to work on my own clock using ClockFace and Layout libs.
My goals are:
After I added the top bar I noticed a HUGE battery drain (30-40% per day!) but I don't undestand why.
What's wrong with my code?
The code is in my fork: https://github.com/alessandrococco/BangleApps/blob/poc-my-clock/apps/patclock/app.js
Thank you! :-)
Attachments:
Beta Was this translation helpful? Give feedback.
All reactions