Texture pass: stops after 128 slots held back for room, not 1,024 (VICTORY_TEXTURE_HELD_CAP) #1095

Closed
bentsignal wants to merge 1 commit from upstream-pr/1095 into main
bentsignal commented 2026-11-28 13:12:16 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by bentsignal on 2026-11-28T13:12:16Z.


What this fixes

With the card at the texture line (resource::room_line), the texture pass looks at slot after slot it can only hold back for room (Told::Held), up to 1,024 of them per pass before it stops. Each such look costs the recording thread some 15-20 us and makes nothing.

At a cutscene's cuts on a 16 GB card (Windows giving the process ~10.9 GB, frame generation on), a per-second texture line showed passes holding 6,000-35,000 slots a second, costing 150-550 ms a second of the recording thread, about 12 ms a frame, up to 48 ms in one pass at a cut. The slots held were served a median 0.9 s after their write.

The change

draw.rs: a pass with full_card_pass() stops after 128 slots held for room instead of 1,024 (VICTORY_TEXTURE_HELD_CAP; VICTORY_TEXTURE_HELD_CAP=1024 restores the old behaviour). The slots it did not reach stay due for the next pass, and the pass still serves everything else it meets before the cap.

Measured

RTX 5070 Ti 16 GB, Ryzen 9 9900X, Windows 11. Series X profile, 2560x1440, DLSS Quality, frame generation 3x, release, pipelines warmed. First cutscene, back to back runs.

This was measured together with two changes that are not in this PR: sweeps counting as pressed while the pass finds no room (a follow-up to #340) and a launcher texture line of 93 % with frame generation. All three together:

before after
fps 23.3 29.7
frames over 50 ms 4.6 /s 2.2 /s
texture slots held back for room ~9,800 /s ~1,200 /s
a held slot served after its write (median) 919 ms ~220 ms

The cap's own share was not measured apart. What it acts on is the recording thread's time in looks at held slots; the texture passes cost ~12 ms a frame before, and with all three their per-slot looks still cost ~7-10 ms a frame. The picture was as before.

Tests

  • cargo check --locked -p victory-gpu.
  • cargo test --locked -p victory-gpu --lib draw::: 8 passed, 1 ignored.

Setup

Own dump of the title. No game files are attached or quoted.

This change and its testing were done with an AI assistant (Claude Code), and the results were checked on my machine.

🤖 Generated with Claude Code

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5540467224 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1095). Originally posted by [bentsignal](https://github.com/bentsignal) on 2026-11-28T13:12:16Z. --- ## What this fixes With the card at the texture line (`resource::room_line`), the texture pass looks at slot after slot it can only hold back for room (`Told::Held`), up to 1,024 of them per pass before it stops. Each such look costs the recording thread some 15-20 us and makes nothing. At a cutscene's cuts on a 16 GB card (Windows giving the process ~10.9 GB, frame generation on), a per-second texture line showed passes holding **6,000-35,000 slots a second**, costing **150-550 ms a second** of the recording thread, about 12 ms a frame, up to 48 ms in one pass at a cut. The slots held were served a median 0.9 s after their write. ## The change `draw.rs`: a pass with `full_card_pass()` stops after **128** slots held for room instead of 1,024 (`VICTORY_TEXTURE_HELD_CAP`; `VICTORY_TEXTURE_HELD_CAP=1024` restores the old behaviour). The slots it did not reach stay due for the next pass, and the pass still serves everything else it meets before the cap. ## Measured RTX 5070 Ti 16 GB, Ryzen 9 9900X, Windows 11. Series X profile, 2560x1440, DLSS Quality, frame generation 3x, release, pipelines warmed. First cutscene, back to back runs. This was measured together with two changes that are not in this PR: sweeps counting as pressed while the pass finds no room (a follow-up to #340) and a launcher texture line of 93 % with frame generation. All three together: | | before | after | |---|---|---| | fps | 23.3 | 29.7 | | frames over 50 ms | 4.6 /s | 2.2 /s | | texture slots held back for room | ~9,800 /s | ~1,200 /s | | a held slot served after its write (median) | 919 ms | ~220 ms | The cap's own share was not measured apart. What it acts on is the recording thread's time in looks at held slots; the texture passes cost ~12 ms a frame before, and with all three their per-slot looks still cost ~7-10 ms a frame. The picture was as before. ## Tests - `cargo check --locked -p victory-gpu`. - `cargo test --locked -p victory-gpu --lib draw::`: 8 passed, 1 ignored. ## Setup Own dump of the title. No game files are attached or quoted. This change and its testing were done with an AI assistant (Claude Code), and the results were checked on my machine. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Aniseto commented 2026-11-28 15:02:31 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Aniseto on 2026-11-28T15:02:31Z.


Ran the texture-pass module tests at 17e6568 on an NVIDIA Blackwell desktop part:

Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, 32-lane waves only, 16 GB) driver 32.0.16.2124, Intel Core i5-12400F, 64 GB RAM, Rust 1.98.1 (48a229cea 2026-09-01, pinned by rust-toolchain.toml), MSVC 14.44.35207, DXC 1.9.2609.5 (shared env), debug build.

