Repository navigation
Description
Context
#4452 fixed #4156 R8's phase-correlated dropped submission case: a channel now advances its phase only when its driver accepts a frame. The remaining timing requirement in docs/color-pipeline-contracts.md is to evaluate dither accuracy using time-weighted emitted XYZ over a declared cadence and observation window, including irregular dwell. Current temporal dither (src/fl/channels/color_managed_source.cpp.hpp) advances through eight fixed thresholds once per accepted frame. A frame held twice as long contributes twice the light, so presentation-count balance alone does not establish the time-weighted mean. The tests describe gaps between attempts as “irregular dwell” but do not weight emitted output by actual hold duration.
Proposal
Define the supported presentation-timing contract for managed dither and validate it. If the desired claim includes variable dwell, make the dither allocator duration-aware or add a documented cadence requirement/fallback for drivers without duration feedback. Preserve the accepted-frame phase fix.
Acceptance criteria
- Capture RED evidence with identical source/profile and eight accepted frames but unequal hold durations: show the time-weighted emitted XYZ differs from the intended mean. Implement the chosen timing behavior, then make its stated accuracy bound GREEN.
- Cover regular cadence, variable dwell, dropped attempts, and a deliberately phase-correlated duration pattern. Compute light over elapsed time before perceptual error, using a declared observation window.
- Specify the accuracy claim for drivers with actual presentation/hold timing versus unknown timing; use feat(channels): expose actual presentation timing for duration-aware dither #4517 for the optional timing capability and avoid advancing phase on a rejected frame.
- Check throughput and state cost on representative channel types.
Decisions
- Separate dwell from drops: fix(dither): a channel's dither phase advances on presentation, not attempt (#4347) #4452 solved the latter, while different hold times can bias a complete eight-phase cycle.
- Do not prescribe timing feedback on every driver before measuring the supported cadence and implementation cost.
Related issues
- Meta: color-pipeline review findings burndown (R1–R10, D1) #4156 R8, Color pipeline: final implementation tracker #4034, feat(channels): expose actual presentation timing for duration-aware dither #4517 (driver timing prerequisite), R8: dither state advances on frame attempt, not presentation, and dropped frames consume a phase #4347 (closed drop-phase issue), fix(dither): a channel's dither phase advances on presentation, not attempt (#4347) #4452 (merged fix).
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
zackees commentedon Sep 23, 2026
Fixing this is too costly in ramifications for the engine.If the user can't do frames fast enough then they should shut off to their