GPU: indirect dispatches and executions that may store share clamp windows #3676

Open
neonbyte1 wants to merge 5 commits from upstream-pr/3676 into main
neonbyte1 commented 2026-11-28 05:30:05 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by neonbyte1 on 2026-11-28T05:30:05Z.


Stacked on #3197 (pr/clamp-window, 0c997d40) — draft until it lands. The diff against 0c997d40 is the one commit here and nothing else (crates/victory-gpu/src/{indirect,draw,list,copystat}.rs). #2472 is not needed; #3531 (our read-mark rule) is not needed but composes (see Overlap).

What's wrong

#3197's windows refuse every indirect dispatch (kind != DISPATCH in draw::execute_indirect) and every execution whose shaders may store (draw::may_store). Each of those keeps a clamp of its own: a wait for all earlier work, a one-group compute pass, another wait, the execution, then the transition back that waits for its compute work. Two traced world frames: 1,618 of 1,822 indirect dispatches were recorded right after another indirect dispatch with nothing between it and them (no barrier, no barrier group, no pipeline sync, no other command); each had a clamp of its own and ran alone.

The rule, and why it is safe

A window's pass clamps every record before the window's first execution runs. An execution that stores can write the records of a later one; on the console, a later execution reads its records when the command processor reaches it, which may be while an earlier one still runs — unless the title put a barrier or a pipeline sync between them. Records written by one execution and read by the next with neither between race on the console too, so the title does not do that. So, with a window open:

  • after an execution that may store, the window takes the next execution only while no barrier (List::Barrier), barrier group (BarrierGroups) or pipeline sync (Sync) came between (indirect::Run, indirect::stale_window). A barrier after an execution that may store ends what the window takes: the next execution opens a window of its own, whose pass runs (and waits) after the earlier execution.
  • barriers between executions that do not store leave the window as it is: nothing in it wrote.
  • anything else ends the window exactly as before: any draw, dispatch or UAV clear that is not a joining indirect execution, a host library's work, the list's end (end_window).

Nothing about which executions run, in what order, or what they read changes; only where their records are clamped moves. The executions also run without our waits between them, as the title recorded them: in base each indirect dispatch was ordered against its neighbours only by our clamps' barriers, which the title never asked for (direct dispatches have none either).

