Lowend perf #4741

Closed
github-bot wants to merge 9 commits from github-bot/gh-4740 into main AGit
Owner

@⁠gonzalotuitow-svg on GitHub · 2026-12-01 04:32 UTC · original
gonzalotuitow-svg:lowend-perf → main · +1301 −168 · 23 files · 9 commits · closed without merging

Fixes #

What it changes

How it was tested

  • GPU and profile (Series X or S, resolution, DLSS, frame generation, ray tracing):
  • Before:
  • After:
  • For shader changes, the wave sizes tested (32 and/or 64 lanes):
  • cargo test passed for the crates it touches: yes / no

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches. Related: #
**@⁠gonzalotuitow-svg** on GitHub · 2026-12-01 04:32 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4740) `gonzalotuitow-svg:lowend-perf` → `main` · +1301 −168 · 23 files · 9 commits · closed without merging <!-- Thanks for the pull request. Please label it (pr-fix, pr-feature, pr-performance, pr-diagnostics, pr-refactor, pr-docs or pr-tests, plus the area labels), or put the label in the title, like [pr-fix]. --> Fixes # ## What it changes <!-- What was wrong, and what this does about it. --> ## How it was tested - GPU and profile (Series X or S, resolution, DLSS, frame generation, ray tracing): - Before: - After: - For shader changes, the wave sizes tested (32 and/or 64 lanes): - `cargo test` passed for the crates it touches: yes / no ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. Related: #
The title presents on an even beat, but how much of the next frame's
work lies ahead of each present in the line of submissions alternates,
so the host's presents came early and late in turn: frames of some 30
and 50 ms on end at a mean of 37 ms.

A present that is ready early is now held until the frames' mean time
since the one before has passed, on a thread of its own (victory-pace).
The frame's copy into the back buffer is recorded and sent where it was;
only the call that shows it waits, and the submitting thread goes on with
the next submissions. At most one present is held: the next one shows it
first.

Left as they come: presents with frame generation, through Streamline's
or FidelityFX's swap chain, and those handed to present_aside's thread
(VICTORY_PRESENT_ASIDE, VICTORY_PRESENT_QUEUE).

Ryzen 7 9800X3D, RTX 4090, 2560x1440, DLSS Quality, no frame generation,
driving in traffic, on and off every 12 s of one run (VICTORY_AB), eleven
phases of each: frames 10 ms or more from the one before 16 % against
76 %, the 95th hundredth 46.7 against 64.2 ms, the slowest hundredth 13.6
against 10.6 frames a second, the mean 37.5 against 37.3 ms. With the
camera swung round six times: 20 % against 74 %, 52.9 against 67.0 ms,
12.0 against 10.0 frames a second.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Past the DXGI budget, first_upload_decision refuses a texture of unknown
size (weighed as one byte, it always fit the free ranges) and any first
upload while the card is over by more than the free ranges of the texture
blocks hold (they are what slot eviction just gave back). Off by default;
under the budget nothing changes either way. docs/8gb-cards.md: why the
budget decides the frame rate on these cards, this switch and
VICTORY_RESIDENCY_PRIORITY (#3804).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WiREjDTE7b3pRCmCoV3FDx
asked_for! exists only on Windows, so a test build elsewhere (#3687) would
not compile first_upload_guard; a false stand-in covers it, as the other
switch readers do. docs/8gb-cards.md: below the black-face fix's floor a
first upload is allowed before the guard is asked.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WiREjDTE7b3pRCmCoV3FDx
With DLSS frame generation set up, Reflex low latency is on. Reflex
measures each frame's GPU time from the card's queues, and with
VICTORY_CARD_AWAKE=1 it counts the never-ending compute job of
host/awake.rs in: the card then looks busy for the whole frame, Reflex
takes the frame for GPU-bound and sleeps the CPU inside each present to
match it, which keeps the frame that long. A start that falls into this
stays at 14.0 fps (71.4 ms a frame) for the whole session; the reports of
VIctory-NVIDIA #1405, #995 and #515 match it.

The awake job is now left out while Reflex is on (one log line says so);
VICTORY_CARD_AWAKE=always keeps it. Without frame generation nothing
changes.

Measured (RTX 5060 Ti 16 GB, Ryzen 7 5800X, 32 GB, Windows 11, driver
621.24, Streamline 2.14.16; Series X, 1080p to 1440p, DLSS Performance,
frame generation 2x; the same save, scripted starts, 60 s standing):
- VICTORY_CARD_AWAKE=1: 11 of 21 starts locked at 71.4 ms, present call
  8-31 ms (median per start); free starts 0.1-0.8 ms.
- VICTORY_CARD_AWAKE=0: 0 of 6 locked, 15-24 fps, present call 0.1-0.6 ms.
- This change with VICTORY_CARD_AWAKE=1: the job left out (log line),
  not locked, 18.1 fps, present call 0.56 ms.
- Reflex's own report (slReflexGetState) in a locked start: GPU active
  71-73 ms a frame, equal to the frame step; in free starts 19-41 ms.
  Windows' GPU counter: 95-96 % busy with the job, 52-64 % without, at
  the same power (104-119 W).
- Whether the frames went through frame generation did not decide it:
  locked starts had 1 to 76 % of presents through it, free ones 0 to 81 %.

Not measured: frame rate with the job against without it in unlocked
starts (upstream 42c064d found it slower in the game and left it off in
the launchers since).

Co-Authored-By: AS-AI-DEV <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 04:36:04 +00:00
github-bot closed this pull request 2026-12-01 18:36:49 +00:00
Author
Owner

@⁠trustno1-coder on GitHub · 2026-12-01 18:33 UTC · original

Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.

**@⁠trustno1-coder** on GitHub · 2026-12-01 18:33 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4740#issuecomment-7321144718) Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.

Pull request closed

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!4741
No description provided.