Texture pass: stops after 128 slots held back for room, not 1,024 (VICTORY_TEXTURE_HELD_CAP) #1095
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1095"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 withfull_card_pass()stops after 128 slots held for room instead of 1,024 (VICTORY_TEXTURE_HELD_CAP;VICTORY_TEXTURE_HELD_CAP=1024restores 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:
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
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Aniseto on 2026-11-28T15:02:31Z.
Ran the texture-pass module tests at
17e6568on 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.All eight runnable tests pass, including
a_frames_pass_runs_share_texspk_capandstaging_budget_scales_with_vram_budget;spans_of_a_passis 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.
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, onlyVICTORY_TEXTURE_HELD_CAPchanged 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.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.
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.
Pull request closed