fix(gpu): a dispatch waits for its compute pipeline until it is made #243
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by mutlusinan on 2026-11-27T20:04:49Z.
Problem
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.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by mutlusinan on 2026-11-27T20:21:27Z.
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.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by mutlusinan on 2026-11-28T12:01:32Z.
Rebased onto current
mainRebased onto
63b902f(force-with-lease) and re-verified:cargo check --workspace --target x86_64-pc-windows-msvc --lockedis clean.pipeline::make::readyonmainstill waits only within the frame's budget, so this change is not superseded.The risk note above stands as written — this remains the one change in the set that can block the submitting thread for seconds, and it is default-on. Still worth a cold-cache measurement before merging.
CI shows
action_required(maintainer approval to run a fork's workflow).