Warm --used fills the host pipeline library by default; library marks leave out the exe path (#1483) #4199
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!4199
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4198"
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?
@t91a60 on GitHub · 2026-11-30 17:21 UTC · original
t91a60:orchestrator/issue-1483/warm-library→main· +120 −23 · 4 files · 3 commits · openRefs #1483 (closed as stale, but its cause is still on
main).What it changes
Issue #1483:
warm's done bookkeeping is keyed by the full path of the runningvictory.exe, so a build in a new folder re-warms every used pipeline (~4,250, ~6.5 min). Its second half: plainwarm --usednever fills the host pipeline library (host-pipelines.bin).This is the warm half, in
apps/victory/src/warm.rsplus two small helpers:warm --usednow fills the host pipeline library by default (fill_library, the sameuse_library/keep_librarycallspreload'sinto_libraryuses).VICTORY_WARM_SHARED=0restores the old behaviour (off by default, as in #1618).pipeline/library::name), so the library key was already content-hashed and path-free; the warm mark now matches it.library::saved->known::library_saved) because the library is saved under a per-adapter folder (adapters/<kind>-<vendor>-<device>-<subsys>-<rev>/host-pipelines.bin), not at the pipelines folder's root.VICTORY_WARM_SHARED=0keeps writing only that mark.Translator hash
No change: the shader-cache key (
VICTORY_TRANSLATORincrates/victory-gpu/build.rs) already skips comments and#[cfg(test)]modules and hashes only theCargo.lockpackages the translator uses (that was #1581).crates/victory-shader/build.rsstill hashes raw sources intoVICTORY_SHADER_SOURCE_HASH, but that value is not part of the shader-cache key, and stripping tests there would need real parsing, so it is left alone.Risk / conservative choices
warm --usedafter the update pays the in-process library pass once (the workers have already put the pipelines in the driver cache, so the pass should mostly be cache hits); after that, any folder sharing the cache folder sees the library marks and makes nothing.VICTORY_WARM_SHARED=0opts out.0 to makeand the library is not back-filled until the next new pipeline,--again, or a folder with a different path warms. Documented indocs/findings.md.How it was tested
Unverified: this machine has no
cargo/rustc(cargo,rustcare not on PATH and no toolchain is under%USERPROFILE%\.cargo). Nothing was compiled or run. Please run on a machine with the pinned toolchain:New unit tests (not executed here):
warm_shared_is_on_unless_it_is_zero-VICTORY_WARM_SHAREDis on unless exactly0.done_marks_read_the_driver_and_the_library- path marks always count; library marks count only when the library file is present.VICTORY_WARM_SHARED=0.git diff --checkis clean. Asset policy was not run (needs the workspace tool); the change adds no binary or large file.Checked for overlap
VICTORY_WARM_SHARED=1, off by default. This PR turns the same machinery on by default, adds the path mark beside the library mark, and fixes the library-presence check for the per-adapter library folder.VICTORY_LIBRARY_DIR; the new presence check follows the same folder choice.da93f56f2etof46bb8a0a1Warm --used fills the host pipeline library by default, and its library marks leave out the exe path (#1483)to Warm --used fills the host pipeline library by default; library marks leave out the exe path (#1483)f46bb8a0a1tod70737bd58View 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.