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

optimisation: simplify two LCD messages #4461

Merged
merged 1 commit into from
Nov 16, 2023
Merged

Conversation

gudnimg
Copy link
Collaborator

@gudnimg gudnimg commented Oct 21, 2023

There is no need to restrict how often the message is rendered. It was being restricted to render every 1 second. We don't do this for most of the static menus. So I propose this 1 second period be removed.

Tested on MK3S+

Change in memory:
Flash: -168 bytes
SRAM: -8 bytes

@gudnimg gudnimg added this to the FW 3.14.0 milestone Oct 21, 2023
@github-actions
Copy link

github-actions bot commented Oct 21, 2023

All values in bytes. Δ Delta to base

Target ΔFlash ΔSRAM Used Flash Used SRAM Free Flash Free SRAM
MK3S_MULTILANG -168 -8 245864 5630 8088 2562
MK3_MULTILANG -168 -8 245150 5639 8802 2553

There is no need to restrict how often the message is rendered.
It was being restricted to render every 1 second. We don't do
this for most of the static menus. So I propose this 1 second period
be removed.

Tested on MK3S+

Change in memory:
Flash: -168 bytes
SRAM: -8 bytes
Copy link
Collaborator

@3d-gussner 3d-gussner left a comment

Choose a reason for hiding this comment

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

Tested on MK404. works well and saves resources

@gudnimg gudnimg merged commit 400722e into prusa3d:MK3 Nov 16, 2023
5 checks passed
@gudnimg gudnimg deleted the lcd-opt-message branch November 16, 2023 07:37
@3d-gussner 3d-gussner removed their assignment Nov 29, 2023
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