Update Display Throttling (#15837)
This commit is contained in:
parent
bb5b1e19b0
commit
4db68d704f
@ -1033,6 +1033,7 @@ void MarlinUI::update() {
|
|||||||
// If still drawing and there's another page, update max-time and return now.
|
// If still drawing and there's another page, update max-time and return now.
|
||||||
// The nextPage will already be set up on the next call.
|
// The nextPage will already be set up on the next call.
|
||||||
if (drawing_screen && (drawing_screen = u8g.nextPage())) {
|
if (drawing_screen && (drawing_screen = u8g.nextPage())) {
|
||||||
|
if (on_status_screen())
|
||||||
NOLESS(max_display_update_time, millis() - ms);
|
NOLESS(max_display_update_time, millis() - ms);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -1050,6 +1051,7 @@ void MarlinUI::update() {
|
|||||||
|
|
||||||
// Keeping track of the longest time for an individual LCD update.
|
// Keeping track of the longest time for an individual LCD update.
|
||||||
// Used to do screen throttling when the planner starts to fill up.
|
// Used to do screen throttling when the planner starts to fill up.
|
||||||
|
if (on_status_screen())
|
||||||
NOLESS(max_display_update_time, millis() - ms);
|
NOLESS(max_display_update_time, millis() - ms);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user