perf(vk): O(1) page-word bitset hash + Bloom filter for cpu_words and write-back fast paths (RX_VK_WB_CPU_WORDS_FAST) #2997

Merged
HumanBean merged 1 commit from siantm/Longshot:perf/vk-wb-cpu-words-fast into main 2026-12-02 16:49:48 +00:00
Contributor

Summary

On steady-state Castle Town market (main @ 56823e27a), memory_end_submission accounted for 4.62% of the mkw_vk_replay thread, led by cpu_words_merge() sorting, deduplicating, binary-searching, and merging up to 65,536 guest 8-byte addresses on every submission/part (2.41% of mkw_vk_replay), alongside per-pool vkGetBufferDeviceAddress calls, sparse_mirror::clip vector builds when all blocks are present, full scans of late_pages in late_fix_reap(), and imported.upper_bound() tree lookups in shadows_forget_written().

This adds RX_VK_WB_CPU_WORDS_FAST (default 1, supporting 0, 1, and check/2 with live HOS_AB mode handoff):

  • gpu/vk/wb_cpu_words_fast.h (CpuWordsPageSet): Replaces sorted-vector merge + binary search with a 2-level 4 KB page-keyed open-addressed bitset hash table (PageSlot with 512-bit word mask per page), a 1024-bit page Bloom filter, O(1) [min_page, max_page] range reject, exact total_words > 65536 reset parity, and lazy copy-on-first-hit cut_runs() (zero allocation when no owned words intersect write-back runs).
  • gpu/vk/vk_memory.cpp:
    • Integrates CpuWordsPageSet in memory_cpu_owned() and cut_cpu_words() with seamless 0 <-> 1 <-> 2 state synchronization under cpu_words_mu.
    • Adds zero-allocation sparse_all_present() pre-check before sparse_mirror::clip.
    • Caches Pool::cached_mirror_address per VkBuffer handle (cleared in mirror_free), reuses thread-local runs vector in memory_end_submission(), guards late_fix_reap() with late_pages_min_fix, and adds a 2-slot MRU Pool* cache in shadows_forget_written().
  • gpu/vk/switches.def, gpu/vk/vk_main.cpp, gpu/vk/vk_internal.h: Registers RX_VK_WB_CPU_WORDS_FAST (wb_cpu_words_fast_mode() via host->ab_value and cpu_words_fast_close()).

Measured in-game across 5 interleaved 90 s HOS_AB runs in market, this improves mean frame rate by +1.68% (81.74 vs 80.38 FPS, -0.209 ms mean frame time, 95% CI +0.93% to +2.58%), lifts 1% Low by +2.08 FPS (64.31 vs 62.23) and 0.1% Low by +3.47 FPS (51.23 vs 47.76), and cuts wait_gpu_ms by -12.35% (-0.2084 ms).

Testing

Tested:

  • Windows 11, x86-64 (skylake), NVIDIA GeForce RTX 4060 (Vulkan 1.4, driver 0x9b4a0000), dev.py pack && dev.py rt (0 shader parts rebuilt, lift: unchanged).
  • Live in-game parity verification (RX_VK_WB_CPU_WORDS_FAST=check, 30 s in market, 2,337 frames, 77.9 FPS): 121,676 checks, 121,676 rejects, 0 cuts, 121,676 sparse_skips, 78,057 addr_hits, 0 mismatches, RUN_ERROR=None.
  • Queued 5×90 s in-run HOS_AB (RX_VK_WB_CPU_WORDS_FAST flipped every 3.0 s) in market: 5/5 runs won (+1.69%, +1.81%, +1.64%, +0.81%, +2.59%).
  • Repository and standalone checks (all exit 0 after final edit):
    • python -I tests/test_vk_wb_cpu_words_fast.py (includes 10 MUST_FAIL broken variants)
    • python -I tests/test_hos_ab.py --cc clang
    • python -I tests/test_tls_objects.py
    • python -I tests/test_vk_braces.py
    • python -I tests/test_wb_learn.py --cxx clang++
    • python -I tests/test_wb_spans.py --cxx clang++
    • python -I tests/test_sparse_mirror.py --cxx clang++
    • python -I tests/test_wb_diff_split.py
    • python -I tests/test_wb_diff_cpu_writes.py

Still to test:

  • @Beanstalk: Extended gameplay across dungeons/sparse-heavy scenes (Hyrule Field, Kokiri Forest, temples) with RX_VK_WB_CPU_WORDS_FAST=check on AMD/Intel GPUs to confirm 0 mismatches on pools with partial sparse blocks and active cut_cpu_words hits.

Measurements

Verdict: Faster: +1.68% FPS (-0.209 ms mean frame time, 95% CI +0.93% to +2.58% across 147 paired 3 s periods; 5/5 runs won).

Setup: Windows 11, RTX 4060 (Vulkan 1.4); market, child (crowded), 1280×720 output, 50% internal resolution (768×432), V-Sync Off, Frame Generation Off, HOS_FPS_MAX=1000; 5 interleaved 90 s runs with HOS_AB=RX_VK_WB_CPU_WORDS_FAST=0,3,0 via dev.py queue run ab-14b-5x --mode timing.

Baseline: Both columns are one build, v3.2.0-196-g47f4b6055, alternating RX_VK_WB_CPU_WORDS_FAST=0 (Side 1, OFF) and RX_VK_WB_CPU_WORDS_FAST unset (Side 0, ON) every 3.0 s (n = 16,275 OFF / n = 16,558 ON frames).

Metric Before, RX_VK_WB_CPU_WORDS_FAST=0: this PR @ 47f4b605 After, RX_VK_WB_CPU_WORDS_FAST unset: this PR @ 47f4b605 Delta
Avg FPS 80.38 fps 81.74 fps +1.68%
Mean frame time 12.441 ms 12.234 ms -0.209 ms
Median frame time 12.17 ms 11.97 ms -0.20 ms
1% Low FPS 62.23 fps 64.31 fps +2.08 fps
0.1% Low FPS 47.76 fps 51.23 fps +3.47 fps
p99 frame time 16.14 ms 15.55 ms -0.59 ms
wait_gpu_ms 1.687 ms 1.479 ms -12.35%
Frames >= 50 ms / min 0.00 0.00 +0.00

Risks

  • Low risk: RX_VK_WB_CPU_WORDS_FAST=0 branches directly into verbatim main code paths for cpu_words, sparse clipping, mirror address lookup, late_fix_reap(), and shadows_forget_written(). RX_VK_WB_CPU_WORDS_FAST=check validates exact bit-level output equivalence against the baseline paths live at runtime. No persistent caches, saves, or shader stamps are affected.

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 switch added or changed: it ships at the default the measurements chose, with its row in gpu/vk/switches.def.
  • A check under tests/ that reads changed source is updated, not weakened.
  • Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths.
  • 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.
## Summary On steady-state Castle Town `market` (`main @ 56823e27a`), `memory_end_submission` accounted for 4.62% of the `mkw_vk_replay` thread, led by `cpu_words_merge()` sorting, deduplicating, binary-searching, and merging up to 65,536 guest 8-byte addresses on every submission/part (`2.41%` of `mkw_vk_replay`), alongside per-pool `vkGetBufferDeviceAddress` calls, `sparse_mirror::clip` vector builds when all blocks are present, full scans of `late_pages` in `late_fix_reap()`, and `imported.upper_bound()` tree lookups in `shadows_forget_written()`. This adds `RX_VK_WB_CPU_WORDS_FAST` (default `1`, supporting `0`, `1`, and `check`/`2` with live `HOS_AB` mode handoff): - **`gpu/vk/wb_cpu_words_fast.h` (`CpuWordsPageSet`):** Replaces sorted-vector merge + binary search with a 2-level 4 KB page-keyed open-addressed bitset hash table (`PageSlot` with `512`-bit word mask per page), a 1024-bit page Bloom filter, O(1) `[min_page, max_page]` range reject, exact `total_words > 65536` reset parity, and lazy copy-on-first-hit `cut_runs()` (zero allocation when no owned words intersect write-back runs). - **`gpu/vk/vk_memory.cpp`:** - Integrates `CpuWordsPageSet` in `memory_cpu_owned()` and `cut_cpu_words()` with seamless `0 <-> 1 <-> 2` state synchronization under `cpu_words_mu`. - Adds zero-allocation `sparse_all_present()` pre-check before `sparse_mirror::clip`. - Caches `Pool::cached_mirror_address` per `VkBuffer` handle (cleared in `mirror_free`), reuses thread-local `runs` vector in `memory_end_submission()`, guards `late_fix_reap()` with `late_pages_min_fix`, and adds a 2-slot MRU `Pool*` cache in `shadows_forget_written()`. - **`gpu/vk/switches.def`, `gpu/vk/vk_main.cpp`, `gpu/vk/vk_internal.h`:** Registers `RX_VK_WB_CPU_WORDS_FAST` (`wb_cpu_words_fast_mode()` via `host->ab_value` and `cpu_words_fast_close()`). Measured in-game across 5 interleaved 90 s `HOS_AB` runs in `market`, this improves mean frame rate by **+1.68%** (`81.74 vs 80.38 FPS`, `-0.209 ms` mean frame time, 95% CI `+0.93%` to `+2.58%`), lifts `1% Low` by `+2.08 FPS` (`64.31 vs 62.23`) and `0.1% Low` by `+3.47 FPS` (`51.23 vs 47.76`), and cuts `wait_gpu_ms` by `-12.35%` (`-0.2084 ms`). ## Testing **Tested:** - Windows 11, x86-64 (`skylake`), NVIDIA GeForce RTX 4060 (Vulkan 1.4, driver `0x9b4a0000`), `dev.py pack && dev.py rt` (`0` shader parts rebuilt, `lift: unchanged`). - Live in-game parity verification (`RX_VK_WB_CPU_WORDS_FAST=check`, 30 s in `market`, 2,337 frames, 77.9 FPS): `121,676 checks, 121,676 rejects, 0 cuts, 121,676 sparse_skips, 78,057 addr_hits, 0 mismatches`, `RUN_ERROR=None`. - Queued 5×90 s in-run `HOS_AB` (`RX_VK_WB_CPU_WORDS_FAST` flipped every 3.0 s) in `market`: 5/5 runs won (`+1.69%`, `+1.81%`, `+1.64%`, `+0.81%`, `+2.59%`). - Repository and standalone checks (all exit 0 after final edit): - `python -I tests/test_vk_wb_cpu_words_fast.py` (includes 10 `MUST_FAIL` broken variants) - `python -I tests/test_hos_ab.py --cc clang` - `python -I tests/test_tls_objects.py` - `python -I tests/test_vk_braces.py` - `python -I tests/test_wb_learn.py --cxx clang++` - `python -I tests/test_wb_spans.py --cxx clang++` - `python -I tests/test_sparse_mirror.py --cxx clang++` - `python -I tests/test_wb_diff_split.py` - `python -I tests/test_wb_diff_cpu_writes.py` **Still to test:** - `@Beanstalk`: Extended gameplay across dungeons/sparse-heavy scenes (Hyrule Field, Kokiri Forest, temples) with `RX_VK_WB_CPU_WORDS_FAST=check` on AMD/Intel GPUs to confirm `0 mismatches` on pools with partial sparse blocks and active `cut_cpu_words` hits. ## Measurements **Verdict:** Faster: **+1.68% FPS** (`-0.209 ms` mean frame time, 95% CI `+0.93%` to `+2.58%` across 147 paired 3 s periods; 5/5 runs won). **Setup:** Windows 11, RTX 4060 (Vulkan 1.4); `market`, child (crowded), 1280×720 output, 50% internal resolution (768×432), V-Sync Off, Frame Generation Off, `HOS_FPS_MAX=1000`; 5 interleaved 90 s runs with `HOS_AB=RX_VK_WB_CPU_WORDS_FAST=0,3,0` via `dev.py queue run ab-14b-5x --mode timing`. **Baseline:** Both columns are one build, `v3.2.0-196-g47f4b6055`, alternating `RX_VK_WB_CPU_WORDS_FAST=0` (Side 1, OFF) and `RX_VK_WB_CPU_WORDS_FAST` unset (Side 0, ON) every 3.0 s (`n = 16,275` OFF / `n = 16,558` ON frames). | Metric | Before, RX_VK_WB_CPU_WORDS_FAST=0: this PR @ 47f4b605 | After, RX_VK_WB_CPU_WORDS_FAST unset: this PR @ 47f4b605 | Delta | |---|---|---|---| | Avg FPS | 80.38 fps | 81.74 fps | +1.68% | | Mean frame time | 12.441 ms | 12.234 ms | -0.209 ms | | Median frame time | 12.17 ms | 11.97 ms | -0.20 ms | | 1% Low FPS | 62.23 fps | 64.31 fps | +2.08 fps | | 0.1% Low FPS | 47.76 fps | 51.23 fps | +3.47 fps | | p99 frame time | 16.14 ms | 15.55 ms | -0.59 ms | | `wait_gpu_ms` | 1.687 ms | 1.479 ms | -12.35% | | Frames >= 50 ms / min | 0.00 | 0.00 | +0.00 | ## Risks - Low risk: `RX_VK_WB_CPU_WORDS_FAST=0` branches directly into verbatim `main` code paths for `cpu_words`, sparse clipping, mirror address lookup, `late_fix_reap()`, and `shadows_forget_written()`. `RX_VK_WB_CPU_WORDS_FAST=check` validates exact bit-level output equivalence against the baseline paths live at runtime. No persistent caches, saves, or shader stamps are affected. ## 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 switch added or changed: it ships at the default the measurements chose, with its row in `gpu/vk/switches.def`. - [x] A check under `tests/` that reads changed source is updated, not weakened. - [x] Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. - [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.
perf(vk): O(1) page-word bitset hash + Bloom filter for cpu_words and write-back fast paths (RX_VK_WB_CPU_WORDS_FAST)
Some checks failed
PR description / Title and description (pull_request_target) Successful in 5s
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
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
47f4b60557
Author
Contributor

