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
{{ message }}
Repository navigation
perf(rmt5): stop enabling/disabling the RMT channel around every frame (#5356) #5359
Sub-issue of #5356 (show() latency on the ESP32-C6 forced-RMT legacy path).
Cause
ChannelEngineRMTImpl enables the RMT channel before every frame and disables it again when the frame completes:
processPendingChannels() calls rmt_enable() for every transmission.
poll() calls rmt_disable() on completion, before releaseChannel().
The channel is then reused on the same pin by the next frame, so the pair only costs time. ESP-IDF's rmt_enable() / rmt_disable() take the channel spinlock, toggle the PM lock and touch the GPIO/RMT registers.
Keep a reused channel enabled between frames. Disable it only where the handle is deleted (pin change, encoder failure, network reconfiguration, destructor) through a single deleteHwChannel() helper, because rmt_del_channel() rejects an enabled channel.
The RMT mock now enforces the same IDF state rules (no double enable, no delete while enabled) and counts enables.
Activity
perf(rmt5): keep a reused RMT channel enabled between frames (FastLED…