Shader cache: precompile tells from its own call whether it translated (#32) #192
No reviewers
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX!192
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-192"
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?
@HamudL on GitHub · 2026-11-26 11:05 UTC · original
HamudL:fix/warm-counts→main· +47 −9 · 2 files · 3 commits · openCloses #32.
precompilecompared the global miss counter before and after its call. Withtranslate --warmon several threads (four by default), another thread's miss in between made a cache hit count as "translated now", so the warm-up's split between translated and cached was wrong.cached_rannow returns whether its own call ran the converter: a miss, an entry of an earlier build that was translated again withrefresh, or an entry that did not read back.cachedandcached_bykeep their signatures.New test
each_call_tells_whether_it_translated: another call's miss between two calls for the same container leaves the second a hit, and entries of an earlier build are served or refreshed as expected.Checked:
cargo clippy -p victory-gpu --all-targets [--all-features] --target x86_64-pc-windows-msvc -- -D warningsis clean. The shader-cache tests (all 4, the new one included) pass on Linux in a copy of the module with the D3D12 calls stubbed out, since victory-gpu itself only builds on Windows.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.