Tested in game: Windows 11 RTX 4060 Market: RX_VK_WB_CPU_WORDS_FAST=check 121676 checks 0 mismatches; 5x90s HOS_AB +1.68% FPS (81.74 vs 80.38 fps, 95% CI +0.93%..+2.58%), 1% Low +2.08 fps

Tested in game: Windows 11 RTX 4060 Market: RX_VK_WB_CPU_WORDS_FAST=check 121676 checks 0 mismatches; 5x90s HOS_AB +1.68% FPS (81.74 vs 80.38 fps, 95% CI +0.93%..+2.58%), 1% Low +2.08 fps
Member
@review
BeanBot left a comment

Recommendation: Approve. The advertised numeric check mode silently enables the fast path instead of checking it, and the commit lacks the AI-assistance trailer claimed by the checklist. The reported speedup also needs a comparison against main and coverage of the affected hardware. Nothing blocking is left: what remains is for the author before merging (below). Recommend approval; not approved on the forge.

The change replaces CPU-owned word tracking and adds several write-back shortcuts. It may reduce replay-thread work, at the cost of a larger stateful implementation and retained hash-table and thread-local storage.

Should fix (1): not blocking, but worth doing before merging.

  • L1 gpu/vk/vk_main.cpp:162: The parser does not recognize the advertised numeric check value. (more on the line) Do: Parse 2 as check mode and add a behavioral test for the environment values.

Nits (1): optional.

  • L2: The checklist claims AI assistance is recorded, but the only commit has no Assisted-by or Co-Authored-By trailer. When: The commit reaching review contains only its subject, so the claimed assistance attribution is absent from the history. Do: Add the required assistance trailer to the commit and ensure it is preserved in the squash commit.

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

  • L3: The reported A/B comparison does not establish the performance of the complete change against main. When: Both sides run the PR build, including its added mode reads and other unconditional changes, and use a reduced internal resolution rather than the prescribed player settings. Do: Measure main and this head with interleaved runs at the device's normal resolution and preset, including Market and a heavy scene; report frame times and lows.
  • L4 gpu/vk/vk_memory.cpp:7586: The live parity run did not exercise any CPU-owned-word cuts, and the other affected Tier 1 systems have not been tested. (more on the line) Do: Run extended sparse-heavy gameplay with check mode and active cuts on the affected Tier 1 hardware and operating systems, and report mismatches and performance.

@fix can do L1 and L2.

Checks: Still running: 10 checks.

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

Does it help: Unproven against main. The PR reports 81.74 versus 80.38 FPS and improved lows over five runs, but both sides use the PR build; the comparison does not include its unconditional overhead. The live parity run recorded zero cuts, so it did not exercise the central intersection path.

Other systems: The write-back path affects GPU memory synchronization on Windows and Linux across vendors, including Steam Deck. The supplied run covers Windows and an NVIDIA RTX 4060 in Market; sparse-heavy scenes, active cuts, AMD, Linux and Steam Deck remain untested.

Switches: RX_VK_WB_CPU_WORDS_FAST is added, default on; 0 selects the baseline and check selects comparison mode. The claimed numeric value 2 instead selects on. The default is measured only on one Windows NVIDIA setup, and the measurement does not compare the PR with main.

Reviewed: 47f4b60557 against 56823e27a1: Read AGENTS.md, CONTRIBUTING.md, the PR template, relevant standards, the commit and changed code paths, the new header and test harness, and callers and state around write-back and late-page handling. Skimmed the remaining large renderer files and recorded results; no generated files or translations changed. docs/review-checklist.md and ../Tooling/AGENTS.md are absent. Did not read every line of the large changed renderer files.; nothing run (a code review).

Checked and fine:

  • The new switch has a switches.def row.
  • The changed files do not include game-derived output, shaders, generated files or third-party code.
  • CPU-word representations are updated under cpu_words_mu, and the mirror address cache is cleared by mirror_free.
  • The standalone harness covers page boundaries, reset behavior, mode transitions and sparse-block clipping.

Testing: No code or tests were run, as requested. The PR reports a Windows RTX 4060 gameplay run and standalone checks; CI is still running.

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


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

