<feed xmlns='http://www.w3.org/2005/Atom'>
<title>sketchbook.git/test/same_sessions.zig, branch main</title>
<subtitle>A small Zig platform for sketching games and toys</subtitle>
<id>https://git.0x4200.cafe/sketchbook.git/atom?h=main</id>
<link rel='self' href='https://git.0x4200.cafe/sketchbook.git/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.0x4200.cafe/sketchbook.git/'/>
<updated>2026-11-17T15:15:01Z</updated>
<entry>
<title>Bound a scripted run's memory sessions; check a script records the same twice</title>
<updated>2026-11-17T15:15:01Z</updated>
<author>
<name>Gabriel Schneider</name>
<email>gbrls@0x4200.cafe</email>
</author>
<published>2026-11-17T02:50:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0x4200.cafe/sketchbook.git/commit/?id=ed6581dbf287d8a2fb1c439a88ce7380ee754f75'/>
<id>urn:sha1:ed6581dbf287d8a2fb1c439a88ce7380ee754f75</id>
<content type='text'>
A scripted run from fresh state records in memory, and a very long one grew
without end. It stops at 256 MiB (ten hours or more of play at 60 Hz; a
write the memory database cannot make, out of memory included, is the
same): once, a warning, and no more frames, while what it holds still
reads (marks, clips, past sessions).

test-same plays test/past.script twice into two databases and compares them
value by value with test/same_sessions.zig, but for a session's started and
ended (the wall clock): every frame, keyframe, stretch and mark follows from
the script alone. A third run from fresh state leaves its state file and no
database.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
</content>
</entry>
</feed>
