From 378379807fb4cd751e90808c8363caddb365bcd8 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 11 Nov 2026 06:49:10 -0300 Subject: canim: nothing changes in one frame; the map's space is used; the heap scene at its storyboard's length The motion check counts a third of the one-frame changes it did: the minimap's changes fade, and a register's value, a flag, a role, a pin's names, a tag's note, a backtrace row, a call tree's node and a dump row crossfade where they changed at once. What still fires is named in the README; an encoder's keyframe and the gallery's cuts are exempt by name. No caption stands over twelve seconds or under its reading time. The heap scene is 78 s: what the storyboard does not narrate runs, and each free's line cascades onto its call row (line stepping stops at a breakpoint for that). On the map, leftover space holds the stack continued, dumps round what the registers and the stack point at, open loupes and the key: between 1% and 13% of a map is page, where it was 14% to 42%. Co-Authored-By: Claude Fable 5.2 Claude-Session: https://claude.ai/code/session_016Y9MNCKgYCGiANnEwcEQxa --- anim/src/array.zig | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'anim/src/array.zig') diff --git a/anim/src/array.zig b/anim/src/array.zig index 8bb0a52..8d53fb8 100644 --- a/anim/src/array.zig +++ b/anim/src/array.zig @@ -81,7 +81,7 @@ pub const Array = struct { const dump = hexdump.panel(f, at, g.stage, u.print("{x} to {x}, an element a run", .{ v.addr, v.addr + v.size - 1 }), &.{}); const rows_n = @min(dump.rows, (v.addr + v.size - first + 15) / 16); if (rows_n > 0) hexdump.draw(dump.u, now, 0, m.tag + m.pad, first, rows_n, .{ .array = .{ .addr = v.addr, .len = v.size, .elem = @intCast(elem), .type = elem_type }, .region = context.ink(context.regionOf(moment, v.addr)) }); - if (rows_n > 0) @import("map.zig").window(.view, first, first + 16 * (rows_n - 1)); + if (rows_n > 0) @import("map.zig").window(.view, .{ first, first + 16 * (rows_n - 1) }, .{ first, first + 16 * (rows_n - 1) }, 1); dump.veil(now); u.clip(.{ .x = 0, .y = 0, .w = box.w, .h = box.h }); } @@ -211,6 +211,8 @@ pub const Array = struct { ties.anchor(u, .{ .node_pin = addr }, .{ .x = cx - 1, .y = top + cell[1], .w = 2, .h = label + 10 }); const indices = names.items.len; var shows: f32 = 1; + // A register joining or leaving: the names cross the middle of its change faded out (`Nodes.Pins.text`). + var text: f32 = 1; for (theme.metric.all_registers[0..16]) |name| { const i = context.index(name).?; const before = was_regs.named(name) == addr; @@ -218,6 +220,7 @@ pub const Array = struct { if (!before and !after) continue; const s = ties.pinShows(now, i, .node); const this = if (before and after) 1 else if (after) s.new else s.old; + if (before != after and indices > 0) text = @min(text, @abs(2 * this - 1)); if (this < 0.5) continue; names.append(f.scratch, name) catch {}; if (indices == 0) shows = @min(shows, this); @@ -229,7 +232,9 @@ pub const Array = struct { // An index lives on the stack: its name in stack's ink; a register's primary. var inks: [8]u24 = @splat(t.primary); for (inks[0..@min(indices, inks.len)]) |*i_ink| i_ink.* = theme.color.region.stack; - u.faded(shows * ties.rise(rising, k, count).element).pinUnderInked(x, top + cell[1], names.items, inks[0..@min(names.items.len, inks.len)], if (names.items.len > indices) ink else t.primary, label); + const pv = u.faded(shows * ties.rise(rising, k, count).element); + pv.pinUnderInked(x, top + cell[1], &.{}, &.{}, if (names.items.len > indices) ink else t.primary, label); + pv.faded(text).pinNames(x, top + cell[1], names.items, inks[0..@min(names.items.len, inks.len)], label); } } -- cgit v1.3