**Recommendation: Approve.** The advertised numeric check mode silently enables the fast path instead of checking it, and the commit lacks the AI-assistance trailer claimed by the checklist. The reported speedup also needs a comparison against main and coverage of the affected hardware. Nothing blocking is left: what remains is for the author before merging (below). Recommend approval; not approved on the forge. The change replaces CPU-owned word tracking and adds several write-back shortcuts. It may reduce replay-thread work, at the cost of a larger stateful implementation and retained hash-table and thread-local storage. **Should fix (1)**: not blocking, but worth doing before merging. - **L1** `gpu/vk/vk_main.cpp:162`: The parser does not recognize the advertised numeric check value. (more on the line) **Do:** Parse 2 as check mode and add a behavioral test for the environment values. **Nits (1)**: optional. - **L2**: The checklist claims AI assistance is recorded, but the only commit has no Assisted-by or Co-Authored-By trailer. *When:* The commit reaching review contains only its subject, so the claimed assistance attribution is absent from the history. **Do:** Add the required assistance trailer to the commit and ensure it is preserved in the squash commit. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L3**: The reported A/B comparison does not establish the performance of the complete change against main. *When:* Both sides run the PR build, including its added mode reads and other unconditional changes, and use a reduced internal resolution rather than the prescribed player settings. **Do:** Measure main and this head with interleaved runs at the device's normal resolution and preset, including Market and a heavy scene; report frame times and lows. - **L4** `gpu/vk/vk_memory.cpp:7586`: The live parity run did not exercise any CPU-owned-word cuts, and the other affected Tier 1 systems have not been tested. (more on the line) **Do:** Run extended sparse-heavy gameplay with check mode and active cuts on the affected Tier 1 hardware and operating systems, and report mismatches and performance. `@fix` can do L1 and L2. **Checks:** Still running: 10 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven against main. The PR reports 81.74 versus 80.38 FPS and improved lows over five runs, but both sides use the PR build; the comparison does not include its unconditional overhead. The live parity run recorded zero cuts, so it did not exercise the central intersection path. **Other systems:** The write-back path affects GPU memory synchronization on Windows and Linux across vendors, including Steam Deck. The supplied run covers Windows and an NVIDIA RTX 4060 in Market; sparse-heavy scenes, active cuts, AMD, Linux and Steam Deck remain untested. **Switches:** RX_VK_WB_CPU_WORDS_FAST is added, default on; 0 selects the baseline and check selects comparison mode. The claimed numeric value 2 instead selects on. The default is measured only on one Windows NVIDIA setup, and the measurement does not compare the PR with main. **Reviewed:** 47f4b605572e against 56823e27a13a: Read AGENTS.md, CONTRIBUTING.md, the PR template, relevant standards, the commit and changed code paths, the new header and test harness, and callers and state around write-back and late-page handling. Skimmed the remaining large renderer files and recorded results; no generated files or translations changed. docs/review-checklist.md and ../Tooling/AGENTS.md are absent. Did not read every line of the large changed renderer files.; nothing run (a code review). **Checked and fine:** - The new switch has a switches.def row. - The changed files do not include game-derived output, shaders, generated files or third-party code. - CPU-word representations are updated under cpu_words_mu, and the mirror address cache is cleared by mirror_free. - The standalone harness covers page boundaries, reset behavior, mode transitions and sparse-block clipping. **Testing:** No code or tests were run, as requested. The PR reports a Windows RTX 4060 gameplay run and standalone checks; CI is still running. **Overlaps and merge order:** Not checked; network access is unavailable. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.</sub>
@ -159,0 +159,4 @@
static int parse_wb_cpu_words_fast_env() {
const char* e = getenv("RX_VK_WB_CPU_WORDS_FAST");
if (!e || !*e) return 1;
if (std::strcmp(e, "check") == 0) return 2;
Member

L1 (should fix): The parser does not recognize the advertised numeric check value.

When: With RX_VK_WB_CPU_WORDS_FAST=2, env_value_off returns false and the parser returns 1, so the game runs the fast path without parity checks or mismatch reporting.

Do: Parse 2 as check mode and add a behavioral test for the environment values.

**L1** (should fix): The parser does not recognize the advertised numeric check value. *When:* With RX_VK_WB_CPU_WORDS_FAST=2, env_value_off returns false and the parser returns 1, so the game runs the fast path without parity checks or mismatch reporting. **Do:** Parse 2 as check mode and add a behavioral test for the environment values.
@ -7435,28 +7586,44 @@ void memory_end_submission(VkCommandBuffer cmd, uint64_t part) {
cut_cpu_words(*p, runs);
Member

L4 (should fix): The live parity run did not exercise any CPU-owned-word cuts, and the other affected Tier 1 systems have not been tested.

When: The reported 121,676 checks were all rejects, leaving the intersection and partially resident sparse-block paths unverified in gameplay; AMD, Linux and Steam Deck results are also absent.

Do: Run extended sparse-heavy gameplay with check mode and active cuts on the affected Tier 1 hardware and operating systems, and report mismatches and performance.

**L4** (should fix): The live parity run did not exercise any CPU-owned-word cuts, and the other affected Tier 1 systems have not been tested. *When:* The reported 121,676 checks were all rejects, leaving the intersection and partially resident sparse-block paths unverified in gameplay; AMD, Linux and Steam Deck results are also absent. **Do:** Run extended sparse-heavy gameplay with check mode and active cuts on the affected Tier 1 hardware and operating systems, and report mismatches and performance.
siantm force-pushed perf/vk-wb-cpu-words-fast from 47f4b60557
Some checks failed
PR description / Title and description (pull_request_target) Successful in 5s
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
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 a1a75e6d8c
Some checks failed
PR description / Title and description (pull_request_target) Successful in 5s
beanstalk/approval approved by HumanBean (reviewed)
beanstalk/nvidia 1/1 fail
beanstalk/windows+nvidia 2/1 fail
beanstalk/amd 0/1 pass, 2 running, 0 queued
beanstalk/linux+radv 2/1 pass
beanstalk/intel 0/1 pass, 0 running, 2 queued
beanstalk/steamdeck 0/1 pass, 0 running, 2 queued
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
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
2026-12-02 10:15:42 +00:00
Compare
Author
Contributor

Addressed the review feedback in commit a1a75e6d8:

  • L1 (gpu/vk/vk_main.cpp:162, gpu/vk/wb_cpu_words_fast.h): Added mkwvk::wb_cpu_words_fast::parse_mode_value() in gpu/vk/wb_cpu_words_fast.h and delegated parse_wb_cpu_words_fast_env() to it so "2" and "check" (trimmed, case-insensitive) return check mode 2, env_value_off() values return 0, and nullptr/empty/other values return 1. Updated gpu/vk/switches.def (=check (or 2)), added behavioral unit tests and the ignore_numeric_check_mode broken variant in tests/test_vk_wb_cpu_words_fast.py, and updated --cxx fallback (CXX -> clang++ -> g++) with Windows DLL PATH setup.
  • L2 (AI trailer): Added Assisted-by: Antigravity (Google DeepMind) to the commit message.
  • Verified:
    • clang++ and g++ (-std=c++20 -Wall -Wextra -Werror -fsyntax-only) on gpu/vk/wb_cpu_words_fast.h and the parse_wb_cpu_words_fast_env() wrapper
    • python -I -B tests/test_vk_wb_cpu_words_fast.py with --cxx clang++, --cxx g++.exe, and default compiler (all 11 broken variants caught)
    • python -I -B tests/test_hos_ab.py --cc clang, tests/test_tls_objects.py, tests/test_vk_braces.py
  • L3 & L4: Triggering live CPU-owned-word cuts (p->cpu_words non-empty), Tier 1 AMD/Linux/Steam Deck check runs, and interleaved main-vs-head measurements at player settings remain pending live test coverage / @Beanstalk.
Addressed the review feedback in commit `a1a75e6d8`: - **L1 (`gpu/vk/vk_main.cpp:162`, `gpu/vk/wb_cpu_words_fast.h`)**: Added `mkwvk::wb_cpu_words_fast::parse_mode_value()` in `gpu/vk/wb_cpu_words_fast.h` and delegated `parse_wb_cpu_words_fast_env()` to it so `"2"` and `"check"` (trimmed, case-insensitive) return check mode `2`, `env_value_off()` values return `0`, and `nullptr`/empty/other values return `1`. Updated `gpu/vk/switches.def` (`=check (or 2)`), added behavioral unit tests and the `ignore_numeric_check_mode` broken variant in `tests/test_vk_wb_cpu_words_fast.py`, and updated `--cxx` fallback (`CXX` -> `clang++` -> `g++`) with Windows DLL `PATH` setup. - **L2 (AI trailer)**: Added `Assisted-by: Antigravity (Google DeepMind)` to the commit message. - **Verified**: - `clang++` and `g++` (`-std=c++20 -Wall -Wextra -Werror -fsyntax-only`) on `gpu/vk/wb_cpu_words_fast.h` and the `parse_wb_cpu_words_fast_env()` wrapper - `python -I -B tests/test_vk_wb_cpu_words_fast.py` with `--cxx clang++`, `--cxx g++.exe`, and default compiler (all 11 broken variants caught) - `python -I -B tests/test_hos_ab.py --cc clang`, `tests/test_tls_objects.py`, `tests/test_vk_braces.py` - **L3 & L4**: Triggering live CPU-owned-word cuts (`p->cpu_words` non-empty), Tier 1 AMD/Linux/Steam Deck check runs, and interleaved `main`-vs-head measurements at player settings remain pending live test coverage / `@Beanstalk`.
Member

@siantm only members of BigBeans can start the farm. One of them can approve this request by reacting 👍 to it or to this comment.

@siantm only members of `BigBeans` can start the farm. One of them can approve this request by reacting 👍 to it or to this comment.
Owner

@review
@beanstalk

@review @beanstalk
Member
Beanstalk test farm · an earlier run: commit a1a75e6 (the newer results are in a comment below)

Commit a1a75e6 · approved by HumanBean (reviewed) · dashboard

⚠️ Note: The farm's noise-tolerant thresholds and two starts per side cannot establish the claimed 1.68% speedup or reproduce its interleaved in-run confidence interval; the performance scenario instead compares the complete PR with main.
⚠️ Note: Check-mode counters report whether cuts occurred, but these unattended routes cannot guarantee active cuts or partially resident sparse blocks, and the available counters do not establish partial-block coverage.
⚠️ Note: Live mode handoffs and device-specific player presets are not exercised; performance uses fixed CPU-limiting settings for comparable results.

Started at 14:56 UTC.

Estimate: done in about 2 h 15 min, from the queue and the testers online now; some jobs can't start yet.

Target Result Reports Frame time p99 (ms), main → PR VRAM peak (MB) Crashes
nvidia ❌ fail (an outlier) 2 1 2 9.0 → 9.1 (+0%) — none
windows+nvidia ❌ fail (an outlier) 2 1 2 26.6 → 26.0 (−2%) — 4 PR runs
amd 🔄 running 0 of 1 — — —
linux+radv ✅ pass (an outlier) 2 1 2 15.3 → 15.3 (−0%) — none
intel ⏳ queued 0 of 1 — — —
steamdeck ⏳ queued 0 of 1 — — —

Why it failed

  • nvidia: default-performance screenshot.max_diff: 0.1 → 0.7; limit 0.2
  • windows+nvidia: default-performance screenshot.max_diff: 0.1 → 0.4; limit 0.2
  • windows+nvidia: default-performance crash: 2 PR runs crashed
  • windows+nvidia: default-performance screenshot.max_diff: 0.2 → 0.9; limit 0.2
What was tested

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

Compare main and the default fast path over two starts per side in Market, Hyrule Field and the Forest Temple, measuring 30 seconds per location at uncapped frame rates. Separate check-mode starts exercise Market, Kokiri Forest, Hyrule Field and the Forest Temple, recording parity-check and cut counts. Crashes, reported write-back mismatches, substantial frame-time regressions or excessive still-scene picture differences fail the plan.

  • Where: nvidia (1-2 reports), windows+nvidia (1-2 reports), amd (1-2 reports), linux+radv (1-2 reports), intel (1-2 reports), steamdeck (1-2 reports).
  • Matrix: 1 cell, each on main and the PR: RX_VK_WB_CPU_WORDS_FAST check (PR only).
  • default-performance: from the repository's save market-entrance (settings vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0; switches HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0), then teleport to Market, take the picture market to compare with main, measure market for 30 s (after 10 s warm-up), teleport to Hyrule Field, take the picture field to compare with main, measure field for 30 s (after 10 s warm-up), teleport to Forest Temple, take the picture temple to compare with main, measure temple for 30 s (after 10 s warm-up); 2 runs on each side.
  • writeback-parity: from the repository's save market-entrance (switches HOS_FPS_MAX=30, HOS_OUTPUT_RES=1280x720), then teleport to Market, teleport to Kokiri Forest, teleport to Hyrule Field, teleport to Forest Temple; 2 runs on each side.
  • Measured: crashes, frame times, stutters and hitches, the game's log, numbers from the game's log.
  • The PR fails if: it crashes; or a picture differs from main by more than 20%; or median frame time is more than 15% above main; or frame time (p99) is more than 15% above main; or forbidden log lines is above 0; or frame time (worst 1%) is more than 15% above main.
  • Time: about 57 min of game runs per tester (8 game starts), plus the two builds.
Measurements on `nvidia`, for the PR description

Verdict: fail on nvidia (2 reports): default-performance screenshot.max_diff failed.

Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+window NVIDIA GeForce RTX 3090, 621.1.0 AMD Ryzen 9 5900X 12-Core Processor, 128 GB RAM; 2: windows+nvidia+nvidia-proprietary+dgpu+window NVIDIA GeForce RTX 4070 Ti SUPER, 621.14.0 AMD Ryzen 7 7800X3D 8-Core Processor, 32 GB RAM
Scene: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); writeback-parity, from the repository's save market-entrance (HOS_FPS_MAX=30, HOS_OUTPUT_RES=1280x720); each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); default-performance: 2 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up, temple 30 s after 10 s warm-up; writeback-parity: 2 game starts a side; each number the median of the runs, then of 2 reports
How to reproduce: the farm's plan above (@Beanstalk on this PR runs it again)

Before: main @ 56823e2 After: this PR @ a1a75e6
default-performance · field · median frame time (ms) 6.9 6.9 (−0%)
default-performance · market · median frame time (ms) 10.6 10.4 (−2%)
default-performance · temple · median frame time (ms) 6.1 6.0 (−2%)
default-performance · field · frame time (p99) (ms) 9.0 9.1 (+0%)
default-performance · market · frame time (p99) (ms) 14.1 13.6 (−3%)
default-performance · temple · frame time (p99) (ms) 9.1 8.9 (−2%)
default-performance · forbidden log lines 0.0 0.0
default-performance · field · frame time (worst 1%) (ms) 9.7 9.8 (+1%)
default-performance · market · frame time (worst 1%) (ms) 17.8 18.4 (+4%)
default-performance · temple · frame time (worst 1%) (ms) 10.3 10.1 (−2%)
writeback-parity · RX_VK_WB_CPU_WORDS_FAST=check (PR only) · forbidden log lines 0.0 0.0

Flags and settings

Flag What it is Values tried Before this PR After this PR Effect (median frame time) Helps / doesn't help / untested
RX_VK_WB_CPU_WORDS_FAST switch the PR adds (set on the PR side only) check not in main the PR's default writeback-parity, main without it → the PR with check: not measured untested

As Markdown for the PR description:

## Measurements

**Verdict:** fail on nvidia (2 reports): `default-performance screenshot.max_diff` failed.

Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+window `NVIDIA GeForce RTX 3090, 621.1.0` `AMD Ryzen 9 5900X 12-Core Processor, 128 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu+window `NVIDIA GeForce RTX 4070 Ti SUPER, 621.14.0` `AMD Ryzen 7 7800X3D 8-Core Processor, 32 GB RAM`  
Scene: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); writeback-parity, from the repository's save market-entrance (HOS_FPS_MAX=30, HOS_OUTPUT_RES=1280x720); each cell's settings and switches as the table names them  
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); default-performance: 2 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up, temple 30 s after 10 s warm-up; writeback-parity: 2 game starts a side; each number the median of the runs, then of 2 reports  
How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again)

| | Before: main @ 56823e2 | After: this PR @ a1a75e6 |
|---|---|---|
| default-performance · field · median frame time (ms) | 6.9 | 6.9 (−0%) |
| default-performance · market · median frame time (ms) | 10.6 | 10.4 (−2%) |
| default-performance · temple · median frame time (ms) | 6.1 | 6.0 (−2%) |
| default-performance · field · frame time (p99) (ms) | 9.0 | 9.1 (+0%) |
| default-performance · market · frame time (p99) (ms) | 14.1 | 13.6 (−3%) |
| default-performance · temple · frame time (p99) (ms) | 9.1 | 8.9 (−2%) |
| default-performance · forbidden log lines | 0.0 | 0.0 |
| default-performance · field · frame time (worst 1%) (ms) | 9.7 | 9.8 (+1%) |
| default-performance · market · frame time (worst 1%) (ms) | 17.8 | 18.4 (+4%) |
| default-performance · temple · frame time (worst 1%) (ms) | 10.3 | 10.1 (−2%) |
| writeback-parity · `RX_VK_WB_CPU_WORDS_FAST=check (PR only)` · forbidden log lines | 0.0 | 0.0 |

**Flags and settings**

| Flag | What it is | Values tried | Before this PR | After this PR | Effect (median frame time) | Helps / doesn't help / untested |
|---|---|---|---|---|---|---|
| `RX_VK_WB_CPU_WORDS_FAST` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | writeback-parity, main without it → the PR with check: not measured | untested |
Measurements on `windows+nvidia`, for the PR description

Verdict: fail on windows+nvidia (2 reports): default-performance screenshot.max_diff; default-performance crash failed.

Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+window+dlss+xess NVIDIA GeForce RTX 3070, 621.35.0 AMD Ryzen 5 5600X3D 6-Core Processor, 32 GB RAM; 2: windows+nvidia+nvidia-proprietary+dgpu+window NVIDIA GeForce RTX 3050 Ti Laptop GPU, 621.1.0 AMD Ryzen 7 5800H with Radeon Graphics, 16 GB RAM
Scene: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); writeback-parity, from the repository's save market-entrance (HOS_FPS_MAX=30, HOS_OUTPUT_RES=1280x720); each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); default-performance: 2 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up, temple 30 s after 10 s warm-up; writeback-parity: 2 game starts a side; each number the median of the runs, then of 2 reports
How to reproduce: the farm's plan above (@Beanstalk on this PR runs it again)

Before: main @ 56823e2 After: this PR @ a1a75e6
default-performance · field · median frame time (ms) 22.4 22.5 (+0%)
default-performance · market · median frame time (ms) 22.8 25.8 (+13%)
default-performance · temple · median frame time (ms) 14.1 6.5 (−54%)
default-performance · field · frame time (p99) (ms) 26.6 26.0 (−2%)
default-performance · market · frame time (p99) (ms) 30.7 34.0 (+11%)
default-performance · temple · frame time (p99) (ms) 19.0 9.1 (−52%)
default-performance · forbidden log lines 0.0 0.0
default-performance · field · frame time (worst 1%) (ms) 28.3 27.1 (−4%)
default-performance · market · frame time (worst 1%) (ms) 49.1 38.2 (−22%)
default-performance · temple · frame time (worst 1%) (ms) 21.0 9.8 (−53%)
writeback-parity · RX_VK_WB_CPU_WORDS_FAST=check (PR only) · forbidden log lines 0.0 0.0

Flags and settings

Flag What it is Values tried Before this PR After this PR Effect (median frame time) Helps / doesn't help / untested
RX_VK_WB_CPU_WORDS_FAST switch the PR adds (set on the PR side only) check not in main the PR's default writeback-parity, main without it → the PR with check: not measured untested

As Markdown for the PR description:

## Measurements

**Verdict:** fail on windows+nvidia (2 reports): `default-performance screenshot.max_diff`; `default-performance crash` failed.

Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+window+dlss+xess `NVIDIA GeForce RTX 3070, 621.35.0` `AMD Ryzen 5 5600X3D 6-Core Processor, 32 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu+window `NVIDIA GeForce RTX 3050 Ti Laptop GPU, 621.1.0` `AMD Ryzen 7 5800H with Radeon Graphics, 16 GB RAM`  
Scene: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); writeback-parity, from the repository's save market-entrance (HOS_FPS_MAX=30, HOS_OUTPUT_RES=1280x720); each cell's settings and switches as the table names them  
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); default-performance: 2 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up, temple 30 s after 10 s warm-up; writeback-parity: 2 game starts a side; each number the median of the runs, then of 2 reports  
How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again)

