Indirect records gathered by runs inside their lists: one clamp pass per run of draws, 10-13 ms less card time a frame #1171

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

@⁠KyleS98 on GitHub · 2026-11-25 22:40 UTC · original
KyleS98:perf/gather-runs → main · +207 −9 · 3 files · 2 commits · open

What

VICTORY_INDIRECT_GATHER=1 gives a single indirect record a slot that the list's prelude clamps, so its draw has no pass of ours in front of it. But a prelude can only serve records read before anything in the list may write arguments. After a list's first dispatch (or first draw whose shaders store to buffers), every record went back to a clamp pass of its own. In the prologue cell that is about 1,050 passes a frame, each one a wait for every shader write, a compute dispatch and another wait, placed between two mesh draws.

This PR gathers those records by runs inside the list:

  • The first single record after a dispatch records one clamp pass where it stands, which is behind that dispatch. The pass covers a 256-slot offset table in the list's upload memory, initialised to "no record" (0xffffffff, which the clamp shader now skips).
  • That record and the single records after it take slots as the list is recorded. The card only reads the table when the pass executes, after recording, so later draws need no command of ours.
  • The run ends where prelude gathering ends: at the next dispatch or storing draw. A full table starts another pass.
  • Every record is still clamped and charged to the list's budget, so the guard against garbage records is unchanged.

VICTORY_INDIRECT_GATHER_RUNS=0 turns it off. It only acts when VICTORY_INDIRECT_WINDOW=1 VICTORY_INDIRECT_GATHER=1 are on.

Measured

RTX 3090 Ti, warm cache, prologue cell (about 4,400 draws a frame). Each row is the same binary with the switch off and on.

tree passes of ours / frame card time of the title's lists frame
Series S profile, d510ee4 + #798 + #1081 + main's frame-rate switches on 1,973 → 956 (2,869 records in 39 run passes) 56.0–56.5 → 43.2–44.6 ms 115–117 → 104–105 ms (8.5–8.8 → 9.0–9.5 fps)
Series X profile, 9c184b3 + this PR, only WINDOW=1 GATHER=1 2,236 → about 1,030 (3,282 records in 42 run passes) 80–84 → 71–73 ms 166–167 → 168–174 ms

So it takes 10–13 ms a frame off the card in both. The frame follows where the card is the limit (the first row). It doesn't where the submitting thread is the limit (the second row: preparing was 60–70 ms there).

Picture: the cell looks the same with and without the switch, compared from grabs.

How the size of it was found

The card meter's pipeline table only showed 3.8 ms a frame inside the clamp passes themselves. The cost is in what they do to the draws around them. To see that, this PR adds a timing-only switch, VICTORY_INDIRECT_TRUST=draws|dispatches|1 (unsafe, documented as such): such records run as the title wrote them, with no pass.

  • draws: the title's lists took 42.8 ms. That's the ceiling, and the runs reach it.
  • dispatches: the host removed the device within seconds of entering the world. Compute-dispatch arguments do hold garbage, so those keep their clamp.

What's left after this is about 920–1,080 compute dispatches a frame, each with its own pass.

Tests

cargo test -p victory-gpu --lib: 206 passed. One fails here with and without this PR (indirect::tests::warp_budget_saturates_without_wraparound_and_preserves_draw_fields); I haven't looked into why.

AI-assisted (Claude Code, Claude Fable 5.2); runs and grabs on my machine; no game data.

