fix(vk): the write-back diff writes only the vectors the GPU changed, so the lock-on arrows no longer go missing #2863

Merged
HumanBean merged 2 commits from llun/Longshot:claude/issue-2079-45b3f6 into main 2026-11-30 05:08:29 +00:00
Member

Summary

When you Z-target an enemy, the four arrows around it often show only two or three (sometimes fewer), and the missing ones stay missing for the whole lock-on. On main: lock on to the Tektites on Death Mountain Trail a dozen times; about half the lock-ons lose one or two arrows.

Why: the arrows are four particles of one effect, and the game writes each arrow's 256-byte record once, when the arrow is born (0, 4, 8 and 12 frames after the lock), often on a worker thread after the frame's submission was captured. The effect's own GPU pass (15e70c016d50a89c) changes words of records 0 and 2 every frame, so its range is written back to guest memory every frame. The write-back diff's vector path wrote a subgroup's whole span when any vector of it differed, unchanged vectors with the mirror's words. On a 32-lane GPU a span is 512 bytes, two records, so spans (0,1) and (2,3) were written whole, and a late birth of record 1 or 3 went back to the effect heap's 0x6f6f6f6f fill. The game never writes the record again, and the arrows' vertex program never draws a record that isn't born. The full trace is on the issue.

The change: in gpu/vk/shaders/wb_diff.comp's vector path, each invocation takes one 16-byte vector and writes it, whole, only when it differs from the shadow. A vector the GPU didn't change is never written, so a CPU write to it made after the capture stays, as the design note above the diff in vk_memory.cpp says it should. Stamps (the late pages' fix), the shadow update and the observations are as they were.

A first version of this PR also wrote only the changed words within a vector. It fixed the bug too, but took ~4x the write-back's GPU time (Measurements), so the vector is the unit.

Read first: gpu/vk/shaders/wb_diff.comp, then the new pass in tests/wb_diff_observations_gpu.cpp.

Fixes #2079. Likely also #1803 (the same arrows, "after aiming repeatedly", since Hookshot 2.1).

Testing

Tested: Windows 11, NVIDIA RTX 5080 (driver 621.40). Death Mountain Trail, child, the Tektites:

  • A logging build of this change (the same rule, 3588ae8b with this vector-path shader; local only), at the 60 fps cap, a dump 25 frames into each lock-on: all four arrow records present in 19 of 19 lock-ons. On main, 53 of 81 dumped lock-ons over eight runs had lost one or two.
  • 80 lock-ons over two timed runs of the same build (Measurements), with screenshots mid-lock-on showing the arrows.
  • tests/wb_diff_observations_gpu.cpp's new pass "CPU-newer words kept" (python -I -B tests/test_wb_diff_observations_gpu.py --cxx clang++ --headers <Vulkan headers> --run): fails on main (FAIL:238: vector 1, which the CPU wrote and the GPU didn't change, overwritten) and passes here, with the five earlier passes still passing.
  • tests/test_late_fix_shaders.py (the SPIR-V header matches the source, with the pinned glslang 16.6.0), test_late_fix_build.py, test_msync_pass.py, test_wb_diff_stale_shadow.py, test_vulkan_fixtures_ci.py: pass. spirv-val --target-env vulkan1.3 on the header: passes. mise run lint passes.
  • mise run test (Windows, llvm-mingw) on the first version (same files touched): 811 passed, 52 failed; the same 49 fail on main @ 9b342b46 on this PC, and the other three (test_audio_voice_biquad, test_audio_wave_buffer_release, test_frame_wait_bounds) were timeouts under load and pass alone.
  • A second agent reviewed the first version cold: no correctness problem (stamps, shadow, observations, odd counts, the 2D grid, the msync pass); it flagged the cost this version removes.

Still to test:

  • Linux, AMD RADV (64-lane compute subgroups, 1 KB spans): lock on to enemies repeatedly, expecting all four arrows every time (@Beanstalk lock on to enemies a dozen times on AMD and count the arrows)
  • Windows, AMD and Intel: the same, expecting all four arrows (@Beanstalk)
  • Steam Deck: the same, and Hyrule Field's frame time against main, expecting no change (by hand)

Measurements

Verdict: the write-back's GPU time is the same as main's (0.154 against 0.162 ms a frame at the lock-ons), fps within the spread; the first version's word-by-word writes cost ~4x.

Setup: Windows 11, RTX 5080, driver 621.40, every build on the same base (main @ 9b342b46); dev.py ab's pinned options (1280x720 at 67%, uncapped, frame generation and V-Sync off), RX_VK_PASS_TIMING=1 on every side, each run a timing job of the queue, interleaved. "wb copies" is the write-back's GPU time a frame, the median of the pass-timing reports in the measured stretch. This change was measured as 502127270 (local: 3588ae8b with this vector-path shader; the committed shader has the same rule, without an unused variable); rebased since onto ae32c0dd3 with nothing in between touching the write-back.

Baseline: main @ 9b342b46 is the baseline; this PR's first version (3588ae8b, word by word) is shown beside it because it was what this PR held before, and its cost is why the vector is the unit.

Death Mountain Trail, Z-targeting the Tektites, 40 lock-ons a run (~80 s), Link at the Tektites in every run, 2 runs a side:

Before: main @ 9b342b46 After: this PR @ 502127270 Before: this PR's first version (word by word) @ 3588ae8b
wb copies, GPU ms a frame (each run) 0.155 / 0.169 (median 0.162) 0.150 / 0.158 (0.154) 0.620 / 0.616 (0.618)
msync pass (the same shader in the mirror sync), GPU ms a frame 0.078 / 0.080 (median 0.079) 0.075 / 0.079 (0.077) 0.078 / 0.078 (0.078)
fps (each run) 158.7 / 153.2 (155.9) 149.9 / 155.6 (152.8) 148.6 / 149.4 (149.0)
1% low fps 93.4 97.5 93.2

Hyrule Field, dev.py ab's scene (teleport 1, no input, ~60 s measured after ~20 s), 3 pairs, this PR against the first version:

Before: this PR's first version (word by word) @ 3588ae8b After: this PR @ 502127270
wb copies, GPU ms a frame (each run) 0.980 / 0.998 / 1.000 (median 0.998) 0.204 / 0.204 / 0.204 (0.204)
fps (each run) 155.0 / 151.4 / 151.4 (151.4) 166.7 / 162.0 / 153.0 (162.0)
1% low fps 108.0 120.7

