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
The per-pixel colour pipeline is fixed point end to end. #4315 measured it reaching no float runtime, and #4454 records the budgets. What still uses float is the bind-time derivation, which runs once per profile:
buildRgbSolveMatrixQ16 (src/fl/gfx/device_solve.cpp.hpp) inverts the emitter matrix in float, then quantizes to s16.16.
EmitterProfile stores its chromaticities and luminances as float. A float-free bind needs a Q16 representation, or Q16 values computed at compile time for constexpr profiles.
Why it's separate
It is cross-cutting with P2's public profile type, which the legacy RGBW stack also consumes. The route to the float-free path is an API decision under the Public Settings Pattern.
Measured: binding a profile adds no float runtime on the ESP32-C6, so the real target is narrower
examples/ColorProfile built for esp32c6 (RISC-V, no FPU) with and without the binding: both link the same 39 soft-float helpers (__addsf3, __mulsf3, __divsf3, __fixsfsi, …). The ESP32 platform and the Channels API already pull them in, so the colour pipeline adds none.
So "a sketch that binds a profile links no float runtime" is not achievable by any change to the pipeline on this target. The meaningful version of this issue is that the pipeline's own bind-time code reaches no float helper, which is the TU-level reachability #4315 measured (buildStreamingPipelineQ16 → 33 helpers). That matters on a float-free build of a smaller part, not on an ESP32.
What it takes, for whoever picks it up:
Q16 profile inputs.Chromaticity, SourceProfile and EmitterProfile store float. A Q16 mirror computed in their constexpr constructors makes named and generated profiles free at runtime. It also grows every instance, and the legacy RGBW stack shares the type (P2).
Activity
zackees commentedon Sep 19, 2026
Measured: binding a profile adds no float runtime on the ESP32-C6, so the real target is narrower
examples/ColorProfilebuilt for esp32c6 (RISC-V, no FPU) with and without the binding: both link the same 39 soft-float helpers (__addsf3,__mulsf3,__divsf3,__fixsfsi, …). The ESP32 platform and the Channels API already pull them in, so the colour pipeline adds none.So "a sketch that binds a profile links no float runtime" is not achievable by any change to the pipeline on this target. The meaningful version of this issue is that the pipeline's own bind-time code reaches no float helper, which is the TU-level reachability #4315 measured (
buildStreamingPipelineQ16→ 33 helpers). That matters on a float-free build of a smaller part, not on an ESP32.What it takes, for whoever picks it up:
Chromaticity,SourceProfileandEmitterProfilestore float. A Q16 mirror computed in theirconstexprconstructors makes named and generated profiles free at runtime. It also grows every instance, and the legacy RGBW stack shares the type (P2).buildSourceMatrixQ16,buildBradfordMatrixQ16and the gamut map'sbuildRgbSolveMatrixQ16would route tobuildRgbSolveMatrixFromQ16(feat(gfx): float-free s16.16 3x3 inverse, the first half of P9 item 2 (#4043) #4305/feat(gfx): build the emitter matrix without floats, completing P9 item 2's derivation #4312), plus the white-allocation build. Each needs checking against the P5 golden corpus.Leaving this open as a design decision (1 is a public-type change); nothing here blocks P1–P9.
feat(color): bind a colour profile without the float runtime (FastLED…