perf(vk): honor NVN2 CPU_NO_ACCESS pool flags and add AVX2 mirror_sync #2858

Open
siantm wants to merge 1 commit from siantm/Longshot:perf/pc-discrete-memory-coherence into main
Contributor

Summary

On main (1e782fa4b; HOS_COLLECT_AVX2 dropped, main has it as HOS_COLLECT_VECTOR): is_gpu_only() treats only CPU_NO_ACCESS (0x1) pools as GPU-only, so PHYSICAL pools (0x104 = CPU_CACHED | PHYSICAL) stay CPU-mappable and tracked; GPU-only pools skip routine write-watch scans, eager captures and GPU-to-CPU write-backs (HOS_POOL_FLAGS, RX_VK_POOL_FLAGS; nvn_gpu_write's host writes are forwarded); range_all_gpu_only() accounts for overlapping pools through a running end (set_reach), so a long CPU-accessible pool that starts before shorter GPU-only ones is not missed; and mirror_sync() gets an AVX2 page-generation scan, reusable staging and a cached cap_bufs lookup (RX_VK_MIRROR_SYNC_FAST; the SIEVE/S3-FIFO eviction experiment is dropped). The host hands the pools' flags to the renderer as MkwVkHost.gpu_pools_flags (API version 90). On KokiriForest_Child (1280x720) memsync_csv_mean drops -9.2% (0.630 -> 0.572 ms); frame rate and lows are within run-to-run spread (Measurements). Read first: gpu/vk/pool_flags_policy.h, hos_gpu_track_flags() / hos_gpu_pools_with_flags() in host/nvdrv.c, and pool_flags_skip_writeback() / mirror_sync() in gpu/vk/vk_memory.cpp.

Testing

Tested: Windows 11, Intel Core i7-9700 (8C/8T), NVIDIA GeForce RTX 4060 (driver 621.40), built with dev.py pack + dev.py rt. Ran per-switch bisect + 4 interleaved 35 s runs (BASE_1, WIN_1, WIN_2, BASE_2, 3,587–3,784 frames/run, 1280x720, RX_VK_IMMEDIATE=1, RX_VK_FRAME_TRACE=1) with 0 warnings and CPU reads or writes of one left out: 0. Targeted tests/run_all.py checks: 14 passed (test_pool_flags, test_mirror_gpu_only, test_mirror_budget, test_mirror_bookkeeping, test_mirror_trim, test_mirror_inherit, test_sparse_mirror, test_wb_learn, test_capture_pool_refresh, test_msync_pass, test_mem_check, test_direct_buffer_writes, test_bind_memo, test_wb_diff_cpu_writes), 1 failed pre-existing on origin/main @ 28cb22b9e (test_switch_table.py: upstream LONGSHOT_LAUNCHER_STARTUP in host/launcher_startup.h:9; all 3 new switches in gpu/vk/switches.def passed).

Rebased on main 1e782fa4b (3 Dec): game-free checks on the head, Windows / llvm-mingw, through the PC's queue: 25 targeted tests/run_all.py --exact checks passed on 33f926954 (pool flags, capture refresh, API-member, write-back and mirror checks; list in the 3 Dec comment). Syntax-only compiles of gpu/vk/vk_memory.cpp (with and without -march=x86-64-v3, so the AVX2 and scalar mirror_sync paths both compile) and of host/nvdrv.c, host/nvn_native.c, host/rx_backend.c (Windows target): clean. Not run in game after the rebase (no runtime build on this PC).

Still to test:

  • @Beanstalk linux: build on Linux/AMD RADV and run python -I -B tests/run_all.py plus a multi-area playthrough, expecting test_pool_flags, test_capture_pool_refresh, and test_direct_buffer_writes to pass with clean mirror coherence (@Beanstalk linux).
  • @Beanstalk windows: run full CI check suite and multi-area memory pressure route, expecting 0 left-out write-back faults across all areas (@Beanstalk windows).
  • @Beanstalk windows+nvidia: a 4–6 GB card (the farm's GTX 980 / RTX 3050 class) in pool-mirror-multi-area with vram_budget, where RX_VK_POOL_FLAGS and RX_VK_MIRROR_SYNC_FAST could matter, base against head.

Measurements

Verdict: within spread on frame rate, measured on two PCs; a real -9.2% in memsync_csv_mean on one. On my i7-9700 / RTX 4060 the memory sync's mean drops 0.630 -> 0.572 ms (non-overlapping 0.572, 0.572 vs 0.608, 0.652), but Avg FPS is +0.35% and the 1% / 0.1% lows' per-run ranges overlap (60.65, 42.54 vs 54.81, 56.44), so the +7.8% 1% Low is not established. HumanBean's port onto main on an RTX 3090 / Linux PC, each part alone against all off, 2 interleaved pairs (#2886): pool flags -0.9% (157.1 / 159.1 -> 156.1 / 157.1 fps), mirror_sync scan +1.4% (157.0 / 157.2 -> 158.2 / 160.3), both inside the 155.9–160.3 fps spread of those runs. The Beanstalk run on the old 72a3074 (base 544229a) could not judge frame times on any target: nvidia and linux+radv lacked the vram_budget setting on that base, and on windows+nvidia (GTX 980, 4 GB) main hung in 2 of its 3 starts and the PR in 1 of 3 (one usable main start, p99 41.0 ms; PR starts 37.9 ms and 1021 ms).

Setup: Windows 11, i7-9700, RTX 4060 (621.40); KokiriForest_Child (kokiri-start), 1280x720 (resolution=0, HOS_RES_SCALE=1.0, quality_preset=6), RX_VK_IMMEDIATE=1, frame_generation=0, HOS_FPS_MAX=1000, HOS_AUDIO=0, RX_VK_FRAME_TRACE=1 (frames.csv), 4 interleaved 35 s runs after 8 s settle comparing RX_VK_POOL_FLAGS=0 HOS_POOL_FLAGS=0 RX_VK_MIRROR_SYNC_FAST=0 vs 1.
Baseline: origin/main @ 28cb22b9e (perf/pc-discrete-memory-coherence with the 3 runtime switches set =0 vs =1).

Before: main eq. (0/0/0) @ f595bb3c0 After: this PR (1/1/1) @ f595bb3c0 Δ
Average FPS (BASE 102.48, 97.52 vs WIN 99.85, 100.84) 100.00 100.35 +0.35%
P50 FPS (BASE 104.82, 101.63 vs WIN 102.67, 103.52) 103.23 103.10 -0.1%
1% Low FPS (BASE 60.65, 42.54 vs WIN 54.81, 56.44) 51.60 55.63 +7.8%
0.1% Low FPS (BASE 33.46, 27.03 vs WIN 26.55, 36.72) 30.25 31.64 +4.6%
P99 frame time (ms) 15.54 14.15 -8.9%
memsync_csv_mean (ms) 0.630 0.572 -9.2%

Risks

If the game ever reads back on CPU from a pool flagged CPU_NO_ACCESS (0x1) without using nvn_gpu_write, excluding it from hos_gpu_guest_ranges or writebacks would leave host data stale; PHYSICAL (0x104) pools remain included. RX_VK_MIRROR_SYNC_FAST assumes kChunkPages (65536) is a multiple of kRegionPages (512). Each optimization has a runtime =0 kill switch (HOS_POOL_FLAGS=0, RX_VK_POOL_FLAGS=0, RX_VK_MIRROR_SYNC_FAST=0). Bumps MKWVK_API_VERSION (89 -> 90), so longshot.exe and longshot_vk.dll must be deployed together.

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.
  • MKWVK_API_VERSION bumped (MkwVkHost or MkwVkRenderer changed in gpu/vk/vk_api.h).
  • 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 `main` (`1e782fa4b`; `HOS_COLLECT_AVX2` dropped, `main` has it as `HOS_COLLECT_VECTOR`): `is_gpu_only()` treats only `CPU_NO_ACCESS` (`0x1`) pools as GPU-only, so `PHYSICAL` pools (`0x104 = CPU_CACHED | PHYSICAL`) stay CPU-mappable and tracked; GPU-only pools skip routine write-watch scans, eager captures and GPU-to-CPU write-backs (`HOS_POOL_FLAGS`, `RX_VK_POOL_FLAGS`; `nvn_gpu_write`'s host writes are forwarded); `range_all_gpu_only()` accounts for overlapping pools through a running end (`set_reach`), so a long CPU-accessible pool that starts before shorter GPU-only ones is not missed; and `mirror_sync()` gets an AVX2 page-generation scan, reusable staging and a cached `cap_bufs` lookup (`RX_VK_MIRROR_SYNC_FAST`; the SIEVE/S3-FIFO eviction experiment is dropped). The host hands the pools' flags to the renderer as `MkwVkHost.gpu_pools_flags` (API version 90). On `KokiriForest_Child` (`1280x720`) `memsync_csv_mean` drops `-9.2%` (`0.630 -> 0.572 ms`); frame rate and lows are within run-to-run spread (Measurements). Read first: `gpu/vk/pool_flags_policy.h`, `hos_gpu_track_flags()` / `hos_gpu_pools_with_flags()` in `host/nvdrv.c`, and `pool_flags_skip_writeback()` / `mirror_sync()` in `gpu/vk/vk_memory.cpp`. ## Testing **Tested:** Windows 11, Intel Core i7-9700 (8C/8T), NVIDIA GeForce RTX 4060 (driver `621.40`), built with `dev.py pack` + `dev.py rt`. Ran per-switch bisect + 4 interleaved 35 s runs (`BASE_1`, `WIN_1`, `WIN_2`, `BASE_2`, `3,587–3,784` frames/run, `1280x720`, `RX_VK_IMMEDIATE=1`, `RX_VK_FRAME_TRACE=1`) with `0` warnings and `CPU reads or writes of one left out: 0`. Targeted `tests/run_all.py` checks: `14 passed` (`test_pool_flags`, `test_mirror_gpu_only`, `test_mirror_budget`, `test_mirror_bookkeeping`, `test_mirror_trim`, `test_mirror_inherit`, `test_sparse_mirror`, `test_wb_learn`, `test_capture_pool_refresh`, `test_msync_pass`, `test_mem_check`, `test_direct_buffer_writes`, `test_bind_memo`, `test_wb_diff_cpu_writes`), `1 failed` pre-existing on `origin/main @ 28cb22b9e` (`test_switch_table.py`: upstream `LONGSHOT_LAUNCHER_STARTUP` in `host/launcher_startup.h:9`; all 3 new switches in `gpu/vk/switches.def` passed). **Rebased on `main` `1e782fa4b` (3 Dec):** game-free checks on the head, Windows / llvm-mingw, through the PC's queue: 25 targeted `tests/run_all.py --exact` checks passed on `33f926954` (pool flags, capture refresh, API-member, write-back and mirror checks; list in the 3 Dec comment). Syntax-only compiles of `gpu/vk/vk_memory.cpp` (with and without `-march=x86-64-v3`, so the AVX2 and scalar `mirror_sync` paths both compile) and of `host/nvdrv.c`, `host/nvn_native.c`, `host/rx_backend.c` (Windows target): clean. Not run in game after the rebase (no runtime build on this PC). **Still to test:** - `@Beanstalk linux`: build on Linux/AMD RADV and run `python -I -B tests/run_all.py` plus a multi-area playthrough, expecting `test_pool_flags`, `test_capture_pool_refresh`, and `test_direct_buffer_writes` to pass with clean mirror coherence (`@Beanstalk linux`). - `@Beanstalk windows`: run full CI check suite and multi-area memory pressure route, expecting `0` left-out write-back faults across all areas (`@Beanstalk windows`). - `@Beanstalk windows+nvidia`: a 4–6 GB card (the farm's GTX 980 / RTX 3050 class) in `pool-mirror-multi-area` with `vram_budget`, where `RX_VK_POOL_FLAGS` and `RX_VK_MIRROR_SYNC_FAST` could matter, base against head. ## Measurements **Verdict:** within spread on frame rate, measured on two PCs; a real `-9.2%` in `memsync_csv_mean` on one. On my i7-9700 / RTX 4060 the memory sync's mean drops `0.630 -> 0.572 ms` (non-overlapping `0.572, 0.572` vs `0.608, 0.652`), but Avg FPS is `+0.35%` and the 1% / 0.1% lows' per-run ranges overlap (`60.65, 42.54` vs `54.81, 56.44`), so the `+7.8%` 1% Low is not established. HumanBean's port onto `main` on an RTX 3090 / Linux PC, each part alone against all off, 2 interleaved pairs ([#2886](https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/2886)): pool flags `-0.9%` (`157.1 / 159.1 -> 156.1 / 157.1` fps), `mirror_sync` scan `+1.4%` (`157.0 / 157.2 -> 158.2 / 160.3`), both inside the `155.9–160.3` fps spread of those runs. The Beanstalk run on the old `72a3074` (base `544229a`) could not judge frame times on any target: `nvidia` and `linux+radv` lacked the `vram_budget` setting on that base, and on `windows+nvidia` (GTX 980, 4 GB) main hung in 2 of its 3 starts and the PR in 1 of 3 (one usable main start, p99 `41.0 ms`; PR starts `37.9 ms` and `1021 ms`). Setup: Windows 11, i7-9700, RTX 4060 (`621.40`); `KokiriForest_Child` (`kokiri-start`), `1280x720` (`resolution=0`, `HOS_RES_SCALE=1.0`, `quality_preset=6`), `RX_VK_IMMEDIATE=1`, `frame_generation=0`, `HOS_FPS_MAX=1000`, `HOS_AUDIO=0`, `RX_VK_FRAME_TRACE=1` (`frames.csv`), 4 interleaved 35 s runs after 8 s settle comparing `RX_VK_POOL_FLAGS=0 HOS_POOL_FLAGS=0 RX_VK_MIRROR_SYNC_FAST=0` vs `1`. Baseline: `origin/main @ 28cb22b9e` (`perf/pc-discrete-memory-coherence` with the 3 runtime switches set `=0` vs `=1`). | | Before: main eq. (`0/0/0`) @ f595bb3c0 | After: this PR (`1/1/1`) @ f595bb3c0 | Δ | |---|---|---|---| | Average FPS (`BASE` 102.48, 97.52 vs `WIN` 99.85, 100.84) | 100.00 | 100.35 | +0.35% | | P50 FPS (`BASE` 104.82, 101.63 vs `WIN` 102.67, 103.52) | 103.23 | 103.10 | -0.1% | | 1% Low FPS (`BASE` 60.65, 42.54 vs `WIN` 54.81, 56.44) | 51.60 | 55.63 | +7.8% | | 0.1% Low FPS (`BASE` 33.46, 27.03 vs `WIN` 26.55, 36.72) | 30.25 | 31.64 | +4.6% | | P99 frame time (ms) | 15.54 | 14.15 | -8.9% | | `memsync_csv_mean` (ms) | 0.630 | 0.572 | -9.2% | ## Risks If the game ever reads back on CPU from a pool flagged `CPU_NO_ACCESS` (`0x1`) without using `nvn_gpu_write`, excluding it from `hos_gpu_guest_ranges` or `writebacks` would leave host data stale; `PHYSICAL` (`0x104`) pools remain included. `RX_VK_MIRROR_SYNC_FAST` assumes `kChunkPages` (`65536`) is a multiple of `kRegionPages` (`512`). Each optimization has a runtime `=0` kill switch (`HOS_POOL_FLAGS=0`, `RX_VK_POOL_FLAGS=0`, `RX_VK_MIRROR_SYNC_FAST=0`). Bumps `MKWVK_API_VERSION` (`89 -> 90`), so `longshot.exe` and `longshot_vk.dll` must be deployed together. ## 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] `MKWVK_API_VERSION` bumped (`MkwVkHost` or `MkwVkRenderer` changed in `gpu/vk/vk_api.h`). - [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,host): honor NVN2 GPU-only pool flags, AVX2 dirty/mirror scans, and SIEVE mirror eviction
Some checks reported errors
Guide screenshots / Guide images and local UI source review (pull_request) Blocked by required conditions
PR description / Title and description (pull_request_target) Successful in 10s
Third-party parts / The same as upstream (pull_request) Blocked by required conditions
Third-party parts / As their notes say (pull_request) Blocked by required conditions
beanstalk/approval approved by HumanBean (reviewed)
beanstalk/windows+nvidia 1/1 fail
beanstalk/nvidia 0/1 pass, 2 error
beanstalk/linux+radv 0/1 pass, 2 error
beanstalk/intel 0/1 pass, 0 running, 1 queued
beanstalk/igpu 0/1 pass, 2 error
beanstalk/windows+amd 0/1 pass, 2 error
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
72a3074df3
Exclude NVN_MEMORY_POOL_FLAGS_CPU_NO_ACCESS (0x1) and PHYSICAL (0x100) pools from eager submit captures, write-watch scans, and GPU->CPU write-back diffing while forwarding nvn_gpu_write ranges; vectorize collect_in and mirror_sync page-generation scans with AVX2 and replace full LRU sort in mirrors_give_back with a SIEVE clock hand.

Assisted-by: Antigravity
Author
Contributor

Tested in game: Windows 11, NVIDIA GeForce RTX 4060 (driver 621.40), KokiriForest_Child (kokiri-start) at 2560x1440 and 1280x720: 21.7% lower replay memory sync (0.645 -> 0.505 ms), 45-46 GPU-only write-backs skipped per 600 submits, 28 MB shadow VRAM saved at 1440p, 61.65 vs 58.69 mean wall FPS at 720p, zero sync errors.

Tested in game: Windows 11, NVIDIA GeForce RTX 4060 (driver 621.40), KokiriForest_Child (kokiri-start) at 2560x1440 and 1280x720: 21.7% lower replay memory sync (0.645 -> 0.505 ms), 45-46 GPU-only write-backs skipped per 600 submits, 28 MB shadow VRAM saved at 1440p, 61.65 vs 58.69 mean wall FPS at 720p, zero sync errors.
Owner

@Beanstalk

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

Commit 72a3074 · approved by HumanBean (reviewed) · dashboard

⚠️ Note: The plan cannot run the requested repository test suite or a multi-hour pressure playthrough; the tight budget encourages eviction but does not guarantee it occurs.
⚠️ Note: Replay memory-sync logs and VRAM are collected when available, but the plan does not isolate the five switches or directly measure scan ranges, write-back bytes, or shadow memory.

Started at 03:21 UTC.

Target Result Reports Frame time p99 (ms), main → PR VRAM peak (MB) Crashes
windows+nvidia ❌ fail 2 1 2 41.0 → 529.5 (+1190%) 2,855 → 2,993 (+5%) 1 PR run
nvidia ⚠️ couldn't be judged 2 1 2 11.1 → 11.8 (+6%) 6,185 → 6,105 (−1%) none
linux+radv ⚠️ couldn't be judged (an outlier) 2 1 2 18.1 → 17.4 (−4%) 6,498 → 6,398 (−2%) none
windows+amd ⚠️ couldn't be judged 2 1 2 — — 6 PR runs
intel ⏳ queued 1 1 — — 3 PR runs
igpu ⚠️ couldn't be judged (an outlier) 2 1 2 29.3 → 29.0 (−1%) 3,696 → 3,740 (+1%) none

Why it failed

  • windows+nvidia: pool-mirror-multi-area crash: 1 PR run crashed

Couldn't be judged: the tester's PC could not finish the test. The farm tries another PC, or the same one after a fix; it says nothing about the PR on its own.

  • windows+nvidia, report 2: Insufficient frame-time evidence for 6 required comparison(s). See rule results. a step ran out of time: timeout: the save did not load into play within 900 s (the state boot, boot_save none: A pressed) (then the game was in boot, on no kno
  • nvidia, report 1: Insufficient frame-time evidence for 6 required comparison(s). See rule results. the game refused a step: not_found: no setting vram_budget
  • nvidia, report 2: Insufficient frame-time evidence for 6 required comparison(s). See rule results. a step ran out of time: timeout: the save did not load into play within 900 s (the state boot, boot_save none: A pressed) (then the game was in boot, on no kno
  • linux+radv, report 1: Insufficient frame-time evidence for 6 required comparison(s). See rule results. the game refused a step: not_found: no setting vram_budget
  • linux+radv, report 2: Insufficient frame-time evidence for 6 required comparison(s). See rule results. the game refused a step: not_found: no setting vram_budget
  • windows+amd, report 1: Insufficient frame-time evidence for 7 required comparison(s). See rule results.
  • windows+amd, report 2: Insufficient frame-time evidence for 7 required comparison(s). See rule results.
  • intel, report 1: Insufficient frame-time evidence for 7 required comparison(s). See rule results.
  • and 2 more, in the reports
What was tested

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

Compare the PR with main on Windows NVIDIA, Linux RADV, Windows AMD, Intel, NVIDIA, and integrated-GPU testers. Each side runs three starts, measuring uncapped frame times for 25 seconds each in Kokiri Forest, Hyrule Field, and the Forest Temple; the latter two use a tight VRAM budget to exercise mirror pressure. Stationary pictures, memory use, and replay memory-sync logs are also collected. A crash, a picture difference beyond the noise allowance, or a frame-time regression over 15% fails the PR.

  • Where: windows+nvidia (1-2 reports), nvidia (1-2 reports), linux+radv (1-2 reports), windows+amd (1-2 reports), intel (1-2 reports), igpu (1-2 reports).
  • pool-mirror-multi-area: from the repository's save kokiri-start (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 Kokiri Forest, take the picture forest to compare with main, measure forest for 25 s (after 10 s warm-up), set vram_budget to 1, teleport to Hyrule Field, take the picture field to compare with main, measure field for 25 s (after 10 s warm-up), teleport to Forest Temple, take the picture temple to compare with main, measure temple for 25 s (after 10 s warm-up); 3 runs on each side.
  • Measured: crashes, frame times, stutters and hitches, VRAM use, memory and CPU time, numbers from the game's log.
  • The PR fails if: it crashes; or a picture differs from main by more than 25%; or frame time (p99) is more than 15% above main; or frame time (worst 1%) is more than 15% above main.
  • Time: about 42 min of game runs per tester (6 game starts), plus the two builds.
Measurements on `windows+nvidia`, for the PR description

Verdict: fail on windows+nvidia (2 reports): pool-mirror-multi-area crash failed.

Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+xess NVIDIA GeForce GTX 980, 582.78.0 Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, 32 GB RAM; 2: windows+nvidia+nvidia-proprietary+dgpu+dlss+xess NVIDIA GeForce RTX 5050 Laptop GPU, 621.40.0 AMD Ryzen 5 220 w/ Radeon 740M Graphics, 16 GB RAM
Scene: pool-mirror-multi-area, from the repository's save kokiri-start (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); 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); pool-mirror-multi-area: 3 game starts a side, forest 25 s after 10 s warm-up, field 25 s after 10 s warm-up, temple 25 s after 10 s warm-up; 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 @ 544229a After: this PR @ 72a3074
pool-mirror-multi-area · forest · frame time (p99) (ms) 41.0 529.5 (+1190%)
pool-mirror-multi-area · forest · frame time (worst 1%) (ms) 44.4 578.6 (+1204%)
pool-mirror-multi-area · forest · peak VRAM (MB) 2,855 2,993 (+5%)

Flags and settings

None: the plan varied no setting, switch or build option.

As Markdown for the PR description:

## Measurements

**Verdict:** fail on windows+nvidia (2 reports): `pool-mirror-multi-area crash` failed.

Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+xess `NVIDIA GeForce GTX 980, 582.78.0` `Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, 32 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu+dlss+xess `NVIDIA GeForce RTX 5050 Laptop GPU, 621.40.0` `AMD Ryzen 5 220 w/ Radeon 740M Graphics, 16 GB RAM`  
Scene: pool-mirror-multi-area, from the repository's save kokiri-start (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); 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); pool-mirror-multi-area: 3 game starts a side, forest 25 s after 10 s warm-up, field 25 s after 10 s warm-up, temple 25 s after 10 s warm-up; 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 @ 544229a | After: this PR @ 72a3074 |
|---|---|---|
| pool-mirror-multi-area · forest · frame time (p99) (ms) | 41.0 | 529.5 (+1190%) |
| pool-mirror-multi-area · forest · frame time (worst 1%) (ms) | 44.4 | 578.6 (+1204%) |
| pool-mirror-multi-area · forest · peak VRAM (MB) | 2,855 | 2,993 (+5%) |

**Flags and settings**

None: the plan varied no setting, switch or build option.
Measurements on `nvidia`, for the PR description

Verdict: could not be judged on nvidia (2 reports): required frame-time comparison inconclusive (fewer than two usable starts per side).

Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce RTX 4070, 621.24.0 AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM; 2: windows+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce RTX 3050 Ti Laptop GPU, 621.1.0 AMD Ryzen 7 5800H with Radeon Graphics, 16 GB RAM
Scene: pool-mirror-multi-area, from the repository's save kokiri-start (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); 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); pool-mirror-multi-area: 3 game starts a side, forest 25 s after 10 s warm-up, field 25 s after 10 s warm-up, temple 25 s after 10 s warm-up; 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 @ 544229a After: this PR @ 72a3074
pool-mirror-multi-area · forest · frame time (p99) (ms) 11.1 11.8 (+6%)
pool-mirror-multi-area · forest · frame time (worst 1%) (ms) 11.5 12.4 (+8%)
pool-mirror-multi-area · forest · peak VRAM (MB) 6,185 6,105 (−1%)

Flags and settings

None: the plan varied no setting, switch or build option.

As Markdown for the PR description:

## Measurements

**Verdict:** could not be judged on nvidia (2 reports): required frame-time comparison inconclusive (fewer than two usable starts per side).

Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 4070, 621.24.0` `AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 3050 Ti Laptop GPU, 621.1.0` `AMD Ryzen 7 5800H with Radeon Graphics, 16 GB RAM`  
Scene: pool-mirror-multi-area, from the repository's save kokiri-start (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); 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); pool-mirror-multi-area: 3 game starts a side, forest 25 s after 10 s warm-up, field 25 s after 10 s warm-up, temple 25 s after 10 s warm-up; 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 @ 544229a | After: this PR @ 72a3074 |
|---|---|---|
| pool-mirror-multi-area · forest · frame time (p99) (ms) | 11.1 | 11.8 (+6%) |
| pool-mirror-multi-area · forest · frame time (worst 1%) (ms) | 11.5 | 12.4 (+8%) |
| pool-mirror-multi-area · forest · peak VRAM (MB) | 6,185 | 6,105 (−1%) |

**Flags and settings**

None: the plan varied no setting, switch or build option.
Measurements on `linux+radv`, for the PR description

Verdict: could not be judged on linux+radv (2 reports): required frame-time comparison inconclusive (fewer than two usable starts per side).

Hardware: 1: linux+amd+radv+dgpu AMD Radeon RX 7900 XTX (RADV NAVI31), 26.3.1 AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAM; 2: linux+amd+radv+dgpu AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1 AMD Ryzen 7 5700X3D 8-Core Processor, 32 GB RAM
Scene: pool-mirror-multi-area, from the repository's save kokiri-start (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); 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); pool-mirror-multi-area: 3 game starts a side, forest 25 s after 10 s warm-up, field 25 s after 10 s warm-up, temple 25 s after 10 s warm-up; 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 @ 544229a After: this PR @ 72a3074
pool-mirror-multi-area · forest · frame time (p99) (ms) 18.1 17.4 (−4%)
pool-mirror-multi-area · forest · frame time (worst 1%) (ms) 18.9 18.1 (−5%)
pool-mirror-multi-area · forest · peak VRAM (MB) 6,498 6,398 (−2%)

Flags and settings

None: the plan varied no setting, switch or build option.

As Markdown for the PR description:

## Measurements

**Verdict:** could not be judged on linux+radv (2 reports): required frame-time comparison inconclusive (fewer than two usable starts per side).

Hardware: 1: linux+amd+radv+dgpu `AMD Radeon RX 7900 XTX (RADV NAVI31), 26.3.1` `AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAM`; 2: linux+amd+radv+dgpu `AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1` `AMD Ryzen 7 5700X3D 8-Core Processor, 32 GB RAM`  
Scene: pool-mirror-multi-area, from the repository's save kokiri-start (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); 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); pool-mirror-multi-area: 3 game starts a side, forest 25 s after 10 s warm-up, field 25 s after 10 s warm-up, temple 25 s after 10 s warm-up; 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 @ 544229a | After: this PR @ 72a3074 |
|---|---|---|
| pool-mirror-multi-area · forest · frame time (p99) (ms) | 18.1 | 17.4 (−4%) |
| pool-mirror-multi-area · forest · frame time (worst 1%) (ms) | 18.9 | 18.1 (−5%) |
| pool-mirror-multi-area · forest · peak VRAM (MB) | 6,498 | 6,398 (−2%) |

**Flags and settings**

None: the plan varied no setting, switch or build option.
Measurements on `windows+amd`, for the PR description

Verdict: could not be judged on windows+amd (2 reports): required frame-time comparison inconclusive (fewer than two usable starts per side).

Hardware: 1: windows+amd+amd-proprietary+igpu+xess AMD Radeon(TM) Graphics, 2.0.279 AMD Ryzen 5 5600G with Radeon Graphics, 28 GB RAM; 2: windows+amd+amd-proprietary+dgpu+xess AMD Radeon RX 6700 XT, 2.0.353 AMD Ryzen 7 2700X Eight-Core Processor, 16 GB RAM
Scene: pool-mirror-multi-area, from the repository's save kokiri-start (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); 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); pool-mirror-multi-area: 3 game starts a side, forest 25 s after 10 s warm-up, field 25 s after 10 s warm-up, temple 25 s after 10 s warm-up; 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)

Nothing was measured: no metric came back.

Flags and settings

None: the plan varied no setting, switch or build option.

As Markdown for the PR description:

## Measurements

**Verdict:** could not be judged on windows+amd (2 reports): required frame-time comparison inconclusive (fewer than two usable starts per side).

Hardware: 1: windows+amd+amd-proprietary+igpu+xess `AMD Radeon(TM) Graphics, 2.0.279` `AMD Ryzen 5 5600G with Radeon Graphics, 28 GB RAM`; 2: windows+amd+amd-proprietary+dgpu+xess `AMD Radeon RX 6700 XT, 2.0.353` `AMD Ryzen 7 2700X Eight-Core Processor, 16 GB RAM`  
Scene: pool-mirror-multi-area, from the repository's save kokiri-start (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); 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); pool-mirror-multi-area: 3 game starts a side, forest 25 s after 10 s warm-up, field 25 s after 10 s warm-up, temple 25 s after 10 s warm-up; 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)

Nothing was measured: no metric came back.

**Flags and settings**

None: the plan varied no setting, switch or build option.
Measurements on `intel`, for the PR description

Verdict: queued on intel (1 report).

Hardware: 1: windows+intel+intel-proprietary+igpu Intel(R) UHD Graphics 630, 0.404.2115 Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz, 8 GB RAM
Scene: pool-mirror-multi-area, from the repository's save kokiri-start (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); 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); pool-mirror-multi-area: 3 game starts a side, forest 25 s after 10 s warm-up, field 25 s after 10 s warm-up, temple 25 s after 10 s warm-up; each number the median of the runs, then of 1 report
How to reproduce: the farm's plan above (@Beanstalk on this PR runs it again)

Nothing was measured: no metric came back.

Flags and settings

None: the plan varied no setting, switch or build option.

As Markdown for the PR description:

## Measurements

**Verdict:** queued on intel (1 report).

Hardware: 1: windows+intel+intel-proprietary+igpu `Intel(R) UHD Graphics 630, 0.404.2115` `Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz, 8 GB RAM`  
Scene: pool-mirror-multi-area, from the repository's save kokiri-start (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); 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); pool-mirror-multi-area: 3 game starts a side, forest 25 s after 10 s warm-up, field 25 s after 10 s warm-up, temple 25 s after 10 s warm-up; each number the median of the runs, then of 1 report  
How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again)

Nothing was measured: no metric came back.

**Flags and settings**

None: the plan varied no setting, switch or build option.
Measurements on `igpu`, for the PR description

Verdict: could not be judged on igpu (2 reports): required frame-time comparison inconclusive (fewer than two usable starts per side).

Hardware: 1: linux+amd+radv+igpu AMD Radeon 8060S Graphics (RADV STRIX_HALO), 26.99.99 AMD RYZEN AI MAX+ 395 w/ Radeon 8060S, 64 GB RAM; 2: linux+amd+radv+igpu+handheld AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99 AMD Custom APU 0405, 12 GB RAM
Scene: pool-mirror-multi-area, from the repository's save kokiri-start (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); 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); pool-mirror-multi-area: 3 game starts a side, forest 25 s after 10 s warm-up, field 25 s after 10 s warm-up, temple 25 s after 10 s warm-up; 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 @ 544229a After: this PR @ 72a3074
pool-mirror-multi-area · forest · frame time (p99) (ms) 29.3 29.0 (−1%)
pool-mirror-multi-area · forest · frame time (worst 1%) (ms) 30.6 30.2 (−1%)
pool-mirror-multi-area · forest · peak VRAM (MB) 3,696 3,740 (+1%)

Flags and settings

None: the plan varied no setting, switch or build option.

As Markdown for the PR description:

## Measurements

**Verdict:** could not be judged on igpu (2 reports): required frame-time comparison inconclusive (fewer than two usable starts per side).

Hardware: 1: linux+amd+radv+igpu `AMD Radeon 8060S Graphics (RADV STRIX_HALO), 26.99.99` `AMD RYZEN AI MAX+ 395 w/ Radeon 8060S, 64 GB RAM`; 2: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 12 GB RAM`  
Scene: pool-mirror-multi-area, from the repository's save kokiri-start (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); 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); pool-mirror-multi-area: 3 game starts a side, forest 25 s after 10 s warm-up, field 25 s after 10 s warm-up, temple 25 s after 10 s warm-up; 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 @ 544229a | After: this PR @ 72a3074 |
|---|---|---|
| pool-mirror-multi-area · forest · frame time (p99) (ms) | 29.3 | 29.0 (−1%) |
| pool-mirror-multi-area · forest · frame time (worst 1%) (ms) | 30.6 | 30.2 (−1%) |
| pool-mirror-multi-area · forest · peak VRAM (MB) | 3,696 | 3,740 (+1%) |

**Flags and settings**

None: the plan varied no setting, switch or build option.
The testers' hardware
Target Report Ran on
windows+nvidia 1 windows+nvidia+nvidia-proprietary+dgpu+xess NVIDIA GeForce GTX 980, 582.78.0 Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, 32 GB RAM
windows+nvidia 2 windows+nvidia+nvidia-proprietary+dgpu+dlss+xess NVIDIA GeForce RTX 5050 Laptop GPU, 621.40.0 AMD Ryzen 5 220 w/ Radeon 740M Graphics, 16 GB RAM
nvidia 1 windows+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce RTX 4070, 621.24.0 AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM
nvidia 2 windows+nvidia+nvidia-proprietary+dgpu 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 7900 XTX (RADV NAVI31), 26.3.1 AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAM
linux+radv 2 linux+amd+radv+dgpu AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1 AMD Ryzen 7 5700X3D 8-Core Processor, 32 GB RAM
windows+amd 1 windows+amd+amd-proprietary+igpu+xess AMD Radeon(TM) Graphics, 2.0.279 AMD Ryzen 5 5600G with Radeon Graphics, 28 GB RAM
windows+amd 2 windows+amd+amd-proprietary+dgpu+xess AMD Radeon RX 6700 XT, 2.0.353 AMD Ryzen 7 2700X Eight-Core Processor, 16 GB RAM
intel 1 windows+intel+intel-proprietary+igpu Intel(R) UHD Graphics 630, 0.404.2115 Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz, 8 GB RAM
igpu 1 linux+amd+radv+igpu AMD Radeon 8060S Graphics (RADV STRIX_HALO), 26.99.99 AMD RYZEN AI MAX+ 395 w/ Radeon 8060S, 64 GB RAM
igpu 2 linux+amd+radv+igpu+handheld AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99 AMD Custom APU 0405, 12 GB RAM
<!-- beanstalk:previous --> <details><summary>Beanstalk test farm · an earlier run: commit <code>72a3074</code> (the newer results are in a comment below)</summary> Commit `72a3074` · approved by HumanBean (reviewed) · [dashboard](https://beanstalk.magicbean.dev/prs/2858) ⚠️ **Note:** The plan cannot run the requested repository test suite or a multi-hour pressure playthrough; the tight budget encourages eviction but does not guarantee it occurs. ⚠️ **Note:** Replay memory-sync logs and VRAM are collected when available, but the plan does not isolate the five switches or directly measure scan ranges, write-back bytes, or shadow memory. Started at 03:21 UTC. | Target | Result | Reports | Frame time p99 (ms), main → PR | VRAM peak (MB) | Crashes | | --- | --- | --- | --- | --- | --- | | `windows+nvidia` | ❌ fail | 2 [1](https://beanstalk.magicbean.dev/reports/rp_9436e98e44671e5c) [2](https://beanstalk.magicbean.dev/reports/rp_31c53ee59c455430) | 41.0 → 529.5 (+1190%) | 2,855 → 2,993 (+5%) | 1 PR run | | `nvidia` | ⚠️ couldn't be judged | 2 [1](https://beanstalk.magicbean.dev/reports/rp_0ff8a644bdbc9d1e) [2](https://beanstalk.magicbean.dev/reports/rp_ce0ac2938365bc55) | 11.1 → 11.8 (+6%) | 6,185 → 6,105 (−1%) | none | | `linux+radv` | ⚠️ couldn't be judged (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_726ab5fff030644c) [2](https://beanstalk.magicbean.dev/reports/rp_341af93af37758e2) | 18.1 → 17.4 (−4%) | 6,498 → 6,398 (−2%) | none | | `windows+amd` | ⚠️ couldn't be judged | 2 [1](https://beanstalk.magicbean.dev/reports/rp_7bc939e924691185) [2](https://beanstalk.magicbean.dev/reports/rp_0bf27bb6724f8d70) | — | — | 6 PR runs | | `intel` | ⏳ queued | 1 [1](https://beanstalk.magicbean.dev/reports/rp_5272dae2ce404840) | — | — | 3 PR runs | | `igpu` | ⚠️ couldn't be judged (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_39a83c798068e87e) [2](https://beanstalk.magicbean.dev/reports/rp_32f1458b3a18c3f9) | 29.3 → 29.0 (−1%) | 3,696 → 3,740 (+1%) | none | **Why it failed** - `windows+nvidia`: `pool-mirror-multi-area` `crash`: `1 PR run crashed` **Couldn't be judged**: the tester's PC could not finish the test. The farm tries another PC, or the same one after a fix; it says nothing about the PR on its own. - `windows+nvidia`, [report 2](https://beanstalk.magicbean.dev/reports/rp_31c53ee59c455430): `Insufficient frame-time evidence for 6 required comparison(s). See rule results. a step ran out of time: timeout: the save did not load into play within 900 s (the state boot, boot_save none: A pressed) (then the game was in boot, on no kno` - `nvidia`, [report 1](https://beanstalk.magicbean.dev/reports/rp_0ff8a644bdbc9d1e): `Insufficient frame-time evidence for 6 required comparison(s). See rule results. the game refused a step: not_found: no setting vram_budget` - `nvidia`, [report 2](https://beanstalk.magicbean.dev/reports/rp_ce0ac2938365bc55): `Insufficient frame-time evidence for 6 required comparison(s). See rule results. a step ran out of time: timeout: the save did not load into play within 900 s (the state boot, boot_save none: A pressed) (then the game was in boot, on no kno` - `linux+radv`, [report 1](https://beanstalk.magicbean.dev/reports/rp_726ab5fff030644c): `Insufficient frame-time evidence for 6 required comparison(s). See rule results. the game refused a step: not_found: no setting vram_budget` - `linux+radv`, [report 2](https://beanstalk.magicbean.dev/reports/rp_341af93af37758e2): `Insufficient frame-time evidence for 6 required comparison(s). See rule results. the game refused a step: not_found: no setting vram_budget` - `windows+amd`, [report 1](https://beanstalk.magicbean.dev/reports/rp_7bc939e924691185): `Insufficient frame-time evidence for 7 required comparison(s). See rule results.` - `windows+amd`, [report 2](https://beanstalk.magicbean.dev/reports/rp_0bf27bb6724f8d70): `Insufficient frame-time evidence for 7 required comparison(s). See rule results.` - `intel`, [report 1](https://beanstalk.magicbean.dev/reports/rp_5272dae2ce404840): `Insufficient frame-time evidence for 7 required comparison(s). See rule results.` - and 2 more, in the reports <details><summary>What was tested</summary> **What will be tested** · AI plan (`gpt-6.1-terra`) Compare the PR with main on Windows NVIDIA, Linux RADV, Windows AMD, Intel, NVIDIA, and integrated-GPU testers. Each side runs three starts, measuring uncapped frame times for 25 seconds each in Kokiri Forest, Hyrule Field, and the Forest Temple; the latter two use a tight VRAM budget to exercise mirror pressure. Stationary pictures, memory use, and replay memory-sync logs are also collected. A crash, a picture difference beyond the noise allowance, or a frame-time regression over 15% fails the PR. - **Where:** windows+nvidia (1-2 reports), nvidia (1-2 reports), linux+radv (1-2 reports), windows+amd (1-2 reports), intel (1-2 reports), igpu (1-2 reports). - **pool-mirror-multi-area:** from the repository's save `kokiri-start` (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 Kokiri Forest, take the picture forest to compare with main, measure forest for 25 s (after 10 s warm-up), set vram_budget to 1, teleport to Hyrule Field, take the picture field to compare with main, measure field for 25 s (after 10 s warm-up), teleport to Forest Temple, take the picture temple to compare with main, measure temple for 25 s (after 10 s warm-up); 3 runs on each side. - **Measured:** crashes, frame times, stutters and hitches, VRAM use, memory and CPU time, numbers from the game's log. - **The PR fails if:** it crashes; or a picture differs from main by more than 25%; or frame time (p99) is more than 15% above main; or frame time (worst 1%) is more than 15% above main. - **Time:** about 42 min of game runs per tester (6 game starts), plus the two builds. </details> <details><summary>Measurements on `windows+nvidia`, for the PR description</summary> **Verdict:** fail on windows+nvidia (2 reports): `pool-mirror-multi-area crash` failed. Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+xess `NVIDIA GeForce GTX 980, 582.78.0` `Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, 32 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu+dlss+xess `NVIDIA GeForce RTX 5050 Laptop GPU, 621.40.0` `AMD Ryzen 5 220 w/ Radeon 740M Graphics, 16 GB RAM` Scene: pool-mirror-multi-area, from the repository's save kokiri-start (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); 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); pool-mirror-multi-area: 3 game starts a side, forest 25 s after 10 s warm-up, field 25 s after 10 s warm-up, temple 25 s after 10 s warm-up; 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 @ 544229a | After: this PR @ 72a3074 | |---|---|---| | pool-mirror-multi-area · forest · frame time (p99) (ms) | 41.0 | 529.5 (+1190%) | | pool-mirror-multi-area · forest · frame time (worst 1%) (ms) | 44.4 | 578.6 (+1204%) | | pool-mirror-multi-area · forest · peak VRAM (MB) | 2,855 | 2,993 (+5%) | **Flags and settings** None: the plan varied no setting, switch or build option. As Markdown for the PR description: ```markdown ## Measurements **Verdict:** fail on windows+nvidia (2 reports): `pool-mirror-multi-area crash` failed. Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+xess `NVIDIA GeForce GTX 980, 582.78.0` `Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, 32 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu+dlss+xess `NVIDIA GeForce RTX 5050 Laptop GPU, 621.40.0` `AMD Ryzen 5 220 w/ Radeon 740M Graphics, 16 GB RAM` Scene: pool-mirror-multi-area, from the repository's save kokiri-start (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); 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); pool-mirror-multi-area: 3 game starts a side, forest 25 s after 10 s warm-up, field 25 s after 10 s warm-up, temple 25 s after 10 s warm-up; 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 @ 544229a | After: this PR @ 72a3074 | |---|---|---| | pool-mirror-multi-area · forest · frame time (p99) (ms) | 41.0 | 529.5 (+1190%) | | pool-mirror-multi-area · forest · frame time (worst 1%) (ms) | 44.4 | 578.6 (+1204%) | | pool-mirror-multi-area · forest · peak VRAM (MB) | 2,855 | 2,993 (+5%) | **Flags and settings** None: the plan varied no setting, switch or build option. ``` </details> <details><summary>Measurements on `nvidia`, for the PR description</summary> **Verdict:** could not be judged on nvidia (2 reports): required frame-time comparison inconclusive (fewer than two usable starts per side). Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 4070, 621.24.0` `AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 3050 Ti Laptop GPU, 621.1.0` `AMD Ryzen 7 5800H with Radeon Graphics, 16 GB RAM` Scene: pool-mirror-multi-area, from the repository's save kokiri-start (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); 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); pool-mirror-multi-area: 3 game starts a side, forest 25 s after 10 s warm-up, field 25 s after 10 s warm-up, temple 25 s after 10 s warm-up; 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 @ 544229a | After: this PR @ 72a3074 | |---|---|---| | pool-mirror-multi-area · forest · frame time (p99) (ms) | 11.1 | 11.8 (+6%) | | pool-mirror-multi-area · forest · frame time (worst 1%) (ms) | 11.5 | 12.4 (+8%) | | pool-mirror-multi-area · forest · peak VRAM (MB) | 6,185 | 6,105 (−1%) | **Flags and settings** None: the plan varied no setting, switch or build option. As Markdown for the PR description: ```markdown ## Measurements **Verdict:** could not be judged on nvidia (2 reports): required frame-time comparison inconclusive (fewer than two usable starts per side). Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 4070, 621.24.0` `AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 3050 Ti Laptop GPU, 621.1.0` `AMD Ryzen 7 5800H with Radeon Graphics, 16 GB RAM` Scene: pool-mirror-multi-area, from the repository's save kokiri-start (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); 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); pool-mirror-multi-area: 3 game starts a side, forest 25 s after 10 s warm-up, field 25 s after 10 s warm-up, temple 25 s after 10 s warm-up; 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 @ 544229a | After: this PR @ 72a3074 | |---|---|---| | pool-mirror-multi-area · forest · frame time (p99) (ms) | 11.1 | 11.8 (+6%) | | pool-mirror-multi-area · forest · frame time (worst 1%) (ms) | 11.5 | 12.4 (+8%) | | pool-mirror-multi-area · forest · peak VRAM (MB) | 6,185 | 6,105 (−1%) | **Flags and settings** None: the plan varied no setting, switch or build option. ``` </details> <details><summary>Measurements on `linux+radv`, for the PR description</summary> **Verdict:** could not be judged on linux+radv (2 reports): required frame-time comparison inconclusive (fewer than two usable starts per side). Hardware: 1: linux+amd+radv+dgpu `AMD Radeon RX 7900 XTX (RADV NAVI31), 26.3.1` `AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAM`; 2: linux+amd+radv+dgpu `AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1` `AMD Ryzen 7 5700X3D 8-Core Processor, 32 GB RAM` Scene: pool-mirror-multi-area, from the repository's save kokiri-start (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); 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); pool-mirror-multi-area: 3 game starts a side, forest 25 s after 10 s warm-up, field 25 s after 10 s warm-up, temple 25 s after 10 s warm-up; 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 @ 544229a | After: this PR @ 72a3074 | |---|---|---| | pool-mirror-multi-area · forest · frame time (p99) (ms) | 18.1 | 17.4 (−4%) | | pool-mirror-multi-area · forest · frame time (worst 1%) (ms) | 18.9 | 18.1 (−5%) | | pool-mirror-multi-area · forest · peak VRAM (MB) | 6,498 | 6,398 (−2%) | **Flags and settings** None: the plan varied no setting, switch or build option. As Markdown for the PR description: ```markdown ## Measurements **Verdict:** could not be judged on linux+radv (2 reports): required frame-time comparison inconclusive (fewer than two usable starts per side). Hardware: 1: linux+amd+radv+dgpu `AMD Radeon RX 7900 XTX (RADV NAVI31), 26.3.1` `AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAM`; 2: linux+amd+radv+dgpu `AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1` `AMD Ryzen 7 5700X3D 8-Core Processor, 32 GB RAM` Scene: pool-mirror-multi-area, from the repository's save kokiri-start (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); 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); pool-mirror-multi-area: 3 game starts a side, forest 25 s after 10 s warm-up, field 25 s after 10 s warm-up, temple 25 s after 10 s warm-up; 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 @ 544229a | After: this PR @ 72a3074 | |---|---|---| | pool-mirror-multi-area · forest · frame time (p99) (ms) | 18.1 | 17.4 (−4%) | | pool-mirror-multi-area · forest · frame time (worst 1%) (ms) | 18.9 | 18.1 (−5%) | | pool-mirror-multi-area · forest · peak VRAM (MB) | 6,498 | 6,398 (−2%) | **Flags and settings** None: the plan varied no setting, switch or build option. ``` </details> <details><summary>Measurements on `windows+amd`, for the PR description</summary> **Verdict:** could not be judged on windows+amd (2 reports): required frame-time comparison inconclusive (fewer than two usable starts per side). Hardware: 1: windows+amd+amd-proprietary+igpu+xess `AMD Radeon(TM) Graphics, 2.0.279` `AMD Ryzen 5 5600G with Radeon Graphics, 28 GB RAM`; 2: windows+amd+amd-proprietary+dgpu+xess `AMD Radeon RX 6700 XT, 2.0.353` `AMD Ryzen 7 2700X Eight-Core Processor, 16 GB RAM` Scene: pool-mirror-multi-area, from the repository's save kokiri-start (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); 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); pool-mirror-multi-area: 3 game starts a side, forest 25 s after 10 s warm-up, field 25 s after 10 s warm-up, temple 25 s after 10 s warm-up; 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) Nothing was measured: no metric came back. **Flags and settings** None: the plan varied no setting, switch or build option. As Markdown for the PR description: ```markdown ## Measurements **Verdict:** could not be judged on windows+amd (2 reports): required frame-time comparison inconclusive (fewer than two usable starts per side). Hardware: 1: windows+amd+amd-proprietary+igpu+xess `AMD Radeon(TM) Graphics, 2.0.279` `AMD Ryzen 5 5600G with Radeon Graphics, 28 GB RAM`; 2: windows+amd+amd-proprietary+dgpu+xess `AMD Radeon RX 6700 XT, 2.0.353` `AMD Ryzen 7 2700X Eight-Core Processor, 16 GB RAM` Scene: pool-mirror-multi-area, from the repository's save kokiri-start (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); 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); pool-mirror-multi-area: 3 game starts a side, forest 25 s after 10 s warm-up, field 25 s after 10 s warm-up, temple 25 s after 10 s warm-up; 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) Nothing was measured: no metric came back. **Flags and settings** None: the plan varied no setting, switch or build option. ``` </details> <details><summary>Measurements on `intel`, for the PR description</summary> **Verdict:** queued on intel (1 report). Hardware: 1: windows+intel+intel-proprietary+igpu `Intel(R) UHD Graphics 630, 0.404.2115` `Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz, 8 GB RAM` Scene: pool-mirror-multi-area, from the repository's save kokiri-start (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); 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); pool-mirror-multi-area: 3 game starts a side, forest 25 s after 10 s warm-up, field 25 s after 10 s warm-up, temple 25 s after 10 s warm-up; each number the median of the runs, then of 1 report How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) Nothing was measured: no metric came back. **Flags and settings** None: the plan varied no setting, switch or build option. As Markdown for the PR description: ```markdown ## Measurements **Verdict:** queued on intel (1 report). Hardware: 1: windows+intel+intel-proprietary+igpu `Intel(R) UHD Graphics 630, 0.404.2115` `Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz, 8 GB RAM` Scene: pool-mirror-multi-area, from the repository's save kokiri-start (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); 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); pool-mirror-multi-area: 3 game starts a side, forest 25 s after 10 s warm-up, field 25 s after 10 s warm-up, temple 25 s after 10 s warm-up; each number the median of the runs, then of 1 report How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) Nothing was measured: no metric came back. **Flags and settings** None: the plan varied no setting, switch or build option. ``` </details> <details><summary>Measurements on `igpu`, for the PR description</summary> **Verdict:** could not be judged on igpu (2 reports): required frame-time comparison inconclusive (fewer than two usable starts per side). Hardware: 1: linux+amd+radv+igpu `AMD Radeon 8060S Graphics (RADV STRIX_HALO), 26.99.99` `AMD RYZEN AI MAX+ 395 w/ Radeon 8060S, 64 GB RAM`; 2: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 12 GB RAM` Scene: pool-mirror-multi-area, from the repository's save kokiri-start (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); 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); pool-mirror-multi-area: 3 game starts a side, forest 25 s after 10 s warm-up, field 25 s after 10 s warm-up, temple 25 s after 10 s warm-up; 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 @ 544229a | After: this PR @ 72a3074 | |---|---|---| | pool-mirror-multi-area · forest · frame time (p99) (ms) | 29.3 | 29.0 (−1%) | | pool-mirror-multi-area · forest · frame time (worst 1%) (ms) | 30.6 | 30.2 (−1%) | | pool-mirror-multi-area · forest · peak VRAM (MB) | 3,696 | 3,740 (+1%) | **Flags and settings** None: the plan varied no setting, switch or build option. As Markdown for the PR description: ```markdown ## Measurements **Verdict:** could not be judged on igpu (2 reports): required frame-time comparison inconclusive (fewer than two usable starts per side). Hardware: 1: linux+amd+radv+igpu `AMD Radeon 8060S Graphics (RADV STRIX_HALO), 26.99.99` `AMD RYZEN AI MAX+ 395 w/ Radeon 8060S, 64 GB RAM`; 2: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 12 GB RAM` Scene: pool-mirror-multi-area, from the repository's save kokiri-start (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); 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); pool-mirror-multi-area: 3 game starts a side, forest 25 s after 10 s warm-up, field 25 s after 10 s warm-up, temple 25 s after 10 s warm-up; 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 @ 544229a | After: this PR @ 72a3074 | |---|---|---| | pool-mirror-multi-area · forest · frame time (p99) (ms) | 29.3 | 29.0 (−1%) | | pool-mirror-multi-area · forest · frame time (worst 1%) (ms) | 30.6 | 30.2 (−1%) | | pool-mirror-multi-area · forest · peak VRAM (MB) | 3,696 | 3,740 (+1%) | **Flags and settings** None: the plan varied no setting, switch or build option. ``` </details> <details><summary>The testers' hardware</summary> | Target | Report | Ran on | | --- | --- | --- | | `windows+nvidia` | [1](https://beanstalk.magicbean.dev/reports/rp_9436e98e44671e5c) | windows+nvidia+nvidia-proprietary+dgpu+xess `NVIDIA GeForce GTX 980, 582.78.0` `Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, 32 GB RAM` | | `windows+nvidia` | [2](https://beanstalk.magicbean.dev/reports/rp_31c53ee59c455430) | windows+nvidia+nvidia-proprietary+dgpu+dlss+xess `NVIDIA GeForce RTX 5050 Laptop GPU, 621.40.0` `AMD Ryzen 5 220 w/ Radeon 740M Graphics, 16 GB RAM` | | `nvidia` | [1](https://beanstalk.magicbean.dev/reports/rp_0ff8a644bdbc9d1e) | windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 4070, 621.24.0` `AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM` | | `nvidia` | [2](https://beanstalk.magicbean.dev/reports/rp_ce0ac2938365bc55) | windows+nvidia+nvidia-proprietary+dgpu `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_726ab5fff030644c) | linux+amd+radv+dgpu `AMD Radeon RX 7900 XTX (RADV NAVI31), 26.3.1` `AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAM` | | `linux+radv` | [2](https://beanstalk.magicbean.dev/reports/rp_341af93af37758e2) | linux+amd+radv+dgpu `AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1` `AMD Ryzen 7 5700X3D 8-Core Processor, 32 GB RAM` | | `windows+amd` | [1](https://beanstalk.magicbean.dev/reports/rp_7bc939e924691185) | windows+amd+amd-proprietary+igpu+xess `AMD Radeon(TM) Graphics, 2.0.279` `AMD Ryzen 5 5600G with Radeon Graphics, 28 GB RAM` | | `windows+amd` | [2](https://beanstalk.magicbean.dev/reports/rp_0bf27bb6724f8d70) | windows+amd+amd-proprietary+dgpu+xess `AMD Radeon RX 6700 XT, 2.0.353` `AMD Ryzen 7 2700X Eight-Core Processor, 16 GB RAM` | | `intel` | [1](https://beanstalk.magicbean.dev/reports/rp_5272dae2ce404840) | windows+intel+intel-proprietary+igpu `Intel(R) UHD Graphics 630, 0.404.2115` `Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz, 8 GB RAM` | | `igpu` | [1](https://beanstalk.magicbean.dev/reports/rp_39a83c798068e87e) | linux+amd+radv+igpu `AMD Radeon 8060S Graphics (RADV STRIX_HALO), 26.99.99` `AMD RYZEN AI MAX+ 395 w/ Radeon 8060S, 64 GB RAM` | | `igpu` | [2](https://beanstalk.magicbean.dev/reports/rp_32f1458b3a18c3f9) | linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 12 GB RAM` | </details> </details>
Author
Contributor

Thanks for running @Beanstalk! Two clear issues surfaced here:

  1. not_found: no setting vram_budget on linux+radv / nvidia: #2858 is still based on 544229a26 (548 commits behind main).
  2. pool-mirror-multi-area crash on windows+nvidia: Matches BeanBot's review findings on the stacked branch — specifically:
    • gpu/vk/pool_flags_policy.h: PHYSICAL (0x100) alone was treated as GPU-only even when CPU_CACHED (0x104) is also set, and the backward scan could stop early on nested overlapping pools.
    • host/nvdrv.c: host-write queue length was inspected outside the lock.
    • gpu/vk/vk_memory.cpp: sieve_visited mixed atomic and plain bool accesses.

We are rebasing #2858 cleanly onto current main, fixing all four issues (plus adding missing switches.def rows for RX_VK_MIRROR_SYNC_FAST and RX_VK_MIRROR_SIEVE, and dropping HOS_COLLECT_AVX2 since main already includes HOS_COLLECT_VECTOR), and will re-test locally before requesting a fresh @Beanstalk run.

Thanks for running `@Beanstalk`! Two clear issues surfaced here: 1. **`not_found: no setting vram_budget` on `linux+radv` / `nvidia`:** #2858 is still based on `544229a26` (548 commits behind `main`). 2. **`pool-mirror-multi-area` crash on `windows+nvidia`:** Matches BeanBot's review findings on the stacked branch — specifically: - `gpu/vk/pool_flags_policy.h`: `PHYSICAL` (`0x100`) alone was treated as GPU-only even when `CPU_CACHED` (`0x104`) is also set, and the backward scan could stop early on nested overlapping pools. - `host/nvdrv.c`: host-write queue length was inspected outside the lock. - `gpu/vk/vk_memory.cpp`: `sieve_visited` mixed atomic and plain `bool` accesses. We are rebasing #2858 cleanly onto current `main`, fixing all four issues (plus adding missing `switches.def` rows for `RX_VK_MIRROR_SYNC_FAST` and `RX_VK_MIRROR_SIEVE`, and dropping `HOS_COLLECT_AVX2` since `main` already includes `HOS_COLLECT_VECTOR`), and will re-test locally before requesting a fresh `@Beanstalk` run.
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. This request was for 72a3074, and the PR has changed since (f595bb3), so a 👍 no longer approves it. Comment @Beanstalk again to ask for the new commit.

@siantm only members of `BigBeans` can start the farm. ~~One of them can approve this request by reacting 👍 to it or to this comment.~~ This request was for `72a3074`, and the PR has changed since (`f595bb3`), so a 👍 no longer approves it. Comment `@Beanstalk` again to ask for the new commit.
siantm changed title from WIP: perf(vk): honor NVN2 GPU-only pool flags, AVX2 dirty/mirror scans, and SIEVE mirror eviction to WIP: perf(vk): honor NVN2 CPU_NO_ACCESS pool flags and add AVX2 mirror_sync 2026-11-30 11:09:49 +00:00
siantm force-pushed perf/pc-discrete-memory-coherence from 72a3074df3
Some checks reported errors
Guide screenshots / Guide images and local UI source review (pull_request) Blocked by required conditions
PR description / Title and description (pull_request_target) Successful in 10s
Third-party parts / The same as upstream (pull_request) Blocked by required conditions
Third-party parts / As their notes say (pull_request) Blocked by required conditions
beanstalk/approval approved by HumanBean (reviewed)
beanstalk/windows+nvidia 1/1 fail
beanstalk/nvidia 0/1 pass, 2 error
beanstalk/linux+radv 0/1 pass, 2 error
beanstalk/intel 0/1 pass, 0 running, 1 queued
beanstalk/igpu 0/1 pass, 2 error
beanstalk/windows+amd 0/1 pass, 2 error
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
to f595bb3c0a
Some checks are pending
beanstalk/approval changed since the request: ask again
PR description / Title and description (pull_request_target) Successful in 14s
2026-11-30 11:09:50 +00:00
Compare
siantm changed title from WIP: perf(vk): honor NVN2 CPU_NO_ACCESS pool flags and add AVX2 mirror_sync to perf(vk): honor NVN2 CPU_NO_ACCESS pool flags and add AVX2 mirror_sync 2026-11-30 11:09:57 +00:00
Member

Beanstalk test farm

Commit 33f9269 · 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 `33f9269` · approved by nobody yet · [dashboard](https://beanstalk.magicbean.dev/prs/2858) A member of `BigBeans` can review this commit and comment `@Beanstalk` to test it.
siantm force-pushed perf/pc-discrete-memory-coherence from f595bb3c0a
Some checks are pending
beanstalk/approval changed since the request: ask again
PR description / Title and description (pull_request_target) Successful in 14s
to 33f9269541
Some checks are pending
CI / What the change needs (pull_request) Blocked by required conditions
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Blocked by required conditions
CI / Third-party parts and guide screenshots (pull_request) Blocked by required conditions
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Blocked by required conditions
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Blocked by required conditions
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Blocked by required conditions
CI / Website build and checks (pull_request) Blocked by required conditions
beanstalk/approval waiting for a BigBean's 👍 on the request
PR description / Title and description (pull_request_target) Successful in 7s
2026-12-03 16:10:55 +00:00
Compare
Author
Contributor

Rebased onto main 1e782fa4b and pushed as 33f926954, with BeanBot's last open blocking finding fixed. This covers the farm run, the review findings carried over from #2886, and HumanBean's measurements.

What changed (33f926954)

  • Rebase: main had moved 84 commits since 28cb22b9e, and MkwVkHost grew three members in that time. gpu_pools_flags is now the member of API version 90, after game_settings_at_start. host/rx_backend.c's vk_host sets it by name, and the renderer asks for it at host->version >= 90. HOS_POOL_FLAGS sits beside #2902's HOS_POOL_FLAGS_SITES in gpu/vk/switches.def. The renderer's RX_VK_PLAY_SAVE_START_MB / RX_VK_POOL_IDLE rows are settings on main now, so I didn't re-add them as SW rows.
  • L2 (nested overlap) was not fixed in f595bb3. Its backward walk stopped at the first earlier pool ending at or before lo, so BeanBot's exact case ([0,100) CPU-accessible, then [10,20) and [30,80) GPU-only, query [40,50)) still returned true, and the write-back would have been skipped. pool_flags_policy::set_reach now stores each pool's running maximum end when memory_sync builds guest_pools. range_all_gpu_only starts at the first pool whose running end passes lo (a binary search), so every overlapping pool is seen. tests/test_pool_flags.py has that case plus the all-GPU-only control.
  • Tests whose stand-ins read the changed code: tests/test_vk_desc_span_fast.py gets the pool_flags_skip_writeback stub. tests/test_program_hooks.py names gpu_pools_flags after version 89's members. The gpu_pools_flags parameter is unnamed, so host_members doesn't read (*out) as a member.

BeanBot's findings from #2886, as they stand on this head:

  • L1 (PHYSICAL | CPU_CACHED): fixed in f595bb3. Only CPU_NO_ACCESS counts (gpu/vk/pool_flags_policy.h, host/nvdrv.c HOS_NVN_POOL_GPU_ONLY).
  • L2: fixed now, as above.
  • L3 (host-write queue length): writers change nhost_writes under the lock with a release store, and the early-out reads it with an acquire load. The ranges themselves are copied under the lock. A write noted after the check is taken at the next collection.
  • L4 (sieve_visited): SIEVE is gone from this PR.
  • L5/L6 (HOS_COLLECT_AVX2 and its test): gone, since main has HOS_COLLECT_VECTOR.
  • L7 (cloth AVX2 test): not in this PR.
  • L9 (switch rows): present.

Farm (72a3074, the old base 544229a): it couldn't judge the PR on any target, and my 30 Nov reading of it was wrong.

  • The windows+nvidia ❌ is the crash rule. On the GTX 980 / 4 GB tester (report), main hung in 2 of its 3 starts and the PR in 1 of 3. That PC's hang doesn't single out the PR, and I was wrong to tie it to BeanBot's findings.
  • The one usable main start had p99 41.0 ms. The two usable PR starts had 37.9 ms and 1021 ms. The bad PR start also had half the VRAM in use (1315 vs ~2840 MB mean) and 4× the memory-sync time (250 vs ~60 ms). The report keeps only the last start's log, so I can't tell from it whether that start was the PR's doing or the same trouble as main's hangs.
  • On the second windows+nvidia tester the save never loaded. nvidia and linux+radv failed on no setting vram_budget, which the old base didn't have and main does now. igpu was −1 % p99 (couldn't be judged). AMD and Intel returned no metrics.

So the low-VRAM case this PR is meant for still has no usable measurement. I'm asking for a fresh @Beanstalk on this head from a BigBeans member, ideally with the same pool-mirror-multi-area plan including a 4–6 GB card.

HumanBean's measurements (#2886, RTX 3090 / Linux, each part alone):

  • Pool flags: −0.9 %.
  • mirror_sync scan: +1.4 %.
  • Both are inside the 155.9–160.3 fps spread of those runs.

My own Windows numbers agree once read honestly: memsync_csv_mean −9.2 % with no overlap, but Avg FPS +0.35 % and overlapping lows. I've rewritten the description's Verdict to say so. Neither is a demonstrated frame-rate win on a big card. If the low-VRAM farm run also shows nothing for the pool flags, I'll take them out of this PR and keep only the mirror_sync scan, or close it if that shows nothing either. The shipped defaults stay as they are until then. Nothing has measured either switch slower.

Testing (this push): Windows / llvm-mingw, through the PC's job queue:

  • python -I -B tests/run_all.py --exact with 25 checks that read the changed code (test_pool_flags, test_capture_pool_refresh, test_program_hooks, test_vk_desc_span_fast, test_ui_renderer, test_hos_ab_table, test_bug_report, test_turf_budget, test_mem_check, test_msync_pass, test_wb_learn, test_capture_copy_runs, test_mirror_gpu_only, test_sparse_mirror, test_page_table_census, test_switch_table, test_import_span/_reach/_windows/_log, test_wb_diff_cpu_writes, test_inline_write_order, test_replay_write_order, test_ub_update_batch, test_vk_ubo_ssbo_fast): 25 passed, 0 failed on 33f926954.
  • --changed origin/main on the first rebase (b4d56f526): 203 passed. The 6 failures were 4 since fixed above (test_program_hooks, test_vk_desc_span_fast) or timed out (test_direct_buffer_writes, test_invalidate_vcore: 60 s compile limit on the loaded PC), plus 2 for shader headers missing on this PC (test_gfx_effects, test_gfx_world: no cargo for gen-shaders here).
  • Syntax-only compile of gpu/vk/vk_memory.cpp with -march=x86-64-v3 and x86-64 (AVX2 and scalar mirror_sync), and of host/nvdrv.c, host/nvn_native.c, host/rx_backend.c (llvm-mingw, Windows target): clean.
  • test_direct_buffer_writes / test_invalidate_vcore on this head without the compile limit: still queued when I posted this. CI runs both.

Not done: no runtime build or game run on this PC after the rebase, and no Linux compile here. CI builds both.

Rebased onto `main` `1e782fa4b` and pushed as `33f926954`, with BeanBot's last open blocking finding fixed. This covers the farm run, the review findings carried over from #2886, and HumanBean's measurements. **What changed (`33f926954`)** - **Rebase:** `main` had moved 84 commits since `28cb22b9e`, and `MkwVkHost` grew three members in that time. `gpu_pools_flags` is now the member of API **version 90**, after `game_settings_at_start`. `host/rx_backend.c`'s `vk_host` sets it by name, and the renderer asks for it at `host->version >= 90`. `HOS_POOL_FLAGS` sits beside #2902's `HOS_POOL_FLAGS_SITES` in `gpu/vk/switches.def`. The renderer's `RX_VK_PLAY_SAVE_START_MB` / `RX_VK_POOL_IDLE` rows are settings on `main` now, so I didn't re-add them as `SW` rows. - **L2 (nested overlap) was not fixed in `f595bb3`.** Its backward walk stopped at the first earlier pool ending at or before `lo`, so BeanBot's exact case (`[0,100)` CPU-accessible, then `[10,20)` and `[30,80)` GPU-only, query `[40,50)`) still returned true, and the write-back would have been skipped. `pool_flags_policy::set_reach` now stores each pool's running maximum end when `memory_sync` builds `guest_pools`. `range_all_gpu_only` starts at the first pool whose running end passes `lo` (a binary search), so every overlapping pool is seen. `tests/test_pool_flags.py` has that case plus the all-GPU-only control. - Tests whose stand-ins read the changed code: `tests/test_vk_desc_span_fast.py` gets the `pool_flags_skip_writeback` stub. `tests/test_program_hooks.py` names `gpu_pools_flags` after version 89's members. The `gpu_pools_flags` parameter is unnamed, so `host_members` doesn't read `(*out)` as a member. **BeanBot's findings from #2886, as they stand on this head:** - L1 (`PHYSICAL | CPU_CACHED`): fixed in `f595bb3`. Only `CPU_NO_ACCESS` counts (`gpu/vk/pool_flags_policy.h`, `host/nvdrv.c` `HOS_NVN_POOL_GPU_ONLY`). - L2: fixed now, as above. - L3 (host-write queue length): writers change `nhost_writes` under the lock with a release store, and the early-out reads it with an acquire load. The ranges themselves are copied under the lock. A write noted after the check is taken at the next collection. - L4 (`sieve_visited`): SIEVE is gone from this PR. - L5/L6 (`HOS_COLLECT_AVX2` and its test): gone, since `main` has `HOS_COLLECT_VECTOR`. - L7 (cloth AVX2 test): not in this PR. - L9 (switch rows): present. **Farm (`72a3074`, the old base `544229a`):** it couldn't judge the PR on any target, and my 30 Nov reading of it was wrong. - The `windows+nvidia` ❌ is the crash rule. On the GTX 980 / 4 GB tester ([report](https://beanstalk.magicbean.dev/reports/rp_9436e98e44671e5c)), **main hung in 2 of its 3 starts and the PR in 1 of 3**. That PC's hang doesn't single out the PR, and I was wrong to tie it to BeanBot's findings. - The one usable main start had p99 41.0 ms. The two usable PR starts had 37.9 ms and 1021 ms. The bad PR start also had half the VRAM in use (1315 vs ~2840 MB mean) and 4× the memory-sync time (250 vs ~60 ms). The report keeps only the last start's log, so I can't tell from it whether that start was the PR's doing or the same trouble as main's hangs. - On the second `windows+nvidia` tester the save never loaded. `nvidia` and `linux+radv` failed on `no setting vram_budget`, which the old base didn't have and `main` does now. `igpu` was −1 % p99 (couldn't be judged). AMD and Intel returned no metrics. So the low-VRAM case this PR is meant for still has no usable measurement. I'm asking for a fresh `@Beanstalk` on this head from a `BigBeans` member, ideally with the same `pool-mirror-multi-area` plan including a 4–6 GB card. **HumanBean's measurements ([#2886](https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/2886), RTX 3090 / Linux, each part alone):** - Pool flags: −0.9 %. - `mirror_sync` scan: +1.4 %. - Both are inside the 155.9–160.3 fps spread of those runs. My own Windows numbers agree once read honestly: `memsync_csv_mean` −9.2 % with no overlap, but Avg FPS +0.35 % and overlapping lows. I've rewritten the description's Verdict to say so. Neither is a demonstrated frame-rate win on a big card. If the low-VRAM farm run also shows nothing for the pool flags, I'll take them out of this PR and keep only the `mirror_sync` scan, or close it if that shows nothing either. The shipped defaults stay as they are until then. Nothing has measured either switch slower. **Testing (this push):** Windows / llvm-mingw, through the PC's job queue: - `python -I -B tests/run_all.py --exact` with 25 checks that read the changed code (`test_pool_flags`, `test_capture_pool_refresh`, `test_program_hooks`, `test_vk_desc_span_fast`, `test_ui_renderer`, `test_hos_ab_table`, `test_bug_report`, `test_turf_budget`, `test_mem_check`, `test_msync_pass`, `test_wb_learn`, `test_capture_copy_runs`, `test_mirror_gpu_only`, `test_sparse_mirror`, `test_page_table_census`, `test_switch_table`, `test_import_span`/`_reach`/`_windows`/`_log`, `test_wb_diff_cpu_writes`, `test_inline_write_order`, `test_replay_write_order`, `test_ub_update_batch`, `test_vk_ubo_ssbo_fast`): **25 passed, 0 failed** on `33f926954`. - `--changed origin/main` on the first rebase (`b4d56f526`): 203 passed. The 6 failures were 4 since fixed above (`test_program_hooks`, `test_vk_desc_span_fast`) or timed out (`test_direct_buffer_writes`, `test_invalidate_vcore`: 60 s compile limit on the loaded PC), plus 2 for shader headers missing on this PC (`test_gfx_effects`, `test_gfx_world`: no cargo for `gen-shaders` here). - Syntax-only compile of `gpu/vk/vk_memory.cpp` with `-march=x86-64-v3` and `x86-64` (AVX2 and scalar `mirror_sync`), and of `host/nvdrv.c`, `host/nvn_native.c`, `host/rx_backend.c` (llvm-mingw, Windows target): clean. - `test_direct_buffer_writes` / `test_invalidate_vcore` on this head without the compile limit: still queued when I posted this. CI runs both. Not done: no runtime build or game run on this PC after the rebase, and no Linux compile here. CI builds both.
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.
dyst left a comment

Recommendation: Request changes. It conflicts with main, and its API version 90 is now taken there. Skipping write-backs for CPU_NO_ACCESS ranges looks likely to leave GPU-signalled event values stale in guest memory, because main now flags the event pool CPU_NO_ACCESS (#2902). The skipped write-backs also pin those pools' VRAM mirrors on the low-VRAM cards this PR is meant for, and that cost hasn't been measured. On top of that, no measurement shows a frame-rate gain.

For a player: nothing that shows yet. It cuts the renderer's memory sync by about 9% on one PC, and it could ease memory pressure on small cards, but that is unmeasured. The code is mostly careful: the overlap walk is fixed, the scalar fallback stays and each part has a kill switch. Some of the AVX2 scan is duplicated, though.

Does it help: Unproven. memsync_csv_mean dropped from 0.630 to 0.572 ms (-9.2%, spreads don't overlap) on an i7-9700 with an RTX 4060 at 720p. On the same runs, average fps was +0.35% and the 1%/0.1% lows overlap. HumanBean's RTX 3090 / Linux runs (#2886) were -0.9% (pool flags) and +1.4% (scan), both inside the run spread. All of those numbers are from before the rebase. The farm run was on the old base and could not judge any target. The low-VRAM case the PR is aimed at has no usable number.
Other systems: guest CPU readers of CPU_NO_ACCESS pools: nvnEventGetValue is one (blocking 2). VRAM budget and mirror release: blocking 3. Builds without A64_WRITE_TRACK: suggestion 3. AMD, Intel and the Deck: no run at all on this head.
Switches: HOS_POOL_FLAGS, RX_VK_POOL_FLAGS and RX_VK_MIRROR_SYNC_FAST are kill switches, all on by default. The rows are present, but no measurement chose "on" for any platform. Having two switches for one decision (the host's and the renderer's) lets them disagree.
Reviewed: 33f926954 against its base 1e782fa4b. I read every changed hunk in gpu/vk/pool_flags_policy.h, vk_memory.cpp, vk_api.h, switches.def, host/nvdrv.c, nvn_native.c, rx_backend.c and hos.h. I also read the code they rely on: the users of Pool::gpu_only, page_gen/load_gen, gpu_write → gpu_piece_bind → gpu_buffer_bind, nvnEventGetValue/nvnEventSignal, and main's HOS_POOL_FLAGS_SITES. I skimmed the test changes. Nothing was run.
Fixed in this review: nothing (no push).
Checked and fine:

  • range_all_gpu_only with set_reach handles the nested case. The partition_point holds because reach is monotonic.
  • The AVX2 compare is unsigned through the bias XOR. Lanes map to q + 4k + lane, and dirty lanes are re-read with load_gen.
  • The fast scan's whole-region path matches page_gen = max(chunk, region_full). A region can't straddle a chunk while 65536 % 512 == 0.
  • The ranges taken from the host-write queue are sorted and merged before collect_in.
  • nhost_writes is changed under the lock, and the early-out reads it with an acquire load.
  • map_add/hos_gpu_track keep their old behaviour through flags 0.

Blocking

  1. gpu/vk/vk_api.h:28 and :470: main is at MKWVK_API_VERSION 98, and version 90 there is the ReShade presets member. gpu_pools_flags has to become version 99, last on MkwVkHost. The host->version >= 90 checks need the same number (gpu/vk/vk_memory.cpp:875 and :1697), and so does tests/test_pool_flags.py's ver >= 90. As it stands, a version-98 host would pass >= 90 with no such member. After the rebase, the description's baseline commits and the in-game run need refreshing.
  2. gpu/vk/vk_memory.cpp:186 (pool_flags_skip_writeback), with main's #2902:
    • HOS_POOL_FLAGS_SITES, on by default, flags the game's event pool CPU_NO_ACCESS (game/crates/game-core/src/engine.rs:366).
    • A GPU-side NOP_SIGNAL_EVENT (gpu/vk/vk_replay.cpp:1925) writes the value with gpu_write → gpu_piece_bind → gpu_buffer_bind(gpu, n, true), and this PR skips that write-back.
    • The game's nvnEventGetValue (host/nvn_native.c:1252) reads guest memory through nvn_gpu_read. That covers every caller but the present poll. With the pool mirrored, it reads the old value: a wait that never ends, or a sync that runs early.
    • This is the case your Risks names: "a CPU read from a CPU_NO_ACCESS pool without nvn_gpu_write". An event read through the driver is legal in such a pool on the console.
    • Fix: keep write-backs for event storage. For example, gpu_write from NOP_SIGNAL_EVENT could also guest_cpu_write the 4 bytes, or the write-back could be kept for any range an event lives in. Add a game-free test for it.
  3. gpu/vk/vk_memory.cpp:187: p.gpu_only = true means the pool's mirror is kept for good. Idle release (:6413) and the cold-mirror pass (:6740) both skip gpu_only pools. That's needed for correctness once write-backs are skipped. But every pool that once had a write-back skipped can no longer give its VRAM back, and that lands on the 4–6 GB cards this PR is meant for. The only low-VRAM data is the GTX 980 farm run on the old base: VRAM peak +5%, one PR start at 1021 ms p99, couldn't be judged. Measure it with vram_budget on a small card, or name the cost in Risks with a number.
  4. Does it help is Unproven (see above), and a perf change with no measured gain doesn't merge. Once 1–3 are done: interleaved runs on main's current head on a 4–6 GB card (the farm's pool-mirror-multi-area plan with vram_budget), plus a heavy area on your PC. If the pool flags show nothing there, drop them and keep the mirror_sync scan, as you offered on 3 Dec.

Suggestions

  1. gpu/vk/vk_memory.cpp:5213: env_on("RX_VK_LOG_LIVE") is now a getenv on every mirror_sync call. Main read it once (static const). On Windows a getenv takes the CRT environment lock and scans the environment. Keep it static:
    static const bool log_live = env_on("RX_VK_LOG_LIVE");
    
  2. gpu/vk/vk_memory.cpp:5233: const bool dirty = true; if (dirty && note_writes) is left over from the old loop. Drop dirty.
  3. host/nvdrv.c:201: hos_gpu_note_host_write queues every nvn_gpu_write, including CPU event signals and writes to CPU-accessible pools. Only host_collect drains the queue, and that exists only under A64_WRITE_TRACK && !__EMSCRIPTEN__. Where it isn't built, or before the renderer collects, the queue grows for the whole session. Note only writes that land in GPU-only pools, or cap the queue.
  4. memory_sync (:875) and refresh_pool_ranges_locked (:1697) now hold two copies of the same loop. Fill a 3-wide list from either host call (flags 0 from gpu_pools) and keep one loop.
  5. load_gen4 uses inline-asm vmovdqu where _mm256_loadu_si256 would do. If it's there to stop the compiler from merging or caching the racy loads, say so in a comment.

Testing: Before the rebase, the author ran it in the game on Windows 11 with an RTX 4060 (f595bb3c0, 4 interleaved runs, 0 warnings). After the rebase there are only game-free checks: 25 run_all checks and syntax-only compiles. That head was never run in the game. Every item under Still to test is open (Linux/RADV, Windows full suite, a 4–6 GB NVIDIA card). There is no AMD, Intel or Deck run. A fresh @Beanstalk should wait until the rebase onto main (blocking 1) is pushed. Missing testing holds the merge.
Overlaps and merge order: #2886 is HumanBean's port of this onto main (its numbers are quoted above), and #2902 (merged) is what makes blocking 2 reachable. The open PRs touching the same files (#3080, #3116, #1334, #2816, #2542, #2515) were not read in this review. Whichever lands first on MkwVkHost takes the next API version, and the other renumbers.

**Recommendation: Request changes.** It conflicts with main, and its API version 90 is now taken there. Skipping write-backs for CPU_NO_ACCESS ranges looks likely to leave GPU-signalled event values stale in guest memory, because main now flags the event pool CPU_NO_ACCESS (#2902). The skipped write-backs also pin those pools' VRAM mirrors on the low-VRAM cards this PR is meant for, and that cost hasn't been measured. On top of that, no measurement shows a frame-rate gain. For a player: nothing that shows yet. It cuts the renderer's memory sync by about 9% on one PC, and it could ease memory pressure on small cards, but that is unmeasured. The code is mostly careful: the overlap walk is fixed, the scalar fallback stays and each part has a kill switch. Some of the AVX2 scan is duplicated, though. **Does it help:** Unproven. `memsync_csv_mean` dropped from 0.630 to 0.572 ms (-9.2%, spreads don't overlap) on an i7-9700 with an RTX 4060 at 720p. On the same runs, average fps was +0.35% and the 1%/0.1% lows overlap. HumanBean's RTX 3090 / Linux runs (#2886) were -0.9% (pool flags) and +1.4% (scan), both inside the run spread. All of those numbers are from before the rebase. The farm run was on the old base and could not judge any target. The low-VRAM case the PR is aimed at has no usable number. **Other systems:** guest CPU readers of CPU_NO_ACCESS pools: `nvnEventGetValue` is one (blocking 2). VRAM budget and mirror release: blocking 3. Builds without `A64_WRITE_TRACK`: suggestion 3. AMD, Intel and the Deck: no run at all on this head. **Switches:** `HOS_POOL_FLAGS`, `RX_VK_POOL_FLAGS` and `RX_VK_MIRROR_SYNC_FAST` are kill switches, all on by default. The rows are present, but no measurement chose "on" for any platform. Having two switches for one decision (the host's and the renderer's) lets them disagree. **Reviewed:** 33f926954 against its base 1e782fa4b. I read every changed hunk in `gpu/vk/pool_flags_policy.h`, `vk_memory.cpp`, `vk_api.h`, `switches.def`, `host/nvdrv.c`, `nvn_native.c`, `rx_backend.c` and `hos.h`. I also read the code they rely on: the users of `Pool::gpu_only`, `page_gen`/`load_gen`, `gpu_write` → `gpu_piece_bind` → `gpu_buffer_bind`, `nvnEventGetValue`/`nvnEventSignal`, and main's `HOS_POOL_FLAGS_SITES`. I skimmed the test changes. Nothing was run. **Fixed in this review:** nothing (no push). **Checked and fine:** - `range_all_gpu_only` with `set_reach` handles the nested case. The `partition_point` holds because reach is monotonic. - The AVX2 compare is unsigned through the bias XOR. Lanes map to `q + 4k + lane`, and dirty lanes are re-read with `load_gen`. - The fast scan's whole-region path matches `page_gen = max(chunk, region_full)`. A region can't straddle a chunk while 65536 % 512 == 0. - The ranges taken from the host-write queue are sorted and merged before `collect_in`. - `nhost_writes` is changed under the lock, and the early-out reads it with an acquire load. - `map_add`/`hos_gpu_track` keep their old behaviour through flags 0. **Blocking** 1. `gpu/vk/vk_api.h:28` and `:470`: main is at `MKWVK_API_VERSION 98`, and version 90 there is the ReShade presets member. `gpu_pools_flags` has to become version 99, last on `MkwVkHost`. The `host->version >= 90` checks need the same number (`gpu/vk/vk_memory.cpp:875` and `:1697`), and so does `tests/test_pool_flags.py`'s `ver >= 90`. As it stands, a version-98 host would pass `>= 90` with no such member. After the rebase, the description's baseline commits and the in-game run need refreshing. 2. `gpu/vk/vk_memory.cpp:186` (`pool_flags_skip_writeback`), with main's #2902: - `HOS_POOL_FLAGS_SITES`, on by default, flags the game's event pool CPU_NO_ACCESS (`game/crates/game-core/src/engine.rs:366`). - A GPU-side `NOP_SIGNAL_EVENT` (`gpu/vk/vk_replay.cpp:1925`) writes the value with `gpu_write` → `gpu_piece_bind` → `gpu_buffer_bind(gpu, n, true)`, and this PR skips that write-back. - The game's `nvnEventGetValue` (`host/nvn_native.c:1252`) reads guest memory through `nvn_gpu_read`. That covers every caller but the present poll. With the pool mirrored, it reads the old value: a wait that never ends, or a sync that runs early. - This is the case your Risks names: "a CPU read from a CPU_NO_ACCESS pool without `nvn_gpu_write`". An event read through the driver is legal in such a pool on the console. - Fix: keep write-backs for event storage. For example, `gpu_write` from `NOP_SIGNAL_EVENT` could also `guest_cpu_write` the 4 bytes, or the write-back could be kept for any range an event lives in. Add a game-free test for it. 3. `gpu/vk/vk_memory.cpp:187`: `p.gpu_only = true` means the pool's mirror is kept for good. Idle release (`:6413`) and the cold-mirror pass (`:6740`) both skip `gpu_only` pools. That's needed for correctness once write-backs are skipped. But every pool that once had a write-back skipped can no longer give its VRAM back, and that lands on the 4–6 GB cards this PR is meant for. The only low-VRAM data is the GTX 980 farm run on the old base: VRAM peak +5%, one PR start at 1021 ms p99, couldn't be judged. Measure it with `vram_budget` on a small card, or name the cost in Risks with a number. 4. Does it help is Unproven (see above), and a perf change with no measured gain doesn't merge. Once 1–3 are done: interleaved runs on main's current head on a 4–6 GB card (the farm's `pool-mirror-multi-area` plan with `vram_budget`), plus a heavy area on your PC. If the pool flags show nothing there, drop them and keep the `mirror_sync` scan, as you offered on 3 Dec. **Suggestions** 1. `gpu/vk/vk_memory.cpp:5213`: `env_on("RX_VK_LOG_LIVE")` is now a `getenv` on every `mirror_sync` call. Main read it once (`static const`). On Windows a `getenv` takes the CRT environment lock and scans the environment. Keep it static: ```cpp static const bool log_live = env_on("RX_VK_LOG_LIVE"); ``` 2. `gpu/vk/vk_memory.cpp:5233`: `const bool dirty = true; if (dirty && note_writes)` is left over from the old loop. Drop `dirty`. 3. `host/nvdrv.c:201`: `hos_gpu_note_host_write` queues every `nvn_gpu_write`, including CPU event signals and writes to CPU-accessible pools. Only `host_collect` drains the queue, and that exists only under `A64_WRITE_TRACK && !__EMSCRIPTEN__`. Where it isn't built, or before the renderer collects, the queue grows for the whole session. Note only writes that land in GPU-only pools, or cap the queue. 4. `memory_sync` (`:875`) and `refresh_pool_ranges_locked` (`:1697`) now hold two copies of the same loop. Fill a 3-wide list from either host call (flags 0 from `gpu_pools`) and keep one loop. 5. `load_gen4` uses inline-asm `vmovdqu` where `_mm256_loadu_si256` would do. If it's there to stop the compiler from merging or caching the racy loads, say so in a comment. **Testing:** Before the rebase, the author ran it in the game on Windows 11 with an RTX 4060 (f595bb3c0, 4 interleaved runs, 0 warnings). After the rebase there are only game-free checks: 25 `run_all` checks and syntax-only compiles. That head was never run in the game. Every item under Still to test is open (Linux/RADV, Windows full suite, a 4–6 GB NVIDIA card). There is no AMD, Intel or Deck run. A fresh `@Beanstalk` should wait until the rebase onto main (blocking 1) is pushed. Missing testing holds the merge. **Overlaps and merge order:** #2886 is HumanBean's port of this onto main (its numbers are quoted above), and #2902 (merged) is what makes blocking 2 reachable. The open PRs touching the same files (#3080, #3116, #1334, #2816, #2542, #2515) were not read in this review. Whichever lands first on `MkwVkHost` takes the next API version, and the other renumbers.
Some checks are pending
CI / What the change needs (pull_request) Blocked by required conditions
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Blocked by required conditions
CI / Third-party parts and guide screenshots (pull_request) Blocked by required conditions
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Blocked by required conditions
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Blocked by required conditions
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Blocked by required conditions
CI / Website build and checks (pull_request) Blocked by required conditions
beanstalk/approval waiting for a BigBean's 👍 on the request
PR description / Title and description (pull_request_target) Successful in 7s
This pull request has changes conflicting with the target branch.
  • gpu/vk/vk_api.h
  • host/rx_backend.c
  • tests/test_program_hooks.py
Some workflows are waiting to be reviewed.
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u 'perf/pc-discrete-memory-coherence:siantm-perf/pc-discrete-memory-coherence'
git switch 'siantm-perf/pc-discrete-memory-coherence'
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
4 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!2858
No description provided.