Shaders: count reused compute shaders as cache hits #1232
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!1232
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1232"
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?
@alpz1000 on GitHub · 2026-11-24 13:26 UTC · original
alpz1000:shaders/compute-cache-count→main· +28 −9 · 2 files · 1 commits · openxcl shaders --precompile counted every successful compute shader lookup as a fresh compile, including when it reused cached DXIL. This change reports fresh compiles and cache hits separately.
What is in it
Tested
Regression run
Paired 60-second startup runs on the same title with fresh XCL data and caches per build.
Not tested
Gameplay beyond the 60-second startup run, other adapters, and the full shader corpus.
AI use
OpenAI Codex (GPT-6) implemented the change, ran the local checks, and drafted the description.
@DavidM1911 on GitHub · 2026-11-24 13:47 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:Note: the full
d3d12xlib filter currently aborts with 0xc0000005 on unmodifiedmaintoo (pre-existing, unrelated to this PR); the PR's own tests were run by name and pass.@ettehn on GitHub · 2026-11-25 10:04 UTC · original
This accounting also matters for #2120. On its exact head, a second process reused the rerouted DXIL but still printed
compiled 1, already cached 0(check). I tested a local adaptation of #1232 on8dcc56d: carry a per-lookup DXIL reuse flag separately from the reroute flag, so it does not depend on process-wide counter deltas.Native Windows CLI, no
--pipelines, tested three cases: (1) a rerouted large record, cold and then a separate warm process, reported 1/0 then 0/1 (compiled/cached). (2) a smaller record with the translation cache disabled still reported 1/0 then 0/1 by reusing the DXC cache. (3) two identical inputs with workers enabled and a fresh cache emitted one reroute and reported 1/1. All runs exited 0 with zero reported errors under a 2 GiB job commit cap. No title or hardware GPU exercised. I have the local integration patch if useful when the conflict is resolved.AI use — OpenAI Codex (GPT-6) adapted the code and ran the checks.
@DavidM1911 on GitHub · 2026-11-26 04:17 UTC · original
Re-verification on RTX 3060 Ti (Windows 11): still a merge conflict with current
mainon the new head — needs another rebase before it can be tested.View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.