fix(gpu): cap how long a frame waits for compute pipelines (hang watchdog at 30 s) #315
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/315"
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-27T20:56:50Z.
Builds on #243. This branch is #243's commit plus one more, so merging this lands both. If #243 lands first, this one is only the second commit.
Problem
With #243, a compute dispatch waits for its pipeline however long that takes. With an empty cache, the first cutscene met 457 compute programs in one frame, at about a second each. That frame then ran for more than 30 s. The title's own hang watchdog fires after 30 s and stores to address 0 (
+0x23cf683), which crashes the title. This was reported on fxceless/victory-fork as #1420.Fix
The fix is armin's commit from fxceless/victory-fork#1450 (still open there). The author is kept.
VICTORY_PIPELINE_COMPUTE_WAIT_MS, summed over threads. The default is 8,000 ms, which leaves room under the watchdog's 30 s for makes that other threads have already started.Conflict resolution here: #243 has no 600-frame rule, so the condition is now
compute_waits() && (early || compute_room(frame)). WithVICTORY_PIPELINE_COMPUTE_WAIT=0, a dispatch waits within the budget exactly as before. Onlypipeline/make.rschanges.Verification
On Windows 11, RTX 5080:
cargo clippy -p victory-gpu --all-targets -- -D warnings: nothing inmake.rs. The errors it gives are in other files and are onmaintoo (#265 fixes those).cargo test -p victory-gpu --lib pipeline::make: 6 pass, andpending_pipeline_is_recorded_for_the_next_launchfails. It fails the same way on #243's head without this commit.cargo fmt --checkwas not used: it already fails onmain(inapps/victoryand in this file), so I kept the surrounding style.Not run in game on this branch.
AI use: Claude Code (Claude Opus 5.5) ported the commit, resolved the conflict with #243, ran the checks above and drafted this description.
🤖 Generated with Claude Code
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Lyrnc on 2026-11-29T22:09:40Z.
Closing: main has its own per-frame cap for compute pipeline waits now (
88244e8d, refined in11e8b54c), andaee4c45akeeps a long stall from ending as a crash at +0x23cf683. That covers what this PR did. Thanks to everyone who tested it.Pull request closed