For scale, main there (dev.py ab --set RX_VK_PASS_TIMING=1, an earlier pair of runs): 0.188 / 0.190 ms a frame.

Risks

  • What it leaves: a CPU write to a word beside one the GPU changed in the same 16-byte vector is still put back by the GPU's write of that vector, as before this change (the late pages' fix still keeps the CPU's copy of unstamped words in captures). This bug doesn't hit it: each arrow's record is in vectors of its own.
  • Performance: a vector that differs is written by its own invocation, not a whole subgroup span at once. On the RTX 5080 the write-back costs what main's does; low-bandwidth setups (iGPUs, the Deck) are in Still to test.
  • Left over: the shader no longer uses subgroup votes, but its GL_KHR_shader_subgroup_vote line and wbd_pipe_ready's vote gate (the diff off on GPUs without compute votes) stay; dropping them is a separate change. A few comments in vk_memory.cpp and tests/test_late_fix_build.py still give whole-span writes as a reason.
  • A revert is enough. A player notices nothing after updating but the arrows (no settings, saves or caches change).

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit.
  • Tested on my own PC, in the game for a change the game runs, as Testing says.
  • mise run test passes (any failure that also fails on main is named).
  • Measured against main, or Measurements says why there is nothing to measure.
  • No game files, build output or hand-edited generated files; third_party/ untouched; nothing GPL-incompatible.

When it applies

  • A fix: a game-free test that fails on main and passes here.
  • A check under tests/ that reads changed source is updated, not weakened.
  • The SPIR-V headers regenerated (a shader changed).
  • Screenshots of the same spot on main and here, for a change that shows on screen.
  • AI assistance recorded with Assisted-by: / Co-Authored-By: trailers.

Ready to merge

  • Everything in Still to test has run, its results in Tested.
  • Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers").
  • Approved in review, every comment answered.
  • CI passes on the head; on current main, measured again or a comment says why the numbers still hold.

🤖 Generated with Claude Code

