perf(DisplayDriverTFT): Throttle alert redraws to prevent tearing

This commit is contained in:
2026-02-20 02:41:04 -08:00
parent ba8789797c
commit b68d36bb85
2 changed files with 11 additions and 1 deletions

View File

@@ -44,7 +44,9 @@ private:
// Touch hint for alert - progressive fill from bottom
bool _alertTouchDown = false;
uint32_t _alertTouchStartMs = 0;
uint32_t _lastAlertDrawMs = 0;
static constexpr uint32_t ALERT_FILL_DURATION_MS = 3000;
static constexpr uint32_t ALERT_DRAW_INTERVAL_MS = 333; // ~3fps
// Touch tracking for press/release detection
bool _touchWasPressed = false;