fix(gpu): cap how long a frame waits for compute pipelines (hang watchdog at 30 s) #315
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!315
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@Lyrnc on GitHub · 2026-11-27 20:56 UTC · original
Lyrnc:fix/compute-wait-cap→main· +86 −1 · 1 files · 2 commits · openBuilds 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
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.