**@⁠KyleS98** on GitHub · 2026-11-25 22:40 UTC · [original](https://github.com/fxceless/victory-fork/pull/1171) `KyleS98:perf/gather-runs` → `main` · +207 −9 · 3 files · 2 commits · open ## What `VICTORY_INDIRECT_GATHER=1` gives a single indirect record a slot that the list's **prelude** clamps, so its draw has no pass of ours in front of it. But a prelude can only serve records read before anything in the list may write arguments. After a list's first dispatch (or first draw whose shaders store to buffers), every record went back to a clamp pass of its own. In the prologue cell that is about 1,050 passes a frame, each one a wait for every shader write, a compute dispatch and another wait, placed between two mesh draws. This PR gathers those records **by runs inside the list**: - The first single record after a dispatch records **one** clamp pass where it stands, which is behind that dispatch. The pass covers a 256-slot offset table in the list's upload memory, initialised to "no record" (`0xffffffff`, which the clamp shader now skips). - That record and the single records after it take slots as the list is recorded. The card only reads the table when the pass executes, after recording, so later draws need no command of ours. - The run ends where prelude gathering ends: at the next dispatch or storing draw. A full table starts another pass. - Every record is still clamped and charged to the list's budget, so the guard against garbage records is unchanged. `VICTORY_INDIRECT_GATHER_RUNS=0` turns it off. It only acts when `VICTORY_INDIRECT_WINDOW=1 VICTORY_INDIRECT_GATHER=1` are on. ## Measured RTX 3090 Ti, warm cache, prologue cell (about 4,400 draws a frame). Each row is the same binary with the switch off and on. | tree | passes of ours / frame | card time of the title's lists | frame | |---|---|---|---| | Series S profile, `d510ee4` + #798 + #1081 + main's frame-rate switches on | 1,973 → 956 (2,869 records in 39 run passes) | 56.0–56.5 → **43.2–44.6 ms** | 115–117 → **104–105 ms** (8.5–8.8 → 9.0–9.5 fps) | | Series X profile, `9c184b3` + this PR, only `WINDOW=1 GATHER=1` | 2,236 → about 1,030 (3,282 records in 42 run passes) | 80–84 → **71–73 ms** | 166–167 → 168–174 ms | So it takes 10–13 ms a frame off the card in both. The frame follows where the card is the limit (the first row). It doesn't where the submitting thread is the limit (the second row: preparing was 60–70 ms there). Picture: the cell looks the same with and without the switch, compared from grabs. ## How the size of it was found The card meter's pipeline table only showed 3.8 ms a frame inside the clamp passes themselves. The cost is in what they do to the draws around them. To see that, this PR adds a timing-only switch, `VICTORY_INDIRECT_TRUST=draws|dispatches|1` (**unsafe**, documented as such): such records run as the title wrote them, with no pass. - `draws`: the title's lists took 42.8 ms. That's the ceiling, and the runs reach it. - `dispatches`: the host removed the device within seconds of entering the world. Compute-dispatch arguments do hold garbage, so those keep their clamp. What's left after this is about 920–1,080 compute dispatches a frame, each with its own pass. ## Tests `cargo test -p victory-gpu --lib`: 206 passed. One fails here with and without this PR (`indirect::tests::warp_budget_saturates_without_wraparound_and_preserves_draw_fields`); I haven't looked into why. AI-assisted (Claude Code, Claude Fable 5.2); runs and grabs on my machine; no game data.
A list's prelude can only clamp the records its draws read before anything
in the list may write arguments. After the list's first dispatch (or draw
whose shaders store to buffers) every single record had a pass of ours in
front of its draw again: about 1,050 a frame in the prologue cell, each a
wait for every shader write, a compute dispatch and another wait between
two mesh draws.

Now the first such record after a dispatch records one pass where it
stands (behind that dispatch) for a table of 256 slots in the list's
upload memory that says "no record" everywhere (the clamp skips those).
It and the single records after it take slots while the list is recorded;
the card reads the table when the pass runs, after the recording. The run
ends where the prelude's gathering ends, at the next dispatch or storing
draw; a full table starts another pass. Every record is clamped and
charged to the list's budget as before.

Prologue cell, RTX 3090 Ti, Series S profile, the same build with the
switch off and on: passes of ours 1,973 -> 956 a frame (2,869 records in
39 run passes), card time of the title's lists 56.0-56.5 -> 43.2-44.6 ms,
frame 115-117 -> 104-105 ms (8.5-8.8 -> 9.0-9.5 fps).

VICTORY_INDIRECT_TRUST=draws|dispatches|1, for timing only (unsafe): such
records run as the title wrote them, with no pass. With draws the title's
lists took 42.8 ms, which is what the runs get; with dispatches the host
removed the device within seconds (their arguments do hold garbage).

Co-Authored-By: Claude Fable 5.2 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:58:51 +00:00
Author
Owner

@⁠SkillIssueXO on GitHub · 2026-11-25 22:50 UTC · original

I added and ran an independent Windows x64 WARP regression for 795311ba integrated with the local Series X controls build. It records a D3D12 CopyBufferRegion that writes two mesh arguments earlier on the same list, then records a 256-slot gather with the table initially empty. The fixture fills the two slots after recording the gather and asks for one offset twice.

The readback returned [9, 1, 1] and [7, 1, 1] in the assigned slot order, and the budget read back exactly 2,048. This covers argument visibility, the late-filled table, and charging the repeated offset only once. The game comparison with VICTORY_INDIRECT_WINDOW_CHECK=1 is pending.

AI-assisted testing. Synthetic buffers only.

**@⁠SkillIssueXO** on GitHub · 2026-11-25 22:50 UTC · [original](https://github.com/fxceless/victory-fork/pull/1171#issuecomment-7176858826) I added and ran an independent Windows x64 WARP regression for `795311ba` integrated with the local Series X controls build. It records a D3D12 `CopyBufferRegion` that writes two mesh arguments earlier on the same list, then records a 256-slot gather with the table initially empty. The fixture fills the two slots after recording the gather and asks for one offset twice. The readback returned `[9, 1, 1]` and `[7, 1, 1]` in the assigned slot order, and the budget read back exactly 2,048. This covers argument visibility, the late-filled table, and charging the repeated offset only once. The game comparison with `VICTORY_INDIRECT_WINDOW_CHECK=1` is pending. AI-assisted testing. Synthetic buffers only.
Author
Owner

@⁠Proudnoob4 on GitHub · 2026-11-25 23:17 UTC · original · edited 2026-11-25 23:26 UTC

AI-assisted (Claude Opus 5.5 in OpenCode), measured on my own machine. This replaces two overlapping AI-written reports I posted here earlier; on re-auditing the logs, some of their numbers were single samples or misattributed, and one said there were no visual artifacts, which was wrong.

Setup: RTX 4080 16 GB, Windows 10 22H2, Series X build, diagnostics release, prison-cell scene (~4,800 draws/frame). Three single 360 s runs, so this is a bundle comparison, not an isolated A/B:

  • A fxceless stack, f32 path
  • B = A + a local port of Marvisak/VIctory#2825 native f16
  • C = B + #1168 + #1147 + #1164 (VICTORY_CARD_PIECE_KB=16) + #1171 + #1172 + a local commit (skip clean card_dirty copies; chunk wide compare dispatches to ≤ 65,535 groups)
In-world, from the logs A B C
FPS, 2nd-half median (max) 8.8 (9.3) 8.8 (9.7) 8.9 (9.4)
Usual frame, median 112 ms 111 ms 113 ms
GPU title lists (all other lists), 2nd-half median 40.0 ms 38.1 ms 31.8 ms
cardmeter, 256-frame mean, steady 40.8 ms 40.9 ms 31.6–33.7 ms
Copy-back (last usual-frame summary) 23.2 ms / 62.5 MB 22.4 ms / 60.9 MB 28.4 ms / 49.4 MB
Pieces fetched on the copy queue / frame ~1,370 ~1,388 ~4,138
Writes back in place / frame 1,386 1,390 4,150
Card idle per frame 62.5 ms 68.7 ms 68.8 ms
  • GPU: title-list time fell by ~8 ms between B and C. Native f16 alone (A→B) changed it by ~2 ms at most (cardmeter unchanged). Which of C's additions gave the 8 ms is not isolated.
  • No FPS change: the frame is CPU-bound on the submit thread (copies ~63 ms + copy-back 22–28 ms of a ~110 ms frame), so the GPU saving does not reach the screen.
  • Artifacts in C: a frame grabbed at 330 s shows blocky corrupted tiles along the bottom of the screen and a stair-stepped edge on the character's shoulder. Which change causes it is not isolated. B's earlier frame looked clean.
  • Stability: no panic, device-removed or ERROR lines in C's log, no crash in 360 s.

For this PR: gather runs were active in C (3,271 records in 42 passes per frame). This PR is the most likely source of C's ~8 ms GPU-list drop, but that is a guess until C is run with gather runs off. That isolated run is next on my list.

**@⁠Proudnoob4** on GitHub · 2026-11-25 23:17 UTC · [original](https://github.com/fxceless/victory-fork/pull/1171#issuecomment-7177366812) · edited 2026-11-25 23:26 UTC *AI-assisted (Claude Opus 5.5 in OpenCode), measured on my own machine. **This replaces two overlapping AI-written reports I posted here earlier; on re-auditing the logs, some of their numbers were single samples or misattributed, and one said there were no visual artifacts, which was wrong.*** **Setup:** RTX 4080 16 GB, Windows 10 22H2, Series X build, diagnostics release, prison-cell scene (~4,800 draws/frame). Three single 360 s runs, so this is a bundle comparison, not an isolated A/B: - **A** fxceless stack, f32 path - **B** = A + a local port of `Marvisak/VIctory#2825` native f16 - **C** = B + `#1168` + `#1147` + `#1164` (`VICTORY_CARD_PIECE_KB=16`) + `#1171` + `#1172` + a local commit (skip clean `card_dirty` copies; chunk wide compare dispatches to ≤ 65,535 groups) | In-world, from the logs | A | B | C | |---|---:|---:|---:| | FPS, 2nd-half median (max) | 8.8 (9.3) | 8.8 (9.7) | 8.9 (9.4) | | Usual frame, median | 112 ms | 111 ms | 113 ms | | GPU title lists (`all other lists`), 2nd-half median | 40.0 ms | 38.1 ms | **31.8 ms** | | `cardmeter`, 256-frame mean, steady | 40.8 ms | 40.9 ms | **31.6–33.7 ms** | | Copy-back (last usual-frame summary) | 23.2 ms / 62.5 MB | 22.4 ms / 60.9 MB | **28.4 ms** / 49.4 MB | | Pieces fetched on the copy queue / frame | ~1,370 | ~1,388 | **~4,138** | | Writes back in place / frame | 1,386 | 1,390 | 4,150 | | Card idle per frame | 62.5 ms | 68.7 ms | 68.8 ms | - **GPU:** title-list time fell by ~8 ms between B and C. Native f16 alone (A→B) changed it by ~2 ms at most (`cardmeter` unchanged). Which of C's additions gave the 8 ms is **not isolated**. - **No FPS change:** the frame is CPU-bound on the submit thread (copies ~63 ms + copy-back 22–28 ms of a ~110 ms frame), so the GPU saving does not reach the screen. - **Artifacts in C:** a frame grabbed at 330 s shows blocky corrupted tiles along the bottom of the screen and a stair-stepped edge on the character's shoulder. Which change causes it is **not isolated**. B's earlier frame looked clean. - **Stability:** no panic, device-removed or ERROR lines in C's log, no crash in 360 s. **For this PR:** gather runs were active in C (`3,271 records in 42 passes` per frame). This PR is the most likely source of C's ~8 ms GPU-list drop, but that is a guess until C is run with gather runs off. That isolated run is next on my list.
Author
Owner

@⁠UwUCammie on GitHub · 2026-11-25 23:04 UTC · original · edited 2026-11-25 23:37 UTC

I ran the gather clamp on a physical RX 7900 XT with RADV 26.3.1 and vkd3d-proton. Both the seven consecutive records and seven records spread across a 256-slot run passed. The sparse case leaves holes across four workgroups and checks the occupied output records, the exact total charged to the budget and the original source buffer after completion. The test fails if the requested physical adapter is unavailable.

The test commit applies directly on top of this PR. Set VICTORY_TEST_PHYSICAL_ADAPTER=1 and run the graphics crate’s gather_run_charges and gathered_records_come_out tests to repeat it. The usual WARP path remains available.

In the first room on the RX 7900 XT, the same integration executable averaged 675 accepted presents in 73.81 s with run gathering enabled (9.15 FPS, 4,830 draws/frame), and 448 in 74.21 s with it disabled (6.04 FPS, 4,874 draws/frame). This is one on/off pair on a shared desktop. In the reverse pair the same instrumented executable averaged 8.60 FPS with gathering disabled and 7.87 enabled. The enabled run gathered 1,974,917 records in 24,231 passes during the measured interval. Both counters stayed at zero with gathering disabled. Across both pairs the pooled averages were 8.51 FPS enabled and 7.32 disabled, with the run order changing which setting was faster. All four runs

**@⁠UwUCammie** on GitHub · 2026-11-25 23:04 UTC · [original](https://github.com/fxceless/victory-fork/pull/1171#issuecomment-7177112876) · edited 2026-11-25 23:37 UTC I ran the gather clamp on a physical RX 7900 XT with RADV 26.3.1 and vkd3d-proton. Both the seven consecutive records and seven records spread across a 256-slot run passed. The sparse case leaves holes across four workgroups and checks the occupied output records, the exact total charged to the budget and the original source buffer after completion. The test fails if the requested physical adapter is unavailable. The [test commit](https://github.com/UwUCammie/victory-amd/commit/2ba2d770080da9ff507701a09b1103553ccfbfbb) applies directly on top of this PR. Set `VICTORY_TEST_PHYSICAL_ADAPTER=1` and run the graphics crate’s `gather_run_charges` and `gathered_records_come_out` tests to repeat it. The usual WARP path remains available. In the first room on the RX 7900 XT, the same integration executable averaged 675 accepted presents in 73.81 s with run gathering enabled (9.15 FPS, 4,830 draws/frame), and 448 in 74.21 s with it disabled (6.04 FPS, 4,874 draws/frame). This is one on/off pair on a shared desktop. In the reverse pair the same instrumented executable averaged 8.60 FPS with gathering disabled and 7.87 enabled. The enabled run gathered 1,974,917 records in 24,231 passes during the measured interval. Both counters stayed at zero with gathering disabled. Across both pairs the pooled averages were 8.51 FPS enabled and 7.32 disabled, with the run order changing which setting was faster. [All four runs](https://github.com/UwUCammie/victory-amd/tree/bench/first-room-radv/benchmarks#gathering-indirect-draws)
Author
Owner

@⁠KyleS98 on GitHub · 2026-11-26 01:25 UTC · original

Thanks all three. This is exactly the kind of checking the change needed.

  • @⁠SkillIssueXO: the WARP fixture covers the two things I was least able to test here: a late-filled table read after the pass was recorded, and a repeated offset charged once. Good to see [9, 1, 1] / [7, 1, 1] and a budget of exactly 2,048.
  • @⁠UwUCammie: thank you for the physical-adapter run on RADV, and for posting the reverse pair even though it went the other way. Your pooled 8.51 against 7.32 fps is the honest number. For comparison, the card-time drop here was the same size in every run (56 → 43–45 ms), and it only reached the frame when the card was the limit.
  • @⁠Proudnoob4: thanks for re-auditing and replacing the earlier reports. On the artifacts in C (blocky tiles along the bottom, a stair-stepped shoulder): I compared grabs of the cell with this switch on and off on a 3090 Ti and saw neither. That was the Series S profile, though, and without #1168/#1147/#1164. VICTORY_INDIRECT_GATHER_RUNS=0 on your C build is the one-run check for whether this PR is involved. If the tiles stay with it off, it's one of the others.

Main has moved under this (006c353 changes how a list stops gathering), so I'll rebase and re-test before asking for anything.

AI-assisted (Claude Code, Claude Fable 5.2).

**@⁠KyleS98** on GitHub · 2026-11-26 01:25 UTC · [original](https://github.com/fxceless/victory-fork/pull/1171#issuecomment-7179754414) Thanks all three. This is exactly the kind of checking the change needed. - @⁠SkillIssueXO: the WARP fixture covers the two things I was least able to test here: a late-filled table read after the pass was recorded, and a repeated offset charged once. Good to see `[9, 1, 1]` / `[7, 1, 1]` and a budget of exactly 2,048. - @⁠UwUCammie: thank you for the physical-adapter run on RADV, and for posting the reverse pair even though it went the other way. Your pooled 8.51 against 7.32 fps is the honest number. For comparison, the card-time drop here was the same size in every run (56 → 43–45 ms), and it only reached the frame when the card was the limit. - @⁠Proudnoob4: thanks for re-auditing and replacing the earlier reports. On the artifacts in C (blocky tiles along the bottom, a stair-stepped shoulder): I compared grabs of the cell with this switch on and off on a 3090 Ti and saw neither. That was the Series S profile, though, and without #1168/#1147/#1164. `VICTORY_INDIRECT_GATHER_RUNS=0` on your C build is the one-run check for whether this PR is involved. If the tiles stay with it off, it's one of the others. Main has moved under this (006c353 changes how a list stops gathering), so I'll rebase and re-test before asking for anything. AI-assisted (Claude Code, Claude Fable 5.2).
Main gained VICTORY_GATHER_BY_COPY (006c353, 36bdd51): the prelude goes on
gathering for copies the list's shaders were not declared to write. The
two fit together. A record the prelude refuses, because the list stopped
gathering whole or because that copy was written, goes to the run, whose
pass stands behind those writes. And a run now also ends at a storing draw
or dispatch when the list goes on gathering copy by copy
(HostList::gather_run_ends), since its passes have read their records by
then. With the copy-by-copy switch off nothing changes.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Author
Owner

@⁠KyleS98 on GitHub · 2026-11-26 08:52 UTC · original

Merged up to main 46bf535 (head 674afc5); it no longer conflicts.

main has gained VICTORY_GATHER_BY_COPY since (006c353, 36bdd51), which goes at the same single records from the other side: the prelude keeps gathering for copies the list's shaders were not declared to write. The two fit together, and the merge does this:

  • A record the prelude refuses goes to the run, whether the list stopped gathering whole or only that record's copy was written. The run's pass is recorded where the record is asked for, so it stands behind those writes.
  • A run now also ends at a storing draw or dispatch when the list goes on gathering copy by copy (HostList::gather_run_ends). Before, the run ended with the prelude's gathering, which under the new switch no longer ends there.
  • With VICTORY_GATHER_BY_COPY unset nothing changes from the version reviewed here.

Checked on an RTX 3090 Ti, Series X profile, 280 s from boot into the prologue cell, VICTORY_INDIRECT_GATHER=1 VICTORY_ASYNC_SUBMIT=1 VICTORY_QUEUE2=1, once without and once with VICTORY_GATHER_BY_COPY=1: both ran to the end with the cell on screen, no crash and no device loss. These two runs are a check that it works after the merge, not a timing comparison; the timing in the description is from before it. Thanks again to @⁠SkillIssueXO, @⁠UwUCammie and @⁠Proudnoob4 for the tests and the AMD numbers.

AI-assisted (Claude Code, Claude Fable 5.2).

**@⁠KyleS98** on GitHub · 2026-11-26 08:52 UTC · [original](https://github.com/fxceless/victory-fork/pull/1171#issuecomment-7187125665) Merged up to `main` `46bf535` (head `674afc5`); it no longer conflicts. `main` has gained `VICTORY_GATHER_BY_COPY` since (`006c353`, `36bdd51`), which goes at the same single records from the other side: the prelude keeps gathering for copies the list's shaders were not declared to write. The two fit together, and the merge does this: - A record the prelude refuses goes to the run, whether the list stopped gathering whole or only that record's copy was written. The run's pass is recorded where the record is asked for, so it stands behind those writes. - A run now also ends at a storing draw or dispatch when the list goes on gathering copy by copy (`HostList::gather_run_ends`). Before, the run ended with the prelude's gathering, which under the new switch no longer ends there. - With `VICTORY_GATHER_BY_COPY` unset nothing changes from the version reviewed here. Checked on an RTX 3090 Ti, Series X profile, 280 s from boot into the prologue cell, `VICTORY_INDIRECT_GATHER=1 VICTORY_ASYNC_SUBMIT=1 VICTORY_QUEUE2=1`, once without and once with `VICTORY_GATHER_BY_COPY=1`: both ran to the end with the cell on screen, no crash and no device loss. These two runs are a check that it works after the merge, not a timing comparison; the timing in the description is from before it. Thanks again to @⁠SkillIssueXO, @⁠UwUCammie and @⁠Proudnoob4 for the tests and the AMD numbers. AI-assisted (Claude Code, Claude Fable 5.2).
Author
Owner

@⁠Filip722 on GitHub · 2026-11-26 13:57 UTC · original

I tested the clamped in-list gathering path from 674afc5 on an RTX 5060 Laptop GPU (8 GB), NVIDIA 615.78.08, Bazzite 44, GE-Proton11-14 and vkd3d-proton 3.2.0. I backported the path to the older Series S compatibility build used for both arms. Both started with the same offline checkpoint, seed and warmed driver cache, with argument windows and prelude gathering enabled.

Same stationary prison view, 54 seconds per arm Control In-list gathering
Unique completed Presents 141 145
FPS 2.623 2.682
Median / p95 Present interval 372 / 456 ms 354 / 462 ms
Median GPU phase 133.4 ms 119.0 ms
Ordinary clamp passes per frame 1,931 928

In-list gathering handled about 3,102 records/frame in 40 additional passes/frame. Both replays rendered the same room and the patched run responded to camera input. The measured submission gain was modest in this pair. The synthetic RTX readback test also passed with two offsets filled after the clamp pass was recorded, and unused slots left out of the budget.

I separately reproduced duplicate offsets sharing one budget slot in main's prelude gather set and opened #1313 for that case. The measured port above retains the original slot behavior from this PR.

Assisted by Codex (GPT-6.2-Sol High).

**@⁠Filip722** on GitHub · 2026-11-26 13:57 UTC · [original](https://github.com/fxceless/victory-fork/pull/1171#issuecomment-7194072160) I tested the clamped in-list gathering path from `674afc5` on an RTX 5060 Laptop GPU (8 GB), NVIDIA 615.78.08, Bazzite 44, GE-Proton11-14 and vkd3d-proton 3.2.0. I backported the path to the older Series S compatibility build used for both arms. Both started with the same offline checkpoint, seed and warmed driver cache, with argument windows and prelude gathering enabled. | Same stationary prison view, 54 seconds per arm | Control | In-list gathering | | --- | ---: | ---: | | Unique completed Presents | 141 | 145 | | FPS | 2.623 | 2.682 | | Median / p95 Present interval | 372 / 456 ms | 354 / 462 ms | | Median GPU phase | 133.4 ms | 119.0 ms | | Ordinary clamp passes per frame | 1,931 | 928 | In-list gathering handled about 3,102 records/frame in 40 additional passes/frame. Both replays rendered the same room and the patched run responded to camera input. The measured submission gain was modest in this pair. The synthetic RTX readback test also passed with two offsets filled after the clamp pass was recorded, and unused slots left out of the budget. I separately reproduced duplicate offsets sharing one budget slot in main's prelude gather set and opened #1313 for that case. The measured port above retains the original slot behavior from this PR. Assisted by Codex (GPT-6.2-Sol High).
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/draw.rs
  • crates/victory-gpu/src/host.rs
  • crates/victory-gpu/src/indirect.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1171/head:github-bot/gh-1171'
git switch 'github-bot/gh-1171'

Merge

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