OnionUI / Onion

OS overhaul for Miyoo Mini and Mini+
https://onionui.github.io
GNU General Public License v3.0
3.33k stars 209 forks source link

Manage CPU consumption of Onion's Apps #107

Open schmurtzm opened 2 years ago

schmurtzm commented 2 years ago

CPU consumption report : (Checked when it is solved /optimized)







Aemiii91 commented 2 years ago

installUI and chargingState are OK, they have animations.

bootScreen doesn't have a main loop, it's exits immediately after drawing to screen once.

schmurtzm commented 2 years ago

infopanel is fine when we put a sleep into the main while (just tested).

Aemiii91 commented 1 year ago

Search improved by 486d2f10c133733a4250f090bc5c04ccdf452c93

schmurtzm commented 11 months ago

Theme Switcher & Clock still requires to be fixed in 4.2.3 ;)

MattCatz commented 1 month ago

Sorry to poke an old issue.

  1. Any reason to not to enable compiler optimization by default? i.e. at least -Og ( I know -Os is enabled for a few of those ). Also enabling LTO for that cross compilation unit optimization?
  2. With Clock specifically, the main event loop seems to run ungoverned. Could you save a bit of cycles by adding a little bit of delay in there and/or only redrawing if the time changes or you get a user input?

I'd be happy to test if you shared your test procedure.