Shader cache: translator key skips comments, tests and unrelated lock entries; prune unused entries #1581
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!1581
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1581"
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?
@101Leafy on GitHub · 2026-11-28 21:56 UTC · original
101Leafy:nv/shader-key-trim→main· +414 −13 · 3 files · 2 commits · merged 2026-11-30 14:12 UTCThe shader cache key held a fingerprint of the whole translator source and the whole Cargo.lock. An edit to a comment, a test, or an unrelated crate's lock entry changed the key, and the next start translated every shader again.
victory-gpu/build.rs: the fingerprint skips comments, blank lines, and test modules, and takes only the Cargo.lock packages the translator is built from.shader_cache.rs: entries carry aFORMATnumber. That file is outside the fingerprint, so a change toencodeordecoderaises it.victory-pipeline/src/cache.rs: withVICTORY_SHADER_CACHE_DAYS=n, entries not used forndays are removed on a thread of their own. A hit marks its entry used, and nothing goes until the cache has tracked use forndays. One folder here held 77,082 entries (2.7 GB) from earlier translator changes.<path>/<folder>/<file>, without the user's folders above it.warm --useddoes not fill the pipeline library #1483c123c4a09ato667e97eb45667e97eb45to004550996b004550996btoa1f6e0ee25