Wiki: dots are sub-frame DMA glitches (panel 24/s while visible); OTA drops panel to 4-8 fps
Firmware / build (push) Successful in 6s
Firmware / build (push) Successful in 6s
This commit is contained in:
@@ -166,3 +166,6 @@ Step 1 of the display plan. New `src/modules/perf_monitor.cpp`: LVGL `monitor_cb
|
||||
|
||||
From the baseline findings. (1) `driveline_screen.cpp`: `setText()` / `setChip()` write a label or colour only when it differs — idle Driveline went from 9.7 fps, 30 ms/frame, 52 ms/s PSRAM copies, LVGL idle 68 %, core 1 idle 66 % to **0 fps, 0 ms/s, 96 %, 96 %** `(verified bench)`. (2) `perf` now counts the RGB panel's refresh-finished interrupt (attached in the port when tearing-avoidance is off): **≈24 vsync/s, longest gap 41.5 ms** = one frame at the 16 MHz pixel clock; a DMA restart will read as ≥ 83 ms — the first direct instrument for flicker and dots. (3) Periodic PERF moved from `loop()` to an esp_timer so it keeps reporting through the OTA download. Recorded on [[open-questions]] #13 and [[esp32-s3-touch-lcd-5b]]; root CLAUDE.md gained the "write only on change" rule for screen ticks. Next: provoke session with markers, then bounce buffers.
|
||||
|
||||
## [2026-09-27] ingest | Perf session with dots on screen + OTA: dots are sub-frame glitches, OTA kills 75 % of frames
|
||||
|
||||
`raw/perf-20260927-165903.log` → [[perf-dots-and-ota-2026-09-27]]. User started logging while dots/dashes were visible on the idle Driveline: LVGL 0 fps, cores 95 % idle, **panel 24–25 vsync/s with a 41.5 ms gap** — the frames were all on time, so the dots are FIFO underruns of a few pixels that the driver's restart-in-vsync never sees; only eyes can judge them, and bounce buffers (DMA from internal SRAM) are the designed cure. During `ota install` the panel fell to **4–8 vsync/s, gaps 290–747 ms** (332 ms = 8 frames recurring): each sector write disables the cache and starves the DMA — quantifies why the screen is unusable during updates and sets the step-3 target (24/s, 41.5 ms during install). Trim edits + deferred NVS save and `ota check` lost no frames. Still no markers typed — asked the user what was seen. Updated [[open-questions]] #13, [[esp32-s3-touch-lcd-5b]], index.
|
||||
|
||||
Reference in New Issue
Block a user