| | Before: main @ 56823e2 | After: this PR @ a1a75e6 |
|---|---|---|
| default-performance · field · median frame time (ms) | 22.4 | 22.5 (+0%) |
| default-performance · market · median frame time (ms) | 22.8 | 25.8 (+13%) |
| default-performance · temple · median frame time (ms) | 14.1 | 6.5 (−54%) |
| default-performance · field · frame time (p99) (ms) | 26.6 | 26.0 (−2%) |
| default-performance · market · frame time (p99) (ms) | 30.7 | 34.0 (+11%) |
| default-performance · temple · frame time (p99) (ms) | 19.0 | 9.1 (−52%) |
| default-performance · forbidden log lines | 0.0 | 0.0 |
| default-performance · field · frame time (worst 1%) (ms) | 28.3 | 27.1 (−4%) |
| default-performance · market · frame time (worst 1%) (ms) | 49.1 | 38.2 (−22%) |
| default-performance · temple · frame time (worst 1%) (ms) | 21.0 | 9.8 (−53%) |
| writeback-parity · `RX_VK_WB_CPU_WORDS_FAST=check (PR only)` · forbidden log lines | 0.0 | 0.0 |

**Flags and settings**

| Flag | What it is | Values tried | Before this PR | After this PR | Effect (median frame time) | Helps / doesn't help / untested |
|---|---|---|---|---|---|---|
| `RX_VK_WB_CPU_WORDS_FAST` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | writeback-parity, main without it → the PR with check: not measured | untested |
Measurements on `linux+radv`, for the PR description

Verdict: pass on linux+radv (2 reports): no rule failed and no PR run crashed.

Hardware: 1: linux+amd+radv+dgpu AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1 AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM; 2: linux+amd+radv+igpu AMD Radeon 890M Graphics (RADV STRIX1), 26.1.99 AMD Ryzen Z2 Extreme, 32 GB RAM
Scene: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); writeback-parity, from the repository's save market-entrance (HOS_FPS_MAX=30, HOS_OUTPUT_RES=1280x720); each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); default-performance: 2 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up, temple 30 s after 10 s warm-up; writeback-parity: 2 game starts a side; each number the median of the runs, then of 2 reports
How to reproduce: the farm's plan above (@Beanstalk on this PR runs it again)

Before: main @ 56823e2 After: this PR @ a1a75e6
default-performance · field · median frame time (ms) 11.7 11.7 (−0%)
default-performance · market · median frame time (ms) 14.7 14.5 (−2%)
default-performance · temple · median frame time (ms) 10.3 10.2 (−0%)
default-performance · field · frame time (p99) (ms) 15.3 15.3 (−0%)
default-performance · market · frame time (p99) (ms) 20.2 19.1 (−6%)
default-performance · temple · frame time (p99) (ms) 15.4 14.6 (−5%)
default-performance · forbidden log lines 0.0 0.0
default-performance · field · frame time (worst 1%) (ms) 20.7 19.7 (−5%)
default-performance · market · frame time (worst 1%) (ms) 27.9 24.4 (−12%)
default-performance · temple · frame time (worst 1%) (ms) 20.5 18.2 (−11%)
writeback-parity · RX_VK_WB_CPU_WORDS_FAST=check (PR only) · forbidden log lines 0.0 0.0

Flags and settings

Flag What it is Values tried Before this PR After this PR Effect (median frame time) Helps / doesn't help / untested
RX_VK_WB_CPU_WORDS_FAST switch the PR adds (set on the PR side only) check not in main the PR's default writeback-parity, main without it → the PR with check: not measured untested

As Markdown for the PR description:

## Measurements

**Verdict:** pass on linux+radv (2 reports): no rule failed and no PR run crashed.

Hardware: 1: linux+amd+radv+dgpu `AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1` `AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM`; 2: linux+amd+radv+igpu `AMD Radeon 890M Graphics (RADV STRIX1), 26.1.99` `AMD Ryzen Z2 Extreme, 32 GB RAM`  
Scene: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); writeback-parity, from the repository's save market-entrance (HOS_FPS_MAX=30, HOS_OUTPUT_RES=1280x720); each cell's settings and switches as the table names them  
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); default-performance: 2 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up, temple 30 s after 10 s warm-up; writeback-parity: 2 game starts a side; each number the median of the runs, then of 2 reports  
How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again)

| | Before: main @ 56823e2 | After: this PR @ a1a75e6 |
|---|---|---|
| default-performance · field · median frame time (ms) | 11.7 | 11.7 (−0%) |
| default-performance · market · median frame time (ms) | 14.7 | 14.5 (−2%) |
| default-performance · temple · median frame time (ms) | 10.3 | 10.2 (−0%) |
| default-performance · field · frame time (p99) (ms) | 15.3 | 15.3 (−0%) |
| default-performance · market · frame time (p99) (ms) | 20.2 | 19.1 (−6%) |
| default-performance · temple · frame time (p99) (ms) | 15.4 | 14.6 (−5%) |
| default-performance · forbidden log lines | 0.0 | 0.0 |
| default-performance · field · frame time (worst 1%) (ms) | 20.7 | 19.7 (−5%) |
| default-performance · market · frame time (worst 1%) (ms) | 27.9 | 24.4 (−12%) |
| default-performance · temple · frame time (worst 1%) (ms) | 20.5 | 18.2 (−11%) |
| writeback-parity · `RX_VK_WB_CPU_WORDS_FAST=check (PR only)` · forbidden log lines | 0.0 | 0.0 |

**Flags and settings**

