summaryrefslogtreecommitdiff
path: root/anim/test
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-11 02:11:12 -0300
committerGabriel Schneider <[email protected]>2026-11-11 04:20:25 -0300
commit5922ee911b9a6604f60dc83be36ba9e6c9abac98 (patch)
tree310b983f5205709e5db173f9f1bc8e8d499d24fe /anim/test
parent64e64c74be6a3e46abeae8a30dd42efff91aaf91 (diff)
downloadcomputeranim-5922ee911b9a6604f60dc83be36ba9e6c9abac98.tar.gz
computeranim-5922ee911b9a6604f60dc83be36ba9e6c9abac98.zip
canim: what the second review found, fixed
A system call stepped over plays in order: the registers set, the crossing from the call row with the kernel's window under it, the stores after rax. A strike covers the bytes that changed. The band's view changes with the argument framing. In the descent a callee sits under its caller's return row, and rows fade before others glide. The heap scene follows the storyboard's nine captions: pushes at a run without marks, each free and the malloc that takes the head back walked, the tcache's loupe over the stack and closed with each advance, a chunk in neither list drawn, the freed node travelling to malloc's row. In the dive the map falls into the corner and becomes the minimap; on the map boxes are as long as their rows. A narrow read is shown at its width. The chart checks captions and one-frame changes. Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNCKgYCGiANnEwcEQxa
Diffstat (limited to 'anim/test')
-rw-r--r--anim/test/gallery/atoms.pngbin104341 -> 104255 bytes
-rw-r--r--anim/test/gallery/loupe.pngbin237028 -> 237157 bytes
-rw-r--r--anim/test/gallery/none.pngbin226452 -> 226437 bytes
-rw-r--r--anim/test/gallery/rest.pngbin232319 -> 232782 bytes
-rw-r--r--anim/test/gallery/rows.pngbin138579 -> 140407 bytes
-rw-r--r--anim/test/gallery/step.pngbin231969 -> 232046 bytes
-rw-r--r--anim/test/gallery/subject.pngbin208224 -> 208454 bytes
-rw-r--r--anim/test/recordings.zig10
8 files changed, 6 insertions, 4 deletions
diff --git a/anim/test/gallery/atoms.png b/anim/test/gallery/atoms.png
index 796c202..e18052b 100644
--- a/anim/test/gallery/atoms.png
+++ b/anim/test/gallery/atoms.png
Binary files differ
diff --git a/anim/test/gallery/loupe.png b/anim/test/gallery/loupe.png
index 750c6fd..8b63c1d 100644
--- a/anim/test/gallery/loupe.png
+++ b/anim/test/gallery/loupe.png
Binary files differ
diff --git a/anim/test/gallery/none.png b/anim/test/gallery/none.png
index 5fed856..b850f99 100644
--- a/anim/test/gallery/none.png
+++ b/anim/test/gallery/none.png
Binary files differ
diff --git a/anim/test/gallery/rest.png b/anim/test/gallery/rest.png
index abe30f0..f2869e4 100644
--- a/anim/test/gallery/rest.png
+++ b/anim/test/gallery/rest.png
Binary files differ
diff --git a/anim/test/gallery/rows.png b/anim/test/gallery/rows.png
index e32d4b4..de8580b 100644
--- a/anim/test/gallery/rows.png
+++ b/anim/test/gallery/rows.png
Binary files differ
diff --git a/anim/test/gallery/step.png b/anim/test/gallery/step.png
index ea3c6f1..8f80f5f 100644
--- a/anim/test/gallery/step.png
+++ b/anim/test/gallery/step.png
Binary files differ
diff --git a/anim/test/gallery/subject.png b/anim/test/gallery/subject.png
index 4524a25..b779060 100644
--- a/anim/test/gallery/subject.png
+++ b/anim/test/gallery/subject.png
Binary files differ
diff --git a/anim/test/recordings.zig b/anim/test/recordings.zig
index 3634ee9..38798af 100644
--- a/anim/test/recordings.zig
+++ b/anim/test/recordings.zig
@@ -90,12 +90,14 @@ test "a walked step is as long as what it changed: fire, a slot a level, the hol
var frame: anim.Frame = .{ .t = 0, .clock = 0, .in = undefined, .pointer = .{ 0, 0 }, .arena = arena.allocator() };
scene.frame(&frame);
const t = canim.theme.time;
- // main's line calls fib(5): registers, the stack, the call, 0.30 s
- // apart; the call's node when the projection from its way back arrives.
+ // main's line calls fib(5): its two registers (rdi, rsp) 6 f apart,
+ // the stack 0.30 s after the second, the call's node when the
+ // projection from its way back arrives.
const from = rec.lineMoment(10, rec.call("main", 0).enter);
const call = scene.at.reading(from, rec.next(.line, from));
- try std.testing.expectApproxEqAbs(@as(f32, 2 * t.cascade), call.at[1], 1e-4);
- try std.testing.expectApproxEqAbs(@as(f32, 2 * t.cascade + t.project.bracket + t.project.far), call.at[2], 1e-4);
+ const second: f32 = 6.0 / 60.0;
+ try std.testing.expectApproxEqAbs(@as(f32, 2 * t.cascade + second), call.at[1], 1e-4);
+ try std.testing.expectApproxEqAbs(@as(f32, 2 * t.cascade + second + t.project.bracket + t.project.far), call.at[2], 1e-4);
try expect(call.total > 2.0 and call.total < 3.5);
// A line that changes nothing shown: fire, advance, rest.
var quiet = scene.at;