warm: the "done" bookkeeping is keyed by the exe's full path, so every new install folder re-warms all pipelines; warm --used does not fill the pipeline library #1483
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 trustno1-coder/VIctory-NVIDIA. Originally posted by Jesper-Andersson on 2026-11-28T20:42:42Z.
Checked on main
923e38c. The code reading below is from main; I have not run main for this. The re-warm cost was measured on our fork, which has the same code.What the code does (main)
apps/victory/src/warm.rs:43-52: the warm fingerprint is a hash ofknown::fingerprint(), the lowercased full path of the running exe (current_exe, line 44) and the adapter name. The comment at lines 39-42 gives the reason: the driver keeps what is made here by program path and card.crates/victory-gpu/src/pipeline/known.rs:204-212:known::fingerprint()is the translator hash, the driver version and the sampler order. No path in it.warm-done.txtlines are matched against that fingerprint (warm.rs:57-62), so a copy of the exe in another folder, or a new build in a new folder, sees none of them as done.known.rs:214-215:use_translationssays the pipeline library "is not used" forwarm.warm::run(warm.rs:29-151) never callsuse_library/keep_library. Onlyinto_library(fromwarm.rs:160) does, and it is called only at the end ofpreload(main.rs:513-514), for the early and slow lists.pipeline/library.rs:1-9, hash at line 575). I saw no path in that hash; I did not check what else makes the host refuse a library.Effect (measured on our fork, in an earlier session; not on main)
Each new worktree or build folder re-warms the used set: about 4,250 pipelines, about 6.5 minutes on an RTX 2070 SUPER + Ryzen 7 5800X (10 worker processes), with a byte-identical translator. A plain
warm --usedleaves nothing inhost-pipelines.binthat a second folder could load.Not known
Proposal (not tested)
warm --usedalso store what it makes inhost-pipelines.bin(the callinto_libraryuses).#![cfg(test)]when hashing the translator sources, so a test-only edit does not re-translate and re-warm everything.Related, not the same: #1253 (
preloadreusingwarm --used), #1001 (warm uses the launcher's switch set), #779 (quarantine follows the fingerprint).PC: RTX 2070 SUPER 8 GB, Ryzen 7 5800X, 32 GB, Windows 11, driver 621.40.
This was written with AI assistance (Claude Code).
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by github-actions[bot] on 2026-11-28T20:42:50Z.
Please attach both logs from the run that went wrong. Without them we can only guess. Paste
%LOCALAPPDATA%into the address bar of File Explorer to get there.%LOCALAPPDATA%\victory\logs\: the newestvictory-nvidia-play-<date>-<time>-<number>.log(fromvictory.exe) orvictory-nvidia-<date>-<time>.log(from the script launcher). The window shows its path at the start, on the lineLog: ....%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newestvictory-<date>-<time>-<number>.crash.login%LOCALAPPDATA%\VIctory\data\7952987A\temp\.Also say which GPU, Windows version (10 or 11)
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Jesper-Andersson on 2026-11-28T22:24:56Z.
/claim: the warm-mark side (warm --used filling the pipeline library, exe-free marks); a draft PR follows. The translator-key side is #1581.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by kalberts0089-hash on 2026-11-29T08:00:48Z.
I tested the open question about the driver cache. On my PC (driver 621.01), the NVIDIA cache files followed the exe's file name, not its folder. I also checked the code reading at main
e1f2eb6.Warm fingerprint follows the folder (measured)
I copied the same
victory.exeinto two folders: the release build ofe1f2eb6, sha256ec154d06…for both copies. I ranwarm --usedfrom each, withVICTORY_CACHE_DIR/VICTORY_DATA_DIRset to a scratch folder:The binary and the card are the same, but the fingerprint changes with the folder, so
warm-done.txtlines written from one folder don't count in the other (apps/victory/src/warm.rs:43-52and57-63). The rest of the code is as the issue describes:known::fingerprint()has no path in it (crates/victory-gpu/src/pipeline/known.rs:204-212).warm::runnever callsuse_library/keep_library. Onlyinto_librarydoes (warm.rs:163,197), and onlypreloadcalls it (apps/victory/src/main.rs:513-514).Does the driver cache depend on the program path? (measured, RTX 4070 Ti, driver 621.01)
I don't have the game, so I used
crates/victory-gpu/examples/lut3d_probe.rsfrome1f2eb6, which creates compute pipelines (CreateComputePipelineState) on the real device. I built it withcargo build --locked --release -p victory-gpu --example lut3d_probe, copied the exe byte-identically into several folders, and listed%LOCALAPPDATA%\NVIDIA\DXCachebefore and after each run:probeA\lut3d_probe.exe0000/0002/e1ef…a93bf494922e.nvphset writtenprobeB\lut3d_probe.exe(same file, other folder)*f494922efiles rewritten, sizes unchangedprobeC\other_probe.exe(same file, renamed)0000a93b2b10ba6b.nvph,0002a93b2b10ba6b.nvph,e1efa93b2b10ba6b.nvphI repeated it in fresh folders and got the same result.
lut3d_probe.exein two more folders added no files, and a copy renamedreview_probe.exegot its own new0000/0002/e1efset.So on this driver, the cache file set follows the exe name: a second folder reused the first folder's files, and a new name got a new set. I don't know whether the driver keys on the name alone or on the name plus something else, because I didn't test a same-named exe with different contents. I also didn't time pipeline creation, so I can't say the second folder actually got cache hits. I only saw that it used the same files.
If that holds on other drivers, putting the full path in the warm key is stricter than the driver cache is. A new install folder with the same
victory.exename gets re-warmed even though the driver cache may already have those pipelines. The card term (warm.rs:45) covers the two-GPU case in the comment atwarm.rs:39-42, which I can't test here (one GPU).For #1618: hashing the exe file name instead of the full path might be enough for the driver-cache side. That's a hypothesis I haven't tested in game.
PC: RTX 4070 Ti 12 GB, driver 621.01, Windows 11 Pro 26300.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by github-actions[bot] on 2026-11-29T08:00:57Z.
@kalberts0089-hash we can't help with where to get the game, a dump or any of its files, and it can't be discussed here at all: if this repository is used for that, GitHub can take it down for everyone. Please don't ask for or post links, torrents or sources here.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-11-30T15:42:52Z.
Closing this because it was opened before v2026.11.29.01, and a great deal has changed since then. The latest release is v2026.11.30.01.
If this still happens, or still applies, on the latest release, please open a new issue. For a bug, attach both logs from that run:
victory-nvidia-play-<date>-<time>-<number>.login%LOCALAPPDATA%\victory\logs\.%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, plus the newest.crash.login%LOCALAPPDATA%\VIctory\data\7952987A\temp\if there is one from that run.