GPU: bound the per-frame pipeline wait with VICTORY_PIPELINE_WAIT_MS #76
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/Belobug--VIctory-Belobug-AMD!76
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/76/head"
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?
@dutch2005 on GitHub · 2026-11-25 13:32 UTC · original
perf/pipeline-wait-ms→main· +53 −2 · 2 files · 1 commits · closed without mergingWhy
The wait for a pipeline made by a background worker is a constant 500 ms per title frame (20 s for screen passes). On the world's first frames, where thousands of pipelines are still being made, that wait can dominate, and there is no way to trade a dropped draw for frame time.
fxceless/victory-forkand upstream carry the same switch; this is written anew against this tree's budget code.What
VICTORY_PIPELINE_WAIT_MSonce (milliseconds;0does not wait).Testing
cargo test -p victory-gpu --lib pipeline_wait -- --test-threads=1— 3 passed, 0 failed:VICTORY_PIPELINE_WAIT_MSvalue, invalid fallback,0),Duration::default()),waitactually blocks for the worker instead of returning immediately.cargo mutants -p victory-gpu --in-diff <this diff> -- --lib pipeline_wait— 4 mutants, 4 caught.Notes
A draw or dispatch whose pipeline is not ready when the budget is spent is dropped, as an untranslated one is. Lowering the value can omit draws until their pipeline is ready; it does not make pipelines cheaper.
Pull request closed