From ebdebe04a76f0302aeb24c1ac08fa9217b1a8257 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Thu, 12 Nov 2026 03:17:32 -0300 Subject: canim: the ASan pair finished; a run's crossfade lasts its step The ASan run is recorded --until __asan_report_store1 and the scene finds its moments by what they are, not by count. The pair's tags name their run, ASan's stopped call reads never returned, and both disassemblies start level on their line. At a run a row's crossfade now lasts the whole advance and a chain crossfades when its memory changed: the pair's fast pass had thirteen one-frame changes and has none. Stale videos re-exported. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNCKgYCGiANnEwcEQxa --- anim/src/context.zig | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'anim/src/context.zig') diff --git a/anim/src/context.zig b/anim/src/context.zig index 8e0156d..7d56c62 100644 --- a/anim/src/context.zig +++ b/anim/src/context.zig @@ -262,9 +262,10 @@ pub const Registers = struct { const since = now.since(.cpu, delay); if (age == 0 and now.walking() and since >= 0) marks.extend = since; } - // At a run a value changes in place under an 8 f crossfade, unmarked, never in a frame. + // At a run a value changes in place under an 8 f crossfade, unmarked, never in a frame; so does its chain where what it reads changed. const ran = runFade(now, .cpu); - if (ran < 1 and value_was != value_now) _ = rows.reg(u.faded(1 - ran), y, w, name, was.moment, value_was, marks); + const fades = ran < 1 and (value_was != value_now or cursors.chainMoved(was.moment, is.moment, value_now)); + if (fades) _ = rows.reg(u.faded(1 - ran), y, w, name, was.moment, value_was, marks); // Its chain reads memory as the panels show it: what the step writes // there is followed again (`extend`) once the bytes have landed, never before. var memory = if (landed or ran < 1) is.moment else was.moment; @@ -272,7 +273,7 @@ pub const Registers = struct { memory, const again, marks.hops = now.following(value_now); if (again) |ago| marks.extend = @min(marks.extend orelse ago, ago); } - const hops = rows.reg(if (ran < 1 and value_was != value_now) u.faded(ran) else u, y, w, name, memory, if (landed or ran < 1) value_now else value_was, marks); + const hops = rows.reg(if (fades) u.faded(ran) else u, y, w, name, memory, if (landed or ran < 1) value_now else value_was, marks); fdNote(u.faded(note_shows), hops, y, note); anchor(u, i, hops, y, if (landed or ran < 1) value_now else value_was, w); } -- cgit v1.3