victory warm --waited: the book's compute pipelines and screen passes no run drew with, made ahead (re-land of #2580's safe part) #4256
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4256"
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 Lyrnc on 2026-11-30T17:51:32Z.
Problem
3fa588eb) because a first run from an empty cache drew every shadowed surface black until restart.VICTORY_PIPELINE_WAIT_COMPILES=1(the graphics half's switch) did not prevent it.VICTORY_PIPELINE_COMPILE_GRACE_MS(50 ms) once its build reached the driver's compiler, then dropped it. A program the title dispatches once (an indirect-light or probe initialisation, a buffer reset at a scene change) then never writes its result. That fits the symptom: dark until restart, and not prevented by the graphics switch.Root cause of the bug, and what is left
victory warm --waited, run by the launcher before the game whenVICTORY_WARM_WAITED=1.Fix
Kajcsi's
--waitedfromc9ffe60a, unchanged except where main moved.known::waited(dir)returns the book's compute pipelines, and its passes over the screen without a mesh stage (the same test asmake::Pending'sscreen).victory warm --waitedmakes those of them that no earlier run drew with. The ones earlier runs drew with already load from the library. It conflicts with--used.to_make, #2731). The--waitedfilter moved into that step. Everything else is as inc9ffe60a.scripts/play-nvidia.ps1(the launcher wasplay-foxhound.ps1inc9ffe60a;84bd61e2renamed it): withVICTORY_WARM_WAITED=1(off by default, and not with-WarmUsed), it runswarm --waitedbefore the game, withVICTORY_PRELOAD_JOBSas--jobs. Pipelines made before are skipped, so a later start spends about a second there.Not re-landed:
perf/first-use-stallshas a safer form of it: draws that have a fallback wait 100 ms once, and dispatches and screen passes keep their waits.In
perf/first-use-stalls, a dispatch that blocks on a worker's build raises that worker to the title's priority and moves it to the front of the queue. The dispatch still waits. That shortens the compute stalls without dropping anything.Verification
On
189c5eb2, in a build slot, with its own target directory:cargo clippy -p victory -p victory-gpu --all-targets --locked -j 4: builds. No warning inwarm.rs,main.rsorknown.rs. The three it gives are on main's lines (host.rs:5092,shadow.rs:7197,xmem.rs:1933).perf/first-use-stallsand with #3347's rework, and adds no conflicting file to #3744, #3974 or #3581: those already conflict with main in the same files.NOT tested
warm --waitedon the title's book nor the launcher path. Not checked:known::waited/waited_entry(none inc9ffe60aeither). It reads the book's entry format the same wayknown.rs's other readers do.cache\shaders.victory warm --waited --jobs 6on an idle PC. Note its "--waited: N known, M no run drew with" line and the time it takes.VICTORY_BVH_BUILDER=1) and RT off. Compare with a run without step 2: frames over 1 s, and the compute part of the pipeline waits (#3703's long-frame line).Overlap
3fa588eb). This is its--waitedpart, with its author.victory warmprocesses by default. Sowarm --waited's processes are admitted by memory, as #4017 wants.warm.rs,main.rsandknown.rstoo. It is a different selection (at the menu, in the run's own process), and the two can coexist.launcher.rs,play.rs). Broader and slower. It does not touchplay-foxhound.ps1.known.rs,pipeline.rs). Different functions.AI use
Claude Code (Claude Opus 5.5) re-applied Kajcsi's commit onto current main, resolved the conflict in
warm.rs, ran the checks listed above, and wrote this note. Nothing was run in game.🤖 Generated with Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.