Relay: the copy-queue fetch never runs beside writes to the copies it reads (RDNA 2 resets, #376) #428

Open
github-bot wants to merge 4 commits from github-bot/gh-428 into a-publier AGit
Owner

@⁠MamaLeVrai on GitHub · 2026-11-27 01:03 UTC · original
MamaLeVrai:relay-fix → a-publier · +463 −8 · 3 files · 4 commits · open

Update: the guard is now opt-in, VICTORY_RELAY_FETCH_GUARD=1 (commit 4960f8e). In-game measurements on an RX 7900 XT showed a cost (about 0.7 ms more fetch wait per frame, more stalls), and an RX 6600 XT still reset with it. Off by default, the default path is unchanged against a-publier.

What

With VICTORY_RELAY=2 and VICTORY_RELAY_COPY=1, both scripts\play.ps1 defaults, a landed flight's card copies are fetched on a separate HIGH-priority copy queue (relay_card_back, make_relay_fetch). Nothing on the GPU ordered that copy against later submissions that write the same card copies, either through shader UAV writes or through the card sync list's CopyBufferRegion into shadow.buffer in card_before. The copy queue read bytes while the drawing queue wrote them.

The new host/fetchguard.rs, wired into host.rs, does three things:

  • from card_before until its plan is dropped, each submission notes the card copies it writes (declared, looked at, sent up);
  • a fetch of a copy that a submission still in the air writes goes to the drawing queue behind it, as with VICTORY_RELAY_COPY=0;
  • a fetch that does go to the copy queue first notes what it reads. A submission sent while it runs, and writing one of those copies, makes the drawing queue Wait on the fetch's fence (a GPU wait, no CPU stall) before its first list.

The frame-rate line counts per frame the fetches on each queue and the drawing-queue waits.

Why

On RDNA 2 the device is lost (0x887A0007) within minutes under the defaults, and VICTORY_RELAY=0 avoids it (#376: RX 6800 XT, RX 6700, RX 6950 XT; #329). This is a real cross-queue overlap that only the relay adds. It is not proven to be the reset's cause. VICTORY_RELAY=0 turns off much more: the flights in the air, the relay thread, card steps, and most overlap with the upload-ahead and keep-awake queues. A game run on an RDNA 2 card has to confirm it.

Tests

On an RX 6950 XT (RDNA 2), driver 32.0.21045.29003, Windows 11 build 26300, release:

  • VICTORY_RELAY=2 VICTORY_RELAY_COPY=1 cargo test --release -p victory-gpu --lib -- --ignored --exact host::upcheck::tests::a_result_caught_in_between_is_put_right:
    • on a-publier 4eb6cfd: 12 of 12 results wrong in title memory, 1 undone on the card, FAILED. With VICTORY_FETCH_CHECK=1, 12 of 24 pieces are flagged as caught mid-write.
    • with this PR: 0 of 12 results wrong in title memory, 0 undone on the card, ok, with or without the check.
  • New ignored a_fetch_never_runs_beside_a_flight_that_writes_its_copy (passes 3 runs in a row), and a fetchguard unit test.
  • All 12 relay-copy ignored tests pass, each in its own process.
  • cargo test --release -p victory-gpu --lib, twice: 397 passed, 0 failed, 35 ignored (base 396 / 0 / 34). Clippy is clean with and without --features diagnostics.

Cost and limits

  • Not measured in the game: fetches that meet a writer in the air are as slow as the drawing-queue path, and the drawing queue now waits for a copy-queue fetch when a new submission writes a copy being fetched.
  • Shader writes through views the code does not know about are not covered, as before.

AI-assisted (Claude Code); no game data.

🤖 Generated with Claude Code

**@⁠MamaLeVrai** on GitHub · 2026-11-27 01:03 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/428) `MamaLeVrai:relay-fix` → `a-publier` · +463 −8 · 3 files · 4 commits · open **Update:** the guard is now opt-in, `VICTORY_RELAY_FETCH_GUARD=1` (commit `4960f8e`). In-game measurements on an RX 7900 XT showed a cost (about 0.7 ms more fetch wait per frame, more stalls), and an RX 6600 XT still reset with it. Off by default, the default path is unchanged against `a-publier`. ## What With `VICTORY_RELAY=2` and `VICTORY_RELAY_COPY=1`, both `scripts\play.ps1` defaults, a landed flight's card copies are fetched on a separate HIGH-priority copy queue (`relay_card_back`, `make_relay_fetch`). Nothing on the GPU ordered that copy against later submissions that write the same card copies, either through shader UAV writes or through the card sync list's `CopyBufferRegion` into `shadow.buffer` in `card_before`. The copy queue read bytes while the drawing queue wrote them. The new `host/fetchguard.rs`, wired into `host.rs`, does three things: - from `card_before` until its plan is dropped, each submission notes the card copies it writes (declared, looked at, sent up); - a fetch of a copy that a submission still in the air writes goes to the drawing queue behind it, as with `VICTORY_RELAY_COPY=0`; - a fetch that does go to the copy queue first notes what it reads. A submission sent while it runs, and writing one of those copies, makes the drawing queue `Wait` on the fetch's fence (a GPU wait, no CPU stall) before its first list. The frame-rate line counts per frame the fetches on each queue and the drawing-queue waits. ## Why On RDNA 2 the device is lost (`0x887A0007`) within minutes under the defaults, and `VICTORY_RELAY=0` avoids it (#376: RX 6800 XT, RX 6700, RX 6950 XT; #329). This is a real cross-queue overlap that only the relay adds. **It is not proven to be the reset's cause.** `VICTORY_RELAY=0` turns off much more: the flights in the air, the relay thread, card steps, and most overlap with the upload-ahead and keep-awake queues. A game run on an RDNA 2 card has to confirm it. ## Tests On an **RX 6950 XT (RDNA 2)**, driver 32.0.21045.29003, Windows 11 build 26300, release: - `VICTORY_RELAY=2 VICTORY_RELAY_COPY=1 cargo test --release -p victory-gpu --lib -- --ignored --exact host::upcheck::tests::a_result_caught_in_between_is_put_right`: - on `a-publier` `4eb6cfd`: `12 of 12 results wrong in title memory, 1 undone on the card`, FAILED. With `VICTORY_FETCH_CHECK=1`, 12 of 24 pieces are flagged as caught mid-write. - with this PR: `0 of 12 results wrong in title memory, 0 undone on the card`, ok, with or without the check. - New ignored `a_fetch_never_runs_beside_a_flight_that_writes_its_copy` (passes 3 runs in a row), and a `fetchguard` unit test. - All 12 relay-copy ignored tests pass, each in its own process. - `cargo test --release -p victory-gpu --lib`, twice: 397 passed, 0 failed, 35 ignored (base 396 / 0 / 34). Clippy is clean with and without `--features diagnostics`. ## Cost and limits - Not measured in the game: fetches that meet a writer in the air are as slow as the drawing-queue path, and the drawing queue now waits for a copy-queue fetch when a new submission writes a copy being fetched. - Shader writes through views the code does not know about are not covered, as before. AI-assisted (Claude Code); no game data. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
With VICTORY_RELAY_COPY=1 the relay thread fetched a landed flight's pieces
of card copies on a high-priority copy queue with no GPU synchronization
against later submissions on the drawing queue, which write the same buffers
(shader UAV writes, the sync list's sends). D3D12 lets one queue write a
buffer while another reads it only where they do not touch the same bytes.
upcheck's a_result_caught_in_between_is_put_right shows it: without
VICTORY_FETCH_CHECK the fetch caught the next flight mid-write in 12 of 12
rounds. This is the one cross-queue access the relay adds, a candidate for
the RDNA 2 device resets that VICTORY_RELAY=0 removes (#376); that link is
not proven here.

fetchguard: each submission counts the card copies it writes (declared,
looked at, sent up) from card_before until its plan is dropped. A fetch of
a copy another submission still in the air writes goes to the drawing queue,
behind it, as with VICTORY_RELAY_COPY=0. A fetch that goes to the copy queue
names its copies first, and a submission counted while it runs makes the
drawing queue wait for its fence (a GPU wait) before its first list.

Cost: fetches that met a writer in the air wait like the drawing-queue path;
the drawing queue stands for a copy-queue fetch only when a new submission
writes a copy being fetched. The frame-rate line counts both.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 01:33:20 +00:00
Author
Owner

@⁠copilot-pull-request-reviewer[bot] on GitHub · 2026-11-27 01:03 UTC · original · reviewed

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

**@⁠copilot-pull-request-reviewer[bot]** on GitHub · 2026-11-27 01:03 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/428#pullrequestreview-6082146707) · **reviewed** Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
Author
Owner

@⁠drbluetongue on GitHub · 2026-11-27 04:35 UTC · original

I tried this and still got crashing, 6600xt.

**@⁠drbluetongue** on GitHub · 2026-11-27 04:35 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/428#issuecomment-7209922307) I tried this and still got crashing, 6600xt.
Author
Owner

@⁠MamaLeVrai on GitHub · 2026-11-27 05:11 UTC · original

Thanks @⁠drbluetongue, that's useful: it means the copy-queue overlap fixed here is not the whole cause of the RDNA 2 resets, or not the cause at all. Could you tell me:

  • which settings the run used: the defaults, or VICTORY_RELAY_COPY, VICTORY_CARD_AWAKE, Series S/X;
  • how long before the crash, compared with the build without this PR;
  • the log line fetches of card copies' pieces per frame (VICTORY_RELAY_COPY=1): ..., and the when the host device went: line.

If you can also try -More @{VICTORY_RELAY_COPY='0'} and then -More @{VICTORY_CARD_AWAKE='0'} on the same build, each alone, that would show which of the relay's parts matters on your card. On #376, VICTORY_RELAY=0 alone was enough for several RDNA 2 cards.

AI-assisted (Claude Code); no game data.

**@⁠MamaLeVrai** on GitHub · 2026-11-27 05:11 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/428#issuecomment-7210432235) Thanks @⁠drbluetongue, that's useful: it means the copy-queue overlap fixed here is not the whole cause of the RDNA 2 resets, or not the cause at all. Could you tell me: - which settings the run used: the defaults, or `VICTORY_RELAY_COPY`, `VICTORY_CARD_AWAKE`, Series S/X; - how long before the crash, compared with the build without this PR; - the log line `fetches of card copies' pieces per frame (VICTORY_RELAY_COPY=1): ...`, and the `when the host device went:` line. If you can also try `-More @{VICTORY_RELAY_COPY='0'}` and then `-More @{VICTORY_CARD_AWAKE='0'}` on the same build, each alone, that would show which of the relay's parts matters on your card. On #376, `VICTORY_RELAY=0` alone was enough for several RDNA 2 cards. AI-assisted (Claude Code); no game data.
Author
Owner

@⁠adrianmjim on GitHub · 2026-11-27 06:48 UTC · original

Tested on RX 7900 XT (RDNA 3), driver 32.0.32029.2010, Windows 11 build 26300, release. Head 6bc90e3 vs a-publier 4eb6cfd.

  • a_result_caught_in_between_is_put_right, one process per run. 8 runs per side: 5 with VICTORY_RELAY=2 VICTORY_RELAY_COPY=1, 3 with the full play.ps1 env (non-Safe, without DRED):
    • 4eb6cfd: FAILED 8 of 8, every time 12 of 12 results wrong in title memory, 1 undone on the card. With VICTORY_FETCH_CHECK=1: ok 8 of 8, pieces checked/suspect/put right [24, 12, 12].
    • 6bc90e3: ok 8 of 8, 0 of 12 wrong, 0 undone, with and without the check. With the check: [0, 0, 0].
    • The base failure is not RDNA 2 only. It is the same on RDNA 3 and deterministic here.
  • The other 10 relay ignored tests, including card_steps with VICTORY_CARD_STEPS=2: ok on both sides, 8 runs each, one process each, same two envs. New a_fetch_never_runs_beside_a_flight_that_writes_its_copy (head): ok 8 of 8.
  • victory-gpu lib, default threads:
    • default env, 2 runs each: same counts as in the PR body (base 396 / 0 / 34, head 397 / 0 / 35).
    • VICTORY_RELAY=2 VICTORY_RELAY_COPY=1, 6 runs each: head 397 passed every run. Base failed once on descriptor::host::tests::views_off_their_elements_get_a_copy_of_their_bytes (the random failure in #462); it passes 3 of 3 alone on both sides.
  • The fetchguard unit test uses the process-wide guard. Under the relay env it passed in all 6 whole-suite runs and 10 of 10 alone.
  • Merge conflicts on top of this PR: #381 in upcheck.rs, #412 in host.rs. Both merge cleanly onto 4eb6cfd without this PR.

Not tested: a game run (nothing here on the RDNA 2 reset), cost of the drawing-queue waits, debug build.

**@⁠adrianmjim** on GitHub · 2026-11-27 06:48 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/428#issuecomment-7211864541) Tested on RX 7900 XT (RDNA 3), driver 32.0.32029.2010, Windows 11 build 26300, release. Head 6bc90e3 vs a-publier 4eb6cfd. - `a_result_caught_in_between_is_put_right`, one process per run. 8 runs per side: 5 with `VICTORY_RELAY=2 VICTORY_RELAY_COPY=1`, 3 with the full play.ps1 env (non-Safe, without DRED): - 4eb6cfd: FAILED 8 of 8, every time `12 of 12 results wrong in title memory, 1 undone on the card`. With `VICTORY_FETCH_CHECK=1`: ok 8 of 8, pieces checked/suspect/put right `[24, 12, 12]`. - 6bc90e3: ok 8 of 8, 0 of 12 wrong, 0 undone, with and without the check. With the check: `[0, 0, 0]`. - The base failure is not RDNA 2 only. It is the same on RDNA 3 and deterministic here. - The other 10 relay ignored tests, including `card_steps` with `VICTORY_CARD_STEPS=2`: ok on both sides, 8 runs each, one process each, same two envs. New `a_fetch_never_runs_beside_a_flight_that_writes_its_copy` (head): ok 8 of 8. - `victory-gpu` lib, default threads: - default env, 2 runs each: same counts as in the PR body (base 396 / 0 / 34, head 397 / 0 / 35). - `VICTORY_RELAY=2 VICTORY_RELAY_COPY=1`, 6 runs each: head 397 passed every run. Base failed once on `descriptor::host::tests::views_off_their_elements_get_a_copy_of_their_bytes` (the random failure in #462); it passes 3 of 3 alone on both sides. - The `fetchguard` unit test uses the process-wide guard. Under the relay env it passed in all 6 whole-suite runs and 10 of 10 alone. - Merge conflicts on top of this PR: #381 in `upcheck.rs`, #412 in `host.rs`. Both merge cleanly onto 4eb6cfd without this PR. Not tested: a game run (nothing here on the RDNA 2 reset), cost of the drawing-queue waits, debug build.
Author
Owner

@⁠adrianmjim on GitHub · 2026-11-27 11:31 UTC · original

In-game numbers for the "Cost and limits" section, on the same RX 7900 XT (RDNA 3) as my earlier comment. diag profile with diagnostics, head 6bc90e3 against a-publier 4eb6cfd.

What I ran:

  • Unattended passes of the opening sequence: Series S profile, the settings of scripts\play.ps1 (VICTORY_RELAY=2, VICTORY_RELAY_COPY=1), frame capture on, DRED light.
  • 3 passes per build, in randomised blocks with a third, unrelated configuration. Two passes overlapped another GPU job; I discarded them and repeated them at the end.
  • Window: 60-235 s after the first frame of 500 draws or more. Every ± is a Welch 95 % interval, 3 passes against 3.

Counters per frame, means of the one-second lines:

  • The PR's line: 7.71 / 7.82 / 7.66 fetches on the copy queue, 2.11 / 2.15 / 2.08 on the drawing queue (21.3-21.6 %), 0.29 / 0.29 / 0.21 waits of the drawing queue.
  • Relay line, "ms for fetches of card copies' pieces": base 7.44 / 7.39 / 7.07, PR 7.82 / 8.42 / 7.81. That is +0.72 ± 0.71 ms, and every PR pass is above every base pass. "landing in all" is +1.2 ± 2.3 ms, not separated.
  • VICTORY_CARD_STEPS=2 line: 1,347 fills on base, 1,806 with the PR (+34 ± 6 %). Title copies (5 s copies line) go from 7,900 to 7,303 (-7.6 ± 1.9 %). I did not trace why these two move.

Frame rate:

  • Frames in the window, from the capture's frame numbers: base 2,575 / 2,442 / 2,562 (14.7 / 14.0 / 14.6 fps), PR 2,429 / 2,292 / 2,502 (13.9 / 13.1 / 14.3 fps). That is -4.7 %, interval -13.4 % to +4.0 %.
  • Stalls: the time from a present to the title's first list call (frame account line, every 5 s) has a median of about 15 ms on both builds. Its excess over 20 ms, summed over the window, is 1.4 / 5.8 / 3.1 s on base and 9.0 / 17.2 / 9.2 s with the PR (+8.4 ± 9.8 s). Every PR pass is above every base pass. The frame deficit is in the same stretch: -7.9 ± 10.2 % at 60-175 s, 0.0 ± 9.1 % at 175-235 s (a split I chose after seeing the data). I did not trace whether the PR feeds these stalls.
  • An earlier single PR pass the same morning: 8.05 / 2.18 / 0.28 on the PR's line, -7.6 % frames against the two base passes beside it (-6.7 % with the day's first base pass, which was still making pipelines), stall 9.1 s against 6.4 and 10.6 s. Pooled, 5 base against 4 PR passes: fetch wait +0.76 ± 0.48 ms, frames -5.1 % (interval -11.5 % to +1.2 %).

So about a fifth of the fetches take the drawing-queue path, and the relay thread waits about 0.7 ms more per frame for fetches. On frame rate I cannot separate the PR from base: the interval excludes a cost above about 13 % on this route and includes zero. The stall time is the open point. Frames vary 3-4 % between passes of one build (sd), so finding a 5 % cost would need about 10 passes per build.

What this cannot show:

  • Nothing about RDNA 2 or the reset. No pass lost the device on either build (about 4 min in the world each).
  • One card, one driver, one route. The route is not time-locked. With 3 against 3, a complete ordering comes up by chance one time in ten.
  • diag build, a PNG saved every 8th frame, and the process at 31-32 GB private with 0.2-0.4 GB left to commit at worst in every pass.
**@⁠adrianmjim** on GitHub · 2026-11-27 11:31 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/428#issuecomment-7217165906) In-game numbers for the "Cost and limits" section, on the same RX 7900 XT (RDNA 3) as my earlier comment. `diag` profile with diagnostics, head 6bc90e3 against a-publier 4eb6cfd. What I ran: - Unattended passes of the opening sequence: Series S profile, the settings of `scripts\play.ps1` (`VICTORY_RELAY=2`, `VICTORY_RELAY_COPY=1`), frame capture on, DRED light. - 3 passes per build, in randomised blocks with a third, unrelated configuration. Two passes overlapped another GPU job; I discarded them and repeated them at the end. - Window: 60-235 s after the first frame of 500 draws or more. Every ± is a Welch 95 % interval, 3 passes against 3. Counters per frame, means of the one-second lines: - The PR's line: 7.71 / 7.82 / 7.66 fetches on the copy queue, 2.11 / 2.15 / 2.08 on the drawing queue (21.3-21.6 %), 0.29 / 0.29 / 0.21 waits of the drawing queue. - Relay line, "ms for fetches of card copies' pieces": base 7.44 / 7.39 / 7.07, PR 7.82 / 8.42 / 7.81. That is +0.72 ± 0.71 ms, and every PR pass is above every base pass. "landing in all" is +1.2 ± 2.3 ms, not separated. - `VICTORY_CARD_STEPS=2` line: 1,347 fills on base, 1,806 with the PR (+34 ± 6 %). Title copies (5 s copies line) go from 7,900 to 7,303 (-7.6 ± 1.9 %). I did not trace why these two move. Frame rate: - Frames in the window, from the capture's frame numbers: base 2,575 / 2,442 / 2,562 (14.7 / 14.0 / 14.6 fps), PR 2,429 / 2,292 / 2,502 (13.9 / 13.1 / 14.3 fps). That is -4.7 %, interval -13.4 % to +4.0 %. - Stalls: the time from a present to the title's first list call (frame account line, every 5 s) has a median of about 15 ms on both builds. Its excess over 20 ms, summed over the window, is 1.4 / 5.8 / 3.1 s on base and 9.0 / 17.2 / 9.2 s with the PR (+8.4 ± 9.8 s). Every PR pass is above every base pass. The frame deficit is in the same stretch: -7.9 ± 10.2 % at 60-175 s, 0.0 ± 9.1 % at 175-235 s (a split I chose after seeing the data). I did not trace whether the PR feeds these stalls. - An earlier single PR pass the same morning: 8.05 / 2.18 / 0.28 on the PR's line, -7.6 % frames against the two base passes beside it (-6.7 % with the day's first base pass, which was still making pipelines), stall 9.1 s against 6.4 and 10.6 s. Pooled, 5 base against 4 PR passes: fetch wait +0.76 ± 0.48 ms, frames -5.1 % (interval -11.5 % to +1.2 %). So about a fifth of the fetches take the drawing-queue path, and the relay thread waits about 0.7 ms more per frame for fetches. On frame rate I cannot separate the PR from base: the interval excludes a cost above about 13 % on this route and includes zero. The stall time is the open point. Frames vary 3-4 % between passes of one build (sd), so finding a 5 % cost would need about 10 passes per build. What this cannot show: - Nothing about RDNA 2 or the reset. No pass lost the device on either build (about 4 min in the world each). - One card, one driver, one route. The route is not time-locked. With 3 against 3, a complete ordering comes up by chance one time in ten. - `diag` build, a PNG saved every 8th frame, and the process at 31-32 GB private with 0.2-0.4 GB left to commit at worst in every pass.
Measured in game on an RX 7900 XT (adrianmjim, #428): ~0.7 ms more fetch
wait a frame and more stalls before the title's first list call, frames
-5 % not separated from zero, and it did not stop the RDNA 2 resets on an
RX 6600 XT. Off, nothing changes against a-publier; on, upcheck's
a_result_caught_in_between_is_put_right goes from 12/12 wrong to 0/12.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The guard (VICTORY_RELAY_FETCH_GUARD=1) counted whole card copies: a
submission in the air writing any part of a big copy sent the fetch of any
piece of it to the drawing queue, and made the drawing queue wait for a
copy-queue fetch of any piece of it. On an RX 7900 XT (#428) that was ~21%
of fetches on the drawing queue and ~0.7 ms/frame more relay wait.

Now each submission counts, per copy, the offsets it writes (sorted,
joined): its declared ranges, its sends of title bytes (widened to 16
bytes), and all of a copy it only looks at (a picked view may write it
anywhere). A fetch goes to the copy queue unless a submission in the air,
other than the landing flights, writes a byte of one of its pieces; the
drawing queue waits for a fetch only when a new submission writes a byte
of a piece being fetched. With VICTORY_FETCH_CHECK=1 the pieces come down
whole, so the whole hashed piece is what is checked.

Not covered, as before: writes a submission makes outside what it
declared. In-game cost not measured yet.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Owner

@⁠MamaLeVrai on GitHub · 2026-11-27 11:32 UTC · original

Thanks @⁠adrianmjim, careful work. Taking it with the RX 6600 XT report above: this PR fixes a real overlap (12/12 wrong results in the upcheck test go to 0/12), but it does not stop the RDNA 2 resets. In your runs it costs ~0.7 ms of relay fetch wait per frame and more title-call stalls (+8.4 ± 9.8 s over the window, every PR pass above every base pass), with frames -5 % and not separated from zero.

Given that, I'd suggest the maintainer does not take it as a default yet. Two options:

  • keep the guard but only for fetches that would really overlap, if the 21 % drawing-queue share can be narrowed. The +34 % card-step fills you saw suggest the declared writes are broader than the bytes really written;
  • or put it behind a switch (e.g. VICTORY_RELAY_FETCH_GUARD=1) so the correctness fix is there for whoever sees the wrong data, without the cost by default.

I'll look at narrowing it before asking for a merge. On RDNA 2, the cause of the resets is still open; my notes are on #376 and #545.

AI-assisted (Claude Code); no game data.

**@⁠MamaLeVrai** on GitHub · 2026-11-27 11:32 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/428#issuecomment-7217196769) Thanks @⁠adrianmjim, careful work. Taking it with the RX 6600 XT report above: this PR fixes a real overlap (12/12 wrong results in the upcheck test go to 0/12), but it **does not** stop the RDNA 2 resets. In your runs it costs ~0.7 ms of relay fetch wait per frame and more title-call stalls (+8.4 ± 9.8 s over the window, every PR pass above every base pass), with frames -5 % and not separated from zero. Given that, I'd suggest the maintainer does not take it as a default yet. Two options: - keep the guard but only for fetches that would really overlap, if the 21 % drawing-queue share can be narrowed. The +34 % card-step fills you saw suggest the declared writes are broader than the bytes really written; - or put it behind a switch (e.g. `VICTORY_RELAY_FETCH_GUARD=1`) so the correctness fix is there for whoever sees the wrong data, without the cost by default. I'll look at narrowing it before asking for a merge. On RDNA 2, the cause of the resets is still open; my notes are on #376 and #545. AI-assisted (Claude Code); no game data.
Author
Owner

@⁠MamaLeVrai on GitHub · 2026-11-27 11:36 UTC · original

Pushed 4960f8e: the guard is now behind VICTORY_RELAY_FETCH_GUARD=1, off by default, so the default path is the same as a-publier and has none of the cost measured above. On an RX 6950 XT, VICTORY_RELAY=2 VICTORY_RELAY_COPY=1, upcheck's a_result_caught_in_between_is_put_right:

  • guard off: 12 of 12 results wrong in title memory, FAILED (as on base);
  • VICTORY_RELAY_FETCH_GUARD=1: 0 of 12, ok.

cargo test --release -p victory-gpu --lib: 396 passed, 1 failed (a watch::tests flake that #450 fixes), 35 ignored. The new ignored test now names the switch it wants. The frame line's fetch counts are printed only with the guard on.

AI-assisted (Claude Code); no game data.

**@⁠MamaLeVrai** on GitHub · 2026-11-27 11:36 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/428#issuecomment-7217264619) Pushed `4960f8e`: the guard is now behind `VICTORY_RELAY_FETCH_GUARD=1`, **off by default**, so the default path is the same as `a-publier` and has none of the cost measured above. On an RX 6950 XT, `VICTORY_RELAY=2 VICTORY_RELAY_COPY=1`, upcheck's `a_result_caught_in_between_is_put_right`: - guard off: `12 of 12 results wrong in title memory`, FAILED (as on base); - `VICTORY_RELAY_FETCH_GUARD=1`: `0 of 12`, ok. `cargo test --release -p victory-gpu --lib`: 396 passed, 1 failed (a `watch::tests` flake that #450 fixes), 35 ignored. The new ignored test now names the switch it wants. The frame line's fetch counts are printed only with the guard on. AI-assisted (Claude Code); no game data.
Author
Owner

@⁠MamaLeVrai on GitHub · 2026-11-27 11:50 UTC · original

Pushed e1263e1: the guard (still opt-in, VICTORY_RELAY_FETCH_GUARD=1) now works by byte range instead of whole copy. Each submission records the offsets it writes per copy: its declared ranges, sends widened to 16 bytes, and the whole copy only for copies it merely looks at (a shader may write anywhere there). A fetch goes to the drawing queue, and the drawing queue waits for a fetch, only when a submission in the air writes a byte of a piece being fetched.

On an RX 6950 XT:

  • upcheck a_result_caught_in_between_is_put_right with the guard: 0 of 12 results wrong, ok (with and without VICTORY_FETCH_CHECK=1). a_fetch_never_runs_beside_a_flight_that_writes_its_copy passes too;
  • new unit tests only_a_write_that_overlaps_a_piece_holds_the_fetch_back and ranges_meet_only_where_they_share_a_byte;
  • cargo test --release -p victory-gpu --lib, 5 runs: 399 passed, 35 ignored in 4; one had a watch::tests flake (#450).

@⁠adrianmjim, if you get the chance, the same passes with VICTORY_RELAY_FETCH_GUARD=1 would show whether the 21 % drawing-queue share, the +0.7 ms and the +34 % card-step fills come down. One limit remains: writes outside the declared ranges are not covered (as before), and the old whole-copy check no longer catches them by accident.

AI-assisted (Claude Code); no game data.

**@⁠MamaLeVrai** on GitHub · 2026-11-27 11:50 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/428#issuecomment-7217542527) Pushed `e1263e1`: the guard (still opt-in, `VICTORY_RELAY_FETCH_GUARD=1`) now works by byte range instead of whole copy. Each submission records the offsets it writes per copy: its declared ranges, sends widened to 16 bytes, and the whole copy only for copies it merely looks at (a shader may write anywhere there). A fetch goes to the drawing queue, and the drawing queue waits for a fetch, only when a submission in the air writes a byte of a piece being fetched. On an RX 6950 XT: - upcheck `a_result_caught_in_between_is_put_right` with the guard: `0 of 12 results wrong`, ok (with and without `VICTORY_FETCH_CHECK=1`). `a_fetch_never_runs_beside_a_flight_that_writes_its_copy` passes too; - new unit tests `only_a_write_that_overlaps_a_piece_holds_the_fetch_back` and `ranges_meet_only_where_they_share_a_byte`; - `cargo test --release -p victory-gpu --lib`, 5 runs: 399 passed, 35 ignored in 4; one had a `watch::tests` flake (#450). @⁠adrianmjim, if you get the chance, the same passes with `VICTORY_RELAY_FETCH_GUARD=1` would show whether the 21 % drawing-queue share, the +0.7 ms and the +34 % card-step fills come down. One limit remains: writes outside the declared ranges are not covered (as before), and the old whole-copy check no longer catches them by accident. AI-assisted (Claude Code); no game data.
Author
Owner

@⁠DragonQ on GitHub · 2026-11-27 11:55 UTC · original · edited 2026-11-27 13:41 UTC

Pushed e1263e1: the guard (still opt-in, VICTORY_RELAY_FETCH_GUARD=1) now works by byte range instead of whole copy. Each submission records the offsets it writes per copy: its declared ranges, sends widened to 16 bytes, and the whole copy only for copies it merely looks at (a shader may write anywhere there). A fetch goes to the drawing queue, and the drawing queue waits for a fetch, only when a submission in the air writes a byte of a piece being fetched.

Just tried this on my 6800 XT with scripts\play.ps1 -Exe "..." -More @{VICTORY_RELAY_FETCH_GUARD='1';VICTORY_OUTPUT='1920x1080'} and it crashed after the loading screens before gameplay started.

5538.9 ms before, thread 11136: pipeline library: loaded [vertex 5ec7617b0f7cb43c, pixel 813a7ead7f09ebd7] in 0.1 ms
  3910.1 ms before, thread 9768: sweep: 3 host copies of windows of title memory let go (12288 KiB), held by no list and no slot
  3910.1 ms before, thread 9768: sweep: 6 staging buffers of textures let go (108 KiB), held by no list
  3367.6 ms before, thread 18908: pipeline library: made [mesh 4ad4d68d43e8f614, pixel 387952dfcc8d309c] in 0.5 ms (the library did not load it: The parameter is incorrect. (0x80070057))
  3324.5 ms before, thread 11136: pipeline library: made [mesh fd3e432c9cb8e69a, pixel 88a843b2428949bf] in 0.3 ms (the library did not load it: The parameter is incorrect. (0x80070057))
  3313.6 ms before, thread 11136: pipeline library: made [mesh 1e7c73fd733a6b90, pixel 87e7b753a5390023] in 0.6 ms (the library did not load it: The parameter is incorrect. (0x80070057))
  3312.7 ms before, thread 11136: pipeline library: made [mesh fd3e432c9cb8e69a, pixel 88a843b2428949bf] in 0.2 ms (the library did not load it: The parameter is incorrect. (0x80070057))
  3312.1 ms before, thread 18908: pipeline library: made [mesh 1e7c73fd733a6b90, pixel 87e7b753a5390023] in 0.1 ms (the library did not load it: The parameter is incorrect. (0x80070057))
  3310.0 ms before, thread 4432: pipeline library: made [mesh fd3e432c9cb8e69a, pixel 88a843b2428949bf] in 0.2 ms (the library did not load it: The parameter is incorrect. (0x80070057))
  3309.0 ms before, thread 19656: pipeline library: made [mesh 1e7c73fd733a6b90, pixel 87e7b753a5390023] in 0.7 ms (the library did not load it: The parameter is incorrect. (0x80070057))
  1594.2 ms before, thread 9768: sweep: 18 staging buffers of textures let go (3279 KiB), held by no list
  542.0 ms before, thread 9768: sweep: 13 staging buffers of textures let go (1523 KiB), held by no list
2026-11-27T11:53:47.955106Z ERROR victory_gpu::host: device-removed data; breadcrumbs (done/count, list) []
2026-11-27T11:53:47.955159Z ERROR victory_gpu::host: no host list for a state prelude; device removed: The GPU will not respond to more commands, most likely because some other application submitted invalid commands.
The calling application should re-create the device and continue. (0x887A0007); a diagnostics build with VICTORY_D3D12_DEBUG=1 names the command
VIctory: host GPU failure: no host list for a state prelude; device removed: The GPU will not respond to more commands, most likely because some other application submitted invalid commands.
The calling application should re-create the device and continue. (0x887A0007); a diagnostics build with VICTORY_D3D12_DEBUG=1 names the command

The ONLY fork that seems to not crash for me is https://github.com/kyokyotosh/VIctory-6700XT but that one has lots of graphical issues that the other ones (like Belobug) don't have!

**@⁠DragonQ** on GitHub · 2026-11-27 11:55 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/428#issuecomment-7217629504) · edited 2026-11-27 13:41 UTC > Pushed `e1263e1`: the guard (still opt-in, `VICTORY_RELAY_FETCH_GUARD=1`) now works by byte range instead of whole copy. Each submission records the offsets it writes per copy: its declared ranges, sends widened to 16 bytes, and the whole copy only for copies it merely looks at (a shader may write anywhere there). A fetch goes to the drawing queue, and the drawing queue waits for a fetch, only when a submission in the air writes a byte of a piece being fetched. Just tried this on my 6800 XT with `scripts\play.ps1 -Exe "..." -More @{VICTORY_RELAY_FETCH_GUARD='1';VICTORY_OUTPUT='1920x1080'}` and it crashed after the loading screens before gameplay started. ``` 5538.9 ms before, thread 11136: pipeline library: loaded [vertex 5ec7617b0f7cb43c, pixel 813a7ead7f09ebd7] in 0.1 ms 3910.1 ms before, thread 9768: sweep: 3 host copies of windows of title memory let go (12288 KiB), held by no list and no slot 3910.1 ms before, thread 9768: sweep: 6 staging buffers of textures let go (108 KiB), held by no list 3367.6 ms before, thread 18908: pipeline library: made [mesh 4ad4d68d43e8f614, pixel 387952dfcc8d309c] in 0.5 ms (the library did not load it: The parameter is incorrect. (0x80070057)) 3324.5 ms before, thread 11136: pipeline library: made [mesh fd3e432c9cb8e69a, pixel 88a843b2428949bf] in 0.3 ms (the library did not load it: The parameter is incorrect. (0x80070057)) 3313.6 ms before, thread 11136: pipeline library: made [mesh 1e7c73fd733a6b90, pixel 87e7b753a5390023] in 0.6 ms (the library did not load it: The parameter is incorrect. (0x80070057)) 3312.7 ms before, thread 11136: pipeline library: made [mesh fd3e432c9cb8e69a, pixel 88a843b2428949bf] in 0.2 ms (the library did not load it: The parameter is incorrect. (0x80070057)) 3312.1 ms before, thread 18908: pipeline library: made [mesh 1e7c73fd733a6b90, pixel 87e7b753a5390023] in 0.1 ms (the library did not load it: The parameter is incorrect. (0x80070057)) 3310.0 ms before, thread 4432: pipeline library: made [mesh fd3e432c9cb8e69a, pixel 88a843b2428949bf] in 0.2 ms (the library did not load it: The parameter is incorrect. (0x80070057)) 3309.0 ms before, thread 19656: pipeline library: made [mesh 1e7c73fd733a6b90, pixel 87e7b753a5390023] in 0.7 ms (the library did not load it: The parameter is incorrect. (0x80070057)) 1594.2 ms before, thread 9768: sweep: 18 staging buffers of textures let go (3279 KiB), held by no list 542.0 ms before, thread 9768: sweep: 13 staging buffers of textures let go (1523 KiB), held by no list 2026-11-27T11:53:47.955106Z ERROR victory_gpu::host: device-removed data; breadcrumbs (done/count, list) [] 2026-11-27T11:53:47.955159Z ERROR victory_gpu::host: no host list for a state prelude; device removed: The GPU will not respond to more commands, most likely because some other application submitted invalid commands. The calling application should re-create the device and continue. (0x887A0007); a diagnostics build with VICTORY_D3D12_DEBUG=1 names the command VIctory: host GPU failure: no host list for a state prelude; device removed: The GPU will not respond to more commands, most likely because some other application submitted invalid commands. The calling application should re-create the device and continue. (0x887A0007); a diagnostics build with VICTORY_D3D12_DEBUG=1 names the command ``` The ONLY fork that seems to not crash for me is https://github.com/kyokyotosh/VIctory-6700XT but that one has lots of graphical issues that the other ones (like Belobug) don't have!
Author
Owner

@⁠adrianmjim on GitHub · 2026-11-27 14:14 UTC · original

Same passes as above, now with e1263e1 and VICTORY_RELAY_FETCH_GUARD=1, on the same RX 7900 XT.

What I ran:

  • 3 passes of e1263e1 with the switch on and 3 of a-publier 4eb6cfd, inside a block of 12 passes (guard 3rd, 6th, 9th; base 2nd, 8th, 10th; the other 6 were two other PRs), 65 minutes, nothing else on the GPU. Same route, settings, diag build and 60-235 s window.
  • I did not run e1263e1 with the switch off.
  • Every ± is a Welch 95 % interval of the difference of means, 3 passes against 3; percentages are of the base mean. "Whole copy" is 6bc90e3 from my earlier comment, measured about two hours earlier against its own three base passes.
Per frame, means of the one-second lines, one value per pass base 4eb6cfd, this block whole copy 6bc90e3, earlier block byte range e1263e1, this block
Share of fetches on the drawing queue 21.4 / 21.6 / 21.3 % 20.2 / 19.9 / 19.6 %
Waits of the drawing queue 0.29 / 0.29 / 0.21 0.22 / 0.16 / 0.17
Relay fetch wait, ms 7.25 / 6.96 / 7.07 7.82 / 8.42 / 7.81 7.75 / 7.46 / 7.40
Card-step fills 1,407 / 1,324 / 1,401 1,821 / 1,765 / 1,832 1,845 / 1,976 / 2,336

The three numbers:

  • Share: down 1.5 ± 0.7 points. Every byte-range pass is below every whole-copy pass. It is still a fifth of the fetches.
  • Fetch wait: +0.45 ± 0.39 ms against base (before: +0.72 ± 0.71), and again every guard pass is above every base pass. Byte range minus whole copy is -0.48 ± 0.71 ms, so I cannot say it came down.
  • Fills: +49 ± 44 % against base (before: +34 ± 6 %). They did not come down (byte range minus whole copy: +246 ± 615). But #386 at 3f91df5, one of the other PRs in the block, with no guard code, moves them the same way against the same base passes (+40 ± 16 %; title copies -6.3 ± 2.2 %, against -8.5 ± 12.1 % here). So the rise is not specific to the guard, and I no longer read fills as a measure of it.
  • The PR's line does not say which kind of range held a fetch back, so I cannot tell whether the remaining fifth comes from the copies that are only looked at, which still count whole.

Frames and stalls:

  • Frames in the window: base 2,248 / 2,606 / 2,527, guard 2,574 / 2,037 / 2,138 (-8.6 ± 23.7 %).
  • Stall time above 20 ms (same account line as before): base 9.1 / 2.3 / 3.5 s, guard 1.3 / 33.7 / 18.3 s (+12.8 ± 37.9 s).
  • The loss is before 120 s (the splits here I chose after seeing the data). The second and third guard passes made 345 and 477 frames at 60-120 s (base 724 / 789 / 749) and were already behind at 10-60 s: 409 and 588 (base 643 / 786 / 776). Three passes of the other two PRs, which have no guard code, made 377-411 frames at 10-60 s, so a slow start is not the guard's alone.
  • Inside that stretch each of the two ran only 16 frames in about 8.6 s at 102-112 s, in two saved-frame gaps of 2.9-5.7 s. None of the other 28 passes I ran today has a gap above 3.3 s in the window. In those seconds the PR's line shows 0.0-0.3 waits of the drawing queue per frame, the card's busy share fell to 2-9 % and no WARN was logged. I could not attribute them.
  • From 120 s on I see no difference, with a wide interval: frames +0.6 ± 19.7 %, stall 6.5 / 2.2 / 2.3 s on base and 1.2 / 3.1 / 3.6 s with the guard. The stall excess of the whole-copy passes after 120 s (6.4 / 13.8 / 7.0 s) did not repeat.
  • No pass lost the device (about 4 min in the world each). No ERROR, no DRED output, no WARN kind that today's base passes do not also log.

What this cannot show:

  • Nothing about the device removal reported above on an RX 6800 XT, or about RDNA 2.
  • One card, one driver, one route, not time-locked. This round was noisier than the last: base frames span 2,248-2,606 against 2,442-2,575. With 3 against 3, a complete ordering comes up by chance one time in ten.
  • Whole copy and byte range were measured in different sessions of the same day. Base moved little between them (fetch wait -0.21 ± 0.42 ms, fills +2 ± 7 %).
  • diag build, a PNG saved every 8th frame, the process peaking at 30.5-31.4 GB private on a 32 GB PC with 0.1-0.3 GB left to commit at worst. The first guard pass made 82 pipelines (that exe's first run); the other five made 0-6.
**@⁠adrianmjim** on GitHub · 2026-11-27 14:14 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/428#issuecomment-7220526345) Same passes as above, now with e1263e1 and `VICTORY_RELAY_FETCH_GUARD=1`, on the same RX 7900 XT. What I ran: - 3 passes of e1263e1 with the switch on and 3 of a-publier 4eb6cfd, inside a block of 12 passes (guard 3rd, 6th, 9th; base 2nd, 8th, 10th; the other 6 were two other PRs), 65 minutes, nothing else on the GPU. Same route, settings, `diag` build and 60-235 s window. - I did not run e1263e1 with the switch off. - Every ± is a Welch 95 % interval of the difference of means, 3 passes against 3; percentages are of the base mean. "Whole copy" is 6bc90e3 from my earlier comment, measured about two hours earlier against its own three base passes. | Per frame, means of the one-second lines, one value per pass | base 4eb6cfd, this block | whole copy 6bc90e3, earlier block | byte range e1263e1, this block | |---|---|---|---| | Share of fetches on the drawing queue | | 21.4 / 21.6 / 21.3 % | 20.2 / 19.9 / 19.6 % | | Waits of the drawing queue | | 0.29 / 0.29 / 0.21 | 0.22 / 0.16 / 0.17 | | Relay fetch wait, ms | 7.25 / 6.96 / 7.07 | 7.82 / 8.42 / 7.81 | 7.75 / 7.46 / 7.40 | | Card-step fills | 1,407 / 1,324 / 1,401 | 1,821 / 1,765 / 1,832 | 1,845 / 1,976 / 2,336 | The three numbers: - Share: down 1.5 ± 0.7 points. Every byte-range pass is below every whole-copy pass. It is still a fifth of the fetches. - Fetch wait: +0.45 ± 0.39 ms against base (before: +0.72 ± 0.71), and again every guard pass is above every base pass. Byte range minus whole copy is -0.48 ± 0.71 ms, so I cannot say it came down. - Fills: +49 ± 44 % against base (before: +34 ± 6 %). They did not come down (byte range minus whole copy: +246 ± 615). But #386 at 3f91df5, one of the other PRs in the block, with no guard code, moves them the same way against the same base passes (+40 ± 16 %; title copies -6.3 ± 2.2 %, against -8.5 ± 12.1 % here). So the rise is not specific to the guard, and I no longer read fills as a measure of it. - The PR's line does not say which kind of range held a fetch back, so I cannot tell whether the remaining fifth comes from [the copies that are only looked at, which still count whole](https://github.com/Belobug/VIctory-Belobug-AMD/blob/e1263e15cd21bdb234089b88a378f02d8479c1e7/crates/victory-gpu/src/host.rs#L4539). Frames and stalls: - Frames in the window: base 2,248 / 2,606 / 2,527, guard 2,574 / 2,037 / 2,138 (-8.6 ± 23.7 %). - Stall time above 20 ms (same account line as before): base 9.1 / 2.3 / 3.5 s, guard 1.3 / 33.7 / 18.3 s (+12.8 ± 37.9 s). - The loss is before 120 s (the splits here I chose after seeing the data). The second and third guard passes made 345 and 477 frames at 60-120 s (base 724 / 789 / 749) and were already behind at 10-60 s: 409 and 588 (base 643 / 786 / 776). Three passes of the other two PRs, which have no guard code, made 377-411 frames at 10-60 s, so a slow start is not the guard's alone. - Inside that stretch each of the two ran only 16 frames in about 8.6 s at 102-112 s, in two saved-frame gaps of 2.9-5.7 s. None of the other 28 passes I ran today has a gap above 3.3 s in the window. In those seconds the PR's line shows 0.0-0.3 waits of the drawing queue per frame, the card's busy share fell to 2-9 % and no WARN was logged. I could not attribute them. - From 120 s on I see no difference, with a wide interval: frames +0.6 ± 19.7 %, stall 6.5 / 2.2 / 2.3 s on base and 1.2 / 3.1 / 3.6 s with the guard. The stall excess of the whole-copy passes after 120 s (6.4 / 13.8 / 7.0 s) did not repeat. - No pass lost the device (about 4 min in the world each). No ERROR, no DRED output, no WARN kind that today's base passes do not also log. What this cannot show: - Nothing about the device removal reported above on an RX 6800 XT, or about RDNA 2. - One card, one driver, one route, not time-locked. This round was noisier than the last: base frames span 2,248-2,606 against 2,442-2,575. With 3 against 3, a complete ordering comes up by chance one time in ten. - Whole copy and byte range were measured in different sessions of the same day. Base moved little between them (fetch wait -0.21 ± 0.42 ms, fills +2 ± 7 %). - `diag` build, a PNG saved every 8th frame, the process peaking at 30.5-31.4 GB private on a 32 GB PC with 0.1-0.3 GB left to commit at worst. The first guard pass made 82 pipelines (that exe's first run); the other five made 0-6.
adrianmjim's RX 7900 XT run (#428) still sends ~20 % of fetches to the
drawing queue with the byte-range guard, and the line cannot say why.
Copies a submission merely looks at still count whole (WHOLE). The frame
line now says how many held fetches were held only by such a copy and how
many by writes of known bytes.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Author
Owner

@⁠MamaLeVrai on GitHub · 2026-11-27 15:15 UTC · original

Thanks @⁠adrianmjim, this is clear, and the table is useful. Reading it: the byte range lowers the drawing-queue share by only 1.5 ± 0.7 points, the fetch wait is +0.45 ± 0.39 ms against base, and the frame and stall differences are inside the noise (the stall excess comes from two passes). So I won't claim a cost reduction, and the guard stays opt-in.

On the remaining fifth: in the code, copies that a submission only looks at still count whole (fetchguard::WHOLE, host.rs ~4539), so that is the likeliest source, but it was not measured. I pushed 27d6475, which adds two counters to the same frame line: of the fetches sent to the drawing queue, how many were held back only by such a whole copy, and how many by writes of known bytes. If a pass with VICTORY_RELAY_FETCH_GUARD=1 is cheap for you, that line will say whether narrowing the looked-at copies is worth doing.

AI-assisted (Claude Code); no game data.

**@⁠MamaLeVrai** on GitHub · 2026-11-27 15:15 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/428#issuecomment-7221834911) Thanks @⁠adrianmjim, this is clear, and the table is useful. Reading it: the byte range lowers the drawing-queue share by only 1.5 ± 0.7 points, the fetch wait is +0.45 ± 0.39 ms against base, and the frame and stall differences are inside the noise (the stall excess comes from two passes). So I won't claim a cost reduction, and the guard stays opt-in. On the remaining fifth: in the code, copies that a submission only *looks at* still count whole (`fetchguard::WHOLE`, host.rs ~4539), so that is the likeliest source, but it was not measured. I pushed `27d6475`, which adds two counters to the same frame line: of the fetches sent to the drawing queue, how many were held back only by such a whole copy, and how many by writes of known bytes. If a pass with `VICTORY_RELAY_FETCH_GUARD=1` is cheap for you, that line will say whether narrowing the looked-at copies is worth doing. AI-assisted (Claude Code); no game data.
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

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

Merge

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