gpu/queue: opt-in present release for the title (VICTORY_PRESENT_RELEASE) #111

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

@⁠SovietBearz0r on GitHub · 2026-12-05 12:40 UTC · original
SovietBearz0r:minivi-present-release → main · +101 −2 · 1 files · 1 commits · draft

Opt-in: let the title's present go once the frame ahead has at most N submissions left: VICTORY_PRESENT_RELEASE=<n> (default off = today's wait-for-all).

What

New Lane::wait_presents_ahead (with the pure Lane::released, "how many submissions in front of the present ahead") in crates/victory-gpu/src/queue/behind.rs, used from present. A stats fragment appears in the submit frame line; VICTORY_AB can toggle it for A/B. Defaults off so nothing changes unless asked.

Verification

  • cargo test -p victory-gpu --lib: 713 passed, including the ported state test of the release calculation.
  • cargo check -p victory, cargo xtask policy, clippy: clean.
  • Needs in-game A/B before enabling: the source measured p90 ~4.2±1.4 ms shorter (2 runs); this changes present timing/our line depth, so check pacing/tearing with 2 (their default), 3 and off.

Source: Androtim/MiniVI 405926d6 (+104, queue/behind.rs).

**@⁠SovietBearz0r** on GitHub · 2026-12-05 12:40 UTC · [original](https://github.com/ReTerryDavis/ReVIctory/pull/110) `SovietBearz0r:minivi-present-release` → `main` · +101 −2 · 1 files · 1 commits · draft Opt-in: let the title's present go once the frame ahead has at most N submissions left: `VICTORY_PRESENT_RELEASE=<n>` (default off = today's wait-for-all). ## What New `Lane::wait_presents_ahead` (with the pure `Lane::released`, "how many submissions in front of the present ahead") in `crates/victory-gpu/src/queue/behind.rs`, used from `present`. A stats fragment appears in the submit frame line; `VICTORY_AB` can toggle it for A/B. Defaults off so nothing changes unless asked. ## Verification - `cargo test -p victory-gpu --lib`: 713 passed, including the ported state test of the release calculation. - `cargo check -p victory`, `cargo xtask policy`, clippy: clean. - **Needs in-game A/B before enabling**: the source measured p90 ~4.2±1.4 ms shorter (2 runs); this changes present timing/our line depth, so check pacing/tearing with 2 (their default), 3 and off. Source: Androtim/MiniVI `405926d6` (+104, `queue/behind.rs`).
Ported from MiniVI 405926d6 (queue/behind.rs).

The title waits at its present until the present ahead of it is done
(VICTORY_SUBMIT_FRAMES). With VICTORY_PRESENT_RELEASE=<n> it goes on as
soon as that present is being done or has at most n submissions in front
of it in the line, so that our line, and the card, run dry less often; it
is never let go with two presents ahead of its own. Off by default here,
so a title's present sees exactly what it saw before; MiniVI's in-run A/B
(10 s phases, two runs) had the frame's p90 4.2 +- 1.4 ms shorter and its
median 1.0 +- 0.6, but this needs an in-game A/B on this fork before it is
played with. Diagnostics builds can switch it during a run (VICTORY_AB).

The wait and the 'how many left' calculation are a pure test on the
line's state (the_title_is_let_go_as_the_present_ahead_comes_near); the
frame line says how many presents were let go.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-05 12:44:38 +00:00
Author
Owner

@⁠ReTerryDavis on GitHub · 2026-12-05 17:38 UTC · original

Marking this as draft for now. VICTORY_PRESENT_RELEASE hasn't been tested in-game yet and relaxes synchronization on the exact Present pipeline where we just had to revert VICTORY_THIN_FINISH_AT_PRESENT (a6b5a99) after frame-smearing/stalls; it also adds extra noise to the periodic VICTORY_ASYNC_SUBMIT log line even when unset. Let's hold until there's real in-game stability + frame-pacing A/B data.

**@⁠ReTerryDavis** on GitHub · 2026-12-05 17:38 UTC · [original](https://github.com/ReTerryDavis/ReVIctory/pull/110#issuecomment-7442357263) Marking this as draft for now. `VICTORY_PRESENT_RELEASE` hasn't been tested in-game yet and relaxes synchronization on the exact Present pipeline where we just had to revert `VICTORY_THIN_FINISH_AT_PRESENT` (`a6b5a99`) after frame-smearing/stalls; it also adds extra noise to the periodic `VICTORY_ASYNC_SUBMIT` log line even when unset. Let's hold until there's real in-game stability + frame-pacing A/B data.
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/111/head:github-bot/gh-110'
git switch 'github-bot/gh-110'

Merge

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