feat(pipeline): VICTORY_PIPELINE_WAIT_MS sets how long a frame waits for new host pipelines (500 ms by default, as before) #638

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

@⁠Raptorbk45 on GitHub · 2026-12-05 22:37 UTC · original
Raptorbk45:feat/pipeline-wait-ms → main · +44 −2 · 3 files · 1 commits · open

The per-frame budget draws spend waiting for host pipelines met for the first time is a fixed 500 ms. VICTORY_PIPELINE_WAIT_MS=<0..10000> sets it; unset or unparsable is 500, values above 10000 are clamped. Passes over the screen keep their own 10 s budget. A value other than 500 is logged once.

Lower values trade a stall for draws that appear some frames late (a pass drawn only once whose pipeline is not ready is lost); higher ones the reverse. Useful for comparing runs and for machines where prewarm is incomplete.

Default unchanged: wait_budget() returns 500 ms exactly as before when the variable is unset.

How it was checked

Run after the final edit, on Linux (CachyOS), against main at 8c4e6633:

  • ./build.sh check (release, MSVC target): passes; the one warning (room_lately never used, resource.rs) is already on main
  • cargo xtask policy: passes
  • cargo test -p victory-core --lib menu: 18 passed
  • PKG=victory-gpu ./build.sh test --lib -- pipeline::make under Wine: 8 passed, the_wait_budget_is_parsed included

Not run: the game.

Branch head: 575ea49b.

New test the_wait_budget_is_parsed (unset, empty, garbage, negative, 0, padded, clamped).

No performance claim: we have not measured values other than 500 on current main.

Checks

  • One subject
  • Off by default (unset = 500 ms as today)
  • Docs: docs/SETTINGS.md, run.conf.default (# choices: 0|50|100|250|1000)
  • Test named above
  • Queue checked: no open PR on the wait budget (#98 merged, different change); independent of my VICTORY_PIPELINE_KICK PR (same file, different functions; both add a test at the end of the tests module, so the second to land needs a trivial rebase)
  • cargo xtask policy
**@⁠Raptorbk45** on GitHub · 2026-12-05 22:37 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/638) `Raptorbk45:feat/pipeline-wait-ms` → `main` · +44 −2 · 3 files · 1 commits · open The per-frame budget draws spend waiting for host pipelines met for the first time is a fixed 500 ms. `VICTORY_PIPELINE_WAIT_MS=<0..10000>` sets it; unset or unparsable is 500, values above 10000 are clamped. Passes over the screen keep their own 10 s budget. A value other than 500 is logged once. Lower values trade a stall for draws that appear some frames late (a pass drawn only once whose pipeline is not ready is lost); higher ones the reverse. Useful for comparing runs and for machines where prewarm is incomplete. Default unchanged: `wait_budget()` returns 500 ms exactly as before when the variable is unset. ## How it was checked Run after the final edit, on Linux (CachyOS), against `main` at 8c4e6633: - `./build.sh check` (release, MSVC target): passes; the one warning (`room_lately` never used, `resource.rs`) is already on `main` - `cargo xtask policy`: passes - `cargo test -p victory-core --lib menu`: 18 passed - `PKG=victory-gpu ./build.sh test --lib -- pipeline::make` under Wine: 8 passed, `the_wait_budget_is_parsed` included Not run: the game. Branch head: `575ea49b`. New test `the_wait_budget_is_parsed` (unset, empty, garbage, negative, 0, padded, clamped). No performance claim: we have not measured values other than 500 on current `main`. ## Checks - [x] One subject - [x] Off by default (unset = 500 ms as today) - [x] Docs: `docs/SETTINGS.md`, `run.conf.default` (`# choices: 0|50|100|250|1000`) - [x] Test named above - [x] Queue checked: no open PR on the wait budget (#98 merged, different change); independent of my `VICTORY_PIPELINE_KICK` PR (same file, different functions; both add a test at the end of the tests module, so the second to land needs a trivial rebase) - [x] `cargo xtask policy`
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-05 22:39:19 +00:00
This pull request can be merged automatically.
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/638/head:github-bot/gh-638'
git switch 'github-bot/gh-638'

Merge

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