What changes

  • indirect.rs: windowed takes stores and records it in a per-window Run (stored, fresh); Run::takes refuses the next execution after a barrier or pipeline sync following one that may store. stale_window(list) is the barrier/sync hook. The window's pass needed no change: it already clamps a dispatch record with the single clamp's bounds (x groups past 65,535, more than 2^20 groups in all, 64 threads a group, the list's budget in window order), and mesh/draw/indexed records as before.
  • list.rs: barrier, barrier_groups and sync call stale_window. sync did nothing and records nothing; it is one cached-flag check now.
  • draw.rs: execute_indirect asks only for the switch and a host pipeline; the kind and may_store are no longer part of the decision (a dispatch, and an execution that may store, join). may_store is asked only with the switch on, so an off build does the work #3197 promises (one flag check). An execution the window cannot take is clamped on its own as before, which ends the window.
  • copystat.rs (diagnostics): clamps per frame now splits the windowed executions into indirect dispatches and draws that may store, and counts the executions that opened a window because a barrier or pipeline sync came after one that may store (ClampWindowDispatches, ClampWindowStores, ClampStale); ClampStoring is now only the draws that may store that a window refused (alignment, size, a full table or records, a fifth source buffer).

The switch is unchanged: VICTORY_CLAMP_WINDOW=1, off by default, and with it unset the added work is one cached-flag check per draw plus one per barrier, barrier group and sync.

Tests

GPU test status: observed on a Wine-fixed scaffold, not on the branch itself. #3197's head cannot run any clamp test under Wine here: its clamp shaders put their root signature in a [RootSignature] attribute (which Wine's D3DCompile ignores) and read the budget through RWByteAddressBuffer::Load (E5005 there), so clamp() is None and argument_clamp_builds — #3197's own test — fails, as do all 14 clamp tests on ef4224db1 and on 0c997d40 alike (scratch/PrGaps/gpu.log, gpu-window.log). That fix is the one Slay326 is taking into #3197 (1aa472de7/916655cc), not in its head. I therefore built a throwaway scaffold, tmp/gaps-wine-test = this commit + that fix's crate::compute and shader idiom (root signatures serialized in Rust, the budget a RWStructuredBuffer<uint>; no logic changed), and ran the same device tests there: all 15 indirect::tests:: pass, including the three below (scratch/PrGaps/wine-gpu.log, exit 101 only from seven draw::tests::a_* texture tests, which fail at draw.rs:2552 on that tree's own test helper building a root signature from a blob — the same Wine gap, untouched by this change).

CPU (no device; observed):

  • indirect::tests::a_window_takes_after_stores_only_until_a_barrier — the Run rule: an empty window takes; a barrier after executions that do not store leaves it taking; right after one that may store it takes; a barrier after that one stops it. Passes on ef4224db1. Fails without the change (the window takes anything that fits).

GPU (device; the tests write their own records, no game data):

  • indirect::tests::dispatch_windows_clamp_as_single_clamps_do — passes on tmp/gaps-wine-test. 60 indirect dispatch records from one buffer with draws interleaved in the same windows, and a 6-record dispatch at the end: every record is the single clamp's word for word (same() runs the same steps twice, once clamped one at a time and once windowed). Covers x groups past 65,535, more than 2^20 groups in all, plain records, all-ones garbage, the limit case (1024,1024,1), zero groups, and a budget that runs out in the middle of the window (the records after it run empty).
  • indirect::tests::a_barrier_after_a_store_ends_what_the_window_takes — passes on tmp/gaps-wine-test. A store between two executions, with and without a barrier: with the barrier the second record is clamped from the value the store wrote ([9,1,1], the single clamp's answer); without it one window clamps both up front ([5,1,1]). The barrier half fails without the change.
  • The existing window tests (windows_clamp_as_single_clamps_do, a_store_ends_the_window, a_window_clamps_max_records_whatever_the_count, windows_leave_the_argument_buffer_common, a_spent_budget_stays_spent, rejected_records_do_not_wrap_the_budget, the_budget_goes_to_the_first_records, a_record_that_does_not_fit_ends_the_budget, windowed_mesh_grids_are_the_single_clamps, argument_buffers_move_from_their_current_states, argument_clamp_builds) still pass with the new windowed signature and the Run rule.
  • Skips without a host device as before (host() is None).

Measured

Our test stack (perf/gpu-gaps @ c3886d64d: upstream main plus the open NVIDIA/Wine stack — among them #3197, #2472, #2312, #3531 and the Wine compiler fix), RTX 5090, Linux/Wine 11.22 + vkd3d-proton (GE-Proton11-14), headless gamescope, the title's window fitted to 1920×1080 (console Xbox Series X), prison yard after the intro, warm shader cache, 420 s runs, A(on)-B(off) then A-B again. Medians of the last 30 frame reports; the only difference between A and B is VICTORY_GPU_GAPS=1 — the same code this branch ships behind VICTORY_CLAMP_WINDOW alone.

Env, both: VICTORY_GPU_OVERLAP=1 VICTORY_CLAMP_WINDOW=1 VICTORY_LOG=info VICTORY_EARLY_RELEASE=1 VICTORY_EARLY_BARRIERS=1; A adds VICTORY_GPU_GAPS=1.

A: this change B: control Δ
frame, pair 1 (ms) 175.8 188.2 −12.4
frame, pair 2 (ms) 195.8 200.6 −4.8
frame, mean of the pairs −8.6
on the GPU (ms) 59.2 / 67.4 63.2 / 69.4 −3.0
preparing (ms) 71.3 / 76.1 76.3 / 76.4 −2.6
clamp passes a frame 1,011 / 1,007 1,130 / 1,137 −125
— single clamps 911 / 908 1,025 / 1,030 −118
— windows (executions) 100 (3,104) / 100 (3,191) 105 (3,032) / 106 (3,157)
draws that may store, in windows 107 / 114 0
indirect dispatches, in windows 0 / 0 0
window executions left for a barrier or sync 0 / 0 —

Runs: 09034a7-gaps-on-u1, 09034a8-gaps-off-u1 (pair 1), 09034a8d-gaps-on-u2, 09034a8e-gaps-off-u2 (pair 2). No device removal, no crash in any of the four.

Read that table carefully: on that stack every indirect dispatch takes #2312's spread layout (930 and 924 a frame, clamps per frame by reason), and only the single clamp writes a spread record — so on that stack the joins came from the ~110 indirect draws whose shaders may store, and the dispatch half of this change contributed nothing measurable there. The dispatch saving is expected on a tree without #2312 (upstream main, where those records clamp to 65,535 groups in x), and on a tree with it only once the window's pass can spread a record too. I have not measured the dispatch half in game; the 1,618-of-1,822 figure above is a count from two traced world frames, not a frame-time result.

Picture check against the control at frames 1700 and 2048 (luma, from the saved frames of the four runs): mean luma 45.5 vs 45.8 and 45.0 vs 45.2 (pair 1), 45.6 vs 45.5 and 44.9 vs 45.0 (pair 2); share of pixels differing by more than 32 of 255: 7.5 % and 7.7 % (pair 1 — the character's animation phase and input hint differ, the same order as two runs of one binary), 0.3 % and 0.5 % (pair 2). No missing geometry, shadows or lighting.

Not tested

  • No in-game run of this branch: it is stacked on #3197 and does not carry the Wine compiler fix (1aa472de7/916655cc) the stack has, so it does not run under Wine here yet; the GPU tests were run on tmp/gaps-wine-test (this commit plus that fix's compiler/root-signature mechanics only), not on the branch itself. The in-game numbers come from the same change on the stack (above), which is why #2312 hides the dispatch half there.
  • No run on a tree without #2312, i.e. no measurement of the dispatch half.
  • The Windows side is untested (all four runs are Wine + vkd3d-proton). The rule rests on the console's own ordering, not on a driver's, so I do not expect a difference; I have not checked.
  • No GPU-based validation of the removed waits, and no capture replay. With the switch on, the barriers between joined executions are gone (they were ours, not the title's); I saw no missing work in two pairs of runs.
  • The draw.rs routing (which execution opens, joins or ends a window) has no CPU test: execute_indirect needs a host pipeline and a list. The window pass's records are covered by the GPU tests above; the routing is covered by the runs.
  • Win32/driver: only one GPU (RTX 5090), one driver, one vkd3d-proton build.

Overlap

  • #3197 (#3197's own head): this is its follow-up; it removes the two refusals #3197 lists under "Not addressed" — "the draws clamped alone because they may store" (narrowed, not removed: they join only while nothing but the window's executions comes between them) and "indirect dispatches keep the single clamp".
  • #2472 (hoist) composes without a change: a hoisted execution never reaches windowed, so the Run rule only applies to windows. On a tree with both, a storing execution that a prelude hoisted keeps its ordering as #2472 gives it; not measured.
  • #3531 (our read-mark rule) narrows may_store to "may write arguments". Composes: fewer executions count as storing, so fewer barriers end a window; this branch does not touch that predicate.
  • #2360-style driver watch, #2312 (spread dispatches): a record that needs a spread layout keeps the single clamp on a tree that has #2312; windowing those needs the window's pass to spread too (follow-up).
  • Machad3x's "storing draws can close a window": composes — his change lets a storing draw be a window's last member, this one lets it be an ordinary member while nothing but the window's executions comes between; both end the window before anything that follows is clamped.

AI-assisted (Claude); measured on my machine, no game data shared.

<!-- greyfinch-sync:Marvisak/VIctory:issue:5537070013 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3676). Originally posted by [neonbyte1](https://github.com/neonbyte1) on 2026-11-28T05:30:05Z. --- **Stacked on #3197 (`pr/clamp-window`, `0c997d40`) — draft until it lands.** The diff against `0c997d40` is the one commit here and nothing else (`crates/victory-gpu/src/{indirect,draw,list,copystat}.rs`). #2472 is not needed; #3531 (our read-mark rule) is not needed but composes (see Overlap). ## What's wrong #3197's windows refuse every indirect dispatch (`kind != DISPATCH` in `draw::execute_indirect`) and every execution whose shaders may store (`draw::may_store`). Each of those keeps a clamp of its own: a wait for all earlier work, a one-group compute pass, another wait, the execution, then the transition back that waits for its compute work. Two traced world frames: 1,618 of 1,822 indirect dispatches were recorded right after another indirect dispatch with nothing between it and them (no barrier, no barrier group, no pipeline sync, no other command); each had a clamp of its own and ran alone. ## The rule, and why it is safe A window's pass clamps every record before the window's first execution runs. An execution that stores can write the records of a later one; on the console, a later execution reads its records when the command processor reaches it, which may be while an earlier one still runs — unless the title put a barrier or a pipeline sync between them. Records written by one execution and read by the next with neither between race on the console too, so the title does not do that. So, with a window open: - after an execution that **may store**, the window takes the next execution only while **no barrier (`List::Barrier`), barrier group (`BarrierGroups`) or pipeline sync (`Sync`) came between** (`indirect::Run`, `indirect::stale_window`). A barrier after an execution that may store ends what the window takes: the next execution opens a window of its own, whose pass runs (and waits) after the earlier execution. - barriers between executions that **do not** store leave the window as it is: nothing in it wrote. - anything else ends the window exactly as before: any draw, dispatch or UAV clear that is not a joining indirect execution, a host library's work, the list's end (`end_window`). Nothing about which executions run, in what order, or what they read changes; only where their records are clamped moves. The executions also run without our waits between them, as the title recorded them: in base each indirect dispatch was ordered against its neighbours only by our clamps' barriers, which the title never asked for (direct dispatches have none either). ## What changes - `indirect.rs`: `windowed` takes `stores` and records it in a per-window `Run` (`stored`, `fresh`); `Run::takes` refuses the next execution after a barrier or pipeline sync following one that may store. `stale_window(list)` is the barrier/sync hook. The window's pass needed no change: it already clamps a dispatch record with the single clamp's bounds (x groups past 65,535, more than 2^20 groups in all, 64 threads a group, the list's budget in window order), and mesh/draw/indexed records as before. - `list.rs`: `barrier`, `barrier_groups` and `sync` call `stale_window`. `sync` did nothing and records nothing; it is one cached-flag check now. - `draw.rs`: `execute_indirect` asks only for the switch and a host pipeline; the kind and `may_store` are no longer part of the decision (a dispatch, and an execution that may store, join). `may_store` is asked only with the switch on, so an off build does the work #3197 promises (one flag check). An execution the window cannot take is clamped on its own as before, which ends the window. - `copystat.rs` (diagnostics): `clamps per frame` now splits the windowed executions into indirect dispatches and draws that may store, and counts the executions that opened a window because a barrier or pipeline sync came after one that may store (`ClampWindowDispatches`, `ClampWindowStores`, `ClampStale`); `ClampStoring` is now only the draws that may store that a window refused (alignment, size, a full table or records, a fifth source buffer). The switch is unchanged: `VICTORY_CLAMP_WINDOW=1`, off by default, and with it unset the added work is one cached-flag check per draw plus one per barrier, barrier group and sync. ## Tests **GPU test status: observed on a Wine-fixed scaffold, not on the branch itself.** #3197's head cannot run *any* clamp test under Wine here: its clamp shaders put their root signature in a `[RootSignature]` attribute (which Wine's `D3DCompile` ignores) and read the budget through `RWByteAddressBuffer::Load` (E5005 there), so `clamp()` is `None` and `argument_clamp_builds` — #3197's own test — fails, as do all 14 clamp tests on `ef4224db1` and on `0c997d40` alike (`scratch/PrGaps/gpu.log`, `gpu-window.log`). That fix is the one Slay326 is taking into #3197 (`1aa472de7`/`916655cc`), not in its head. I therefore built a throwaway scaffold, `tmp/gaps-wine-test` = this commit + that fix's `crate::compute` and shader idiom (root signatures serialized in Rust, the budget a `RWStructuredBuffer<uint>`; no logic changed), and ran the same device tests there: **all 15 `indirect::tests::` pass, including the three below** (`scratch/PrGaps/wine-gpu.log`, exit 101 only from seven `draw::tests::a_*` texture tests, which fail at `draw.rs:2552` on that tree's *own* test helper building a root signature from a blob — the same Wine gap, untouched by this change). CPU (no device; observed): - `indirect::tests::a_window_takes_after_stores_only_until_a_barrier` — the `Run` rule: an empty window takes; a barrier after executions that do not store leaves it taking; right after one that may store it takes; a barrier after that one stops it. Passes on `ef4224db1`. **Fails without the change** (the window takes anything that fits). GPU (device; the tests write their own records, no game data): - `indirect::tests::dispatch_windows_clamp_as_single_clamps_do` — **passes** on `tmp/gaps-wine-test`. 60 indirect dispatch records from one buffer with draws interleaved in the same windows, and a 6-record dispatch at the end: every record is the single clamp's **word for word** (`same()` runs the same steps twice, once clamped one at a time and once windowed). Covers x groups past 65,535, more than 2^20 groups in all, plain records, all-ones garbage, the limit case `(1024,1024,1)`, zero groups, and a budget that runs out in the middle of the window (the records after it run empty). - `indirect::tests::a_barrier_after_a_store_ends_what_the_window_takes` — **passes** on `tmp/gaps-wine-test`. A store between two executions, with and without a barrier: with the barrier the second record is clamped from the value the store wrote (`[9,1,1]`, the single clamp's answer); without it one window clamps both up front (`[5,1,1]`). **The barrier half fails without the change.** - The existing window tests (`windows_clamp_as_single_clamps_do`, `a_store_ends_the_window`, `a_window_clamps_max_records_whatever_the_count`, `windows_leave_the_argument_buffer_common`, `a_spent_budget_stays_spent`, `rejected_records_do_not_wrap_the_budget`, `the_budget_goes_to_the_first_records`, `a_record_that_does_not_fit_ends_the_budget`, `windowed_mesh_grids_are_the_single_clamps`, `argument_buffers_move_from_their_current_states`, `argument_clamp_builds`) still pass with the new `windowed` signature and the `Run` rule. - Skips without a host device as before (`host()` is `None`). ## Measured Our test stack (`perf/gpu-gaps` @ `c3886d64d`: upstream `main` plus the open NVIDIA/Wine stack — among them #3197, #2472, #2312, #3531 and the Wine compiler fix), RTX 5090, Linux/Wine 11.22 + vkd3d-proton (GE-Proton11-14), headless gamescope, the title's window fitted to 1920×1080 (`console Xbox Series X`), prison yard after the intro, warm shader cache, 420 s runs, A(on)-B(off) then A-B again. Medians of the last 30 frame reports; the only difference between A and B is `VICTORY_GPU_GAPS=1` — the same code this branch ships behind `VICTORY_CLAMP_WINDOW` alone. Env, both: `VICTORY_GPU_OVERLAP=1 VICTORY_CLAMP_WINDOW=1 VICTORY_LOG=info VICTORY_EARLY_RELEASE=1 VICTORY_EARLY_BARRIERS=1`; A adds `VICTORY_GPU_GAPS=1`. | | A: this change | B: control | Δ | |---|---:|---:|---:| | frame, pair 1 (ms) | 175.8 | 188.2 | −12.4 | | frame, pair 2 (ms) | 195.8 | 200.6 | −4.8 | | frame, mean of the pairs | | | **−8.6** | | on the GPU (ms) | 59.2 / 67.4 | 63.2 / 69.4 | −3.0 | | preparing (ms) | 71.3 / 76.1 | 76.3 / 76.4 | −2.6 | | clamp passes a frame | 1,011 / 1,007 | 1,130 / 1,137 | −125 | | — single clamps | 911 / 908 | 1,025 / 1,030 | −118 | | — windows (executions) | 100 (3,104) / 100 (3,191) | 105 (3,032) / 106 (3,157) | | | draws that may store, in windows | 107 / 114 | 0 | | | indirect dispatches, in windows | **0** / **0** | 0 | | | window executions left for a barrier or sync | 0 / 0 | — | | Runs: `09034a7-gaps-on-u1`, `09034a8-gaps-off-u1` (pair 1), `09034a8d-gaps-on-u2`, `09034a8e-gaps-off-u2` (pair 2). No device removal, no crash in any of the four. **Read that table carefully: on that stack every indirect dispatch takes #2312's spread layout** (930 and 924 a frame, `clamps per frame by reason`), and only the single clamp writes a spread record — so on that stack the joins came from the ~110 indirect draws whose shaders may store, and the dispatch half of this change contributed nothing measurable there. The dispatch saving is expected on a tree without #2312 (upstream `main`, where those records clamp to 65,535 groups in x), and on a tree with it only once the window's pass can spread a record too. **I have not measured the dispatch half in game**; the 1,618-of-1,822 figure above is a count from two traced world frames, not a frame-time result. Picture check against the control at frames 1700 and 2048 (luma, from the saved frames of the four runs): mean luma 45.5 vs 45.8 and 45.0 vs 45.2 (pair 1), 45.6 vs 45.5 and 44.9 vs 45.0 (pair 2); share of pixels differing by more than 32 of 255: 7.5 % and 7.7 % (pair 1 — the character's animation phase and input hint differ, the same order as two runs of one binary), 0.3 % and 0.5 % (pair 2). No missing geometry, shadows or lighting. ## Not tested - No in-game run of **this** branch: it is stacked on #3197 and does not carry the Wine compiler fix (`1aa472de7`/`916655cc`) the stack has, so it does not run under Wine here yet; the GPU tests were run on `tmp/gaps-wine-test` (this commit plus that fix's compiler/root-signature mechanics only), not on the branch itself. The in-game numbers come from the same change on the stack (above), which is why #2312 hides the dispatch half there. - No run on a tree without #2312, i.e. no measurement of the dispatch half. - The Windows side is untested (all four runs are Wine + vkd3d-proton). The rule rests on the console's own ordering, not on a driver's, so I do not expect a difference; I have not checked. - No GPU-based validation of the removed waits, and no capture replay. With the switch on, the barriers between joined executions are gone (they were ours, not the title's); I saw no missing work in two pairs of runs. - The `draw.rs` routing (which execution opens, joins or ends a window) has no CPU test: `execute_indirect` needs a host pipeline and a list. The window pass's records are covered by the GPU tests above; the routing is covered by the runs. - Win32/driver: only one GPU (RTX 5090), one driver, one vkd3d-proton build. ## Overlap - **#3197** (#3197's own head): this is its follow-up; it removes the two refusals #3197 lists under "Not addressed" — "the draws clamped alone because they may store" (narrowed, not removed: they join only while nothing but the window's executions comes between them) and "indirect dispatches keep the single clamp". - **#2472** (hoist) composes without a change: a hoisted execution never reaches `windowed`, so the `Run` rule only applies to windows. On a tree with both, a storing execution that a prelude hoisted keeps its ordering as #2472 gives it; not measured. - **#3531** (our read-mark rule) narrows `may_store` to "may write arguments". Composes: fewer executions count as storing, so fewer barriers end a window; this branch does not touch that predicate. - **#2360-style driver watch, #2312** (spread dispatches): a record that needs a spread layout keeps the single clamp on a tree that has #2312; windowing those needs the window's pass to spread too (follow-up). - **Machad3x's "storing draws can close a window"**: composes — his change lets a storing draw be a window's *last* member, this one lets it be an ordinary member while nothing but the window's executions comes between; both end the window before anything that follows is clamped. _AI-assisted (Claude); measured on my machine, no game data shared._
neonbyte1 commented 2026-11-29 08:00:38 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by neonbyte1 on 2026-11-29T08:00:38Z.


Where the measurement lives: fork issue https://github.com/neonbyte1/VIctory/issues/177 (RESULT: https://github.com/neonbyte1/VIctory/issues/177#issuecomment-7252763596).

  • On our stack (RTX 5090, Linux/Wine 11.22, vkd3d-proton of GE-Proton11-14, warm pipeline library) the same change with its switch on against off on the same exe, adjacent, gave frame -12.4 and -4.8 ms in two pairs. All of that came from draws that may store joining windows (107 and 114 a frame): in none of the four runs did an indirect dispatch join a window, as the body's table says.
  • Still unmeasured: the dispatch half (it needs a tree without #2312), and a game run of this branch itself; the device tests ran on a scaffold, not on the branch.

We now hold our own PRs to a rule on the fork: a hardware test with an adjacent control of the PR's own tree before it leaves draft. This one does not meet it yet and stays a draft.

AI-assisted (Claude); measured on my machine, no game data shared.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7252826968 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3676#issuecomment-7252826968). Originally posted by [neonbyte1](https://github.com/neonbyte1) on 2026-11-29T08:00:38Z. --- Where the measurement lives: fork issue https://github.com/neonbyte1/VIctory/issues/177 (`RESULT`: https://github.com/neonbyte1/VIctory/issues/177#issuecomment-7252763596). - On our stack (RTX 5090, Linux/Wine 11.22, vkd3d-proton of GE-Proton11-14, warm pipeline library) the same change with its switch on against off on the same exe, adjacent, gave frame -12.4 and -4.8 ms in two pairs. All of that came from draws that may store joining windows (107 and 114 a frame): in none of the four runs did an indirect dispatch join a window, as the body's table says. - **Still unmeasured:** the dispatch half (it needs a tree without #2312), and a game run of this branch itself; the device tests ran on a scaffold, not on the branch. We now hold our own PRs to a rule on the fork: a hardware test with an adjacent control of the PR's own tree before it leaves draft. This one does not meet it yet and stays a draft. _AI-assisted (Claude); measured on my machine, no game data shared._
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/3676:upstream-pr/3676'
git switch 'upstream-pr/3676'

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/3676'
git switch 'upstream-pr/3676'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/3676'
git switch 'upstream-pr/3676'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/3676'
git switch 'main'
git merge --squash 'upstream-pr/3676'
git switch 'main'
git merge --ff-only 'upstream-pr/3676'
git switch 'main'
git merge 'upstream-pr/3676'
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
Marvisak/VIctory!3676
No description provided.