From c3b9938e9cb381bc7378fdca9073520ff1711ad6 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Mon, 16 Nov 2026 23:35:54 -0300 Subject: Play past sessions back, re-synced at their keyframes play session S [at SECONDS] restores the session's keyframe before that time (a binary search over its keyframes' times), replays its frames up to it and leaves it paused there; without a time it plays from the start. At each later keyframe the replay reaches, the State is compared with it over the leaves migration kept: a keyframe taken of what update made (periodic, mark, before a reload, exit) that differs is reported once, "diverged before frame F: N values, first ", and every keyframe is restored, so a replay across a jump the log does not hold (set, load, a sketch command) goes on from the State that followed it. A session built from another source or build says so. The console's status line names the session, frame and time, the mark, the clip and where it records. test-past records a session, replays it by the same build (the mark's State exactly, frame 120's two seconds in, no divergence), then by a build with an edited fixture (one divergence, before the mark). Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T --- test/past.script | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/past.script (limited to 'test/past.script') diff --git a/test/past.script b/test/past.script new file mode 100644 index 0000000..8ac9c25 --- /dev/null +++ b/test/past.script @@ -0,0 +1,8 @@ +# Session 0 of test-past (see build.zig): pointer driven, a mark at frame +# 30, a jump (`set`) at frame 60, 300 frames in all. +move 300 200 +frames 29 +console save probe +frames 29 +console set velocity[0] 5 +frames 240 -- cgit v1.3