warm --used fills the host pipeline library, and its done marks leave out the exe path (VICTORY_WARM_SHARED; off by default) #1618
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!1618
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1618"
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?
@Jesper-Andersson on GitHub · 2026-11-28 22:25 UTC · original
Jesper-Andersson:pr/warm-shared→main· +177 −6 · 2 files · 1 commits · merged 2026-11-29 08:16 UTCRelates to #1483 (the warm-mark half; the translator-key half is #1581)
What it changes
As #1483 describes,
warm's done marks are keyed by the full path of the runningvictory.exe, so every new install folder or worktree warms all used pipelines again (about 4,250 pipelines, about 6.5 minutes here). On top of that,warm --useddoes not fill the host pipeline library. This PR is one commit inapps/victory/src/warm.rs(plus a note indocs/findings.md), all behindVICTORY_WARM_SHARED=1. It is off by default; unset, the marks are exactly as before, and a unit test pins the old mark value.VICTORY_WARM_SHARED=1,warm --usedalso stores every pipeline its workers made in the host pipeline library (host-pipelines.bin). Library entries are named by their DXIL, root signature and state, not by the exe.shared-library.VICTORY_LIBRARY_DIRwhen that names a folder (the shared library folder proposed in #1583), and otherwise in the pipelines folder. The done marks stay in the pipelines folder, as #1583 keeps the early and slow lists per cache folder. On main without #1583, nothing writes the library intoVICTORY_LIBRARY_DIR, so setting that variable alone only makes the shared marks not count; it is meant for use together with #1583.--used, the switch prints that it doesn't apply.VICTORY_WARM_LIBRARY_THREADS(1 to 16, default 8) sets how many threads make the library entries.The library is written through the existing library code (
known::use_library/keep_library), into the cache folders undercache_dir(cache_subdir, which already checksvictory_core::ensure_outside_repo). Nothing is written in the repository. With #1583 merged, these saves go through its writer lock unchanged.The second half of #1483's cause, translator-key churn from test and comment edits, is left to #1581 (see below). This branch no longer carries our own version of that.
How it was tested
VICTORY_LIBRARY_DIRfollowed when set and not empty). A release build passes. Pending: the in-game check that a second worktree on the same cache folder finds every mark and the library and has "0 to make". This PR stays a draft until that check is done.cargo testpassed for the crates it touches: yes (victory: 34 + 2 passed)cargo clippy --no-deps -p victory:-p victory --all-targets -- -D warningsis clean (no new warnings).cargo xtask policy: fails on upstream main's owncrates/victory-shader/src/emit/lower.rs(667,523 bytes, over the 640 KiB limit; #1429; the open #1493 and #1527 fix it). Nothing this PR adds trips it, and the pre-commit asset check passed for every file it changes.Checked for overlap
victory-gpu/build.rs, so this PR leaves it out. #1581 does not touchvictory-shader/build.rs, which keeps its own fingerprint of all ofsrc. That could be a small follow-up there.VICTORY_LIBRARY_DIRwith a writer lock) shares one library between cache folders. It doesn't fill the library fromwarmand doesn't change the warm marks. This PR is the warm side: it fills the library and finds it in the shared folder when #1583's variable is set. The two combine without changes.warm.rsat the preload entry. Different function, complementary.victory-settings.txtand play shader defaults) editswarm.rsaround the settings. Its fingerprint feeds this PR's mark unchanged.warm.rsprogress. Independent.shader_cache.rs/victory-pipeline. Different files.This was written with AI assistance (Claude Code).
warm --useddoes not fill the pipeline library #1483