## Summary When you Z-target an enemy, the four arrows around it often show only two or three (sometimes fewer), and the missing ones stay missing for the whole lock-on. On `main`: lock on to the Tektites on Death Mountain Trail a dozen times; about half the lock-ons lose one or two arrows. **Why:** the arrows are four particles of one effect, and the game writes each arrow's 256-byte record once, when the arrow is born (0, 4, 8 and 12 frames after the lock), often on a worker thread after the frame's submission was captured. The effect's own GPU pass (`15e70c016d50a89c`) changes words of records 0 and 2 every frame, so its range is written back to guest memory every frame. The write-back diff's vector path wrote a subgroup's whole span when any vector of it differed, unchanged vectors with the mirror's words. On a 32-lane GPU a span is 512 bytes, two records, so spans (0,1) and (2,3) were written whole, and a late birth of record 1 or 3 went back to the effect heap's `0x6f6f6f6f` fill. The game never writes the record again, and the arrows' vertex program never draws a record that isn't born. The full trace is on the issue. **The change:** in `gpu/vk/shaders/wb_diff.comp`'s vector path, each invocation takes one 16-byte vector and writes it, whole, only when it differs from the shadow. A vector the GPU didn't change is never written, so a CPU write to it made after the capture stays, as the design note above the diff in `vk_memory.cpp` says it should. Stamps (the late pages' fix), the shadow update and the observations are as they were. A first version of this PR also wrote only the changed words within a vector. It fixed the bug too, but took ~4x the write-back's GPU time (Measurements), so the vector is the unit. Read first: `gpu/vk/shaders/wb_diff.comp`, then the new pass in `tests/wb_diff_observations_gpu.cpp`. Fixes #2079. Likely also #1803 (the same arrows, "after aiming repeatedly", since Hookshot 2.1). ## Testing **Tested:** Windows 11, NVIDIA RTX 5080 (driver 621.40). Death Mountain Trail, child, the Tektites: - A logging build of this change (the same rule, `3588ae8b` with this vector-path shader; local only), at the 60 fps cap, a dump 25 frames into each lock-on: all four arrow records present in 19 of 19 lock-ons. On `main`, 53 of 81 dumped lock-ons over eight runs had lost one or two. - 80 lock-ons over two timed runs of the same build (Measurements), with screenshots mid-lock-on showing the arrows. - `tests/wb_diff_observations_gpu.cpp`'s new pass "CPU-newer words kept" (`python -I -B tests/test_wb_diff_observations_gpu.py --cxx clang++ --headers <Vulkan headers> --run`): fails on `main` (`FAIL:238`: vector 1, which the CPU wrote and the GPU didn't change, overwritten) and passes here, with the five earlier passes still passing. - `tests/test_late_fix_shaders.py` (the SPIR-V header matches the source, with the pinned glslang 16.6.0), `test_late_fix_build.py`, `test_msync_pass.py`, `test_wb_diff_stale_shadow.py`, `test_vulkan_fixtures_ci.py`: pass. `spirv-val --target-env vulkan1.3` on the header: passes. `mise run lint` passes. - `mise run test` (Windows, llvm-mingw) on the first version (same files touched): 811 passed, 52 failed; the same 49 fail on `main` @ `9b342b46` on this PC, and the other three (`test_audio_voice_biquad`, `test_audio_wave_buffer_release`, `test_frame_wait_bounds`) were timeouts under load and pass alone. - A second agent reviewed the first version cold: no correctness problem (stamps, shadow, observations, odd counts, the 2D grid, the msync pass); it flagged the cost this version removes. **Still to test:** - Linux, AMD RADV (64-lane compute subgroups, 1 KB spans): lock on to enemies repeatedly, expecting all four arrows every time (@Beanstalk lock on to enemies a dozen times on AMD and count the arrows) - Windows, AMD and Intel: the same, expecting all four arrows (@Beanstalk) - Steam Deck: the same, and Hyrule Field's frame time against `main`, expecting no change (by hand) ## Measurements **Verdict:** the write-back's GPU time is the same as `main`'s (0.154 against 0.162 ms a frame at the lock-ons), fps within the spread; the first version's word-by-word writes cost ~4x. Setup: Windows 11, RTX 5080, driver 621.40, every build on the same base (`main` @ `9b342b46`); `dev.py ab`'s pinned options (1280x720 at 67%, uncapped, frame generation and V-Sync off), `RX_VK_PASS_TIMING=1` on every side, each run a timing job of the queue, interleaved. "wb copies" is the write-back's GPU time a frame, the median of the pass-timing reports in the measured stretch. This change was measured as `502127270` (local: `3588ae8b` with this vector-path shader; the committed shader has the same rule, without an unused variable); rebased since onto `ae32c0dd3` with nothing in between touching the write-back. Baseline: `main` @ `9b342b46` is the baseline; this PR's first version (`3588ae8b`, word by word) is shown beside it because it was what this PR held before, and its cost is why the vector is the unit. Death Mountain Trail, Z-targeting the Tektites, 40 lock-ons a run (~80 s), Link at the Tektites in every run, 2 runs a side: | | Before: main @ 9b342b46 | After: this PR @ 502127270 | Before: this PR's first version (word by word) @ 3588ae8b | |---|---|---|---| | wb copies, GPU ms a frame (each run) | 0.155 / 0.169 (median 0.162) | 0.150 / 0.158 (0.154) | 0.620 / 0.616 (0.618) | | msync pass (the same shader in the mirror sync), GPU ms a frame | 0.078 / 0.080 (median 0.079) | 0.075 / 0.079 (0.077) | 0.078 / 0.078 (0.078) | | fps (each run) | 158.7 / 153.2 (155.9) | 149.9 / 155.6 (152.8) | 148.6 / 149.4 (149.0) | | 1% low fps | 93.4 | 97.5 | 93.2 | Hyrule Field, `dev.py ab`'s scene (teleport 1, no input, ~60 s measured after ~20 s), 3 pairs, this PR against the first version: | | Before: this PR's first version (word by word) @ 3588ae8b | After: this PR @ 502127270 | |---|---|---| | wb copies, GPU ms a frame (each run) | 0.980 / 0.998 / 1.000 (median 0.998) | 0.204 / 0.204 / 0.204 (0.204) | | fps (each run) | 155.0 / 151.4 / 151.4 (151.4) | 166.7 / 162.0 / 153.0 (162.0) | | 1% low fps | 108.0 | 120.7 | For scale, `main` there (`dev.py ab --set RX_VK_PASS_TIMING=1`, an earlier pair of runs): 0.188 / 0.190 ms a frame. ## Risks - **What it leaves:** a CPU write to a word beside one the GPU changed in the same 16-byte vector is still put back by the GPU's write of that vector, as before this change (the late pages' fix still keeps the CPU's copy of unstamped words in captures). This bug doesn't hit it: each arrow's record is in vectors of its own. - **Performance:** a vector that differs is written by its own invocation, not a whole subgroup span at once. On the RTX 5080 the write-back costs what `main`'s does; low-bandwidth setups (iGPUs, the Deck) are in Still to test. - **Left over:** the shader no longer uses subgroup votes, but its `GL_KHR_shader_subgroup_vote` line and `wbd_pipe_ready`'s vote gate (the diff off on GPUs without compute votes) stay; dropping them is a separate change. A few comments in `vk_memory.cpp` and `tests/test_late_fix_build.py` still give whole-span writes as a reason. - A revert is enough. A player notices nothing after updating but the arrows (no settings, saves or caches change). ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. - [x] Tested on my own PC, in the game for a change the game runs, as Testing says. - [x] `mise run test` passes (any failure that also fails on `main` is named). - [x] Measured against `main`, or Measurements says why there is nothing to measure. - [x] No game files, build output or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. ### When it applies - [x] A fix: a game-free test that fails on `main` and passes here. - [x] A check under `tests/` that reads changed source is updated, not weakened. - [x] The SPIR-V headers regenerated (a shader changed). - [x] Screenshots of the same spot on `main` and here, for a change that shows on screen. - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. ### Ready to merge - [ ] Everything in Still to test has run, its results in Tested. - [ ] Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers"). - [ ] Approved in review, every comment answered. - [ ] CI passes on the head; on current `main`, measured again or a comment says why the numbers still hold. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
A case in the authored GPU fixture: one chunk of 16-byte vectors in which the GPU changed vector 0 and word 0 of
vector 2, while the CPU wrote vector 1 and word 1 of vector 2 in guest memory after the mirror and the shadow had the
page. The write-back must put the GPU's words in guest memory and leave the CPU's newer ones.

It fails on main: the vector path writes a subgroup's span whole when any vector of it differs, so vector 1 gets the
mirror's older words (issue 2079: the lock-on arrows' particle records reverted to the effect heap's 0x6f fill).
tests/run_vulkan_fixtures.py and test_wb_diff_observations_gpu.py --run execute it; the suite compiles it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
fix(vk): the write-back diff writes only the words the GPU changed, so the lock-on arrows no longer go missing
Some checks failed
CI / What the change needs (pull_request) Successful in 11s
CI / Third-party parts and guide screenshots (pull_request) Failing after 15s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 18s
PR description / Title and description (pull_request_target) Successful in 6s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
4954dab012
The diff's vector path wrote a subgroup's whole span (512 bytes on a 32-lane GPU) to guest memory when any vector of it
differed, the unchanged vectors with the mirror's words. Those can be older than guest memory's: the game's worker
threads go on writing after a submission captured the page. The lock-on arrows are four particles of one effect whose
records the game writes once, at each arrow's birth (0, 4, 8 and 12 frames in), and whose GPU pass changes words of
records 0 and 2 every frame: spans (0,1) and (2,3) were written whole, and a birth of record 1 or 3 the mirror did not
have yet went back to the effect heap's 0x6f6f6f6f fill. That record's arrow was never drawn again in that lock-on.

Now each invocation takes one vector and writes it only when it differs from the shadow: whole when all four words
differ, else only the words that differ. The bytes written back are never more than before (a span the GPU changed
whole is written as before). The stamps, the shadow's update and the observations are as they were.

Fixes #2079. Likely #1803 too (the same arrows, after aiming repeatedly, since Hookshot 2.1).

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

Tested in game: Windows 11, NVIDIA RTX 5080 (driver 621.40), Death Mountain Trail (child), Z-targeting the Tektites at the 60 fps cap: 12 of 12 lock-ons with this PR's build showed their top arrow 15 frames in, where main's build lost it in about half; with a local logging build of this PR all four arrow records were present in 12 of 12 dumped lock-ons (main: 53 of 81 had lost one or two). Hyrule Field's fps unchanged within the spread (dev.py ab, 3 pairs).

