summaryrefslogtreecommitdiff
path: root/anim/src/syscalls.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-11 17:42:07 -0300
committerGabriel Schneider <[email protected]>2026-11-11 19:11:00 -0300
commitb54c6776953d3243ab5b8e676e747713827ab320 (patch)
treed53be6cef4587b94531880af6479a1b5fa1aac39 /anim/src/syscalls.zig
parent3093eb55ac4a7054f51f06ea2786b5f9c9ec73f6 (diff)
downloadcomputeranim-b54c6776953d3243ab5b8e676e747713827ab320.tar.gz
computeranim-b54c6776953d3243ab5b8e676e747713827ab320.zip
canim: the disassembly under the source everywhere; rings
From the user. In every split the disassembly stays under the source; registers a scene never changes fold three to a row, and the stack takes the room: nine to twenty slots where it had six. The graph's first form is rings: a loop a ring its blocks sit on, an inner loop a smaller ring touching its parent, a way out leaving along the tangent; layers stay for functions without loops. Its layout comes from the code alone and it shows nothing from after the moment: a block not reached yet is quiet and is reached, a fold of what is not reached yet opens when the run arrives. A pane unrolls from its strip into its whole column and rolls back. The sqlite scene's strips move before their panes. Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNCKgYCGiANnEwcEQxa
Diffstat (limited to 'anim/src/syscalls.zig')
-rw-r--r--anim/src/syscalls.zig5
1 files changed, 4 insertions, 1 deletions
diff --git a/anim/src/syscalls.zig b/anim/src/syscalls.zig
index 3788fe3..c00aec5 100644
--- a/anim/src/syscalls.zig
+++ b/anim/src/syscalls.zig
@@ -281,7 +281,10 @@ pub const Crossing = struct {
const count = if (newest) |n| n + 1 - first else 0;
const above = [2]usize{ (count -| 1) -| room, count -| room };
const notes = [2][]const u8{ logNote(u, above[0]), logNote(u, above[1]) };
- const scroll = cursors.glide(arrives);
+ // From rest it moves at once, a pixel a frame at least: a glide's first
+ // frames are each under a pixel, and the rows, drawn on whole pixels,
+ // would step one and stand still a frame.
+ const scroll = @min(@max(cursors.glide(arrives), arrives * theme.time.move * 60 / (row_h * @max(u.at.scale, 0.01))), 1);
const renote = above[0] != above[1] and arrives < 1;
const body = u.panel(box.w, box.h, "system calls", .{ .focus = c.focus, .note = if (renote) "" else notes[1] });
if (renote) {