Avoid loading the complete pipeline recipe book into each warm worker #1647
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#1647
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?
@NotADonky43 on GitHub · 2026-11-28 23:01 UTC · original
On
d4b5d517, pipeline/known.rs::walk_pipelines reads the complete known-pipelines.bin into a Vec, even for count/keys or a worker preparing only a small batch. A local 83,549-recipe book is 50,323,407 bytes; warm uses up to 21 independent processes on this machine. This is transient per-scan storage, not a claim about simultaneous peak or FPS. I will test a streaming record walk against the existing scanner for exact ordering, torn tails and peak allocation using synthetic records. No game assets or caches needed. Scope: crates/victory-gpu/src/pipeline/known.rs only; no change to the file format, shader translation, quarantine, or compiler settings. Related #1268 changes early-list selection rather than the scanner.@NotADonky43 on GitHub · 2026-11-28 23:01 UTC · original
/claim
@github-actions[bot] on GitHub · 2026-11-28 23:01 UTC · original
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)
@kalberts0089-hash on GitHub · 2026-11-29 08:00 UTC · original
Confirmed at
e1f2eb6. I also tested #1651 against it on this PC (RTX 4070 Ti, 24 threads, Windows 11), using only a synthetic book and no game data. The PR's numbers measure the scanner on its own. These were measured in a realvictory warm --thesechild.Where it happens
crates/victory-gpu/src/pipeline/known.rs:175:walk_pipelinesdoesstd::fs::read(dir.join(PIPELINES)), so it reads the whole file.count(:189),keys(:196),make(:245) andbook()(:67) all go through it.walk_shaders(:153-170) already streams through aBufReader.apps/victory/src/warm.rs:17setsAT_ONCE = 40, andchild(:212-224) starts a newvictory warm --these ...process for each chunk. That process callsknown::make(:274), which reads the whole book and keeps only its 40 entries (known.rs:243-249). With 83,549 records that's 2,089 child processes, and each one reads the full book. On this PCjobs = cores*2/3(warm.rs:79) comes out to 16 at a time.into_library(warm.rs:177-186) runsthreadsthreads in one process, and each callsknown::make. So up tothreadscopies of the book can be in memory at the same time there.unwrap_or_default()gives end offset 0, andbook()(known.rs:71-77) then callsset_len(0)on the file. #1651 changes this to.ok()?.Measured: one warm child, real
victory.exeSetup:
known-shaders.bin, so no host pipeline is compiled. This measures the scan only, not compiler memory.VICTORY_CACHE_DIR/VICTORY_DATA_DIRpointed at scratch folders.victory warm --these <40 indices>and read peak commit fromGetProcessMemoryInfoafter the process exited.Every repeat run landed within 0.1 MiB of these numbers:
e1f2eb6e1f2eb6Same behaviour with #1651
victory warm --limit 0reports83549 pipelines knownon the whole book and83548with the last 300 bytes cut off. Main and the PR agree on both.victory warm --these 83500,...,83548on the cut book gives identical output from main and the PR: 96 lines, and the torn record 83548 is skipped in both.cargo test --locked --release -p victory-gpu --lib pipeline::known: 3 passed.