VICTORY_D3D12_ADAPTER=NVIDIA cargo test -p victory-gpu --lib draw:: -- --test-threads=1
8 passed; 0 failed; 1 ignored; 0 measured; 480 filtered out      (exit 0)

All eight runnable tests pass, including a_frames_pass_runs_share_texspk_cap and staging_budget_scales_with_vram_budget; spans_of_a_pass is ignored in this tree. The PR's reported gain is CPU time in the recording thread on a 16 GB card (150-550 ms/s spent looking at slots held for room, ~12 ms/frame); these tests only cover the pass bookkeeping, so I am not claiming an FPS measurement. The PR has no comments yet, so this is the first datapoint in the thread and the first from an RTX 5070 Ti.

Not tested: a retail title, the 128-vs-1024 cap A/B, a paired smoke run, the full workspace suite, AMD and Intel GPUs, native wave64 hosts, Wine, release profile, game data.

AI-assisted (OpenCode), model: DeepSeek V4.1 Flash Free - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7241152636 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1095#issuecomment-7241152636). Originally posted by [Aniseto](https://github.com/Aniseto) on 2026-11-28T15:02:31Z. --- Ran the texture-pass module tests at `17e6568` on an NVIDIA Blackwell desktop part: Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, 32-lane waves only, 16 GB) driver 32.0.16.2124, Intel Core i5-12400F, 64 GB RAM, Rust 1.98.1 (48a229cea 2026-09-01, pinned by `rust-toolchain.toml`), MSVC 14.44.35207, DXC 1.9.2609.5 (shared env), debug build. ``` VICTORY_D3D12_ADAPTER=NVIDIA cargo test -p victory-gpu --lib draw:: -- --test-threads=1 8 passed; 0 failed; 1 ignored; 0 measured; 480 filtered out (exit 0) ``` All eight runnable tests pass, including `a_frames_pass_runs_share_texspk_cap` and `staging_budget_scales_with_vram_budget`; `spans_of_a_pass` is ignored in this tree. The PR's reported gain is CPU time in the recording thread on a 16 GB card (150-550 ms/s spent looking at slots held for room, ~12 ms/frame); these tests only cover the pass bookkeeping, so I am not claiming an FPS measurement. The PR has no comments yet, so this is the first datapoint in the thread and the first from an RTX 5070 Ti. Not tested: a retail title, the 128-vs-1024 cap A/B, a paired smoke run, the full workspace suite, AMD and Intel GPUs, native wave64 hosts, Wine, release profile, game data. AI-assisted (OpenCode), model: **DeepSeek V4.1 Flash Free** - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used.
Exopus-0x65f7ad0 commented 2026-11-28 15:34:13 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Exopus-0x65f7ad0 on 2026-11-28T15:34:13Z.


A same-build A/B of just the cap, since the PR says its own share wasn't measured apart.

