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

Use DirtyValue for timer #2103

Merged
merged 1 commit into from
Sep 14, 2024
Merged

Conversation

mark9064
Copy link
Member

Currently the timer re-renders the digits every Refresh() cycle. As the digits are large on the display, this causes 100% CPU usage from DisplayApp.
This PR changes the timer to use DirtyValue so it only re-renders the digits when they change.

Copy link

Build size and comparison to main:

Section Size Difference
text 378868B -32B
data 948B 0B
bss 63488B 0B

@JF002 JF002 added this to the 1.15.0 milestone Sep 14, 2024
@JF002 JF002 merged commit fd019c7 into InfiniTimeOrg:main Sep 14, 2024
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants