cache compiled shaders between pso requests #61
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!61
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/61/head"
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?
@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 UTCcaches 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.
@ivall on GitHub · 2026-11-23 10:20 UTC · original
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!