Shader cache: precompile tells from its own call whether it translated (#32) #192
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from avatarmanz/VIctory-7900XTX. Originally posted by HamudL on 2026-11-26T11:05:35Z.
Closes #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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.