fix(gpu): a dispatch waits for its compute pipeline until it is made #243
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!243
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-243"
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?
@mutlusinan on GitHub · 2026-11-27 20:04 UTC · original
mutlusinan:fix/compute-pipeline-wait→main· +26 −1 · 1 files · 1 commits · openProblem
A draw whose pipeline is not ready within the frame's budget is dropped — and drawn again next frame, so it costs one frame. A dispatch may not be drawn again: the title runs some compute passes once, when a scene changes (a buffer is reset or cleared), and what they leave is read for as long as the scene lasts.
In the prison corridor, a compute program met for the first time took 4.4 s to make on a 16 GB machine; its one dispatch was dropped after the half second of budget, and the windows of the previous room stayed blended over the picture for minutes (run 195 of the fork it comes from).
Fix
In
pipeline::make::ready, a compute pipeline (p.graphics.is_none()) is now made/waiting until it exists, whatever the frame's budget; a draw still waits within the budget.VICTORY_PIPELINE_COMPUTE_WAIT=0restores the old behaviour. The pipeline library has the program on the next run, so the multi-second wait happens once.Verification
cargo check -p victory-gpu --all-targets --target x86_64-pc-windows-msvc --locked— clean.Ported from fxceless/victory-fork
a42b627(pull request #1312), GPL-3.0-or-later.@mutlusinan on GitHub · 2026-11-27 20:21 UTC · original
Risk assessment (porting review)
VICTORY_PIPELINE_COMPUTE_WAIT=0restores the old behaviour. Draws are unchanged (still budgeted and dropped).%LOCALAPPDATA%\victorycache and on the title's first world frame before merging; if the watchdog shows up, this should go in default-off.mainate69e39c.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.