Setup: RTX 5060 Ti 8 GB, 16 GB RAM, Windows 11. 63b902f + this PR (+ local commits), one binary, only VICTORY_TEXTURE_HELD_CAP changed through the launcher (checked in the log header). README defaults: Series X 1440p, DLSS Quality, no frame generation. Prison opening: cutscene plus a scripted 90 s walk. One run each. World frames are the 5-s frame lines with ≥ 4,000 draws.

cap 128 (new default) cap 1024 (old)
frame lines 65 78
fps, median 16.7 18.2
ms/frame, median / p90 59.7 / 78.0 54.7 / 80.6
"preparing", median 38.8 ms 37.5 ms
texture pass "telling the queue what came of each slot", mean per 5 s 63 ms 43 ms
walk, title-bar fps mean (2-s samples) 14.7 15.2

So on this card and scene I see no gain from the cap. Both arms are within run-to-run noise of each other, and if anything 1024 came out slightly ahead. The likely reason: here the pass costs only ~10 ms per second of telling the queue, far from the 150–550 ms per second you measured at the cutscene cuts with frame generation 3x. The prison opening on an 8 GB card at Series X 1440p doesn't produce those held-slot storms, even though the card is at its texture line.

That doesn't contradict your numbers. It just says the cap's effect is scene- and setup-specific, and that 128 costs nothing measurable where it doesn't help. A cutscene-cut run with frame generation would be the case that shows it.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7241567854 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1095#issuecomment-7241567854). Originally posted by [Exopus-0x65f7ad0](https://github.com/Exopus-0x65f7ad0) on 2026-11-28T15:34:13Z. --- A same-build A/B of just the cap, since the PR says its own share wasn't measured apart. **Setup:** RTX 5060 Ti 8 GB, 16 GB RAM, Windows 11. `63b902f` + this PR (+ local commits), one binary, only `VICTORY_TEXTURE_HELD_CAP` changed through the launcher (checked in the log header). README defaults: Series X 1440p, DLSS Quality, no frame generation. Prison opening: cutscene plus a scripted 90 s walk. One run each. World frames are the 5-s frame lines with ≥ 4,000 draws. | | cap 128 (new default) | cap 1024 (old) | |---|---|---| | frame lines | 65 | 78 | | fps, median | 16.7 | 18.2 | | ms/frame, median / p90 | 59.7 / 78.0 | 54.7 / 80.6 | | "preparing", median | 38.8 ms | 37.5 ms | | texture pass "telling the queue what came of each slot", mean per 5 s | 63 ms | 43 ms | | walk, title-bar fps mean (2-s samples) | 14.7 | 15.2 | So on this card and scene I see **no gain from the cap**. Both arms are within run-to-run noise of each other, and if anything 1024 came out slightly ahead. The likely reason: here the pass costs only ~10 ms per second of telling the queue, far from the 150–550 ms per second you measured at the cutscene cuts with frame generation 3x. The prison opening on an 8 GB card at Series X 1440p doesn't produce those held-slot storms, even though the card is at its texture line. That doesn't contradict your numbers. It just says the cap's effect is scene- and setup-specific, and that 128 costs nothing measurable where it doesn't help. A cutscene-cut run with frame generation would be the case that shows it.
trustno1-coder commented 2026-11-28 19:22:36 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-11-28T19:22:36Z.


Thanks for this. I'm closing it without merging because it conflicts with the current main in several places (main has moved a lot since it was opened, with about 100 pull requests merged today), and I can't resolve that safely on your behalf. If you'd still like it in, please rebase it on the current main and open a new pull request.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7244497624 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1095#issuecomment-7244497624). Originally posted by [trustno1-coder](https://github.com/trustno1-coder) on 2026-11-28T19:22:36Z. --- Thanks for this. I'm closing it without merging because it conflicts with the current main in several places (main has moved a lot since it was opened, with about 100 pull requests merged today), and I can't resolve that safely on your behalf. If you'd still like it in, please rebase it on the current main and open a new pull request.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
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.

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