Repository navigation
perf(esp32): reduce legacy RMT4 channel overhead - #4881
Merged
zackees merged 1 commit intoOct 22, 2026
Merged
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This was referenced Oct 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Stacked on #4877. Reduce the restored ESP32 RMT4 footprint specifically for legacy
FastLED.addLeds<>()sketches;FastLED.add()keeps its Channel API path.Reuse
SlimBridgeControllerdirect mode, flushing fromendShowLeds()after all legacy strips enqueue. Wait for completion so asynchronous RMT polling releases frame ownership, honors latch time and advances queued strips. Select the RMT4 default through a template while honoringFL_SLIM_BRIDGE_DIRECT_SHOW=0independently of include order. Other backends keep their existing defaults.Measured result
Matched 96-RGB-LED reporter, Lolin D32, espressif32 6.13.0 / Arduino 2.0.17 / IDF 4.4.7:
bash bloatfinds no executableChannelManagersymbols in the default legacy reporter. The new managed override builds at 295,686 B flash / 23,844 B static RAM. Heap allocations for the existing SDK translator and pixel data remain.Compatibility
controller.showLeds(), dither restoration and legacycontroller.setEnabled().FL_SLIM_BRIDGE_DIRECT_SHOW=0when legacy controllers need those controls.Validation
bash lintpasses.UBSAN_OPTIONS=halt_on_error=1:print_stacktrace=1 bash test --cpp --debug --clean: 322/322 unit targets and 95/95 examples pass.The first incremental full run was rejected by the stale-artifact guard; the clean acceptance run above passes.
Physical byte validation is limited to the short legacy RX capacity; this does not establish long-strip waveform, Wi-Fi or flash-cache stress parity.