diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-11 06:49:10 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-11 06:50:11 -0300 |
| commit | 378379807fb4cd751e90808c8363caddb365bcd8 (patch) | |
| tree | f84c7d0e7cbd42a9b9c93e791ab2b5376499d23d /anim/scenes/zoom.zig | |
| parent | 5922ee911b9a6604f60dc83be36ba9e6c9abac98 (diff) | |
| download | computeranim-378379807fb4cd751e90808c8363caddb365bcd8.tar.gz computeranim-378379807fb4cd751e90808c8363caddb365bcd8.zip | |
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 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNCKgYCGiANnEwcEQxa
Diffstat (limited to 'anim/scenes/zoom.zig')
| -rw-r--r-- | anim/scenes/zoom.zig | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/anim/scenes/zoom.zig b/anim/scenes/zoom.zig index ee24e7d..1f23c05 100644 --- a/anim/scenes/zoom.zig +++ b/anim/scenes/zoom.zig @@ -27,6 +27,8 @@ fn frame(s: *anim.Frame) void { at.levels = .{ .fire = .disasm, .source_rows = 14 }; const split = canim.layout.split.none; const ctx = canim.context(s, at, .{ .split = split }); + // The map's drawing: the calls of fib so far, as the fib scene draws them. + ctx.map.drawing(s, rec, canim.CallTree{ .cursor = at, .stage = ctx.map.stage, .function = "fib" }); var cam: canim.Camera = .{}; var says: canim.Narrator = .{}; @@ -36,11 +38,14 @@ fn frame(s: *anim.Frame) void { // The CPU's level: an instruction a step. The argument is worked out in `rdi`. at.walk(s, .moment, call.enter - 1); - says.line(s, "`call` writes eight bytes on the stack: the way back.\nThe new frame saves `rbp` under them, then its own `n`."); + says.line(s, "`call` writes eight bytes on the stack: the way back."); // Nearer, for the bytes: the stack alone, twice the size. cam.go(s, split.stack, 2, .{ ctx.source, ctx.disasm, ctx.registers, ctx.backtrace }); // Under the camera the stack holds still: six free words above rsp for the new frame. ctx.stage.holdStack(s, at.moment(s), 6); + at.walk(s, .moment, call.enter); + // The frame built under them, under a caption of its own (12 s at most). + says.line(s, "The new frame saves `rbp` under them,\nthen stores its own `n`."); at.walk(s, .moment, call.enter + 4); s.wait(canim.theme.time.beat); ctx.stage.releaseStack(s); |
