diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-19 21:56:34 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-20 00:39:13 -0300 |
| commit | dcf6d58f8aacefd9a66817ef4589f68ce2d42e8a (patch) | |
| tree | ad635be4e1cd68164f67f5c9f403d109a2adec09 /dev/gui/deck.zig | |
| parent | 0db34fbf28e70c8c6a3c6025c0888fc5ec75201c (diff) | |
| download | pardes-dcf6d58f8aacefd9a66817ef4589f68ce2d42e8a.tar.gz pardes-dcf6d58f8aacefd9a66817ef4589f68ce2d42e8a.zip | |
build: ghostty's terminal page sized in 4 KiB steps on every target (build/patches.zig `ghostty_page` and `ghostty_mem`, docs/ghostty-page-size.md), so the same pty bytes and resizes give the same emulator on Linux, FreeBSD and an Apple silicon Mac, as a client that replays its session's bytes needs, with Linux and FreeBSD unchanged: ghostty rounds a page to the OS page (src/terminal/page.zig:1770 at the pinned 1.4.0; 4 KiB here and on FreeBSD, 16 KiB on aarch64 macOS) and fills the rounding with rows and grown style room, so the 16 MiB scrollback kept other pages on the Mac: its digest differed from Linux's on every stream that filled the scrollback (source text, build logs, heavy colour, the torture stream: 59 to 1,177 history rows fewer) and its snapshot on the shell stream too (a style capacity hint, 388 against 397); now the layout rounds to 4 KiB and the three assertions that a page's length is a whole number of OS pages (page.zig:247, mem.zig:154 and :346) ask for 4 KiB, which on Linux and FreeBSD is what they were; a Mac maps whole 16 KiB pages under the shorter length (up to 12 KiB a page unused and never touched; 8 KiB for a standard page) and madvise and munmap act on its whole pages; the cross-check driver built from this tree (with the next change) gives on Linux and FreeBSD the lines it gave before the Edit, page counts and bytes included, and on the Mac the same lines, from a ReleaseFast and a ReleaseSafe build through all eight streams with no assertion (.scratch/sketch/reports/pardes-term-xcheck.md, "The reverse Edit"); in place of an earlier form of this change that rounded every target to 16 KiB and cost Linux +0.49% on pardes-perf's at-limit terminal cells and up to 13% of its history; the genizah's ghostty (main e8e7fea1, 2026-06-16) is older than the pin and rounds the same way, so no pin moves it; on both changes: tui term-test 15/15, kitty-test 45/45, core-test 848/991 (143 skipped), shell-test 1027/1030, image-harness and kitty-harness pass; gui unit-test 1625/1629 (4 skipped; the perf check's BaselineHarnessMismatch, the base's), image-harness and kitty-harness pass; the macOS library builds for Linux and aarch64-macos, the FreeBSD tui builds (load 11 to 37); the frame and perf gate (gpu/xcheck-c3, against tree1): 77/77 frames byte-identical, unit-test as the base, perfab corpus2x -0.076% (noise 0.091%), perfops 97 of 97 within 0.1% (terminal on all +0.0069%, the largest +0.0285%) (load 11 to 24)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'dev/gui/deck.zig')
0 files changed, 0 insertions, 0 deletions
