diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-12 03:17:32 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-12 04:45:57 -0300 |
| commit | ebdebe04a76f0302aeb24c1ac08fa9217b1a8257 (patch) | |
| tree | 81a915bc8cc2b6c63dbe765e9ee196a9e7c6d22f /anim/src/context.zig | |
| parent | bf0dfa135319f8c7ca49eace4d1f81152ebfd23e (diff) | |
| download | computeranim-ebdebe04a76f0302aeb24c1ac08fa9217b1a8257.tar.gz computeranim-ebdebe04a76f0302aeb24c1ac08fa9217b1a8257.zip | |
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 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNCKgYCGiANnEwcEQxa
Diffstat (limited to 'anim/src/context.zig')
| -rw-r--r-- | anim/src/context.zig | 7 |
1 files changed, 4 insertions, 3 deletions
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); } |
