Onion icon indicating copy to clipboard operation
Onion copied to clipboard

Fix `clock` CPU utilization

Open MattCatz opened this issue 6 months ago • 0 comments

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

MattCatz avatar Aug 23 '24 22:08 MattCatz