victory warm reports work it did not do: a failed spawn counts as a whole chunk made, a bad pipeline is never retried, and --used silently makes nothing #26
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX#26
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?
@itsonewi on GitHub · 2026-11-25 23:49 UTC · original
victory warmhas three paths where it reports success while doing nothing, and each one looks like a finished warm-up from the outside.1. A process that cannot be started is counted as a whole chunk made
apps/victory/src/warm.rs:135-149:(these.len(), None)is the return the caller reads as "every pipeline in this chunk was made and the process ended well" (:98-108:rest = &rest[made.min(rest.len())..], thenended == None⇒break). So whenCommand::spawnfails — an antivirus holding the exe, no memory, a path issue — the chunk is dropped with no message, nowarm-bad.txtline, and the run still prints a summary. It should be(0, Some("could not start the process: {e}")).2. A pipeline that crashed once is never retried, and nothing says so
:57filters!bad.contains(key)unconditionally, and--againonly relaxes thedoneset:warm-bad.txtis written at:103and read at:49-50; no switch clears it, and the file is not mentioned indocs/. So on a machine where the AMD compiler crashed once on a pipeline (the case in #8), that pipeline is skipped by every latervictory warmand by nothing else, until someone deletes a file whose name appears only in the source. A--retry-badflag, or having--againalso clearbad, would make the state reachable from the command line.3.
--usedwith noearly-pipelines.txtsilently makes nothing:51-57:earlyis empty when the file is absent, so!used || early.contains(key)is false for every key. The output is thenand exit code 0 — identical in shape to a cache that is already complete. That file is written by a run with
; run with VICTORY_PIPELINE_BOOK=1 to write it" — would turn a confusing no-op into an instruction.VICTORY_PIPELINE_BOOK=1(apps/victory/src/main.rs:108-111), which the README does not require before telling a new user to runvictory warm --usedas one of the two pre-steps. One line — "no early-pipelines.txt inTwo smaller notes in the same file, not defects on their own:
:184printshung for 180 sfor any kill of the watchdog, including one where the child was making progress but slowly (a 180 s single pipeline is also possible on a cold driver), and:17AT_ONCE = 40means a chunk that hangs costs the up-to-40 pipelines after the last reported one, sincerestis advanced only by the reportedmadelines.Not checked
Source reading at
0a43566. I did not runvictory warmor build the binary here, so the spawn-failure path is not observed, only read.AI use
AI-assisted review (source reading). No build, no run, no game files.
@itsonewi on GitHub · 2026-11-26 00:07 UTC · original
A second counting path in the same file, found while looking for the first: the child's success return reports the whole batch, not what it made.
apps/victory/src/warm.rs:178-182:made— the count actually parsed from the child'smade N ms therelines (:166-176) — is used only on the failure path. Meanwhile the child skips numbers it cannot find without printing anything:crates/victory-gpu/src/pipeline/known.rs:238-241:So
--these 999999(a number past the end ofknown-pipelines.bin, or one from a list written by an older, longer book) makes the child exit 0 having done nothing, and the parent adds the whole chunk to the "made" total and to nothing inwarm-bad.txt— the same shape as the spawn-failure path at:148-149, one branch later.The fix is the same one the failure path already needs: return
made, and treatmade < these.len()as a failure of that chunk so the numbers land inwarm-bad.txt(where--retry-badcould pick them up, as the first report asks).Not observed in a run — read from the code at
0a43566, like the rest of the report.(AI-assisted, source reading only.)
@WuDiXiaoBo on GitHub · 2026-11-26 00:51 UTC · original
Adding the user-side data point to this, because it decides whether the first session can be helped at all.
On an NVIDIA RTX 4060 Ti 16 GB,
scripts\play.ps1with its defaults, this is whattarget\diag\victory.exe warm --usedprinted after a four-minute session that was drawing 200–4,300 draws a frame in the world:One caveat on my side, in case it matters: my session did not end cleanly. The title's own watchdog was still counting and I stopped the process myself, so if the record of used pipelines is written at exit, an empty list is exactly what you would expect. I could not tell that from the outside.
The consequence either way is the same for a new user: 1,276 host pipelines were still made during the second session while
cache\pipelinesalready held 72 MB from the first, and every frame in between spent 459–539 ms inwaiting for pipelineswith the card idle — median 0.0 ms on the GPU of a 398 ms frame. There is no way on this host to reach the "pay the compile cost ahead of time" behaviour the README promises.So the useful question for me is: where is that record written, and at what point? If it survives a killed run, tell me the file name and I will check whether it exists and what it holds. If it is only written at exit, then
--usedmay need another source (the pipeline cache's own contents?) to be useful after a watchdog kill — which is how most sessions end on a 6-core machine here.Full numbers, three screenshots and both 3.7 MB logs are in #61.
@avatarmanz on GitHub · 2026-11-26 08:19 UTC · original
Fixed by #128, now in main (
0ce46d5a).