mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-11-02 19:02:00 +00:00
perf(ui-lvgl): lower clock when idle, fewer redraws, wake on BLE frames
- CPU at 80 MHz with the screen on after 2 s without touch or animation; a touch restores the full clock before its frame is drawn - setText(): periodic refreshes no longer redraw unchanged labels (status bar, Home, lock, Diag, GPS, compass, clock, map, nav, nearby) - map markers kept across the 3 s rebuild when unchanged - app connected: the loop blocks until a BLE frame arrives (serialFrameArrived / hasPendingFrames) instead of polling every 2 ms - PSRAM: boot frame sprite and the HTTP response buffer released Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -182,6 +182,9 @@ public:
|
||||
|
||||
// direct access to the LGFX device (LVGL flush/touch glue)
|
||||
lgfx::LGFX_Device* lgfxDevice() { return &disp; }
|
||||
// LVGL draws straight to the panel: the frame sprite (76 KB of PSRAM) only
|
||||
// carried the boot "Loading..." -- given back once LVGL takes over.
|
||||
void releaseFrameBuffer() { buffer.deleteSprite(); }
|
||||
|
||||
// reliable touch read in logical (UI_ZOOM-scaled) coords; returns false when
|
||||
// not touched (LGFXDisplay::getTouch reads an uninitialized point on release)
|
||||
|
||||
Reference in New Issue
Block a user