| Flag | What it is | Values tried | Before this PR | After this PR | Effect (median frame time) | Helps / doesn't help / untested |
|---|---|---|---|---|---|---|
| `RX_VK_WB_CPU_WORDS_FAST` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | writeback-parity, main without it → the PR with check: not measured | untested |
The testers' hardware
Target Report Ran on
nvidia 1 windows+nvidia+nvidia-proprietary+dgpu+window NVIDIA GeForce RTX 3090, 621.1.0 AMD Ryzen 9 5900X 12-Core Processor, 128 GB RAM
nvidia 2 windows+nvidia+nvidia-proprietary+dgpu+window NVIDIA GeForce RTX 4070 Ti SUPER, 621.14.0 AMD Ryzen 7 7800X3D 8-Core Processor, 32 GB RAM
windows+nvidia 1 windows+nvidia+nvidia-proprietary+dgpu+window+dlss+xess NVIDIA GeForce RTX 3070, 621.35.0 AMD Ryzen 5 5600X3D 6-Core Processor, 32 GB RAM
windows+nvidia 2 windows+nvidia+nvidia-proprietary+dgpu+window NVIDIA GeForce RTX 3050 Ti Laptop GPU, 621.1.0 AMD Ryzen 7 5800H with Radeon Graphics, 16 GB RAM
linux+radv 1 linux+amd+radv+dgpu AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1 AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM
linux+radv 2 linux+amd+radv+igpu AMD Radeon 890M Graphics (RADV STRIX1), 26.1.99 AMD Ryzen Z2 Extreme, 32 GB RAM
<!-- beanstalk:previous --> <details><summary>Beanstalk test farm · an earlier run: commit <code>a1a75e6</code> (the newer results are in a comment below)</summary> Commit `a1a75e6` · approved by HumanBean (reviewed) · [dashboard](https://beanstalk.magicbean.dev/prs/2997) ⚠️ **Note:** The farm's noise-tolerant thresholds and two starts per side cannot establish the claimed 1.68% speedup or reproduce its interleaved in-run confidence interval; the performance scenario instead compares the complete PR with main. ⚠️ **Note:** Check-mode counters report whether cuts occurred, but these unattended routes cannot guarantee active cuts or partially resident sparse blocks, and the available counters do not establish partial-block coverage. ⚠️ **Note:** Live mode handoffs and device-specific player presets are not exercised; performance uses fixed CPU-limiting settings for comparable results. Started at 14:56 UTC. **Estimate:** done in about 2 h 15 min, from the queue and the testers online now; some jobs can't start yet. | Target | Result | Reports | Frame time p99 (ms), main → PR | VRAM peak (MB) | Crashes | | --- | --- | --- | --- | --- | --- | | `nvidia` | ❌ fail (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_6cc0553ec14f1f1f) [2](https://beanstalk.magicbean.dev/reports/rp_5e5489e67933ab1a) | 9.0 → 9.1 (+0%) | — | none | | `windows+nvidia` | ❌ fail (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_a014b09ce545b7e3) [2](https://beanstalk.magicbean.dev/reports/rp_6d3d70e31ddc9e0c) | 26.6 → 26.0 (−2%) | — | 4 PR runs | | `amd` | 🔄 running | 0 of 1 | — | — | — | | `linux+radv` | ✅ pass (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_3f3555bbbf64c12c) [2](https://beanstalk.magicbean.dev/reports/rp_0c1cb7732b60e6c8) | 15.3 → 15.3 (−0%) | — | none | | `intel` | ⏳ queued | 0 of 1 | — | — | — | | `steamdeck` | ⏳ queued | 0 of 1 | — | — | — | **Why it failed** - `nvidia`: `default-performance` `screenshot.max_diff`: `0.1 → 0.7; limit 0.2` - `windows+nvidia`: `default-performance` `screenshot.max_diff`: `0.1 → 0.4; limit 0.2` - `windows+nvidia`: `default-performance` `crash`: `2 PR runs crashed` - `windows+nvidia`: `default-performance` `screenshot.max_diff`: `0.2 → 0.9; limit 0.2` <details><summary>What was tested</summary> **What will be tested** · AI plan (`gpt-6.1-terra`) Compare main and the default fast path over two starts per side in Market, Hyrule Field and the Forest Temple, measuring 30 seconds per location at uncapped frame rates. Separate check-mode starts exercise Market, Kokiri Forest, Hyrule Field and the Forest Temple, recording parity-check and cut counts. Crashes, reported write-back mismatches, substantial frame-time regressions or excessive still-scene picture differences fail the plan. - **Where:** nvidia (1-2 reports), windows+nvidia (1-2 reports), amd (1-2 reports), linux+radv (1-2 reports), intel (1-2 reports), steamdeck (1-2 reports). - **Matrix:** 1 cell, each on main and the PR: RX_VK_WB_CPU_WORDS_FAST `check` (PR only). - **default-performance:** from the repository's save `market-entrance` (settings vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0; switches `HOS_OUTPUT_RES=1280x720`, `RX_VK_AUTO_TUNE=0`), then teleport to Market, take the picture market to compare with main, measure market for 30 s (after 10 s warm-up), teleport to Hyrule Field, take the picture field to compare with main, measure field for 30 s (after 10 s warm-up), teleport to Forest Temple, take the picture temple to compare with main, measure temple for 30 s (after 10 s warm-up); 2 runs on each side. - **writeback-parity:** from the repository's save `market-entrance` (switches `HOS_FPS_MAX=30`, `HOS_OUTPUT_RES=1280x720`), then teleport to Market, teleport to Kokiri Forest, teleport to Hyrule Field, teleport to Forest Temple; 2 runs on each side. - **Measured:** crashes, frame times, stutters and hitches, the game's log, numbers from the game's log. - **The PR fails if:** it crashes; or a picture differs from main by more than 20%; or median frame time is more than 15% above main; or frame time (p99) is more than 15% above main; or forbidden log lines is above 0; or frame time (worst 1%) is more than 15% above main. - **Time:** about 57 min of game runs per tester (8 game starts), plus the two builds. </details> <details><summary>Measurements on `nvidia`, for the PR description</summary> **Verdict:** fail on nvidia (2 reports): `default-performance screenshot.max_diff` failed. Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+window `NVIDIA GeForce RTX 3090, 621.1.0` `AMD Ryzen 9 5900X 12-Core Processor, 128 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu+window `NVIDIA GeForce RTX 4070 Ti SUPER, 621.14.0` `AMD Ryzen 7 7800X3D 8-Core Processor, 32 GB RAM` Scene: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); writeback-parity, from the repository's save market-entrance (HOS_FPS_MAX=30, HOS_OUTPUT_RES=1280x720); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); default-performance: 2 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up, temple 30 s after 10 s warm-up; writeback-parity: 2 game starts a side; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 56823e2 | After: this PR @ a1a75e6 | |---|---|---| | default-performance · field · median frame time (ms) | 6.9 | 6.9 (−0%) | | default-performance · market · median frame time (ms) | 10.6 | 10.4 (−2%) | | default-performance · temple · median frame time (ms) | 6.1 | 6.0 (−2%) | | default-performance · field · frame time (p99) (ms) | 9.0 | 9.1 (+0%) | | default-performance · market · frame time (p99) (ms) | 14.1 | 13.6 (−3%) | | default-performance · temple · frame time (p99) (ms) | 9.1 | 8.9 (−2%) | | default-performance · forbidden log lines | 0.0 | 0.0 | | default-performance · field · frame time (worst 1%) (ms) | 9.7 | 9.8 (+1%) | | default-performance · market · frame time (worst 1%) (ms) | 17.8 | 18.4 (+4%) | | default-performance · temple · frame time (worst 1%) (ms) | 10.3 | 10.1 (−2%) | | writeback-parity · `RX_VK_WB_CPU_WORDS_FAST=check (PR only)` · forbidden log lines | 0.0 | 0.0 | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (median frame time) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_WB_CPU_WORDS_FAST` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | writeback-parity, main without it → the PR with check: not measured | untested | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** fail on nvidia (2 reports): `default-performance screenshot.max_diff` failed. Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+window `NVIDIA GeForce RTX 3090, 621.1.0` `AMD Ryzen 9 5900X 12-Core Processor, 128 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu+window `NVIDIA GeForce RTX 4070 Ti SUPER, 621.14.0` `AMD Ryzen 7 7800X3D 8-Core Processor, 32 GB RAM` Scene: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); writeback-parity, from the repository's save market-entrance (HOS_FPS_MAX=30, HOS_OUTPUT_RES=1280x720); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); default-performance: 2 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up, temple 30 s after 10 s warm-up; writeback-parity: 2 game starts a side; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 56823e2 | After: this PR @ a1a75e6 | |---|---|---| | default-performance · field · median frame time (ms) | 6.9 | 6.9 (−0%) | | default-performance · market · median frame time (ms) | 10.6 | 10.4 (−2%) | | default-performance · temple · median frame time (ms) | 6.1 | 6.0 (−2%) | | default-performance · field · frame time (p99) (ms) | 9.0 | 9.1 (+0%) | | default-performance · market · frame time (p99) (ms) | 14.1 | 13.6 (−3%) | | default-performance · temple · frame time (p99) (ms) | 9.1 | 8.9 (−2%) | | default-performance · forbidden log lines | 0.0 | 0.0 | | default-performance · field · frame time (worst 1%) (ms) | 9.7 | 9.8 (+1%) | | default-performance · market · frame time (worst 1%) (ms) | 17.8 | 18.4 (+4%) | | default-performance · temple · frame time (worst 1%) (ms) | 10.3 | 10.1 (−2%) | | writeback-parity · `RX_VK_WB_CPU_WORDS_FAST=check (PR only)` · forbidden log lines | 0.0 | 0.0 | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (median frame time) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_WB_CPU_WORDS_FAST` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | writeback-parity, main without it → the PR with check: not measured | untested | ``` </details> <details><summary>Measurements on `windows+nvidia`, for the PR description</summary> **Verdict:** fail on windows+nvidia (2 reports): `default-performance screenshot.max_diff`; `default-performance crash` failed. Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+window+dlss+xess `NVIDIA GeForce RTX 3070, 621.35.0` `AMD Ryzen 5 5600X3D 6-Core Processor, 32 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu+window `NVIDIA GeForce RTX 3050 Ti Laptop GPU, 621.1.0` `AMD Ryzen 7 5800H with Radeon Graphics, 16 GB RAM` Scene: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); writeback-parity, from the repository's save market-entrance (HOS_FPS_MAX=30, HOS_OUTPUT_RES=1280x720); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); default-performance: 2 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up, temple 30 s after 10 s warm-up; writeback-parity: 2 game starts a side; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 56823e2 | After: this PR @ a1a75e6 | |---|---|---| | default-performance · field · median frame time (ms) | 22.4 | 22.5 (+0%) | | default-performance · market · median frame time (ms) | 22.8 | 25.8 (+13%) | | default-performance · temple · median frame time (ms) | 14.1 | 6.5 (−54%) | | default-performance · field · frame time (p99) (ms) | 26.6 | 26.0 (−2%) | | default-performance · market · frame time (p99) (ms) | 30.7 | 34.0 (+11%) | | default-performance · temple · frame time (p99) (ms) | 19.0 | 9.1 (−52%) | | default-performance · forbidden log lines | 0.0 | 0.0 | | default-performance · field · frame time (worst 1%) (ms) | 28.3 | 27.1 (−4%) | | default-performance · market · frame time (worst 1%) (ms) | 49.1 | 38.2 (−22%) | | default-performance · temple · frame time (worst 1%) (ms) | 21.0 | 9.8 (−53%) | | writeback-parity · `RX_VK_WB_CPU_WORDS_FAST=check (PR only)` · forbidden log lines | 0.0 | 0.0 | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (median frame time) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_WB_CPU_WORDS_FAST` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | writeback-parity, main without it → the PR with check: not measured | untested | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** fail on windows+nvidia (2 reports): `default-performance screenshot.max_diff`; `default-performance crash` failed. Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+window+dlss+xess `NVIDIA GeForce RTX 3070, 621.35.0` `AMD Ryzen 5 5600X3D 6-Core Processor, 32 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu+window `NVIDIA GeForce RTX 3050 Ti Laptop GPU, 621.1.0` `AMD Ryzen 7 5800H with Radeon Graphics, 16 GB RAM` Scene: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); writeback-parity, from the repository's save market-entrance (HOS_FPS_MAX=30, HOS_OUTPUT_RES=1280x720); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); default-performance: 2 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up, temple 30 s after 10 s warm-up; writeback-parity: 2 game starts a side; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 56823e2 | After: this PR @ a1a75e6 | |---|---|---| | default-performance · field · median frame time (ms) | 22.4 | 22.5 (+0%) | | default-performance · market · median frame time (ms) | 22.8 | 25.8 (+13%) | | default-performance · temple · median frame time (ms) | 14.1 | 6.5 (−54%) | | default-performance · field · frame time (p99) (ms) | 26.6 | 26.0 (−2%) | | default-performance · market · frame time (p99) (ms) | 30.7 | 34.0 (+11%) | | default-performance · temple · frame time (p99) (ms) | 19.0 | 9.1 (−52%) | | default-performance · forbidden log lines | 0.0 | 0.0 | | default-performance · field · frame time (worst 1%) (ms) | 28.3 | 27.1 (−4%) | | default-performance · market · frame time (worst 1%) (ms) | 49.1 | 38.2 (−22%) | | default-performance · temple · frame time (worst 1%) (ms) | 21.0 | 9.8 (−53%) | | writeback-parity · `RX_VK_WB_CPU_WORDS_FAST=check (PR only)` · forbidden log lines | 0.0 | 0.0 | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (median frame time) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_WB_CPU_WORDS_FAST` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | writeback-parity, main without it → the PR with check: not measured | untested | ``` </details> <details><summary>Measurements on `linux+radv`, for the PR description</summary> **Verdict:** pass on linux+radv (2 reports): no rule failed and no PR run crashed. Hardware: 1: linux+amd+radv+dgpu `AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1` `AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM`; 2: linux+amd+radv+igpu `AMD Radeon 890M Graphics (RADV STRIX1), 26.1.99` `AMD Ryzen Z2 Extreme, 32 GB RAM` Scene: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); writeback-parity, from the repository's save market-entrance (HOS_FPS_MAX=30, HOS_OUTPUT_RES=1280x720); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); default-performance: 2 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up, temple 30 s after 10 s warm-up; writeback-parity: 2 game starts a side; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 56823e2 | After: this PR @ a1a75e6 | |---|---|---| | default-performance · field · median frame time (ms) | 11.7 | 11.7 (−0%) | | default-performance · market · median frame time (ms) | 14.7 | 14.5 (−2%) | | default-performance · temple · median frame time (ms) | 10.3 | 10.2 (−0%) | | default-performance · field · frame time (p99) (ms) | 15.3 | 15.3 (−0%) | | default-performance · market · frame time (p99) (ms) | 20.2 | 19.1 (−6%) | | default-performance · temple · frame time (p99) (ms) | 15.4 | 14.6 (−5%) | | default-performance · forbidden log lines | 0.0 | 0.0 | | default-performance · field · frame time (worst 1%) (ms) | 20.7 | 19.7 (−5%) | | default-performance · market · frame time (worst 1%) (ms) | 27.9 | 24.4 (−12%) | | default-performance · temple · frame time (worst 1%) (ms) | 20.5 | 18.2 (−11%) | | writeback-parity · `RX_VK_WB_CPU_WORDS_FAST=check (PR only)` · forbidden log lines | 0.0 | 0.0 | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (median frame time) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_WB_CPU_WORDS_FAST` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | writeback-parity, main without it → the PR with check: not measured | untested | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** pass on linux+radv (2 reports): no rule failed and no PR run crashed. Hardware: 1: linux+amd+radv+dgpu `AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1` `AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM`; 2: linux+amd+radv+igpu `AMD Radeon 890M Graphics (RADV STRIX1), 26.1.99` `AMD Ryzen Z2 Extreme, 32 GB RAM` Scene: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); writeback-parity, from the repository's save market-entrance (HOS_FPS_MAX=30, HOS_OUTPUT_RES=1280x720); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); default-performance: 2 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up, temple 30 s after 10 s warm-up; writeback-parity: 2 game starts a side; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 56823e2 | After: this PR @ a1a75e6 | |---|---|---| | default-performance · field · median frame time (ms) | 11.7 | 11.7 (−0%) | | default-performance · market · median frame time (ms) | 14.7 | 14.5 (−2%) | | default-performance · temple · median frame time (ms) | 10.3 | 10.2 (−0%) | | default-performance · field · frame time (p99) (ms) | 15.3 | 15.3 (−0%) | | default-performance · market · frame time (p99) (ms) | 20.2 | 19.1 (−6%) | | default-performance · temple · frame time (p99) (ms) | 15.4 | 14.6 (−5%) | | default-performance · forbidden log lines | 0.0 | 0.0 | | default-performance · field · frame time (worst 1%) (ms) | 20.7 | 19.7 (−5%) | | default-performance · market · frame time (worst 1%) (ms) | 27.9 | 24.4 (−12%) | | default-performance · temple · frame time (worst 1%) (ms) | 20.5 | 18.2 (−11%) | | writeback-parity · `RX_VK_WB_CPU_WORDS_FAST=check (PR only)` · forbidden log lines | 0.0 | 0.0 | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (median frame time) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_WB_CPU_WORDS_FAST` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | writeback-parity, main without it → the PR with check: not measured | untested | ``` </details> <details><summary>The testers' hardware</summary> | Target | Report | Ran on | | --- | --- | --- | | `nvidia` | [1](https://beanstalk.magicbean.dev/reports/rp_6cc0553ec14f1f1f) | windows+nvidia+nvidia-proprietary+dgpu+window `NVIDIA GeForce RTX 3090, 621.1.0` `AMD Ryzen 9 5900X 12-Core Processor, 128 GB RAM` | | `nvidia` | [2](https://beanstalk.magicbean.dev/reports/rp_5e5489e67933ab1a) | windows+nvidia+nvidia-proprietary+dgpu+window `NVIDIA GeForce RTX 4070 Ti SUPER, 621.14.0` `AMD Ryzen 7 7800X3D 8-Core Processor, 32 GB RAM` | | `windows+nvidia` | [1](https://beanstalk.magicbean.dev/reports/rp_a014b09ce545b7e3) | windows+nvidia+nvidia-proprietary+dgpu+window+dlss+xess `NVIDIA GeForce RTX 3070, 621.35.0` `AMD Ryzen 5 5600X3D 6-Core Processor, 32 GB RAM` | | `windows+nvidia` | [2](https://beanstalk.magicbean.dev/reports/rp_6d3d70e31ddc9e0c) | windows+nvidia+nvidia-proprietary+dgpu+window `NVIDIA GeForce RTX 3050 Ti Laptop GPU, 621.1.0` `AMD Ryzen 7 5800H with Radeon Graphics, 16 GB RAM` | | `linux+radv` | [1](https://beanstalk.magicbean.dev/reports/rp_3f3555bbbf64c12c) | linux+amd+radv+dgpu `AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1` `AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM` | | `linux+radv` | [2](https://beanstalk.magicbean.dev/reports/rp_0c1cb7732b60e6c8) | linux+amd+radv+igpu `AMD Radeon 890M Graphics (RADV STRIX1), 26.1.99` `AMD Ryzen Z2 Extreme, 32 GB RAM` | </details> </details>
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left. The numeric check mode and AI attribution are fixed. The complete performance gain against main and live coverage of CPU-owned-word cuts and other affected Tier 1 systems remain unverified. Recommend approval; not approved on the forge.

The change optimizes Vulkan write-back bookkeeping and adds a check mode for comparing paths. It adds bookkeeping and a default-on switch; the cost and gain of the complete change against main remain unmeasured.

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

  • L3: The reported A/B comparison does not establish the performance of the complete change against main. When: Both sides run the PR build, including its added mode reads and other unconditional changes, and use a reduced internal resolution rather than the prescribed player settings. Do: Measure main and this head with interleaved runs at the device's normal resolution and preset, including Market and a heavy scene; report frame times and lows.
  • L4 gpu/vk/vk_memory.cpp:7586: The live parity run did not exercise any CPU-owned-word cuts, and the other affected Tier 1 systems have not been tested. When: The reported 121,676 checks were all rejects, leaving the intersection and partially resident sparse-block paths unverified in gameplay; AMD, Linux and Steam Deck results are also absent. Do: Run extended sparse-heavy gameplay with check mode and active cuts on the affected Tier 1 hardware and operating systems, and report mismatches and performance.

Since the last review (on 47f4b60557)
Resolved: L1 (The parser does not recognize the advertised numeric check value.); L2 (The checklist claims AI assistance is recorded, but the only commit has no Assisted-by or…)
Still open: L3 (The reported A/B comparison does not establish the performance of the complete change agai…); L4 (The live parity run did not exercise any CPU-owned-word cuts, and the other affected Tier…)

Checks: Still running: 10 checks.

Also noticed (1; not asked for, not blocking)
  • The requested Test Farm coverage remains pending; the network is closed, so a farm request could not be submitted.
More: does it help, other systems, switches, what was read

Does it help: Unproven against main. The reported five interleaved runs on Windows with an RTX 4060 show 81.74 versus 80.38 FPS and improved lows, but both sides use the PR build, so they do not measure the complete change against its base.

Other systems: The write-back paths affect Vulkan rendering across GPU vendors and operating systems. The reported live check covered Windows and NVIDIA but had zero CPU-owned-word cuts; AMD, Linux and Steam Deck coverage is pending.

Switches: RX_VK_WB_CPU_WORDS_FAST is added, defaulting to 1; 0 selects the old paths and check or 2 compares paths. Whether the default is justified for the complete change awaits the main-versus-head measurement.

Reviewed: a1a75e6d8c against 56823e27a1: Read the changed parser and its behavioral tests, the environment helper, commit metadata, repository rules and PR template; inspected the write-back diff and relevant call sites. The full large renderer files, generated material and recorded runs were not read in full.; nothing run (a code review).

Checked and fine:

  • The numeric check value reaches the same check mode as the named value.
  • The parser tests cover numeric check mode and include a broken variant that removes it.
  • The fix retains the default-on optimization and its runtime mode handoff.

Testing: No commands that build or run code were executed. The author's reported checks passed; CI is still running. Live CPU-owned-word cuts, Tier 1 hardware coverage and main-versus-head performance measurements are pending.

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


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

**Recommendation: Approve.** The code is ready: only testing is left. The numeric check mode and AI attribution are fixed. The complete performance gain against main and live coverage of CPU-owned-word cuts and other affected Tier 1 systems remain unverified. Recommend approval; not approved on the forge. The change optimizes Vulkan write-back bookkeeping and adds a check mode for comparing paths. It adds bookkeeping and a default-on switch; the cost and gain of the complete change against main remain unmeasured. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L3**: The reported A/B comparison does not establish the performance of the complete change against main. *When:* Both sides run the PR build, including its added mode reads and other unconditional changes, and use a reduced internal resolution rather than the prescribed player settings. **Do:** Measure main and this head with interleaved runs at the device's normal resolution and preset, including Market and a heavy scene; report frame times and lows. - **L4** `gpu/vk/vk_memory.cpp:7586`: The live parity run did not exercise any CPU-owned-word cuts, and the other affected Tier 1 systems have not been tested. *When:* The reported 121,676 checks were all rejects, leaving the intersection and partially resident sparse-block paths unverified in gameplay; AMD, Linux and Steam Deck results are also absent. **Do:** Run extended sparse-heavy gameplay with check mode and active cuts on the affected Tier 1 hardware and operating systems, and report mismatches and performance. **Since the last review** (on 47f4b605572e) Resolved: L1 (The parser does not recognize the advertised numeric check value.); L2 (The checklist claims AI assistance is recorded, but the only commit has no Assisted-by or…) Still open: L3 (The reported A/B comparison does not establish the performance of the complete change agai…); L4 (The live parity run did not exercise any CPU-owned-word cuts, and the other affected Tier…) **Checks:** Still running: 10 checks. <details> <summary>Also noticed (1; not asked for, not blocking)</summary> - The requested Test Farm coverage remains pending; the network is closed, so a farm request could not be submitted. </details> <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven against main. The reported five interleaved runs on Windows with an RTX 4060 show 81.74 versus 80.38 FPS and improved lows, but both sides use the PR build, so they do not measure the complete change against its base. **Other systems:** The write-back paths affect Vulkan rendering across GPU vendors and operating systems. The reported live check covered Windows and NVIDIA but had zero CPU-owned-word cuts; AMD, Linux and Steam Deck coverage is pending. **Switches:** RX_VK_WB_CPU_WORDS_FAST is added, defaulting to 1; 0 selects the old paths and check or 2 compares paths. Whether the default is justified for the complete change awaits the main-versus-head measurement. **Reviewed:** a1a75e6d8c80 against 56823e27a13a: Read the changed parser and its behavioral tests, the environment helper, commit metadata, repository rules and PR template; inspected the write-back diff and relevant call sites. The full large renderer files, generated material and recorded runs were not read in full.; nothing run (a code review). **Checked and fine:** - The numeric check value reaches the same check mode as the named value. - The parser tests cover numeric check mode and include a broken variant that removes it. - The fix retains the default-on optimization and its runtime mode handoff. **Testing:** No commands that build or run code were executed. The author's reported checks passed; CI is still running. Live CPU-owned-word cuts, Tier 1 hardware coverage and main-versus-head performance measurements are pending. **Overlaps and merge order:** Not checked; network access is closed. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
Owner

Independent Linux Market A/B on PR head a1a75e6d8c80. RX_VK_WB_CPU_WORDS_FAST defaults to on in this revision.

Within the run-to-run spread. Median average FPS changed by -0.88%.

Metric Off (0) On (1)
Average FPS, each run 117.80 / 128.66 123.68 / 120.62
Average FPS, median 123.23 122.15
1% low FPS (1000 ÷ p99) 86.89 89.31
Median frame time 7.88 ms 7.90 ms
p99 frame time 11.60 ms 11.20 ms
Frames of 50 ms or more, each run 1 / 0 0 / 4

Market (child), Linux 7.3.3-1-cachyos, RTX 3090, NVIDIA 620.70.06, 1280x720, 50% (640x360), uncapped with V-Sync and frame generation off. Two interleaved 30-second captures per side on the same PR binary, each after pipeline warm-up. Frame-time and 1% low rows report the median across the two captures.

Independent Linux Market A/B on PR head `a1a75e6d8c80`. `RX_VK_WB_CPU_WORDS_FAST` defaults to on in this revision. **Within the run-to-run spread.** Median average FPS changed by **-0.88%**. | Metric | Off (`0`) | On (`1`) | |---|---:|---:| | Average FPS, each run | 117.80 / 128.66 | 123.68 / 120.62 | | Average FPS, median | 123.23 | 122.15 | | 1% low FPS (1000 ÷ p99) | 86.89 | 89.31 | | Median frame time | 7.88 ms | 7.90 ms | | p99 frame time | 11.60 ms | 11.20 ms | | Frames of 50 ms or more, each run | 1 / 0 | 0 / 4 | Market (child), Linux 7.3.3-1-cachyos, RTX 3090, NVIDIA 620.70.06, 1280x720, 50% (640x360), uncapped with V-Sync and frame generation off. Two interleaved 30-second captures per side on the same PR binary, each after pipeline warm-up. Frame-time and 1% low rows report the median across the two captures.
Owner
@rebase
Member

I rebased this pull request onto main (b552589596): the new head is a56e548849.

Conflicts resolved

  • gpu/vk/vk_main.cpp: Kept the base branch’s texture and adaptive-part close summaries and the pull request’s CPU-word fast-path close summary.

Nothing was built or run: read the resolution before merging.


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

I rebased this pull request onto `main` (b55258959636): the new head is a56e54884966. **Conflicts resolved** - gpu/vk/vk_main.cpp: Kept the base branch’s texture and adaptive-part close summaries and the pull request’s CPU-word fast-path close summary. Nothing was built or run: read the resolution before merging. --- <sub>Automated rebase by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
BeanBot force-pushed perf/vk-wb-cpu-words-fast from a1a75e6d8c
Some checks failed
PR description / Title and description (pull_request_target) Successful in 5s
beanstalk/approval approved by HumanBean (reviewed)
beanstalk/nvidia 1/1 fail
beanstalk/windows+nvidia 2/1 fail
beanstalk/amd 0/1 pass, 2 running, 0 queued
beanstalk/linux+radv 2/1 pass
beanstalk/intel 0/1 pass, 0 running, 2 queued
beanstalk/steamdeck 0/1 pass, 0 running, 2 queued
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
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 a56e548849
Some checks failed
beanstalk/approval not approved yet
PR description / Title and description (pull_request_target) Successful in 6s
CI / What the change needs (pull_request) Successful in 8s
CI / Third-party parts and guide screenshots (pull_request) Failing after 9s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 12s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Successful in 4m44s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Successful in 1m59s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 4m44s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 4m54s
CI / Website build and checks (pull_request) Failing after 29s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 23m18s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 39m37s
2026-12-02 16:49:15 +00:00
Compare
Member

Beanstalk test farm

Commit a56e548 · approved by nobody yet · dashboard

A member of BigBeans can review this commit and comment @Beanstalk to test it.

<!-- beanstalk:sticky --> ### Beanstalk test farm Commit `a56e548` · approved by nobody yet · [dashboard](https://beanstalk.magicbean.dev/prs/2997) A member of `BigBeans` can review this commit and comment `@Beanstalk` to test it.
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left. The complete change has not yet shown a gain against main, and the live parity run did not exercise CPU-owned-word cuts. The remaining Tier 1 parity coverage is also pending. Recommend approval; not approved on the forge.

The change replaces CPU-owned-word searches with a page bitset and adds several write-back fast paths. It may reduce replay-thread work, at the cost of more state and synchronization paths that need live coverage.

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

  • L3: The reported A/B comparison does not establish the performance of the complete change against main. When: Both sides run the PR build, including its added mode reads and other unconditional changes, and use a reduced internal resolution rather than the prescribed player settings. Do: Measure main and this head with interleaved runs at the device's normal resolution and preset, including Market and a heavy scene; report frame times and lows.
  • L4 gpu/vk/vk_memory.cpp:7586: The live parity run did not exercise any CPU-owned-word cuts, and the other affected Tier 1 systems have not been tested. When: The reported 121,676 checks were all rejects, leaving the intersection and partially resident sparse-block paths unverified in gameplay; AMD, Linux and Steam Deck results are also absent. Do: Run extended sparse-heavy gameplay with check mode and active cuts on the affected Tier 1 hardware and operating systems, and report mismatches and performance.

Since the last review (on a1a75e6d8c)
Still open: L3 (The reported A/B comparison does not establish the performance of the complete change agai…); L4 (The live parity run did not exercise any CPU-owned-word cuts, and the other affected Tier…)

Checks: Still running: 11 checks.

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

Does it help: Unproven against main. The author's five Windows RTX 4060 runs reported +1.68% FPS and improved lows, but compared two modes of the PR build; an independent Linux RTX 3090 comparison of those modes found a -0.88% median FPS change within run-to-run spread.

Other systems: The write-back paths affect Vulkan on Windows and Linux across GPU vendors, including Steam Deck. Windows NVIDIA Market was tested in check mode, but it recorded zero cuts; AMD and Steam Deck check runs and Linux parity coverage remain pending.

Switches: RX_VK_WB_CPU_WORDS_FAST is added, defaulting to 1; 0 selects baseline paths and check or 2 enables parity checks. The default's benefit for the complete change remains unproven against main.

Reviewed: a56e548849 against b552589596: Read AGENTS.md and CONTRIBUTING.md, the rebase comparison in vk_main.cpp, and the CPU-word and write-back code relevant to the ledger. Skimmed the remaining diff and tests; did not read every changed code file in full. The pull request template and standards were located but not read in full.; nothing run (a code review).

Checked and fine:

  • The rebase preserves the PR's vk_main.cpp additions; the changed surrounding close calls come from the new base.
  • The reported Windows check-mode run recorded 121,676 checks and zero mismatches.

Testing: No commands that build or run the project were executed. The reported game-free checks passed before the rebase; CI is still running on this head.

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


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

**Recommendation: Approve.** The code is ready: only testing is left. The complete change has not yet shown a gain against main, and the live parity run did not exercise CPU-owned-word cuts. The remaining Tier 1 parity coverage is also pending. Recommend approval; not approved on the forge. The change replaces CPU-owned-word searches with a page bitset and adds several write-back fast paths. It may reduce replay-thread work, at the cost of more state and synchronization paths that need live coverage. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L3**: The reported A/B comparison does not establish the performance of the complete change against main. *When:* Both sides run the PR build, including its added mode reads and other unconditional changes, and use a reduced internal resolution rather than the prescribed player settings. **Do:** Measure main and this head with interleaved runs at the device's normal resolution and preset, including Market and a heavy scene; report frame times and lows. - **L4** `gpu/vk/vk_memory.cpp:7586`: The live parity run did not exercise any CPU-owned-word cuts, and the other affected Tier 1 systems have not been tested. *When:* The reported 121,676 checks were all rejects, leaving the intersection and partially resident sparse-block paths unverified in gameplay; AMD, Linux and Steam Deck results are also absent. **Do:** Run extended sparse-heavy gameplay with check mode and active cuts on the affected Tier 1 hardware and operating systems, and report mismatches and performance. **Since the last review** (on a1a75e6d8c80) Still open: L3 (The reported A/B comparison does not establish the performance of the complete change agai…); L4 (The live parity run did not exercise any CPU-owned-word cuts, and the other affected Tier…) **Checks:** Still running: 11 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven against main. The author's five Windows RTX 4060 runs reported +1.68% FPS and improved lows, but compared two modes of the PR build; an independent Linux RTX 3090 comparison of those modes found a -0.88% median FPS change within run-to-run spread. **Other systems:** The write-back paths affect Vulkan on Windows and Linux across GPU vendors, including Steam Deck. Windows NVIDIA Market was tested in check mode, but it recorded zero cuts; AMD and Steam Deck check runs and Linux parity coverage remain pending. **Switches:** RX_VK_WB_CPU_WORDS_FAST is added, defaulting to 1; 0 selects baseline paths and check or 2 enables parity checks. The default's benefit for the complete change remains unproven against main. **Reviewed:** a56e54884966 against b55258959636: Read AGENTS.md and CONTRIBUTING.md, the rebase comparison in vk_main.cpp, and the CPU-word and write-back code relevant to the ledger. Skimmed the remaining diff and tests; did not read every changed code file in full. The pull request template and standards were located but not read in full.; nothing run (a code review). **Checked and fine:** - The rebase preserves the PR's vk_main.cpp additions; the changed surrounding close calls come from the new base. - The reported Windows check-mode run recorded 121,676 checks and zero mismatches. **Testing:** No commands that build or run the project were executed. The reported game-free checks passed before the rebase; CI is still running on this head. **Overlaps and merge order:** Not checked; network access is unavailable. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its rebase. Nothing was run; a maintainer decides.</sub>
HumanBean deleted branch perf/vk-wb-cpu-words-fast 2026-12-02 16:49:48 +00:00
Owner

AMD Lab Market A/B on PR head a56e54884966, using RX_VK_WB_CPU_WORDS_FAST=0 and RX_VK_WB_CPU_WORDS_FAST=1 on the same build.

Within the run-to-run spread. Median average FPS changed by +3.23%.

Metric A (0) B (1)
Average FPS, each capture 53.62 / 54.78 / 54.56 57.36 / 53.00 / 56.32
Average FPS, median 54.56 56.32
1% low FPS (1000 ÷ p99), median 26.11 40.40
Median frame time 17.88 ms 17.49 ms
p99 frame time, median 38.29 ms 24.75 ms
Frames of 50 ms or more, each capture 24 / 9 / 7 5 / 13 / 5

Market (child), headless Linux 7.3.3-1-cachyos, Core i7-9700K, Radeon RX 580 with Mesa RADV 3:26.2.6-1, 1280x720 output and 50% (640x360) render scale, uncapped with V-Sync and frame generation off. Three alternating pairs, 40 seconds per capture after warm-up.

After warm-up, the harness still flagged pipeline or shader activity in 56 / 19 / 27 frames on side A and 19 / 67 / 25 on side B across the three captures. The FPS and tail numbers include those frames.

AMD Lab Market A/B on PR head `a56e54884966`, using `RX_VK_WB_CPU_WORDS_FAST=0` and `RX_VK_WB_CPU_WORDS_FAST=1` on the same build. **Within the run-to-run spread.** Median average FPS changed by **+3.23%**. | Metric | A (`0`) | B (`1`) | |---|---:|---:| | Average FPS, each capture | 53.62 / 54.78 / 54.56 | 57.36 / 53.00 / 56.32 | | Average FPS, median | 54.56 | 56.32 | | 1% low FPS (1000 ÷ p99), median | 26.11 | 40.40 | | Median frame time | 17.88 ms | 17.49 ms | | p99 frame time, median | 38.29 ms | 24.75 ms | | Frames of 50 ms or more, each capture | 24 / 9 / 7 | 5 / 13 / 5 | Market (child), headless Linux 7.3.3-1-cachyos, Core i7-9700K, Radeon RX 580 with Mesa RADV 3:26.2.6-1, 1280x720 output and 50% (640x360) render scale, uncapped with V-Sync and frame generation off. Three alternating pairs, 40 seconds per capture after warm-up. After warm-up, the harness still flagged pipeline or shader activity in 56 / 19 / 27 frames on side A and 19 / 67 / 25 on side B across the three captures. The FPS and tail numbers include those frames.
Author
Contributor

This was merged (head a56e548, after BeanBot's rebase) before I answered. Here is a summary of the results posted since. The description can't be edited after the merge (our forge tooling refuses merged PRs), so they are recorded here.

Test farm (Beanstalk, run on a1a75e6, main against the PR): no frame-time regression. The three failures don't come from the change. Frame time p99 (ms), main → PR:

Tester Market Hyrule Field Water Temple Result
RTX 3090, Windows 14.62 → 14.17 9.80 → 9.89 10.04 → 9.64 pass
RTX 3070, Windows 16.66 → 16.23 9.16 → 9.14 8.99 → 9.12 fail: temple picture
RTX 4070 Ti SUPER, Windows 13.56 → 13.07 8.23 → 8.21 8.17 → 8.21 fail: temple picture
RX 9070 XT, RADV, Linux 17.32 → 15.94 12.15 → 11.68 12.74 → 10.78 pass
Radeon 890M, RADV, Linux 23.10 → 22.16 18.48 → 18.86 18.02 → 18.36 pass
RTX 3050 Ti Laptop, Windows 41.17 → — 43.92 → — 29.01 → — fail: crashes, no usable PR start

What the failures are:

  • Water Temple pictures (RTX 3070: 0.43 against main's 0.15 with itself; RTX 4070 Ti SUPER: 0.66 against 0.10): I looked at both pairs. The PR side was taken while the scene was still fading in after the teleport: the whole frame is darker, Link is a step behind, and the HUD hasn't appeared. The geometry and textures are the same as main's, and nothing is missing or corrupted. The farm takes the picture at a fixed time after the teleport, so a slower load on one side shows up as a picture difference. This PR's write-back changes could plausibly make the PR side load a little later. The frame-time numbers in the table don't show that, but a re-run with the picture taken after the fade would settle it.
  • RTX 3050 Ti Laptop: the runs end with exit code 0xC0000409 on main too: one of main's two performance starts and every start of the check-mode cell, on both sides. The farm marks the check-mode cell as "the PC, not the PR". The PR's Market picture there is an all-black frame (a failed capture, also seen on main in other PRs' runs).
  • Check mode on every PC that ran it: about 112,000–117,000 checks each, 0 mismatches, but also 0 cuts (all rejects). So BeanBot's L4 point still stands: the intersection and partially resident sparse-block paths have not been exercised in gameplay.

@HumanBean's A/Bs, RX_VK_WB_CPU_WORDS_FAST=0 against =1 on the same build: thanks.

  • Linux Market, RTX 3090: −0.88% median FPS (123.23 → 122.15), within the spread. p99 went from 11.60 to 11.20 ms. Frames of 50 ms or more were 1/0 off and 0/4 on.
  • AMD Lab Market, RX 580 / RADV: +3.23% median FPS (54.56 → 56.32), within the run-to-run spread. p99 went from 38.29 to 24.75 ms, but both sides had pipeline or shader activity after warm-up (56/19/27 against 19/67/25 frames), so I don't read the tails as a gain.

Neither A/B confirms the +1.68% from my Windows run, and neither shows a slowdown.

BeanBot's testing items: L3 (main against head at player settings) is partly answered: the farm compared main against the PR on 5 PCs, but at fixed 720p custom settings, not player presets. L4 (live cuts) is still open (see above). The Steam Deck and Intel jobs did not report.

No code change and nothing run from my side for this reply.

This was merged (head a56e548, after BeanBot's rebase) before I answered. Here is a summary of the results posted since. The description can't be edited after the merge (our forge tooling refuses merged PRs), so they are recorded here. **Test farm (Beanstalk, run on a1a75e6, main against the PR): no frame-time regression. The three failures don't come from the change.** Frame time p99 (ms), main → PR: | Tester | Market | Hyrule Field | Water Temple | Result | |---|---:|---:|---:|---| | RTX 3090, Windows | 14.62 → 14.17 | 9.80 → 9.89 | 10.04 → 9.64 | pass | | RTX 3070, Windows | 16.66 → 16.23 | 9.16 → 9.14 | 8.99 → 9.12 | fail: temple picture | | RTX 4070 Ti SUPER, Windows | 13.56 → 13.07 | 8.23 → 8.21 | 8.17 → 8.21 | fail: temple picture | | RX 9070 XT, RADV, Linux | 17.32 → 15.94 | 12.15 → 11.68 | 12.74 → 10.78 | pass | | Radeon 890M, RADV, Linux | 23.10 → 22.16 | 18.48 → 18.86 | 18.02 → 18.36 | pass | | RTX 3050 Ti Laptop, Windows | 41.17 → — | 43.92 → — | 29.01 → — | fail: crashes, no usable PR start | What the failures are: - **Water Temple pictures (RTX 3070: 0.43 against main's 0.15 with itself; RTX 4070 Ti SUPER: 0.66 against 0.10):** I looked at both pairs. The PR side was taken while the scene was still fading in after the teleport: the whole frame is darker, Link is a step behind, and the HUD hasn't appeared. The geometry and textures are the same as main's, and nothing is missing or corrupted. The farm takes the picture at a fixed time after the teleport, so a slower load on one side shows up as a picture difference. This PR's write-back changes could plausibly make the PR side load a little later. The frame-time numbers in the table don't show that, but a re-run with the picture taken after the fade would settle it. - **RTX 3050 Ti Laptop:** the runs end with exit code 0xC0000409 on main too: one of main's two performance starts and every start of the check-mode cell, on both sides. The farm marks the check-mode cell as "the PC, not the PR". The PR's Market picture there is an all-black frame (a failed capture, also seen on main in other PRs' runs). - **Check mode on every PC that ran it:** about 112,000–117,000 checks each, 0 mismatches, but also 0 cuts (all rejects). So BeanBot's L4 point still stands: the intersection and partially resident sparse-block paths have not been exercised in gameplay. **@HumanBean's A/Bs, `RX_VK_WB_CPU_WORDS_FAST=0` against `=1` on the same build:** thanks. - Linux Market, RTX 3090: −0.88% median FPS (123.23 → 122.15), within the spread. p99 went from 11.60 to 11.20 ms. Frames of 50 ms or more were 1/0 off and 0/4 on. - AMD Lab Market, RX 580 / RADV: +3.23% median FPS (54.56 → 56.32), within the run-to-run spread. p99 went from 38.29 to 24.75 ms, but both sides had pipeline or shader activity after warm-up (56/19/27 against 19/67/25 frames), so I don't read the tails as a gain. Neither A/B confirms the +1.68% from my Windows run, and neither shows a slowdown. **BeanBot's testing items:** L3 (main against head at player settings) is partly answered: the farm compared main against the PR on 5 PCs, but at fixed 720p custom settings, not player presets. L4 (live cuts) is still open (see above). The Steam Deck and Intel jobs did not report. No code change and nothing run from my side for this reply.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
5 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!2997
No description provided.