Repository navigation
feat(power): bound mixed managed frames with a shared Q16 prepass - #4542
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configurationConfiguration used: Repository: FastLED/FastLED/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (16)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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 |
|
CI bloat gate found a real unused-path regression: ESP32-S3 Blink linked symbol flash 389,909 B vs the pinned 383,140 B baseline (+6,769 B). The linked symbols include |
|
A second pre-fix CI blocker is Windows |
c89c0df to
2e7c261
Compare
|
Host prepass-plus-encode benchmark (in-memory capture driver, no LED output or wire time) is now committed in 2e7c261. Three profile runs on this host gave median FastLED.show() CPU time per frame, with three channels (legacy RGB + managed RGBW + managed RGBWW):
These are host-tier CPU measurements only, not MCU timing, physical light, or wire time. The C6 benchmark is still pending wiring confirmation because generic AutoResearch firmware performs a boot-time GPIO probe. The latest prior-revision ESP32-S3 Blink bloat result was 383,216 B (+76 B) with no managed solver symbols linked; the branch has been rebased onto current master and a new CI run is pending. |
|
CI size evidence for 98e7252: the ESP32-S3 bloat gate passed at 383,134 B (pinned baseline 383,140 B). I compared its uploaded report with the master run at a57b77d: flash 383,139 -> 383,134 B (-5 B), RAM 40,819 -> 40,819 B (unchanged). No FramePower / managed-show / histogram symbols appear in the unbound Blink image. Focused power-prepass quick + debug tests and C++ lint passed locally. The broader CI matrix is still running. A profile-bound sketch without a power limit still links the profile-side histogram callbacks; that narrower pay-for-what-you-use boundary is the remaining advisory size tradeoff, not hidden by the Blink result. Device throughput remains unverified until the attached ESP32-C6 output wiring is confirmed safe; no light was emitted by these tests. |
|
ESP32-C6 device throughput (attached board, AutoResearch RPC smoke PASS; user confirmed no strip on default GPIO1): |
Tracks #4499 and #4156 R3/R4.
Implements a stable shared frame-power snapshot and Q16 scalar for mixed legacy RGB and managed RGB/RGBW/RGBWW output. Candidate demand follows solved emitter response, output quantization, dither reserve, and native current fields; allocation failure fails closed. The public estimated-power and isPowerLimited reports reflect the managed Q16 decision. Includes focused tests, contract documentation, a host prepass profile, and a capture-only AutoResearch mixed-channel show benchmark RPC.
Validation on head 98e7252:
Pay-for-what-you-use boundary: an unbound Blink sketch has no added flash or RAM. A sketch that binds a color profile without a power limiter still links the profile-side histogram callbacks; that advisory cost is not claimed as zero.
Draft until the remaining CI checks pass and the QEMU timeout is resolved. P10 measured photometry is a separate instrument gate: datasheet intensity/current figures are not used as a substitute for light-output measurements.