cache compiled shaders between pso requests #60
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/61"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ivall/xcl. Originally posted by Mavixot on 2026-11-22T23:10:03Z.
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.
Imported from ivall/xcl. Originally posted by ivall on 2026-11-23T10:20:54Z.
Merged (
f112834). It conflicted with #67 (wave64 programs on 32-lane GPUs), which turnedconsole_to_dxilintoconsole_to_dxil_for(…, split_wave64): the cache now sits there and its key hassplit_wave64too (the split and native forms are different DXIL). Nice side effect:gpu_pso_e2ewith the retail pack went from ~28 s to ~9 s here. Tested on Windows 11 with an RX 9070:cargo test --workspacegreen with the retail samples (shader pack, console DLLs, texture archive), and Unicorn Overlord reaches its title screen with everything from this round merged. Thanks!