Files
totk-pc-recomp/tools
Ruan Shannon b4dcc3431f tools/pack_shader_cache.py reads the loose files with 8 bounded readers
pack() read every loose file one after the other. On Windows each open costs milliseconds (the antivirus scans it), so
folding a fresh cache was dominated by waiting: 12000 loose files took 79-90 s. The files are now read ahead by a pool
of 8 threads (--read-workers, 1..16; 1 reads serially), at most twice that many in flight, and written in the same
sorted order, so the pack is byte-identical. 12000 files: 18-20 s. The CLI prints read and cleanup progress every 5 s.
tests/pack_shader_cache_test.py checks parallel against serial packs, fresh and incremental, and the bounded read-ahead.
2026-11-22 05:10:48 -08:00
..
2026-11-22 08:26:41 +03:00
2026-10-31 21:17:12 +01:00