GPU: bound the per-frame pipeline wait with VICTORY_PIPELINE_WAIT_MS #76
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/76"
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 Belobug/VIctory-Belobug-AMD. Originally posted by dutch2005 on 2026-11-25T13:32:50Z.
Why
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