Skip to content

[meta] ISR-chunked streaming conversion for clockless / clocked drivers #3177

Closed

Description

@zackees

What this meta tracks

ISR-chunked streaming conversion for FastLED's clockless and clocked driver family. Each driver gets evaluated for whether its peripheral supports half-/done-transfer ISR + ring-buffer refill, and a sub-issue for the conversion is filed under this meta.

Why

Today's drivers fall into three patterns for how a frame of LED data reaches the wire:

Pattern Driver examples RAM cost Latency cost
One-shot block DMA RMT5 (current), SPI (current), LCD_CLOCKLESS (current), FlexIO (current), LPUART (planned for #3157), ObjectFLED full frame buffer (~3 bytes × N LEDs) show() blocks for whole-frame transmission
ISR-chunked streaming PARLIO ✅ (shipped), I2S ✅ (shipped) small ring buffer (~2 chunks × wave8 size) show() enqueues chunk-0, returns; ISR refills chunks 1..N
CPU polled streaming (none today; would apply to tiny MCUs without DMA) minimal CPU-bound, blocks

The wave8 streaming-ISR pattern (originally landed for PARLIO under #2428 / #2992, then for I2S) gives 3-10× RAM reduction on large grids and async semantics out of the box. Most other clockless drivers in the codebase still use one-shot block DMA and would benefit from the same conversion if the peripheral's hardware can support half/done-transfer ISRs.

Sub-issues

Each is a focused PR-able conversion against one peripheral. Order is roughly by ROI (RAM savings × user demand):

Out of scope for this meta

  • Tiny MCUs (LPC8xx, AVR) — RAM budget too small for ring-buffer streaming to be worthwhile. Stays in one-shot mode.
  • The rendering-hint API (sync vs async) — separate issue, controls how show() reports back to the user.
  • The transport-hint API (one_shot vs isr_stream vs cpu_poll) — separate issue, controls which path the driver picks when both are supported.

Cross-references

Activity

  1. zackees commented on Jun 16, 2026

    @zackees
    MemberAuthor

    Companion API issues for hint-controlled behavior filed alongside this meta:

    The two are orthogonal: RenderingHint is a caller-facing knob (sync vs async show), TransportHint is a driver-shape knob (one-shot DMA vs ISR-chunked vs CPU-polled). Both default to Auto = 0 so default-constructed channels keep working without changes. The streaming sub-issues here (#3178–#3183) deliver the IsrStream path on each driver.

  2. zackees commented on Jun 16, 2026

    @zackees
    MemberAuthor

    Retraction: the cross-link to #3184 / #3185 above is withdrawn — both hint issues have been closed as premature. The sync-vs-async rendering hint and the one-shot-vs-ISR-stream-vs-CPU-poll transport hint should not be locked into an API right now. This meta continues to track the per-driver ISR-streaming conversions on their own merits; the public hint API will be revisited once those conversions have shaken out.

  3. zackees commented on Jun 27, 2026

    @zackees
    MemberAuthor

    Closing as all sub-issues for clockless ISR-chunked streaming are now deferred/closed:

    No active streaming-conversion work in scope. ESP32 PARLIO/I2S streaming is the existing precedent; Teensy 4 drivers all work in sync mode at noise-floor accuracy. Reopen when a back-to-back-frame scenario requires streaming.

  4. moved this from Triage to Done in FastLED Trackeron Jun 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions