cache compiled shaders between pso requests #61

Manually merged
github merged 1 commit from gh-pr/61/head into gh-pr/61/base 2026-11-26 04:07:16 +00:00
Owner

@⁠Mavixot on GitHub · 2026-11-22 23:10 UTC · original
shader-compile-time → main · +396 −5 · 2 files · 1 commits · merged 2026-11-23 10:20 UTC

caches finished vs/ps/cs shaders in memory so repeated pso requests skip translation and disk reads. bounded to 64mb/128 entries, with debug overrides bypassing the cache. synthetic warm-cache debug test dropped from ~8.3s to under 1ms for 100 requests, same dxil. build + tests pass; first-time compiles are unchanged, retail samples weren't available.

**@⁠Mavixot** on GitHub · 2026-11-22 23:10 UTC · [original](https://github.com/xcl-dev/xcl/pull/61) `shader-compile-time` → `main` · +396 −5 · 2 files · 1 commits · merged 2026-11-23 10:20 UTC caches finished vs/ps/cs shaders in memory so repeated pso requests skip translation and disk reads. bounded to 64mb/128 entries, with debug overrides bypassing the cache. synthetic warm-cache debug test dropped from ~8.3s to under 1ms for 100 requests, same dxil. build + tests pass; first-time compiles are unchanged, retail samples weren't available.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:07:13 +00:00
github manually merged commit f6a249fd0f into gh-pr/61/base 2026-11-26 04:07:16 +00:00
Author
Owner

@⁠ivall on GitHub · 2026-11-23 10:20 UTC · original

Merged (f112834). It conflicted with #67 (wave64 programs on 32-lane GPUs), which turned console_to_dxil into console_to_dxil_for(…, split_wave64): the cache now sits there and its key has split_wave64 too (the split and native forms are different DXIL). Nice side effect: gpu_pso_e2e with the retail pack went from ~28 s to ~9 s here. Tested on Windows 11 with an RX 9070: cargo test --workspace green with the retail samples (shader pack, console DLLs, texture archive), and Unicorn Overlord reaches its title screen with everything from this round merged. Thanks!

**@⁠ivall** on GitHub · 2026-11-23 10:20 UTC · [original](https://github.com/xcl-dev/xcl/pull/61#issuecomment-7097811472) Merged (f112834). It conflicted with #67 (wave64 programs on 32-lane GPUs), which turned `console_to_dxil` into `console_to_dxil_for(…, split_wave64)`: the cache now sits there and its key has `split_wave64` too (the split and native forms are different DXIL). Nice side effect: `gpu_pso_e2e` with the retail pack went from ~28 s to ~9 s here. Tested on Windows 11 with an RX 9070: `cargo test --workspace` green with the retail samples (shader pack, console DLLs, texture archive), and Unicorn Overlord reaches its title screen with everything from this round merged. Thanks!
This discussion has been locked. Commenting is limited to contributors.
No description provided.