Tested in game: Windows 11, NVIDIA RTX 5080 (driver 621.40), Death Mountain Trail (child), Z-targeting the Tektites at the 60 fps cap: 12 of 12 lock-ons with this PR's build showed their top arrow 15 frames in, where main's build lost it in about half; with a local logging build of this PR all four arrow records were present in 12 of 12 dumped lock-ons (main: 53 of 81 had lost one or two). Hyrule Field's fps unchanged within the spread (dev.py ab, 3 pairs).
Author
Member

The same spot on main and with this PR (Death Mountain Trail, a Tektite, 15 frames into a lock-on): main's build has lost the top arrow; this PR's draws all four.

issue2079_before_after.png

The same spot on main and with this PR (Death Mountain Trail, a Tektite, 15 frames into a lock-on): main's build has lost the top arrow; this PR's draws all four. ![issue2079_before_after.png](https://git.magicbean.dev/attachments/8664f4af-e482-4709-86cc-32ce384ca0e9)
llun changed title from WIP: fix(vk): the write-back diff writes only the words the GPU changed, so the lock-on arrows no longer go missing to fix(vk): the write-back diff writes only the words the GPU changed, so the lock-on arrows no longer go missing 2026-11-30 03:54:13 +00:00
Member

Possibly related, for context:

  • PR #248 perf(vk): fix the late pages on the GPU, word by word, instead of waiting for their write-back — Merged implementation of the write-back diff and late-pages path this fix adjusts
Possibly related, for context: - PR #248 perf(vk): fix the late pages on the GPU, word by word, instead of waiting for their write-back — Merged implementation of the write-back diff and late-pages path this fix adjusts
Author
Member

The write-back's GPU time, Hyrule Field. It costs more than the fps shows.

Setup: as the Measurements above (Windows 11, RTX 5080, driver 621.40; Hyrule Field, child, 1280x720 at 67%, uncapped), plus RX_VK_PASS_TIMING=1 on both sides; dev.py ab --set RX_VK_PASS_TIMING=1 --runs 2 --seconds 40. The number is the wb copies span (the write-back's copies and the diff pass), ms of GPU time a frame, the median of each run's later-half reports (every 600 presents).

Before: main @ 9b342b46 After: this PR @ 3588ae8b
wb copies, GPU ms a frame (each run) 0.188 / 0.190 0.594 / 0.565
MB written back a frame 18.0 18.0
fps (each run) 165.2 / 162.1 158.6 / 166.0

The same 18 MB a frame takes about three times the GPU time: about 0.4 ms more a frame. This card isn't held up by it at ~165 fps, so the fps doesn't move. A GPU-bound frame, a low-bandwidth link (PCIe 3.0, an iGPU, the Deck) or AMD would pay more. The cause is the smaller writes: whole vectors written lane by lane, and partly changed vectors written word by word (up to four 4-byte stores at a 16-byte stride).

Next, already running: Death Mountain Trail with repeated lock-ons, interleaved, main against this PR against a cheaper variant that writes a changed vector whole and never word by word. The variant still fixes this bug, since each arrow's record is in vectors of its own. If it costs about what main does, I'll switch this PR to it.

**The write-back's GPU time, Hyrule Field.** It costs more than the fps shows. Setup: as the Measurements above (Windows 11, RTX 5080, driver 621.40; Hyrule Field, child, 1280x720 at 67%, uncapped), plus `RX_VK_PASS_TIMING=1` on both sides; `dev.py ab --set RX_VK_PASS_TIMING=1 --runs 2 --seconds 40`. The number is the `wb copies` span (the write-back's copies and the diff pass), ms of GPU time a frame, the median of each run's later-half reports (every 600 presents). | | Before: main @ 9b342b46 | After: this PR @ 3588ae8b | |---|---|---| | wb copies, GPU ms a frame (each run) | 0.188 / 0.190 | 0.594 / 0.565 | | MB written back a frame | 18.0 | 18.0 | | fps (each run) | 165.2 / 162.1 | 158.6 / 166.0 | The same 18 MB a frame takes about three times the GPU time: about 0.4 ms more a frame. This card isn't held up by it at ~165 fps, so the fps doesn't move. A GPU-bound frame, a low-bandwidth link (PCIe 3.0, an iGPU, the Deck) or AMD would pay more. The cause is the smaller writes: whole vectors written lane by lane, and partly changed vectors written word by word (up to four 4-byte stores at a 16-byte stride). Next, already running: Death Mountain Trail with repeated lock-ons, interleaved, main against this PR against a cheaper variant that writes a changed vector whole and never word by word. The variant still fixes this bug, since each arrow's record is in vectors of its own. If it costs about what main does, I'll switch this PR to it.
Author
Member

A cheaper variant: same fix, no write-back cost. It's measured but not pushed: this PR still has the word-by-word version.

The variant writes a vector that differs from the shadow whole, and never word by word. A vector the GPU didn't change is still never written, so the arrows' records (each in vectors of their own) are still safe. What it gives up: if the GPU and the CPU change different words of the same 16-byte vector, the GPU's write of that vector still overwrites the CPU's word. This bug doesn't hit that case.

Setup for both tables: Windows 11, RTX 5080, driver 621.40, all three builds on the same base (main @ 9b342b46): main, this PR @ 3588ae8b, and the variant (3588ae8b plus the variant shader, local). dev.py ab's pinned options (1280x720 at 67%, uncapped, frame generation and V-Sync off), RX_VK_PASS_TIMING=1 on every side, each run a timing job of the queue, interleaved. "wb copies" is the write-back's GPU time a frame, the median of the reports in the measured stretch.

Death Mountain Trail, Z-targeting the Tektites (40 lock-ons a run, ~80 s; Link at the Tektites in every run; 2 runs a side, main, PR, variant interleaved):

main @ 9b342b46 this PR @ 3588ae8b variant
wb copies, GPU ms a frame (each run) 0.155 / 0.169 (median 0.162) 0.620 / 0.616 (0.618) 0.150 / 0.158 (0.154)
fps (each run) 158.7 / 153.2 (155.9) 148.6 / 149.4 (149.0) 149.9 / 155.6 (152.8)
1% low fps 93.4 93.2 97.5

Hyrule Field, dev.py ab's scene (teleport 1, no input, ~60 s measured after ~20 s; 3 pairs, PR and variant interleaved; dev.py ab compares a checkout only against main, so this was scripted the same way):

this PR @ 3588ae8b variant
wb copies, GPU ms a frame (each run) 0.980 / 0.998 / 1.000 (median 0.998) 0.204 / 0.204 / 0.204 (0.204)
fps (each run) 155.0 / 151.4 / 151.4 (median 151.4) 166.7 / 162.0 / 153.0 (162.0)
1% low fps 108.0 120.7

Does the variant fix the bug? A logging build of it (local only), Death Mountain Trail at the 60 fps cap, a dump 25 frames into each lock-on: all four arrow records present in 19 of 19 lock-ons. On main, 53 of 81 had lost one or two.

So the word-by-word step costs ~0.45-0.8 ms of GPU a frame and ~4-7% fps on this card. Writing a changed vector whole costs about what main does. Unless review prefers the exact per-word version, I plan to switch this PR to the variant (the shader, and the test's vector-2 case to its whole-vector rule).

**A cheaper variant: same fix, no write-back cost.** It's measured but not pushed: this PR still has the word-by-word version. The variant writes a vector that differs from the shadow whole, and never word by word. A vector the GPU didn't change is still never written, so the arrows' records (each in vectors of their own) are still safe. What it gives up: if the GPU and the CPU change different words of the same 16-byte vector, the GPU's write of that vector still overwrites the CPU's word. This bug doesn't hit that case. Setup for both tables: Windows 11, RTX 5080, driver 621.40, all three builds on the same base (`main` @ `9b342b46`): main, this PR @ `3588ae8b`, and the variant (`3588ae8b` plus the variant shader, local). `dev.py ab`'s pinned options (1280x720 at 67%, uncapped, frame generation and V-Sync off), `RX_VK_PASS_TIMING=1` on every side, each run a timing job of the queue, interleaved. "wb copies" is the write-back's GPU time a frame, the median of the reports in the measured stretch. **Death Mountain Trail, Z-targeting the Tektites** (40 lock-ons a run, ~80 s; Link at the Tektites in every run; 2 runs a side, main, PR, variant interleaved): | | main @ 9b342b46 | this PR @ 3588ae8b | variant | |---|---|---|---| | wb copies, GPU ms a frame (each run) | 0.155 / 0.169 (median 0.162) | 0.620 / 0.616 (0.618) | 0.150 / 0.158 (0.154) | | fps (each run) | 158.7 / 153.2 (155.9) | 148.6 / 149.4 (149.0) | 149.9 / 155.6 (152.8) | | 1% low fps | 93.4 | 93.2 | 97.5 | **Hyrule Field, `dev.py ab`'s scene** (teleport 1, no input, ~60 s measured after ~20 s; 3 pairs, PR and variant interleaved; `dev.py ab` compares a checkout only against main, so this was scripted the same way): | | this PR @ 3588ae8b | variant | |---|---|---| | wb copies, GPU ms a frame (each run) | 0.980 / 0.998 / 1.000 (median 0.998) | 0.204 / 0.204 / 0.204 (0.204) | | fps (each run) | 155.0 / 151.4 / 151.4 (median 151.4) | 166.7 / 162.0 / 153.0 (162.0) | | 1% low fps | 108.0 | 120.7 | **Does the variant fix the bug?** A logging build of it (local only), Death Mountain Trail at the 60 fps cap, a dump 25 frames into each lock-on: all four arrow records present in 19 of 19 lock-ons. On main, 53 of 81 had lost one or two. So the word-by-word step costs ~0.45-0.8 ms of GPU a frame and ~4-7% fps on this card. Writing a changed vector whole costs about what main does. Unless review prefers the exact per-word version, I plan to switch this PR to the variant (the shader, and the test's vector-2 case to its whole-vector rule).
llun force-pushed claude/issue-2079-45b3f6 from 4954dab012
Some checks failed
CI / What the change needs (pull_request) Successful in 11s
CI / Third-party parts and guide screenshots (pull_request) Failing after 15s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 18s
PR description / Title and description (pull_request_target) Successful in 6s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
to eb7d967e7f
Some checks failed
CI / What the change needs (pull_request) Successful in 9s
CI / Third-party parts and guide screenshots (pull_request) Failing after 12s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 13s
PR description / Title and description (pull_request_target) Successful in 8s
beanstalk/approval approved by llun (reviewed)
beanstalk/windows+amd 0/1 pass, 0 running, 0 queued
beanstalk/linux+radv 0/1 pass, 0 running, 0 queued
beanstalk/intel+gpu-arc-* 0/1 pass, 0 running, 0 queued
beanstalk/linux+nvidia 0/1 pass, 0 running, 0 queued
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Failing after 3m38s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Successful in 2m20s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 4m54s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 4m58s
CI / Website build and checks (pull_request) Failing after 35s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 20m58s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 36m41s
2026-11-30 04:39:24 +00:00
Compare
llun changed title from fix(vk): the write-back diff writes only the words the GPU changed, so the lock-on arrows no longer go missing to fix(vk): the write-back diff writes only the vectors the GPU changed, so the lock-on arrows no longer go missing 2026-11-30 04:40:00 +00:00
Author
Member

Switched to the cheaper version: the PR now writes a changed 16-byte vector whole, and never word by word (eb7d967e7, rebased onto main ae32c0dd3). The description's Summary, Testing, Measurements and Risks are updated. The test's new pass now checks the vector rule: vector 1, which the CPU wrote and the GPU didn't change, keeps the CPU's words; vectors 0 and 2, which the GPU changed, are written whole. It still fails on main (FAIL:238, vector 1) and passes here.

Tested in game with this head: Windows 11, RTX 5080 (driver 621.40), Death Mountain Trail (child), the Tektites at the 60 fps cap, 12 lock-ons with a screenshot 15 frames into each: every one shows its arrows, the top one every time (main loses it in about half). With the same rule's logging build: all four arrow records in 19 of 19 dumped lock-ons.

Switched to the cheaper version: the PR now writes a changed 16-byte vector whole, and never word by word (eb7d967e7, rebased onto main ae32c0dd3). The description's Summary, Testing, Measurements and Risks are updated. The test's new pass now checks the vector rule: vector 1, which the CPU wrote and the GPU didn't change, keeps the CPU's words; vectors 0 and 2, which the GPU changed, are written whole. It still fails on main (FAIL:238, vector 1) and passes here. Tested in game with this head: Windows 11, RTX 5080 (driver 621.40), Death Mountain Trail (child), the Tektites at the 60 fps cap, 12 lock-ons with a screenshot 15 frames into each: every one shows its arrows, the top one every time (main loses it in about half). With the same rule's logging build: all four arrow records in 19 of 19 dumped lock-ons.
Author
Member
@review
BeanBot left a comment

Recommendation: Request changes. The reported arrow fix works in the supplied NVIDIA game runs and the fixture checks the adjacent-vector case. The shader also runs in mirror syncs, and its behavior and cost on the affected AMD and Linux systems remain unmeasured. (It stands on L2: The check CI / Third-party parts and guide screenshots (pull_request) fails on this head and passes on the base branch: Failing after 12s.)

The write-back now leaves unchanged 16-byte vectors alone, preserving later CPU writes beside GPU changes. It keeps the existing whole-vector tradeoff: a CPU word beside a GPU-changed word in the same vector can still be overwritten.

Blocking (1): must change before merging.

  1. L2: The check CI / Third-party parts and guide screenshots (pull_request) fails on this head and passes on the base branch: Failing after 12s.

Testing before merging (1) (runs on the systems it can change; it doesn't hold the recommendation)

  • L1 gpu/vk/shaders/wb_diff.comp:53: The new per-vector stores affect both write-back and mirror sync on GPUs beyond the tested NVIDIA card. (more on the line) Do: Run repeated lock-ons and compare write-back and mirror-sync GPU times and frame times against main on representative affected Tier 1 AMD and Linux systems.

@fix can do L2.

Checks: Still running: 7 checks.

More: does it help, other systems, switches, what was read

Does it help: Yes for the reported case on Windows RTX 5080: all four records were present in 19 of 19 lock-ons with the same shader rule, against 53 of 81 lock-ons losing records on main. On that GPU, reported write-back time was 0.150/0.158 ms per frame versus 0.155/0.169 ms on main; other affected hardware and the mirror-sync pass need measurement.

Other systems: The shader is also used for mirror syncs, where shadow and destination alias; the changed comparison still copies differing vectors correctly, but its performance is not separately reported. Stamped write-backs and observations retain their prior logic. AMD, Intel, Linux and Steam Deck game behavior and performance have not been reported.

Switches: None added, changed or removed. The existing compute subgroup-vote gate remains in place.

Reviewed: eb7d967e7f against ae32c0dd3c: Read AGENTS.md, CONTRIBUTING.md, the PR template, relevant standards, the full shader, fixture and fixture runner, their diffs, commits, test wrapper and the write-back and mirror-sync callers. Skimmed the generated SPIR-V diff. docs/review-checklist.md and the sibling Tooling checkout were absent; the rest of vk_memory.cpp and other generated files were not read in full.; nothing run (a code review).

Checked and fine:

  • The fixture checks preservation of the CPU-newer vector and writes of both partially and fully changed GPU vectors; the author reports it fails on main and passes here.
  • The vector loop respects the chunk count, and the observation barrier remains outside the divergent loop.
  • Both commits include AI-assistance trailers; no switch or renderer API version changes are present.

Testing: Read-only review; no commands from the project, builds or tests were run. The supplied CI has one head-only failing check and several checks still running; the bot handles the failing check separately.

Overlaps and merge order: Not checked; network access is closed.


Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.

**Recommendation: Request changes.** The reported arrow fix works in the supplied NVIDIA game runs and the fixture checks the adjacent-vector case. The shader also runs in mirror syncs, and its behavior and cost on the affected AMD and Linux systems remain unmeasured. (It stands on L2: The check `CI / Third-party parts and guide screenshots (pull_request)` fails on this head and passes on the base branch: Failing after 12s.) The write-back now leaves unchanged 16-byte vectors alone, preserving later CPU writes beside GPU changes. It keeps the existing whole-vector tradeoff: a CPU word beside a GPU-changed word in the same vector can still be overwritten. **Blocking (1)**: must change before merging. 1. **L2**: The check `CI / Third-party parts and guide screenshots (pull_request)` fails on this head and passes on the base branch: Failing after 12s. **Testing before merging (1)** (runs on the systems it can change; it doesn't hold the recommendation) - **L1** `gpu/vk/shaders/wb_diff.comp:53`: The new per-vector stores affect both write-back and mirror sync on GPUs beyond the tested NVIDIA card. (more on the line) **Do:** Run repeated lock-ons and compare write-back and mirror-sync GPU times and frame times against main on representative affected Tier 1 AMD and Linux systems. `@fix` can do L2. **Checks:** Still running: 7 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes for the reported case on Windows RTX 5080: all four records were present in 19 of 19 lock-ons with the same shader rule, against 53 of 81 lock-ons losing records on main. On that GPU, reported write-back time was 0.150/0.158 ms per frame versus 0.155/0.169 ms on main; other affected hardware and the mirror-sync pass need measurement. **Other systems:** The shader is also used for mirror syncs, where shadow and destination alias; the changed comparison still copies differing vectors correctly, but its performance is not separately reported. Stamped write-backs and observations retain their prior logic. AMD, Intel, Linux and Steam Deck game behavior and performance have not been reported. **Switches:** None added, changed or removed. The existing compute subgroup-vote gate remains in place. **Reviewed:** eb7d967e7ff7 against ae32c0dd3cd7: Read AGENTS.md, CONTRIBUTING.md, the PR template, relevant standards, the full shader, fixture and fixture runner, their diffs, commits, test wrapper and the write-back and mirror-sync callers. Skimmed the generated SPIR-V diff. docs/review-checklist.md and the sibling Tooling checkout were absent; the rest of vk_memory.cpp and other generated files were not read in full.; nothing run (a code review). **Checked and fine:** - The fixture checks preservation of the CPU-newer vector and writes of both partially and fully changed GPU vectors; the author reports it fails on main and passes here. - The vector loop respects the chunk count, and the observation barrier remains outside the divergent loop. - Both commits include AI-assistance trailers; no switch or renderer API version changes are present. **Testing:** Read-only review; no commands from the project, builds or tests were run. The supplied CI has one head-only failing check and several checks still running; the bot handles the failing check separately. **Overlaps and merge order:** Not checked; network access is closed. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.</sub>
@ -65,2 +52,2 @@
if (v[k] != sv[k]) st.w[i * 4u + k] = pc.stamp;
}
for (uint i = gl_LocalInvocationID.x; i < c.count; i += 256u) {
const uvec4 v = m.v[i], sv = s.v[i];
Member

L1 (should fix): The new per-vector stores affect both write-back and mirror sync on GPUs beyond the tested NVIDIA card.

When: On AMD RADV or Windows AMD, and on Linux NVIDIA, the two passes can have different store and memory behavior from the tested Windows NVIDIA driver; the supplied runs do not show their game behavior or cost.

Do: Run repeated lock-ons and compare write-back and mirror-sync GPU times and frame times against main on representative affected Tier 1 AMD and Linux systems.

**L1** (should fix): The new per-vector stores affect both write-back and mirror sync on GPUs beyond the tested NVIDIA card. *When:* On AMD RADV or Windows AMD, and on Linux NVIDIA, the two passes can have different store and memory behavior from the tested Windows NVIDIA driver; the supplied runs do not show their game behavior or cost. **Do:** Run repeated lock-ons and compare write-back and mirror-sync GPU times and frame times against main on representative affected Tier 1 AMD and Linux systems.
Author
Member

Answers to the review (#2863 (comment)):

L2, CI / Third-party parts and guide screenshots: main fails it too. The job's check_third_party.py steps pass. Its check_guide_screenshots.py --review-sources step fails, on three files this PR doesn't touch:

REVIEW REQUIRED: settings-graphics.png: gpu/vk/device_policy.h changed since reviewed revision sha256:0b99ef10…
REVIEW REQUIRED: settings-graphics.png: gpu/vk/vk_internal.h changed since reviewed revision sha256:0b99ef10…
REVIEW REQUIRED: settings-graphics.png: gpu/vk/vk_texture.h changed since reviewed revision sha256:0b99ef10…
Guide screenshot check failed: 3 issue(s).

Running the same command on a clean checkout of main @ ae32c0dd3 (this PR's base) gives the same three lines. This PR changes only gpu/vk/shaders/wb_diff.comp, its SPIR-V header, tests/wb_diff_observations_gpu.cpp and tests/run_vulkan_fixtures.py. The settings screenshot's review hash needs a look at the UI and a new hash on main, in a change of its own (the checker says to review before updating hashes), so I've left it out of this one.

L1, the mirror sync. The same shader runs in the mirror-sync pass. Its GPU time was in the pass-timing logs of the runs above (msync pass, the median of the reports in each measured stretch), and it doesn't change:

GPU ms a frame Before: main @ 9b342b46 After: this PR @ 502127270 Before: this PR's first version @ 3588ae8b
Death Mountain Trail: msync pass (each run) 0.078 / 0.080 (median 0.079) 0.075 / 0.079 (0.077) 0.078 / 0.078 (0.078)
Death Mountain Trail: wb copies 0.162 0.154 0.618
Hyrule Field: msync pass (3 runs each) 0.079 / 0.081 / 0.080 (0.080) 0.073 / 0.079 / 0.081 (0.079)

In a mirror sync the shadow is the destination, so a vector that differs is written whole, as before. A vector that doesn't differ was already equal in both, so skipping its write changes nothing there.

AMD (Windows and RADV), Intel and Linux NVIDIA need other hardware: asking the Test Farm below.

Answers to the review (https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/2863#issuecomment-92837): **L2, `CI / Third-party parts and guide screenshots`: main fails it too.** The job's `check_third_party.py` steps pass. Its `check_guide_screenshots.py --review-sources` step fails, on three files this PR doesn't touch: ``` REVIEW REQUIRED: settings-graphics.png: gpu/vk/device_policy.h changed since reviewed revision sha256:0b99ef10… REVIEW REQUIRED: settings-graphics.png: gpu/vk/vk_internal.h changed since reviewed revision sha256:0b99ef10… REVIEW REQUIRED: settings-graphics.png: gpu/vk/vk_texture.h changed since reviewed revision sha256:0b99ef10… Guide screenshot check failed: 3 issue(s). ``` Running the same command on a clean checkout of `main` @ `ae32c0dd3` (this PR's base) gives the same three lines. This PR changes only `gpu/vk/shaders/wb_diff.comp`, its SPIR-V header, `tests/wb_diff_observations_gpu.cpp` and `tests/run_vulkan_fixtures.py`. The settings screenshot's review hash needs a look at the UI and a new hash on `main`, in a change of its own (the checker says to review before updating hashes), so I've left it out of this one. **L1, the mirror sync.** The same shader runs in the mirror-sync pass. Its GPU time was in the pass-timing logs of the runs above (`msync pass`, the median of the reports in each measured stretch), and it doesn't change: | GPU ms a frame | Before: main @ 9b342b46 | After: this PR @ 502127270 | Before: this PR's first version @ 3588ae8b | |---|---|---|---| | Death Mountain Trail: msync pass (each run) | 0.078 / 0.080 (median 0.079) | 0.075 / 0.079 (0.077) | 0.078 / 0.078 (0.078) | | Death Mountain Trail: wb copies | 0.162 | 0.154 | 0.618 | | Hyrule Field: msync pass (3 runs each) | | 0.079 / 0.081 / 0.080 (0.080) | 0.073 / 0.079 / 0.081 (0.079) | In a mirror sync the shadow is the destination, so a vector that differs is written whole, as before. A vector that doesn't differ was already equal in both, so skipping its write changes nothing there. AMD (Windows and RADV), Intel and Linux NVIDIA need other hardware: asking the Test Farm below.
Author
Member

@Beanstalk On AMD (a Windows driver and Linux RADV), and if possible Intel Arc and Linux NVIDIA: start from the castle-gate save, teleport to Death Mountain Trail, walk up to the Tektites, and Z-target them about a dozen times. Count the arrows around the target in each lock-on: there should be four every time (main often shows two or three). Then, with RX_VK_PASS_TIMING=1 on both main and this PR, compare the 'wb copies' and 'msync pass' GPU times in the log and the frame times, during repeated lock-ons and in Hyrule Field. Expect the arrows fixed and the times about the same as main's.

@Beanstalk On AMD (a Windows driver and Linux RADV), and if possible Intel Arc and Linux NVIDIA: start from the castle-gate save, teleport to Death Mountain Trail, walk up to the Tektites, and Z-target them about a dozen times. Count the arrows around the target in each lock-on: there should be four every time (main often shows two or three). Then, with RX_VK_PASS_TIMING=1 on both main and this PR, compare the 'wb copies' and 'msync pass' GPU times in the log and the frame times, during repeated lock-ons and in Hyrule Field. Expect the arrows fixed and the times about the same as main's.
Member

Beanstalk test farm · 🔄 testing (0 of 4 reports so far)

Commit eb7d967 · approved by llun (reviewed) · dashboard

⚠️ Note: The farm cannot count arrows or verify that the scripted movement reaches and locks onto a Tektite; the post-input picture is not automatically compared, so the main correctness claim remains unjudged.
⚠️ Note: The pass-timing probe replaces the prohibited timing switch, but the plan judges total GPU time rather than separate wb copies and msync pass times; the trail measurement follows, rather than overlaps, the targeting inputs.
⚠️ Note: The added GPU fixture and the frame-generation reproduction are not run by this gameplay plan.

Done (started 04:57 UTC). Comment @Beanstalk to run it again.

Target Result Reports Frame time p99 (ms), main → PR VRAM peak (MB) Crashes
windows+amd ⏳ queued 0 of 1 — — —
linux+radv ⏳ queued 0 of 1 — — —
intel+gpu-arc-* (GPU "arc *") ⏳ queued 0 of 1 — — —
linux+nvidia ⏳ queued 0 of 1 — — —
What was tested

What will be tested · AI plan (gpt-6.1-terra)

The alternative plan starts at the castle gate, attempts repeated targeting on Death Mountain Trail, and measures GPU and frame times there and in Hyrule Field for 30 seconds per place, over three starts per side. It fails on a crash, a picture regression at the stationary teleport locations, or a frame-time or total-GPU-time regression above 20% against main. The Intel Arc target waits for a matching tester. No tester online now matches intel+gpu-arc-*: that target waits for one.

  • Where: windows+amd (1-2 reports), linux+radv (1-2 reports), intel+gpu-arc-* (GPU "arc *", 1-2 reports), linux+nvidia (1-2 reports).
  • trail-and-field: from the repository's save castle-gate (settings vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0; switches HOS_OUTPUT_RES=gpu, RX_VK_AUTO_TUNE=0), then teleport to Death Mountain Trail, take the picture trail-arrival to compare with main, move the stick, 12 times: press buttons, take the picture trail-after-targeting, measure trail for 30 s (after 10 s warm-up), teleport to Hyrule Field, take the picture field-arrival to compare with main, measure field for 30 s (after 10 s warm-up); 3 runs on each side.
  • Measured: crashes, frame times, stutters and hitches, GPU time per pass.
  • The PR fails if: it crashes; or a picture differs from main by more than 25%; or GPU time a frame is more than 20% above main; or frame time (p99) is more than 20% above main; or frame time (worst 1%) is more than 20% above main.
  • Time: about 40 min of game runs per tester (6 game starts), plus the two builds.
<!-- beanstalk:sticky --> ### Beanstalk test farm · 🔄 testing (0 of 4 reports so far) Commit `eb7d967` · approved by llun (reviewed) · [dashboard](https://beanstalk.magicbean.dev/prs/2863) ⚠️ **Note:** The farm cannot count arrows or verify that the scripted movement reaches and locks onto a Tektite; the post-input picture is not automatically compared, so the main correctness claim remains unjudged. ⚠️ **Note:** The pass-timing probe replaces the prohibited timing switch, but the plan judges total GPU time rather than separate wb copies and msync pass times; the trail measurement follows, rather than overlaps, the targeting inputs. ⚠️ **Note:** The added GPU fixture and the frame-generation reproduction are not run by this gameplay plan. Done (started 04:57 UTC). Comment `@Beanstalk` to run it again. | Target | Result | Reports | Frame time p99 (ms), main → PR | VRAM peak (MB) | Crashes | | --- | --- | --- | --- | --- | --- | | `windows+amd` | ⏳ queued | 0 of 1 | — | — | — | | `linux+radv` | ⏳ queued | 0 of 1 | — | — | — | | `intel+gpu-arc-*` (GPU "arc *") | ⏳ queued | 0 of 1 | — | — | — | | `linux+nvidia` | ⏳ queued | 0 of 1 | — | — | — | <details><summary>What was tested</summary> **What will be tested** · AI plan (`gpt-6.1-terra`) The alternative plan starts at the castle gate, attempts repeated targeting on Death Mountain Trail, and measures GPU and frame times there and in Hyrule Field for 30 seconds per place, over three starts per side. It fails on a crash, a picture regression at the stationary teleport locations, or a frame-time or total-GPU-time regression above 20% against main. The Intel Arc target waits for a matching tester. No tester online now matches intel+gpu-arc-*: that target waits for one. - **Where:** windows+amd (1-2 reports), linux+radv (1-2 reports), intel+gpu-arc-* (GPU "arc *", 1-2 reports), linux+nvidia (1-2 reports). - **trail-and-field:** from the repository's save `castle-gate` (settings vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0; switches `HOS_OUTPUT_RES=gpu`, `RX_VK_AUTO_TUNE=0`), then teleport to Death Mountain Trail, take the picture trail-arrival to compare with main, move the stick, 12 times: press buttons, take the picture trail-after-targeting, measure trail for 30 s (after 10 s warm-up), teleport to Hyrule Field, take the picture field-arrival to compare with main, measure field for 30 s (after 10 s warm-up); 3 runs on each side. - **Measured:** crashes, frame times, stutters and hitches, GPU time per pass. - **The PR fails if:** it crashes; or a picture differs from main by more than 25%; or GPU time a frame is more than 20% above main; or frame time (p99) is more than 20% above main; or frame time (worst 1%) is more than 20% above main. - **Time:** about 40 min of game runs per tester (6 game starts), plus the two builds. </details>
HumanBean deleted branch claude/issue-2079-45b3f6 2026-11-30 05:08:30 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/Longshot!2863
No description provided.