Stream pipeline book scans during warm-up #1651

Manually merged
github merged 1 commit from github-bot/gh-1651 into main 2026-11-29 08:20:40 +00:00 AGit
Owner

@⁠NotADonky43 on GitHub · 2026-11-28 23:04 UTC · original
NotADonky43:perf/stream-recipe-book → main · +67 −16 · 1 files · 1 commits · merged 2026-11-29 08:16 UTC

Fixes #1647. Stream the existing length-prefixed pipeline book through a 64 KiB buffered reader. Visit in-buffer records directly and reuse scratch only for records crossing a read boundary. Bound each announced record to the initial file size. Preserve record numbering, empty records, snapshots and torn-tail offsets; an actual read error is not a truncate-safe offset. No cache format or compiler change.

Windows x64, RTX 5070 Ti host. On a title-free synthetic book (83,549 records / 50,686,148 bytes) the old and new optimized scanners ran in separate processes, alternating four times each. Identical count, end offset and checksum. Process peak commit: 51.46–51.50 MB vs 0.72–0.74 MB. Median scan: 53.9 vs 27.0 ms. This is scanner memory/time, not a whole-worker/compiler peak or total gameplay/loading speedup. No game data in the fixture or patch.

cargo test --locked --release -p victory-gpu --lib pipeline::known::tests passed (3 tests). New regression covers every truncation of a synthetic stream, including zero-length records, records crossing reader boundaries, oversize torn tails and short I/O. Hardware profile is irrelevant for the scanner; no rendering or shader output changes. Searched open PRs and the tracker; #1268 touches the file for early-list selection, not this traversal. The base file is identical at the fork point and d4b5d517.

**@⁠NotADonky43** on GitHub · 2026-11-28 23:04 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1651) `NotADonky43:perf/stream-recipe-book` → `main` · +67 −16 · 1 files · 1 commits · merged 2026-11-29 08:16 UTC Fixes #1647. Stream the existing length-prefixed pipeline book through a 64 KiB buffered reader. Visit in-buffer records directly and reuse scratch only for records crossing a read boundary. Bound each announced record to the initial file size. Preserve record numbering, empty records, snapshots and torn-tail offsets; an actual read error is not a truncate-safe offset. No cache format or compiler change. Windows x64, RTX 5070 Ti host. On a title-free synthetic book (83,549 records / 50,686,148 bytes) the old and new optimized scanners ran in separate processes, alternating four times each. Identical count, end offset and checksum. Process peak commit: 51.46–51.50 MB vs 0.72–0.74 MB. Median scan: 53.9 vs 27.0 ms. This is scanner memory/time, **not** a whole-worker/compiler peak or total gameplay/loading speedup. No game data in the fixture or patch. `cargo test --locked --release -p victory-gpu --lib pipeline::known::tests` passed (3 tests). New regression covers every truncation of a synthetic stream, including zero-length records, records crossing reader boundaries, oversize torn tails and short I/O. Hardware profile is irrelevant for the scanner; no rendering or shader output changes. Searched open PRs and the tracker; #1268 touches the file for early-list selection, not this traversal. The base file is identical at the fork point and d4b5d517.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 23:08:05 +00:00
github manually merged commit 642fc49e2f into main 2026-11-29 08:20:40 +00:00
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!1651
No description provided.