Passes over the screen are queued at creation by default (VICTORY_SCREEN_EARLY) #4893

Open
github-bot wants to merge 2 commits from github-bot/gh-4892 into main AGit
Owner

@⁠NICKNAMErutschovkonikovan on GitHub · 2026-12-01 13:07 UTC · original
NICKNAMErutschovkonikovan:pr/screen-early → main · +12 −6 · 2 files · 2 commits · open

Refs #4663

What it changes

VICTORY_SCREEN_EARLY is now on by default. A pass over the screen is queued when the title creates it, instead of first when a draw asks for it, so it no longer waits behind the slow list or behind other draws' requests. VICTORY_SCREEN_EARLY=0 restores the old order. The README table now gives the new default.

#4663 logged screen-budget pipeline waits of up to 3 s, several of them in one frame. On an RTX 5090 we saw the same stalls, up to 4 s, while driving into areas whose pipelines were not made yet. The switch already exists and is off by default; this PR only changes that default.

How it was tested

  • GPU and profile: RTX 5090, Ryzen 7 5800X3D, Series X, 2560x1440, DLSS Quality, frame generation off, ray tracing off. The same save was used for every run.
  • Before and after: on our combined build (closed #4772) we made four 120 s standing runs in A B B A order.
    • =0: 18.88 and 19.00 fps. =1: 19.16 and 19.11 fps.
    • Frames over 100 ms: 22 and 9 with it off, 9 and 19 with it on.
    • Longest frame: 1201 and 121 ms with it off, 366 and 858 ms with it on.
    • There were no crashes.
  • Not tested:
    • Driving. The stalls it targets come while driving into new areas, so they are not shown here.
    • This exact branch in the game. It was only built and unit-tested.
  • cargo test -p victory-gpu --lib -- pipeline::make: 38 passed.
  • cargo clippy -p victory-gpu --all-targets -- -D warnings: stops at errors that are already on main (5fabb46e) and are not from this change:
    • host/font.rs 213 and 260, too_many_arguments, from #4635.
    • host/menu.rs 667, manual_is_multiple_of.
    • host/panel.rs 602 and 668, collapsible_if.

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches. Related: #3788 and #3819 (other limits on the same waits) and #4256 (what a frame waits on is made first). None of them changes this default.

🤖 Generated with Claude Code

**@⁠NICKNAMErutschovkonikovan** on GitHub · 2026-12-01 13:07 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4892) `NICKNAMErutschovkonikovan:pr/screen-early` → `main` · +12 −6 · 2 files · 2 commits · open Refs #4663 ## What it changes `VICTORY_SCREEN_EARLY` is now on by default. A pass over the screen is queued when the title creates it, instead of first when a draw asks for it, so it no longer waits behind the slow list or behind other draws' requests. `VICTORY_SCREEN_EARLY=0` restores the old order. The README table now gives the new default. #4663 logged screen-budget pipeline waits of up to 3 s, several of them in one frame. On an RTX 5090 we saw the same stalls, up to 4 s, while driving into areas whose pipelines were not made yet. The switch already exists and is off by default; this PR only changes that default. ## How it was tested - GPU and profile: RTX 5090, Ryzen 7 5800X3D, Series X, 2560x1440, DLSS Quality, frame generation off, ray tracing off. The same save was used for every run. - Before and after: on our combined build (closed #4772) we made four 120 s standing runs in A B B A order. - `=0`: 18.88 and 19.00 fps. `=1`: 19.16 and 19.11 fps. - Frames over 100 ms: 22 and 9 with it off, 9 and 19 with it on. - Longest frame: 1201 and 121 ms with it off, 366 and 858 ms with it on. - There were no crashes. - Not tested: - Driving. The stalls it targets come while driving into new areas, so they are not shown here. - This exact branch in the game. It was only built and unit-tested. - `cargo test -p victory-gpu --lib -- pipeline::make`: 38 passed. - `cargo clippy -p victory-gpu --all-targets -- -D warnings`: stops at errors that are already on `main` (5fabb46e) and are not from this change: - `host/font.rs` 213 and 260, `too_many_arguments`, from #4635. - `host/menu.rs` 667, `manual_is_multiple_of`. - `host/panel.rs` 602 and 668, `collapsible_if`. ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. Related: #3788 and #3819 (other limits on the same waits) and #4256 (what a frame waits on is made first). None of them changes this default. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
#4662 (RTX 3090, v2026.11.30.03) logged screen-budget waits of up to 3 s,
several in one frame. On an RTX 5090 with a 5800X3D the same stalls, up to
4 s, came while driving into areas whose pipelines were not made yet. With
VICTORY_SCREEN_EARLY a pass over the screen is queued when the title
creates it, not first when a draw asks for it. VICTORY_SCREEN_EARLY=0 keeps
the old order.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 13:10:23 +00:00
Author
Owner

