From b5f8c6d173ccebefb6f08192873a96bcc9f86cd9 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 4 Nov 2026 23:53:14 -0300 Subject: FrameStats: the timedemos leave the binary: PARDES_FRAMES_DEMO names a text script (parseScript: ` [x] ` a line, a wheel, touch, key, keys, phase, click, rail_wheel, paste, exec or end), the fifteen compiled ones are tools/demos/*.txt, each read back step for step identical to its builder before the builders went (11,401 steps the binary no longer carries: the Debug binary's .data.rel.ro 8,566,256 to 7,944,088 bytes, an idle detached session's RSS 38.3 to 37.3 MB), and the keystroke one is test/perf.zig's own data, parsed for its tty and written beside its files for its window; a window whose script does not read does not start; a test reads every script in tools/demos Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- tools/demos/scroll.txt | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 tools/demos/scroll.txt (limited to 'tools/demos/scroll.txt') diff --git a/tools/demos/scroll.txt b/tools/demos/scroll.txt new file mode 100644 index 00000000..adb64e73 --- /dev/null +++ b/tools/demos/scroll.txt @@ -0,0 +1,25 @@ +# scroll: every kind of scroll a user makes, on a long file from its top: +# single notches, a fast spin of the wheel both ways (notches 8 ms apart, +# two a frame: each retargets the one before), half pages, pages, the far +# jumps to the end (ge) and back (gg), half pages faster than they settle, +# and the cursor moving a line, a word and, in insert mode, a column at a +# time. +1500 phase notches +1500 10x150 wheel 1 +3400 phase spin +3400 24x8 wheel 1 +4392 24x8 wheel -1 +5384 phase pages +5384 1x600 keys ^d ^d ^d ^u ^u ^f ^b g +9604 1x780 keys e g +10404 key g +11184 phase retarget +11184 4x80 key ^d +12204 phase cursor +12204 10x60 key j +13204 10x90 key w +14504 1x300 keys i right +14864 7x60 key right +15584 8x100 key down +16684 key escape +17684 end -- cgit v1.3