You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Convert ESP32-S3 Bus::LCD_CLOCKLESS driver from one-shot block DMA to ISR-chunked wave8 streaming.
Why
LCD_CLOCKLESS (ESP32-S3 LCD/I80 peripheral repurposed for clockless LED output) is currently the highest-throughput Teensy 4 / ESP32-S3 clockless option but runs in block-DMA mode. For huge channel counts (parallel LED matrices) the per-frame buffer can hit ESP32-S3 SRAM pressure. ISR-chunked streaming keeps a wave8 ring buffer and refills as chunks consume.
Scope
Wire the LCD_CLOCKLESS encoder into a ring-buffer feeder.
Use the LCD peripheral's vsync/hsync-equivalent or DMA half/done interrupts to refill.
Signal channel_poll_signal on done.
Auto-select via transport-hint API.
Acceptance
Frame-rate equivalent to block-DMA on small-channel test.
Memory profile shows ~5× peak buffer reduction on a 16-channel × 256-LED parallel test.
bash autoresearch esp32s3 --lcd continues to pass.
Cross-driver wave8 byte-equivalence test confirms bit-identical wire output.
Burn-down disposition: DEFER ? the requested architecture is present, but the issue's hardware/performance acceptance was never demonstrated, so it is not safe to close as completed.
fix: stream ESP32-S3 LCD clockless chunks #2703 fixed the multi-chunk corruption with worker-task refill, fixed-size padded transactions, pending-transfer tracking, and byte-fidelity regression coverage.
Current source has a 3-slot ring, ISR completion callback, worker refill, poll wake callback, multi-chunk/ring-wrap/error tests, and a 400-LED chunked-vs-reference byte-equivalence test.
No comment/PR records the issue's small-frame frame-rate comparison or the required peak-memory profile for 16 lanes ? 256 LEDs.
The memory claim especially needs measurement: current allocation is three slots, and for frames smaller than the 1024-byte default each slot is sized to the whole frame, so a 16?256 one-chunk case does not structurally demonstrate a 5? reduction.
Attach an ESP32-S3 and run bash autoresearch esp32s3 --lcd --lanes 16 with both a one-chunk 256-LED case and a forced multi-chunk >341-LED-per-lane case on current master.
Preserve byte/edge evidence and sustained back-to-back results; verify no ISR watchdog, underrun, stale callback, or cross-driver ownership failure.
Record frame time against the old one-shot implementation for a small case.
Instrument peak internal RAM and PSRAM for the exact 16?256 acceptance case and a genuinely large multi-chunk case. If three full-size slots regress small-frame memory, allocate only min(totalChunks, 3) slots or otherwise correct the policy.
Land any needed memory fix and close with the measured results; if the original 5? target is invalid for 16?256, amend the acceptance transparently rather than asserting it passed.
This is close to code-complete, but the missing post-fix S3 and memory evidence is the issue's central claim.
Activity
zackees commentedon Aug 20, 2026
Burn-down disposition: DEFER ? the requested architecture is present, but the issue's hardware/performance acceptance was never demonstrated, so it is not safe to close as completed.
What is already implemented:
Why this cannot be closed yet:
Restart criteria:
bash autoresearch esp32s3 --lcd --lanes 16with both a one-chunk 256-LED case and a forced multi-chunk >341-LED-per-lane case on current master.min(totalChunks, 3)slots or otherwise correct the policy.This is close to code-complete, but the missing post-fix S3 and memory evidence is the issue's central claim.