victory warm: pipelines left out or refused are not written down as done

A pipeline that gets no host pipeline in the warm's child (left out by the
run's switches, like the ~1,000 CS_RaytracingResolve without
VICTORY_BVH_BUILDER=1, or refused) was still written to warm-done.txt. A
later warm with the structure builder on then skipped them for good, and
every ray-traced run compiled them in play: ~670 pipelines "being made" in
the first minutes, and NVIDIA's background compile kept frames waiting for
seconds (RTX 4090: frames of 3-10 s while the D3D background threads
compiled). Only those with a host pipeline are done now; the others are
asked again by the next warm (refusals cost no compile).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 4f2be389a4da33ae7d5e384389c7b428a2a75db6)
This commit is contained in:
Yorivel authored and trustno1-coder committed 2026-11-27 17:29:34 -08:00
1 parent 17c07bd8eb
commit 5ed66db74f
1 file changed
+8 -1
+8 -1
View File
@@ -109,7 +109,14 @@ pub fn run(jobs: Option<usize>, limit: Option<usize>, again: bool, used: bool, t
println!("{count} of {}, {:.0} s", all.len(), began.elapsed().as_secs_f64());
}
drop(state);
let _ = writeln!(lock(&done_out), "{fingerprint} {}", keys[n]);
// One with no host pipeline was left out (a
// pipeline the run's switches leave out, such as
// `CS_RaytracingResolve` without the structure
// builder) or refused: not done, so that a warm
// with other switches still makes it.
if there {
let _ = writeln!(lock(&done_out), "{fingerprint} {}", keys[n]);
}
});
rest = &rest[made.min(rest.len())..];
match (ended, rest.split_first()) {