GPU loading allowance follows elapsed frame waits #19
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/DexNom--VIctory!19
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-19"
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?
@Artking175 on GitHub · 2026-11-25 18:49 UTC · original
Artking175:pipeline-loading-budget→main· +94 −20 · 1 files · 1 commits · openProblem
The loading allowance was charged against each individual wait. With a 500 ms base budget, sequential waits of 400, 400 and 200 ms in one frame leave 500 ms to charge. The previous code charged zero. With the default shared wait window, two overlapping 800 ms waits should spend 300 ms beyond the base, but per-wait accounting can count 600 ms.
Change
Account for elapsed waiting beyond the ordinary budget once per frame and pipeline kind. Count overlapping waits once in the default mode. Track reserved time separately from completed waits so the reserve mode only charges time that elapsed. The loading allowance already recorded for the current frame is excluded when calculating that frame's remaining budget.
Verification
Tested on Windows 10 22H2 (19045), RTX 2060 (driver 531.41) and Rust 1.98.1 MSVC on base
2e01ab4.cargo test --locked -p victory-gpu --lib pipeline::make -- --test-threads=1passed all 10 tests, including two new deterministic regressions.cargo test --locked -p victory-gpu --lib -- --test-threads=1gave 187 passed, 1 failed and 3 ignored on main, and 189 passed, 1 failed and 3 ignored with the patch. Both runs faileddepth_bounds_pipeline_loads_and_filters_drawswith0x80070057during root-signature creation.git diff --checkpassed.Gameplay FPS was not measured. Related discussion in #7.
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.