Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix clock CPU utilization #1656

Merged
merged 3 commits into from
Oct 17, 2024
Merged

Fix clock CPU utilization #1656

merged 3 commits into from
Oct 17, 2024

Conversation

MattCatz
Copy link
Contributor

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: #107

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.
Copy link
Member

@Aemiii91 Aemiii91 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@Aemiii91 Aemiii91 added the enhancement New or improved feature label Aug 27, 2024
@tGecko tGecko added this pull request to the merge queue Oct 17, 2024
Merged via the queue into OnionUI:main with commit 58916b8 Oct 17, 2024
2 checks passed
@Aemiii91 Aemiii91 added bug in onion Something isn't working and removed enhancement New or improved feature labels Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug in onion Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants