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

Open
KyleS98 wants to merge 2 commits from upstream-pr/1171 into main
KyleS98 commented 2026-11-25 22:40:56 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by KyleS98 on 2026-11-25T22:40:56Z.


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.

<!-- greyfinch-sync:fxceless/victory-fork:issue:5500417723 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1171). Originally posted by [KyleS98](https://github.com/KyleS98) on 2026-11-25T22:40:56Z. --- ## 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.
SkillIssueXO commented 2026-11-25 23:09:58 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by SkillIssueXO on 2026-11-25T22:50:59Z.


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.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7176858826 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1171#issuecomment-7176858826). Originally posted by [SkillIssueXO](https://github.com/SkillIssueXO) on 2026-11-25T22:50:59Z. --- 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.
UwUCammie commented 2026-11-25 23:10:00 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by UwUCammie on 2026-11-25T23:04:19Z.


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

<!-- greyfinch-sync:fxceless/victory-fork:comment:7177112876 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1171#issuecomment-7177112876). Originally posted by [UwUCammie](https://github.com/UwUCammie) on 2026-11-25T23:04:19Z. --- 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)
Proudnoob4 commented 2026-11-26 00:06:08 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by Proudnoob4 on 2026-11-25T23:17:29Z.


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.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7177366812 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1171#issuecomment-7177366812). Originally posted by [Proudnoob4](https://github.com/Proudnoob4) on 2026-11-25T23:17:29Z. --- *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.
KyleS98 commented 2026-11-26 02:08:42 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by KyleS98 on 2026-11-26T01:25:13Z.


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).

<!-- greyfinch-sync:fxceless/victory-fork:comment:7179754414 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1171#issuecomment-7179754414). Originally posted by [KyleS98](https://github.com/KyleS98) on 2026-11-26T01:25:13Z. --- 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 commented 2026-11-26 09:08:05 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by KyleS98 on 2026-11-26T08:52:27Z.


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).

<!-- greyfinch-sync:fxceless/victory-fork:comment:7187125665 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1171#issuecomment-7187125665). Originally posted by [KyleS98](https://github.com/KyleS98) on 2026-11-26T08:52:27Z. --- 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).
Filip722 commented 2026-11-26 14:03:32 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by Filip722 on 2026-11-26T13:57:25Z.


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).

<!-- greyfinch-sync:fxceless/victory-fork:comment:7194072160 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1171#issuecomment-7194072160). Originally posted by [Filip722](https://github.com/Filip722) on 2026-11-26T13:57:25Z. --- 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).
KyleS98 commented 2026-11-27 00:50:50 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by KyleS98 on 2026-11-27T00:50:50Z.


@Filip722 thank you for the backport and the matched pair. Ordinary clamp passes from 1,931 to 928 a frame and the GPU phase from 133 to 119 ms, with the frame rate barely moving (2.62 → 2.68 fps), is the same shape as on the other cards in this thread: the card's time in those passes falls, and the frame follows only as far as the card was its limit.

Thanks also for running the readback test with two offsets filled after the pass was recorded, and for #1313: the duplicate offsets sharing one budget slot in main's prelude gather set are the prelude's, as you say, and this PR's runs charge a repeated offset once.

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

<!-- greyfinch-sync:fxceless/victory-fork:comment:7206801703 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1171#issuecomment-7206801703). Originally posted by [KyleS98](https://github.com/KyleS98) on 2026-11-27T00:50:50Z. --- @Filip722 thank you for the backport and the matched pair. Ordinary clamp passes from 1,931 to 928 a frame and the GPU phase from 133 to 119 ms, with the frame rate barely moving (2.62 → 2.68 fps), is the same shape as on the other cards in this thread: the card's time in those passes falls, and the frame follows only as far as the card was its limit. Thanks also for running the readback test with two offsets filled after the pass was recorded, and for #1313: the duplicate offsets sharing one budget slot in `main`'s prelude gather set are the prelude's, as you say, and this PR's runs charge a repeated offset once. AI-assisted (Claude Code, Claude Fable 5.2).
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/1171:upstream-pr/1171'
git switch 'upstream-pr/1171'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/1171'
git switch 'upstream-pr/1171'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1171'
git switch 'upstream-pr/1171'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1171'
git switch 'main'
git merge --squash 'upstream-pr/1171'
git switch 'main'
git merge --ff-only 'upstream-pr/1171'
git switch 'main'
git merge 'upstream-pr/1171'
git push origin 'main'
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
fxceless/victory-fork!1168
No description provided.