OnionUI / Onion

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

Fix `clock` CPU utilization #1656

Closed MattCatz closed 1 month ago

MattCatz commented 3 months ago

No need to redraw if there has not been any events. Poll for events about every 100 ms. Drops utilization from around 25% to less than 0.

Also swap -ffunction-sections -fdata-sections for LTO to save ~5 Kb of memory when loaded and probably an immeasurable amount of performance.

Below is the size difference using LTO: image

Addresses part of issue: https://github.com/OnionUI/Onion/issues/107