@⁠andrewpozdnakov7-jpg on GitHub · 2026-12-01 14:29 UTC · original

On d561a696, VICTORY_SCREEN_WAIT_MS=0 disables the screen priority queue. The slow-queue check still excludes fullscreen pipelines whenever SCREEN_EARLY is on, so a previously recorded slow fullscreen pipeline can move into the ordinary early queue and bypass the slow-worker limit.

bcebf7dd uses the same early-screen predicate for scheduling and for the slow-queue exception. The exact Windows queue fixture routed a cached slow fullscreen pipeline to early on the author head with screen priority disabled and to slow with the patch. With screen priority on it routed to screen, and the explicit early-off and non-screen cases routed to slow. The staged asset check passed.

The fresh v2026.11.30.03 log in #4918 also records two waits under the screen budget, 559 and 586 ms, next to frame peaks of 555 and 587 ms. That budget is shared by multiple pipeline classes, so the log establishes the delay and leaves the classification to check.

Please keep the Git author on cherry-pick or rebase, or add Co-authored-by: andrewpozdnakov7-jpg <[email protected]> if folding the change in.

AI-assisted with OpenAI Codex.

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-12-01 14:29 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4892#issuecomment-7314350882) On `d561a696`, `VICTORY_SCREEN_WAIT_MS=0` disables the screen priority queue. The slow-queue check still excludes fullscreen pipelines whenever `SCREEN_EARLY` is on, so a previously recorded slow fullscreen pipeline can move into the ordinary early queue and bypass the slow-worker limit. [bcebf7dd](https://github.com/andrewpozdnakov7-jpg/VIctory-NVIDIA/commit/bcebf7dd12ea611f664eac96f4a3edb6ceb8c674) uses the same early-screen predicate for scheduling and for the slow-queue exception. The exact Windows queue fixture routed a cached slow fullscreen pipeline to `early` on the author head with screen priority disabled and to `slow` with the patch. With screen priority on it routed to `screen`, and the explicit early-off and non-screen cases routed to `slow`. The staged asset check passed. The fresh [v2026.11.30.03 log in #4918](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/issues/4918) also records two waits under the screen budget, 559 and 586 ms, next to frame peaks of 555 and 587 ms. That budget is shared by multiple pipeline classes, so the log establishes the delay and leaves the classification to check. Please keep the Git author on cherry-pick or rebase, or add `Co-authored-by: andrewpozdnakov7-jpg <[email protected]>` if folding the change in. AI-assisted with OpenAI Codex.
Author
Owner

@⁠NICKNAMErutschovkonikovan on GitHub · 2026-12-01 14:45 UTC · original

Thanks, good catch. Your commit is in as 77fa7f03 with you as its author: the slow-queue exception and the early start now use the same predicate, so with VICTORY_SCREEN_WAIT_MS=0 a slow fullscreen pipeline stays under the slow-worker limit. cargo test -p victory-gpu --lib -- pipeline::make: 38 passed.

**@⁠NICKNAMErutschovkonikovan** on GitHub · 2026-12-01 14:45 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4892#issuecomment-7314784893) Thanks, good catch. Your commit is in as 77fa7f03 with you as its author: the slow-queue exception and the early start now use the same predicate, so with VICTORY_SCREEN_WAIT_MS=0 a slow fullscreen pipeline stays under the slow-worker limit. `cargo test -p victory-gpu --lib -- pipeline::make`: 38 passed.
Author
Owner

@⁠kyle7908 on GitHub · 2026-12-01 15:18 UTC · original

RTX 4070 Series S check

Inconclusive. The manual baseline reproduced four screen-pass waits during movement. With early queuing enabled, the worst present gap was shorter, but the number of gaps over 100 ms rose. Neither arm logged a screen-pass wait during the recorded-input replay, so the larger benchmark would have had no baseline reproduction of the target stall on this route.

The PR now includes 77fa7f03, which keeps slow fullscreen pipelines under the slow-worker limit when VICTORY_SCREEN_WAIT_MS=0. I tested the existing VICTORY_SCREEN_EARLY switch with values 0 and 1 in the official v2026.11.30.03 binary (e1251c31). The exact PR branch, including 77fa7f03, remains untested in this report. All runs used the release default for VICTORY_SCREEN_WAIT_MS and leave that queue-routing case outside the measurement.

