GPU loading allowance follows elapsed frame waits #19

Open
github-bot wants to merge 1 commit from github-bot/gh-19 into main AGit
Owner

@⁠Artking175 on GitHub · 2026-11-25 18:49 UTC · original
Artking175:pipeline-loading-budget → main · +94 −20 · 1 files · 1 commits · open

Problem

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=1 passed all 10 tests, including two new deterministic regressions.
  • cargo test --locked -p victory-gpu --lib -- --test-threads=1 gave 187 passed, 1 failed and 3 ignored on main, and 189 passed, 1 failed and 3 ignored with the patch. Both runs failed depth_bounds_pipeline_loads_and_filters_draws with 0x80070057 during root-signature creation.
  • git diff --check passed.

Gameplay FPS was not measured. Related discussion in #7.

**@⁠Artking175** on GitHub · 2026-11-25 18:49 UTC · [original](https://github.com/DexNom/VIctory/pull/19) `Artking175:pipeline-loading-budget` → `main` · +94 −20 · 1 files · 1 commits · open ## Problem 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=1` passed all 10 tests, including two new deterministic regressions. - `cargo test --locked -p victory-gpu --lib -- --test-threads=1` gave 187 passed, 1 failed and 3 ignored on main, and 189 passed, 1 failed and 3 ignored with the patch. Both runs failed `depth_bounds_pipeline_loads_and_filters_draws` with `0x80070057` during root-signature creation. - `git diff --check` passed. Gameplay FPS was not measured. Related discussion in [#7](https://git.gtahub.st/github/DexNom--VIctory/pulls/7).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:31:52 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/19/head:github-bot/gh-19'
git switch 'github-bot/gh-19'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-19'
git switch 'github-bot/gh-19'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-19'
git switch 'github-bot/gh-19'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-19'
git switch 'main'
git merge --squash 'github-bot/gh-19'
git switch 'main'
git merge --ff-only 'github-bot/gh-19'
git switch 'main'
git merge 'github-bot/gh-19'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.