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
feat(channels): expose actual presentation timing for duration-aware dither #4517
#4500 requires a time-weighted emitted-light bound under variable frame dwell. Channel currently advances dither phase on accepted enqueue, while IChannelDriver exposes enqueue, show, and poll without a per-channel latch/presentation timestamp or held-frame duration. A queued frame can start later, be dropped/replaced, or remain displayed for unequal time. Submission time alone cannot prove the requested physical-light bound.
Proposal
Define a compact optional timing capability/event on channel drivers that reports when a frame actually becomes visible and when it ceases to be visible (or its dwell duration). Use it for duration-aware managed dither where available. Specify a deterministic fixed-cadence/unknown-timing fallback for drivers that cannot report it; do not change the accepted-enqueue phase behavior until the timing contract is explicit.
Acceptance criteria
Capture RED evidence with a fake driver that accepts the same eight frames but reports unequal presentation durations: the current submission-count phase model fails a time-weighted XYZ bound. Implement the timing path and turn it GREEN.
Cover queued versus latched timestamps, dropped/replaced frames, clock wraparound, asynchronous completion, multi-channel ordering, and drivers with no timing capability.
Document which built-in driver families can truthfully report timing and the accuracy claim permitted for the rest.
Bound per-channel state, ISR/runtime overhead, and small-tier flash cost; add representative tests for fixed and variable cadence.
Decisions
Put timing observability in the driver/channel contract, not in the color solver: only the driver knows when bytes became visible.
PR #4534 now implements the optional presentation-timing contract, bounded event timeline, tests for queued/latched/dropped/wrap/replay/multi-channel behavior, and explicit Unknown reporting for built-in drivers. The focused test, lint, and zero-delta ESP32-S3 size check passed. The full local C++ build stopped during linking due to zccache ambiguous delivery under load; CI is pending. This does not yet implement duration-aware dither compensation or prove the time-weighted XYZ GREEN criterion, so please keep this issue open until #4500 supplies that proof.
Correction: PR #4534 was closed without merge. It introduced a large optional timing API, but no built-in driver could provide measured visibility and no duration-aware dither consumer used it. It therefore did not satisfy the issue’s end-to-end time-weighted XYZ criterion. I am re-evaluating the smallest truthful timing contract and will not count #4534 toward this issue’s burndown.
Activity
zackees commentedon Sep 23, 2026
PR #4534 now implements the optional presentation-timing contract, bounded event timeline, tests for queued/latched/dropped/wrap/replay/multi-channel behavior, and explicit Unknown reporting for built-in drivers. The focused test, lint, and zero-delta ESP32-S3 size check passed. The full local C++ build stopped during linking due to zccache ambiguous delivery under load; CI is pending. This does not yet implement duration-aware dither compensation or prove the time-weighted XYZ GREEN criterion, so please keep this issue open until #4500 supplies that proof.
zackees commentedon Sep 23, 2026
Correction: PR #4534 was closed without merge. It introduced a large optional timing API, but no built-in driver could provide measured visibility and no duration-aware dither consumer used it. It therefore did not satisfy the issue’s end-to-end time-weighted XYZ criterion. I am re-evaluating the smallest truthful timing contract and will not count #4534 toward this issue’s burndown.