Ryzen 7 9850X3D, RTX 4070 12 GB (driver 610.88), 32 GB RAM, Windows 11. Series S, 960×540 internal and 1920×1080 output, DLSS Performance, 60 FPS cap, frame generation and RT off. Each 180-second run started from a fresh copy of the same save and VIctory cache snapshot. The driver cache was shared across runs.

Metric Manual off Manual on Replay off Replay on
Logged screen-pass waits during route 4 0 0 0
Rendered present gaps over 100 ms 11 13 0 1
Longest rendered present gap 643.9 ms 274.0 ms 96.2 ms 254.9 ms
Median logged rendered FPS 25.0 24.75 28.1 30.5
PresentMon p95 / p99 — — 54.15 / 72.36 ms 51.09 / 66.45 ms
Minimum free physical memory 412 MiB 322 MiB 1,490 MiB 974 MiB
Peak GPU temperature 56 °C 58 °C 58 °C 58 °C

The four manual baseline waits totalled 2,846 ms of logged wait time. The manual enabled arm logged three waits totalling 4,325 ms before the measurement cue. The manual cue occurred about 125 s after first present with the switch off and 96 s with it on, so the wait totals describe different startup windows. Both replay arms used the same recorded controller input and cue timing.

PresentMon yielded 5,033 and 5,428 timed samples in the replay arms. Route counts and longest gaps come from VIctory's rendered-present log. All four measured runs exited cleanly. Visual differences and CPU package temperature were unverified. One earlier setup launch stopped before the route cue and supplied no benchmark data.

**@⁠kyle7908** on GitHub · 2026-12-01 15:18 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4892#issuecomment-7315693635) ### RTX 4070 Series S check **Inconclusive.** The manual baseline reproduced four screen-pass waits during movement. With early queuing enabled, the worst present gap was shorter, but the number of gaps over 100 ms rose. Neither arm logged a screen-pass wait during the recorded-input replay, so the larger benchmark would have had no baseline reproduction of the target stall on this route. The PR now includes `77fa7f03`, which keeps slow fullscreen pipelines under the slow-worker limit when `VICTORY_SCREEN_WAIT_MS=0`. I tested the existing `VICTORY_SCREEN_EARLY` switch with values `0` and `1` in the official `v2026.11.30.03` binary (`e1251c31`). The exact PR branch, including `77fa7f03`, remains untested in this report. All runs used the release default for `VICTORY_SCREEN_WAIT_MS` and leave that queue-routing case outside the measurement. Ryzen 7 9850X3D, RTX 4070 12 GB (driver 610.88), 32 GB RAM, Windows 11. Series S, 960×540 internal and 1920×1080 output, DLSS Performance, 60 FPS cap, frame generation and RT off. Each 180-second run started from a fresh copy of the same save and VIctory cache snapshot. The driver cache was shared across runs. | Metric | Manual off | Manual on | Replay off | Replay on | |---|---:|---:|---:|---:| | Logged screen-pass waits during route | 4 | 0 | 0 | 0 | | Rendered present gaps over 100 ms | 11 | 13 | 0 | 1 | | Longest rendered present gap | 643.9 ms | 274.0 ms | 96.2 ms | 254.9 ms | | Median logged rendered FPS | 25.0 | 24.75 | 28.1 | 30.5 | | PresentMon p95 / p99 | — | — | 54.15 / 72.36 ms | 51.09 / 66.45 ms | | Minimum free physical memory | 412 MiB | 322 MiB | 1,490 MiB | 974 MiB | | Peak GPU temperature | 56 °C | 58 °C | 58 °C | 58 °C | The four manual baseline waits totalled 2,846 ms of logged wait time. The manual enabled arm logged three waits totalling 4,325 ms before the measurement cue. The manual cue occurred about 125 s after first present with the switch off and 96 s with it on, so the wait totals describe different startup windows. Both replay arms used the same recorded controller input and cue timing. PresentMon yielded 5,033 and 5,428 timed samples in the replay arms. Route counts and longest gaps come from VIctory's rendered-present log. All four measured runs exited cleanly. Visual differences and CPU package temperature were unverified. One earlier setup launch stopped before the route cue and supplied no benchmark 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/4893/head:github-bot/gh-4892'
git switch 'github-bot/gh-4892'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-4892'
git switch 'github-bot/gh-4892'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-4892'
git switch 'github-bot/gh-4892'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-4892'
git switch 'main'
git merge --squash 'github-bot/gh-4892'
git switch 'main'
git merge --ff-only 'github-bot/gh-4892'
git switch 'main'
git merge 'github-bot/gh-4892'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!4893
No description provided.