fix(review): const→static readonly Debug silences CS0162; update stale rAF comment to renderedPlayhead()

This commit is contained in:
daniel-c-harvey
2026-06-15 22:44:20 -04:00
parent 65e5e09245
commit 44a15bf67d
2 changed files with 6 additions and 5 deletions
@@ -742,10 +742,11 @@ export function create(canvas: HTMLCanvasElement): MixVisualizerHandle {
//
// Smoothness (spec §2e / §5.4): the scroll must advance every animation frame, not
// step at Blazor's ~10 Hz playback-push cadence. We achieve that by interpolating
// the playhead on the wall clock — each frame uploads effectivePlayhead(), which
// advances the last pushed position by real time elapsed since the push. (The
// separate uTimeSeconds monotonic clock is reserved for Wave 3's field/blob motion
// and is unused by this parity shader; it is NOT what drives the scroll here.)
// the playhead on the wall clock — each frame uploads renderedPlayhead() (= effectivePlayhead()
// + the decaying jitter-correction offset), which advances the last pushed position by real time
// elapsed since the push and blends out any accumulated timing error. (The separate uTimeSeconds
// monotonic clock is reserved for Wave 3's field/blob motion and is unused by this parity shader;
// it is NOT what drives the scroll here.)
/** Draw one still frame immediately, without scheduling a new rAF. */
function redrawOnce(): void {