perf(vk): adaptive exponential part ramp and lazy upload command buffer (RX_VK_PART_ADAPTIVE) #3004

Merged
HumanBean merged 1 commit from siantm/Longshot:perf/vk-part-adaptive-lazy-upload into main 2026-12-02 16:48:34 +00:00
Contributor

Summary

On PC builds (Longshot), gpu/vk/vk_replay.cpp previously split recording replay into fixed-size integer parts (min_part / min_part_draws) and eagerly acquired an upload_cb command buffer (begin / end / queue submit) on parts even when the part performed zero host-staged uploads or runs in synchronous non-threaded / non-deferred / non-gprof / non-fo-tracking mode. On CPU-bound frames, eager upload_cb acquisition and overly small fixed part thresholds add redundant command-buffer lifecycle work and synchronization bubbles (wait_gpu_ms, main_cpu_ms).

This change introduces RX_VK_PART_ADAPTIVE (default 1, 0 legacy, check/2 live parity counter mode) across gpu/vk/part_adaptive_fast.h and gpu/vk/vk_replay.cpp:

  • Exponential per-frame part threshold ramp (32 -> 120 -> 240 -> 512 draws): Ramps the part draw threshold upward across parts within a recording so steady-state frames avoid premature mid-frame command-buffer splits, while 0 preserves the exact legacy integer threshold.
  • Lazy upload command buffer (upload_cb): Defers upload_cb acquisition in non-threaded, non-deferred, non-gprof, and non-fo_tracking() modes until an actual upload requires it, avoiding empty upload command buffers when a part has zero uploads (lazy_skips=20201 out of parts=86871 in 30 s live gameplay).

Files to read first: gpu/vk/part_adaptive_fast.h, gpu/vk/vk_replay.cpp, gpu/vk/switches.def, and tests/test_vk_part_adaptive.py.

Testing

Tested: Windows (skylake_skylake_4fada1d4fa), longshot-builder.exe / clang++ and g++, scene market (1280x720):

  • python -I scripts/dev.py pack && python -I scripts/dev.py rt: clean build (0 shader parts rebuilt, lift: unchanged, v3.2.0-196-g8fd77e404).
  • python -I scripts/dev.py vk: passed (270 units compiled cleanly, longshot_vk.dll linked, symbols checked).
  • tests/test_vk_part_adaptive.py: passed with both clang++ and g++ (12/12 MUST_FAIL broken variants verified).
  • tests/test_hos_ab.py --cc clang, tests/test_tls_objects.py (19 TLS_OBJECTs; 44 other namespace-scope thread_locals), and tests/test_vk_braces.py (620 sources): all passed.
  • Live 30 s parity (RX_VK_PART_ADAPTIVE=check, scene market): 2097 frames (69.9 fps), vk: rx_vk_part_adaptive check: parts=86871 lazy_skips=20201 mismatches=0, RUN_ERROR=None, zero VK_ERROR_DEVICE_LOST or crashes.
  • tests/test_switch_table.py was not modified; note LONGSHOT_LAUNCHER_STARTUP in host/launcher_startup.h:9 is a pre-existing failure on main.

Still to test:

  • Linux / RADV and SteamOS / Tier-1 GPUs (@Beanstalk smoke and in-run A/B on Linux/Windows Vulkan drivers).

Measurements

Verdict: Faster: +1.09% mean FPS (side 1 OFF is -1.05% fps / +0.150 ms slower per frame, 95% CI +0.64% to +1.47%, strictly excluding 0), winning 5/5 queued 90 s runs (AB1–AB5) with improved frame-time tails (1% Low +0.85 FPS, 0.1% Low +2.67 FPS, p99 -0.24 ms) and lower GPU wait time (wait_gpu_ms -5.76% / -0.1360 ms). RX_VK_PART_ADAPTIVE ships enabled by default (1).

Setup: Windows, scene market (1280x720), single-binary in-run HOS_AB alternating RX_VK_PART_ADAPTIVE=1 (Side 0, ON) and RX_VK_PART_ADAPTIVE=0 (Side 1, OFF) every 2 s across 5 queued 90 s runs (20261202-121950-rx_vk_part_adaptive-inrun-market, 147 paired periods total).

Baseline: Because this uses same-build HOS_AB toggling, Side 1 (RX_VK_PART_ADAPTIVE=0) executes the exact legacy main @ 56823e27a fixed-threshold and eager upload_cb behavior in the same binary and scene.

Metric Before: main @ 56823e27a (RX_VK_PART_ADAPTIVE=0, Side 1 OFF) After: this PR @ 8fd77e404 (RX_VK_PART_ADAPTIVE=1, Side 0 ON) Delta (ON vs OFF)
Pooled Avg FPS (n=14244 vs 14405) 70.34 FPS 71.11 FPS +1.09% (-0.1545 ms; side 1 -1.05% fps, 95% CI +0.64% to +1.47%)
Pooled P50 / p99 71.74 FPS / 17.99 ms 72.52 FPS / 17.75 ms -0.24 ms p99
Pooled 1% Low / 0.1% Low 55.62 FPS / 44.70 FPS 56.47 FPS / 47.37 FPS +0.85 FPS / +2.67 FPS
Stutters (>= 50 ms / min) 0.00 0.00 0.00
wait_gpu_ms 2.3600 ms 2.2239 ms -0.1360 ms (-5.76%)
main_cpu_ms / draw_ms / desc_ms / cmds_ms - - -1.92% / -0.45% / -0.40% / -0.47%

Per-run HOS_AB results (AB1–AB5): AB1 -0.70% (70.9 vs 70.4), AB2 -0.67% (70.9 vs 70.5), AB3 -0.87% (71.0 vs 70.4), AB4 -1.06% (71.5 vs 70.8), AB5 -2.01% (71.1 vs 69.7); scripts/perf.py ab per-run p99: 17.886 vs 20.291 ms, 17.786 vs 19.722 ms, 18.019 vs 19.580 ms, 17.188 vs 19.816 ms, 17.930 vs 19.181 ms.

Risks

  • Larger adaptive part thresholds slightly increase per-part command buffer length in multi-part frames when RX_VK_PART_ADAPTIVE=1, which could shift submission cadence on drivers with different command-buffer submission costs.
  • Lazy upload_cb deferral is strictly gated off in threaded, deferred, gprof, and fo_tracking() modes to keep upload synchronization ordering unchanged.
  • Players can turn this off immediately without rebuilding via RX_VK_PART_ADAPTIVE=0; a clean revert of this commit restores prior code. No save files, options, or shader/pipeline caches change.

Checklist

Ready for review

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

When it applies

  • A switch added or changed: it ships at the default the measurements chose, with its row in gpu/vk/switches.def.
  • A check under tests/ that reads changed source is updated, not weakened.
  • Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths.
  • AI assistance recorded with Assisted-by: / Co-Authored-By: trailers.

Ready to merge

  • Everything in Still to test has run, its results in Tested.
  • Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers").
  • Approved in review, every comment answered.
  • CI passes on the head; on current main, measured again or a comment says why the numbers still hold.
## Summary On PC builds (`Longshot`), `gpu/vk/vk_replay.cpp` previously split recording replay into fixed-size integer parts (`min_part` / `min_part_draws`) and eagerly acquired an `upload_cb` command buffer (`begin` / `end` / queue submit) on parts even when the part performed zero host-staged uploads or runs in synchronous non-threaded / non-deferred / non-gprof / non-fo-tracking mode. On CPU-bound frames, eager `upload_cb` acquisition and overly small fixed part thresholds add redundant command-buffer lifecycle work and synchronization bubbles (`wait_gpu_ms`, `main_cpu_ms`). This change introduces `RX_VK_PART_ADAPTIVE` (default `1`, `0` legacy, `check`/`2` live parity counter mode) across [gpu/vk/part_adaptive_fast.h](file:///C:/Users/User/.gemini/antigravity/scratch/Longshot/gpu/vk/part_adaptive_fast.h) and [gpu/vk/vk_replay.cpp](file:///C:/Users/User/.gemini/antigravity/scratch/Longshot/gpu/vk/vk_replay.cpp): - **Exponential per-frame part threshold ramp (`32 -> 120 -> 240 -> 512` draws):** Ramps the part draw threshold upward across parts within a recording so steady-state frames avoid premature mid-frame command-buffer splits, while `0` preserves the exact legacy integer threshold. - **Lazy upload command buffer (`upload_cb`):** Defers `upload_cb` acquisition in non-threaded, non-deferred, non-gprof, and non-`fo_tracking()` modes until an actual upload requires it, avoiding empty upload command buffers when a part has zero uploads (`lazy_skips=20201` out of `parts=86871` in 30 s live gameplay). Files to read first: `gpu/vk/part_adaptive_fast.h`, `gpu/vk/vk_replay.cpp`, `gpu/vk/switches.def`, and `tests/test_vk_part_adaptive.py`. ## Testing **Tested:** Windows (`skylake_skylake_4fada1d4fa`), `longshot-builder.exe` / `clang++` and `g++`, scene `market` (`1280x720`): - `python -I scripts/dev.py pack && python -I scripts/dev.py rt`: clean build (`0` shader parts rebuilt, `lift: unchanged`, `v3.2.0-196-g8fd77e404`). - `python -I scripts/dev.py vk`: passed (`270` units compiled cleanly, `longshot_vk.dll` linked, symbols checked). - `tests/test_vk_part_adaptive.py`: passed with both `clang++` and `g++` (`12/12` `MUST_FAIL` broken variants verified). - `tests/test_hos_ab.py --cc clang`, `tests/test_tls_objects.py` (`19 TLS_OBJECTs; 44 other namespace-scope thread_locals`), and `tests/test_vk_braces.py` (`620` sources): all passed. - Live 30 s parity (`RX_VK_PART_ADAPTIVE=check`, scene `market`): `2097` frames (`69.9` fps), `vk: rx_vk_part_adaptive check: parts=86871 lazy_skips=20201 mismatches=0`, `RUN_ERROR=None`, zero `VK_ERROR_DEVICE_LOST` or crashes. - `tests/test_switch_table.py` was not modified; note `LONGSHOT_LAUNCHER_STARTUP` in `host/launcher_startup.h:9` is a pre-existing failure on `main`. **Still to test:** - Linux / RADV and SteamOS / Tier-1 GPUs (`@Beanstalk` smoke and in-run A/B on Linux/Windows Vulkan drivers). ## Measurements **Verdict:** Faster: +1.09% mean FPS (side 1 `OFF` is -1.05% fps / +0.150 ms slower per frame, 95% CI +0.64% to +1.47%, strictly excluding 0), winning 5/5 queued 90 s runs (`AB1`–`AB5`) with improved frame-time tails (`1% Low` +0.85 FPS, `0.1% Low` +2.67 FPS, `p99` -0.24 ms) and lower GPU wait time (`wait_gpu_ms` -5.76% / -0.1360 ms). `RX_VK_PART_ADAPTIVE` ships enabled by default (`1`). Setup: Windows, scene `market` (`1280x720`), single-binary in-run `HOS_AB` alternating `RX_VK_PART_ADAPTIVE=1` (Side 0, ON) and `RX_VK_PART_ADAPTIVE=0` (Side 1, OFF) every 2 s across 5 queued 90 s runs (`20261202-121950-rx_vk_part_adaptive-inrun-market`, 147 paired periods total). **Baseline:** Because this uses same-build `HOS_AB` toggling, Side 1 (`RX_VK_PART_ADAPTIVE=0`) executes the exact legacy `main @ 56823e27a` fixed-threshold and eager `upload_cb` behavior in the same binary and scene. | Metric | Before: main @ 56823e27a (`RX_VK_PART_ADAPTIVE=0`, Side 1 OFF) | After: this PR @ 8fd77e404 (`RX_VK_PART_ADAPTIVE=1`, Side 0 ON) | Delta (ON vs OFF) | |---|---:|---:|---:| | Pooled Avg FPS (`n=14244` vs `14405`) | 70.34 FPS | 71.11 FPS | +1.09% (`-0.1545 ms`; side 1 `-1.05%` fps, 95% CI `+0.64%` to `+1.47%`) | | Pooled P50 / p99 | 71.74 FPS / 17.99 ms | 72.52 FPS / 17.75 ms | -0.24 ms p99 | | Pooled 1% Low / 0.1% Low | 55.62 FPS / 44.70 FPS | 56.47 FPS / 47.37 FPS | +0.85 FPS / +2.67 FPS | | Stutters (`>= 50 ms` / min) | 0.00 | 0.00 | 0.00 | | `wait_gpu_ms` | 2.3600 ms | 2.2239 ms | -0.1360 ms (-5.76%) | | `main_cpu_ms` / `draw_ms` / `desc_ms` / `cmds_ms` | - | - | -1.92% / -0.45% / -0.40% / -0.47% | Per-run `HOS_AB` results (`AB1`–`AB5`): `AB1 -0.70%` (`70.9 vs 70.4`), `AB2 -0.67%` (`70.9 vs 70.5`), `AB3 -0.87%` (`71.0 vs 70.4`), `AB4 -1.06%` (`71.5 vs 70.8`), `AB5 -2.01%` (`71.1 vs 69.7`); `scripts/perf.py ab` per-run `p99`: `17.886 vs 20.291 ms`, `17.786 vs 19.722 ms`, `18.019 vs 19.580 ms`, `17.188 vs 19.816 ms`, `17.930 vs 19.181 ms`. ## Risks - Larger adaptive part thresholds slightly increase per-part command buffer length in multi-part frames when `RX_VK_PART_ADAPTIVE=1`, which could shift submission cadence on drivers with different command-buffer submission costs. - Lazy `upload_cb` deferral is strictly gated off in threaded, deferred, gprof, and `fo_tracking()` modes to keep upload synchronization ordering unchanged. - Players can turn this off immediately without rebuilding via `RX_VK_PART_ADAPTIVE=0`; a clean revert of this commit restores prior code. No save files, options, or shader/pipeline caches change. ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. - [x] Tested on my own PC, in the game for a change the game runs, as Testing says. - [x] `mise run test` passes (any failure that also fails on `main` is named). - [x] Measured against `main`, or Measurements says why there is nothing to measure. - [x] No game files, build output or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. ### When it applies - [x] A switch added or changed: it ships at the default the measurements chose, with its row in `gpu/vk/switches.def`. - [x] A check under `tests/` that reads changed source is updated, not weakened. - [x] Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. ### Ready to merge - [ ] Everything in Still to test has run, its results in Tested. - [ ] Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers"). - [ ] Approved in review, every comment answered. - [ ] CI passes on the head; on current `main`, measured again or a comment says why the numbers still hold.
perf(vk): adaptive exponential part ramp and lazy upload command buffer (RX_VK_PART_ADAPTIVE)
Some checks failed
PR description / Title and description (pull_request_target) Successful in 5s
beanstalk/approval approved by HumanBean (reviewed)
beanstalk/nvidia 1/1 fail
beanstalk/amd 2/1 fail
beanstalk/intel 0/1 pass, 0 running, 1 queued
beanstalk/windows+amd 1/1 fail
beanstalk/linux+radv 1/1 fail
beanstalk/steamdeck 1/1 fail
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
8fd77e404e
Assisted-by: Antigravity (Google DeepMind)
Author
Contributor

Tested in game: Windows (skylake_skylake_4fada1d4fa), market 1280x720: 30s RX_VK_PART_ADAPTIVE=check (2097 frames, 69.9 fps, parts=86871 lazy_skips=20201 mismatches=0, RUN_ERROR=None) and 5x90s HOS_AB (5/5 won, +1.09% ON vs OFF, 1% Low +0.85 FPS, 0.1% Low +2.67 FPS)

Tested in game: Windows (skylake_skylake_4fada1d4fa), market 1280x720: 30s RX_VK_PART_ADAPTIVE=check (2097 frames, 69.9 fps, parts=86871 lazy_skips=20201 mismatches=0, RUN_ERROR=None) and 5x90s HOS_AB (5/5 won, +1.09% ON vs OFF, 1% Low +0.85 FPS, 0.1% Low +2.67 FPS)
Member

Possibly related, for context:

  • issue #402 Deck: the frame is CPU-bound in the submission path, not GPU-bound (16 fps at 50% internal, GPU-bound wait 0.4 ms) — Reports CPU-heavy Vulkan replay and command-buffer splitting on Steam Deck; related performance target, not an exact fix.
  • PR #1679 WIP: perf(vk): a big command buffer's first parallel segment 40% of an even one (RX_VK_PAR_FIRST) — Open Vulkan replay segmentation tuning; adjacent part-splitting behavior, not same change.
Possibly related, for context: - issue #402 Deck: the frame is CPU-bound in the submission path, not GPU-bound (16 fps at 50% internal, GPU-bound wait 0.4 ms) — Reports CPU-heavy Vulkan replay and command-buffer splitting on Steam Deck; related performance target, not an exact fix. - PR #1679 WIP: perf(vk): a big command buffer's first parallel segment 40% of an even one (RX_VK_PAR_FIRST) — Open Vulkan replay segmentation tuning; adjacent part-splitting behavior, not same change.
Owner

@review
@beanstalk

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

Commit 8fd77e4 · approved by HumanBean (reviewed) · dashboard

⚠️ Note: Two starts per side keep both switch modes within the run budget; this is unlikely to resolve the claimed roughly 1% speedup reliably.
⚠️ Note: The plan does not run the diagnostic check mode or the in-run alternating A/B, and therefore cannot verify their parity counters or reproduce that measurement protocol.

Started at 14:54 UTC.

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

Target Result Reports VRAM peak (MB) Crashes
nvidia ❌ fail (an outlier) 2 1 2 — none
amd ❌ fail (an outlier) 2 1 2 — none
intel ⏳ queued 1 1 — 4 PR runs
windows+amd ❌ fail (an outlier) 2 1 2 — none
linux+radv ❌ fail (an outlier) 2 1 2 — none
steamdeck ❌ fail 1 1 — none

replay-scenes · frame time p99 (ms)

Target main RX_VK_PART_ADAPTIVE= RX_VK_PART_ADAPTIVE=0 (reference)
nvidia 24.0 24.9 (+9%) 22.9
amd 40.0 43.0 (+44%) 29.8
intel — — —
windows+amd 39.3 40.6 (+2%) 39.9
linux+radv 14.5 15.1 (+5%) 14.3
steamdeck 34.5 40.9 (+13%) 36.2

Why it failed

  • nvidia: replay-scenes · RX_VK_PART_ADAPTIVE= (PR only) market.frametime_1pct_low_ms.max_delta_pct: 12.2 → 14.4 (+17.8%); limit 15.0
  • nvidia: replay-scenes · RX_VK_PART_ADAPTIVE= (PR only) market.frametime_p99_ms: RX_VK_PART_ADAPTIVE= vs RX_VK_PART_ADAPTIVE=0 (PR): 10.6 → 12.2 (+15.6%); limit 15.0; the PR's own cells: RX_VK_PART_ADAPTIVE= against RX_VK_PART_ADAPTIVE=0 (RX_VK_PART_ADAPTIVE=0 (PR only))
  • amd: replay-scenes · RX_VK_PART_ADAPTIVE=0 (PR only) screenshot.max_diff: 0.1 → 0.2; limit 0.2
  • amd: replay-scenes · RX_VK_PART_ADAPTIVE= (PR only) kokiri.frametime_p99_ms.max_delta_pct: 56.6 → 77.0 (+36.0%); limit 15.0
  • amd: replay-scenes · RX_VK_PART_ADAPTIVE= (PR only) kokiri.frametime_1pct_low_ms.max_delta_pct: 67.1 → 85.8 (+27.8%); limit 15.0
  • amd: replay-scenes · RX_VK_PART_ADAPTIVE= (PR only) market.frametime_p99_ms: RX_VK_PART_ADAPTIVE= vs RX_VK_PART_ADAPTIVE=0 (PR): 43.4 → 50.8 (+17.2%); limit 15.0; the PR's own cells: RX_VK_PART_ADAPTIVE= against RX_VK_PART_ADAPTIVE=0 (RX_VK_PART_ADAPTIVE=0 (PR only))
  • amd: replay-scenes · RX_VK_PART_ADAPTIVE= (PR only) kokiri.frametime_p99_ms: RX_VK_PART_ADAPTIVE= vs RX_VK_PART_ADAPTIVE=0 (PR): 49.6 → 77.0 (+55.2%); limit 15.0; the PR's own cells: RX_VK_PART_ADAPTIVE= against RX_VK_PART_ADAPTIVE=0 (RX_VK_PART_ADAPTIVE=0 (PR only))
  • windows+amd: replay-scenes · RX_VK_PART_ADAPTIVE= (PR only) screenshot.max_diff: 0.2 → 0.3; limit 0.2
  • and 6 more, in the reports

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.

  • intel, report 1: Insufficient frame-time evidence for 10 required comparison(s). See rule results.
What was tested

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

The farm will compare adaptive replay with main and with the PR’s legacy mode in Market and Kokiri Forest, using two starts per side and 20-second uncapped measurements at each location. NVIDIA, AMD, Intel, Windows AMD, Linux RADV and Steam Deck targets will measure frame times and compare stationary pictures; the switch comparison isolates the adaptive mode within the PR. A crash, a frame-time regression over 15%, or a picture difference over the allowed threshold fails the plan.

  • Where: nvidia (1-2 reports), amd (1-2 reports), intel (1-2 reports), windows+amd (1-2 reports), linux+radv (1-2 reports), steamdeck (1-2 reports).
  • Matrix: 2 cells, each on main and the PR: RX_VK_PART_ADAPTIVE `` or 0 (PR only).
  • replay-scenes: from the repository's save market-entrance (settings vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0; switches HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0), then teleport to Market, take the picture market to compare with main, measure market for 20 s (after 10 s warm-up), teleport to Kokiri Forest, take the picture kokiri to compare with main, measure kokiri for 20 s (after 10 s warm-up); 2 runs on each side for each of 2 cells (2 game starts a run).
  • Measured: crashes, frame times, stutters and hitches.
  • The PR fails if: it crashes; or the PR's frame time (p99) with RX_VK_PART_ADAPTIVE= is more than 15% above RX_VK_PART_ADAPTIVE=0; or a picture differs from main by more than 20%; or frame time (p99) is more than 15% above main; or frame time (worst 1%) is more than 15% above main.
  • Time: about 49 min of game runs per tester (8 game starts), plus the two builds.
Measurements on `nvidia`, for the PR description

Verdict: fail on nvidia (2 reports): replay-scenes market.frametime_1pct_low_ms.max_delta_pct (+17.8%); replay-scenes market.frametime_p99_ms: RX_VK_PART_ADAPTIVE= vs RX_VK_PART_ADAPTIVE=0 (PR) (+15.6%) failed.

Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+window+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+window NVIDIA GeForce RTX 4070, 621.24.0 AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM
Scene: replay-scenes, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=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); replay-scenes: 2 game starts a side, market 20 s after 10 s warm-up, kokiri 20 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 @ 56823e2 After: this PR @ 8fd77e4
replay-scenes · RX_VK_PART_ADAPTIVE= (PR only) · kokiri · frame time (p99) (ms) 22.3 24.9 (+12%)
replay-scenes · RX_VK_PART_ADAPTIVE= (PR only) · market · frame time (p99) (ms) 29.0 28.3 (−2%)
replay-scenes · RX_VK_PART_ADAPTIVE= (PR only) · kokiri · frame time (worst 1%) (ms) 24.9 27.0 (+9%)
replay-scenes · RX_VK_PART_ADAPTIVE= (PR only) · market · frame time (worst 1%) (ms) 34.4 32.4 (−6%)
replay-scenes · RX_VK_PART_ADAPTIVE=0 (PR only) · kokiri · frame time (p99) (ms) 24.0 22.9 (−5%)
replay-scenes · RX_VK_PART_ADAPTIVE=0 (PR only) · market · frame time (p99) (ms) 30.4 30.4 (−0%)
replay-scenes · RX_VK_PART_ADAPTIVE=0 (PR only) · kokiri · frame time (worst 1%) (ms) 25.3 25.2 (−0%)
replay-scenes · RX_VK_PART_ADAPTIVE=0 (PR only) · market · frame time (worst 1%) (ms) 35.4 33.7 (−5%)

Flags and settings

Flag What it is Values tried Before this PR After this PR Effect (frame time (p99)) Helps / doesn't help / untested
RX_VK_PART_ADAPTIVE switch the PR adds (set on the PR side only) ``, 0 not in main the PR's default replay-scenes, main without it → the PR with : 22.3 → 24.9 (+12%) doesn't help

As Markdown for the PR description:

## Measurements

**Verdict:** fail on nvidia (2 reports): `replay-scenes market.frametime_1pct_low_ms.max_delta_pct (+17.8%)`; `replay-scenes market.frametime_p99_ms: RX_VK_PART_ADAPTIVE= vs RX_VK_PART_ADAPTIVE=0 (PR) (+15.6%)` failed.

Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+window+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+window `NVIDIA GeForce RTX 4070, 621.24.0` `AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM`  
Scene: replay-scenes, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=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); replay-scenes: 2 game starts a side, market 20 s after 10 s warm-up, kokiri 20 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 @ 56823e2 | After: this PR @ 8fd77e4 |
|---|---|---|
| replay-scenes · `RX_VK_PART_ADAPTIVE= (PR only)` · kokiri · frame time (p99) (ms) | 22.3 | 24.9 (+12%) |
| replay-scenes · `RX_VK_PART_ADAPTIVE= (PR only)` · market · frame time (p99) (ms) | 29.0 | 28.3 (−2%) |
| replay-scenes · `RX_VK_PART_ADAPTIVE= (PR only)` · kokiri · frame time (worst 1%) (ms) | 24.9 | 27.0 (+9%) |
| replay-scenes · `RX_VK_PART_ADAPTIVE= (PR only)` · market · frame time (worst 1%) (ms) | 34.4 | 32.4 (−6%) |
| replay-scenes · `RX_VK_PART_ADAPTIVE=0 (PR only)` · kokiri · frame time (p99) (ms) | 24.0 | 22.9 (−5%) |
| replay-scenes · `RX_VK_PART_ADAPTIVE=0 (PR only)` · market · frame time (p99) (ms) | 30.4 | 30.4 (−0%) |
| replay-scenes · `RX_VK_PART_ADAPTIVE=0 (PR only)` · kokiri · frame time (worst 1%) (ms) | 25.3 | 25.2 (−0%) |
| replay-scenes · `RX_VK_PART_ADAPTIVE=0 (PR only)` · market · frame time (worst 1%) (ms) | 35.4 | 33.7 (−5%) |

**Flags and settings**

| Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested |
|---|---|---|---|---|---|---|
| `RX_VK_PART_ADAPTIVE` | switch the PR adds (set on the PR side only) | ``, `0` | not in main | the PR's default | replay-scenes, main without it → the PR with : 22.3 → 24.9 (+12%) | doesn't help |
Measurements on `amd`, for the PR description

Verdict: fail on amd (2 reports): replay-scenes screenshot.max_diff; replay-scenes kokiri.frametime_p99_ms.max_delta_pct (+36.0%); replay-scenes kokiri.frametime_1pct_low_ms.max_delta_pct (+27.8%) failed.

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 AMD Radeon 760M Graphics (RADV PHOENIX), 26.0.8 AMD Ryzen 5 230 w/ Radeon 760M Graphics, 16 GB RAM
Scene: replay-scenes, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=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); replay-scenes: 2 game starts a side, market 20 s after 10 s warm-up, kokiri 20 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 @ 56823e2 After: this PR @ 8fd77e4
replay-scenes · RX_VK_PART_ADAPTIVE= (PR only) · kokiri · frame time (p99) (ms) 33.3 43.0 (+29%)
replay-scenes · RX_VK_PART_ADAPTIVE= (PR only) · market · frame time (p99) (ms) 29.0 31.4 (+8%)
replay-scenes · RX_VK_PART_ADAPTIVE= (PR only) · kokiri · frame time (worst 1%) (ms) 39.2 48.1 (+23%)
replay-scenes · RX_VK_PART_ADAPTIVE= (PR only) · market · frame time (worst 1%) (ms) 32.8 36.4 (+11%)
replay-scenes · RX_VK_PART_ADAPTIVE=0 (PR only) · kokiri · frame time (p99) (ms) 40.0 29.8 (−26%)
replay-scenes · RX_VK_PART_ADAPTIVE=0 (PR only) · market · frame time (p99) (ms) 27.6 27.9 (+1%)
replay-scenes · RX_VK_PART_ADAPTIVE=0 (PR only) · kokiri · frame time (worst 1%) (ms) 50.0 38.6 (−23%)
replay-scenes · RX_VK_PART_ADAPTIVE=0 (PR only) · market · frame time (worst 1%) (ms) 29.9 29.8 (−0%)

Flags and settings

Flag What it is Values tried Before this PR After this PR Effect (frame time (p99)) Helps / doesn't help / untested
RX_VK_PART_ADAPTIVE switch the PR adds (set on the PR side only) ``, 0 not in main the PR's default replay-scenes, main without it → the PR with : 33.3 → 43.0 (+29%) doesn't help

As Markdown for the PR description:

## Measurements

**Verdict:** fail on amd (2 reports): `replay-scenes screenshot.max_diff`; `replay-scenes kokiri.frametime_p99_ms.max_delta_pct (+36.0%)`; `replay-scenes kokiri.frametime_1pct_low_ms.max_delta_pct (+27.8%)` failed.

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 `AMD Radeon 760M Graphics (RADV PHOENIX), 26.0.8` `AMD Ryzen 5 230 w/ Radeon 760M Graphics, 16 GB RAM`  
Scene: replay-scenes, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=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); replay-scenes: 2 game starts a side, market 20 s after 10 s warm-up, kokiri 20 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 @ 56823e2 | After: this PR @ 8fd77e4 |
|---|---|---|
| replay-scenes · `RX_VK_PART_ADAPTIVE= (PR only)` · kokiri · frame time (p99) (ms) | 33.3 | 43.0 (+29%) |
| replay-scenes · `RX_VK_PART_ADAPTIVE= (PR only)` · market · frame time (p99) (ms) | 29.0 | 31.4 (+8%) |
| replay-scenes · `RX_VK_PART_ADAPTIVE= (PR only)` · kokiri · frame time (worst 1%) (ms) | 39.2 | 48.1 (+23%) |
| replay-scenes · `RX_VK_PART_ADAPTIVE= (PR only)` · market · frame time (worst 1%) (ms) | 32.8 | 36.4 (+11%) |
| replay-scenes · `RX_VK_PART_ADAPTIVE=0 (PR only)` · kokiri · frame time (p99) (ms) | 40.0 | 29.8 (−26%) |
| replay-scenes · `RX_VK_PART_ADAPTIVE=0 (PR only)` · market · frame time (p99) (ms) | 27.6 | 27.9 (+1%) |
| replay-scenes · `RX_VK_PART_ADAPTIVE=0 (PR only)` · kokiri · frame time (worst 1%) (ms) | 50.0 | 38.6 (−23%) |
| replay-scenes · `RX_VK_PART_ADAPTIVE=0 (PR only)` · market · frame time (worst 1%) (ms) | 29.9 | 29.8 (−0%) |

**Flags and settings**

| Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested |
|---|---|---|---|---|---|---|
| `RX_VK_PART_ADAPTIVE` | switch the PR adds (set on the PR side only) | ``, `0` | not in main | the PR's default | replay-scenes, main without it → the PR with : 33.3 → 43.0 (+29%) | doesn't help |
Measurements on `intel`, for the PR description

Verdict: queued on intel (1 report).

Hardware: 1: windows+intel+intel-proprietary+igpu+window Intel(R) UHD Graphics 630, 0.404.2115 Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz, 8 GB RAM
Scene: replay-scenes, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=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); replay-scenes: 2 game starts a side, market 20 s after 10 s warm-up, kokiri 20 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

Flag What it is Values tried Before this PR After this PR Effect (frame time (p99)) Helps / doesn't help / untested
RX_VK_PART_ADAPTIVE switch the PR adds (set on the PR side only) ``, 0 not in main the PR's default replay-scenes, main without it → the PR with : not measured untested

As Markdown for the PR description:

## Measurements

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

Hardware: 1: windows+intel+intel-proprietary+igpu+window `Intel(R) UHD Graphics 630, 0.404.2115` `Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz, 8 GB RAM`  
Scene: replay-scenes, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=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); replay-scenes: 2 game starts a side, market 20 s after 10 s warm-up, kokiri 20 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**

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

Verdict: fail on windows+amd (2 reports): replay-scenes screenshot.max_diff failed.

Hardware: 1: windows+amd+amd-proprietary+dgpu+window+fsr4 AMD Radeon RX 9070 XT, 2.0.416 AMD Ryzen 9 7950X 16-Core Processor, 128 GB RAM; 2: windows+amd+amd-proprietary+igpu+window+xess AMD Radeon(TM) Graphics, 2.0.279 AMD Ryzen 5 5600G with Radeon Graphics, 28 GB RAM
Scene: replay-scenes, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=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); replay-scenes: 2 game starts a side, market 20 s after 10 s warm-up, kokiri 20 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 @ 56823e2 After: this PR @ 8fd77e4
replay-scenes · RX_VK_PART_ADAPTIVE= (PR only) · kokiri · frame time (p99) (ms) 39.9 40.6 (+2%)
replay-scenes · RX_VK_PART_ADAPTIVE= (PR only) · market · frame time (p99) (ms) 45.5 45.9 (+1%)
replay-scenes · RX_VK_PART_ADAPTIVE= (PR only) · kokiri · frame time (worst 1%) (ms) 40.8 42.0 (+3%)
replay-scenes · RX_VK_PART_ADAPTIVE= (PR only) · market · frame time (worst 1%) (ms) 52.7 51.2 (−3%)
replay-scenes · RX_VK_PART_ADAPTIVE=0 (PR only) · kokiri · frame time (p99) (ms) 39.3 39.9 (+2%)
replay-scenes · RX_VK_PART_ADAPTIVE=0 (PR only) · market · frame time (p99) (ms) 44.0 44.3 (+1%)
replay-scenes · RX_VK_PART_ADAPTIVE=0 (PR only) · kokiri · frame time (worst 1%) (ms) 42.7 41.4 (−3%)
replay-scenes · RX_VK_PART_ADAPTIVE=0 (PR only) · market · frame time (worst 1%) (ms) 45.6 49.3 (+8%)

Flags and settings

Flag What it is Values tried Before this PR After this PR Effect (frame time (p99)) Helps / doesn't help / untested
RX_VK_PART_ADAPTIVE switch the PR adds (set on the PR side only) ``, 0 not in main the PR's default replay-scenes, main without it → the PR with : 39.9 → 40.6 (+2%) no clear effect

As Markdown for the PR description:

## Measurements

**Verdict:** fail on windows+amd (2 reports): `replay-scenes screenshot.max_diff` failed.

Hardware: 1: windows+amd+amd-proprietary+dgpu+window+fsr4 `AMD Radeon RX 9070 XT, 2.0.416` `AMD Ryzen 9 7950X 16-Core Processor, 128 GB RAM`; 2: windows+amd+amd-proprietary+igpu+window+xess `AMD Radeon(TM) Graphics, 2.0.279` `AMD Ryzen 5 5600G with Radeon Graphics, 28 GB RAM`  
Scene: replay-scenes, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=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); replay-scenes: 2 game starts a side, market 20 s after 10 s warm-up, kokiri 20 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 @ 56823e2 | After: this PR @ 8fd77e4 |
|---|---|---|
| replay-scenes · `RX_VK_PART_ADAPTIVE= (PR only)` · kokiri · frame time (p99) (ms) | 39.9 | 40.6 (+2%) |
| replay-scenes · `RX_VK_PART_ADAPTIVE= (PR only)` · market · frame time (p99) (ms) | 45.5 | 45.9 (+1%) |
| replay-scenes · `RX_VK_PART_ADAPTIVE= (PR only)` · kokiri · frame time (worst 1%) (ms) | 40.8 | 42.0 (+3%) |
| replay-scenes · `RX_VK_PART_ADAPTIVE= (PR only)` · market · frame time (worst 1%) (ms) | 52.7 | 51.2 (−3%) |
| replay-scenes · `RX_VK_PART_ADAPTIVE=0 (PR only)` · kokiri · frame time (p99) (ms) | 39.3 | 39.9 (+2%) |
| replay-scenes · `RX_VK_PART_ADAPTIVE=0 (PR only)` · market · frame time (p99) (ms) | 44.0 | 44.3 (+1%) |
| replay-scenes · `RX_VK_PART_ADAPTIVE=0 (PR only)` · kokiri · frame time (worst 1%) (ms) | 42.7 | 41.4 (−3%) |
| replay-scenes · `RX_VK_PART_ADAPTIVE=0 (PR only)` · market · frame time (worst 1%) (ms) | 45.6 | 49.3 (+8%) |

**Flags and settings**

| Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested |
|---|---|---|---|---|---|---|
| `RX_VK_PART_ADAPTIVE` | switch the PR adds (set on the PR side only) | ``, `0` | not in main | the PR's default | replay-scenes, main without it → the PR with : 39.9 → 40.6 (+2%) | no clear effect |
Measurements on `linux+radv`, for the PR description

Verdict: fail on linux+radv (2 reports): replay-scenes screenshot.max_diff failed.

Hardware: 1: linux+amd+radv+dgpu AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1 AMD Ryzen 7 5700X3D 8-Core Processor, 32 GB RAM; 2: linux+amd+radv+igpu AMD Radeon 890M Graphics (RADV STRIX1), 26.1.99 AMD Ryzen Z2 Extreme, 32 GB RAM
Scene: replay-scenes, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=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); replay-scenes: 2 game starts a side, market 20 s after 10 s warm-up, kokiri 20 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 @ 56823e2 After: this PR @ 8fd77e4
replay-scenes · RX_VK_PART_ADAPTIVE= (PR only) · kokiri · frame time (p99) (ms) 14.3 15.1 (+6%)
replay-scenes · RX_VK_PART_ADAPTIVE= (PR only) · market · frame time (p99) (ms) 17.2 17.2 (−0%)
replay-scenes · RX_VK_PART_ADAPTIVE= (PR only) · kokiri · frame time (worst 1%) (ms) 15.5 16.5 (+7%)
replay-scenes · RX_VK_PART_ADAPTIVE= (PR only) · market · frame time (worst 1%) (ms) 20.5 20.8 (+2%)
replay-scenes · RX_VK_PART_ADAPTIVE=0 (PR only) · kokiri · frame time (p99) (ms) 14.5 14.3 (−1%)
replay-scenes · RX_VK_PART_ADAPTIVE=0 (PR only) · market · frame time (p99) (ms) 17.3 17.4 (+1%)
replay-scenes · RX_VK_PART_ADAPTIVE=0 (PR only) · kokiri · frame time (worst 1%) (ms) 16.0 15.8 (−1%)
replay-scenes · RX_VK_PART_ADAPTIVE=0 (PR only) · market · frame time (worst 1%) (ms) 20.6 20.7 (+1%)

Flags and settings

Flag What it is Values tried Before this PR After this PR Effect (frame time (p99)) Helps / doesn't help / untested
RX_VK_PART_ADAPTIVE switch the PR adds (set on the PR side only) ``, 0 not in main the PR's default replay-scenes, main without it → the PR with : 14.3 → 15.1 (+6%) doesn't help

As Markdown for the PR description:

## Measurements

**Verdict:** fail on linux+radv (2 reports): `replay-scenes screenshot.max_diff` failed.

Hardware: 1: linux+amd+radv+dgpu `AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1` `AMD Ryzen 7 5700X3D 8-Core Processor, 32 GB RAM`; 2: linux+amd+radv+igpu `AMD Radeon 890M Graphics (RADV STRIX1), 26.1.99` `AMD Ryzen Z2 Extreme, 32 GB RAM`  
Scene: replay-scenes, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=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); replay-scenes: 2 game starts a side, market 20 s after 10 s warm-up, kokiri 20 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 @ 56823e2 | After: this PR @ 8fd77e4 |
|---|---|---|
| replay-scenes · `RX_VK_PART_ADAPTIVE= (PR only)` · kokiri · frame time (p99) (ms) | 14.3 | 15.1 (+6%) |
| replay-scenes · `RX_VK_PART_ADAPTIVE= (PR only)` · market · frame time (p99) (ms) | 17.2 | 17.2 (−0%) |
| replay-scenes · `RX_VK_PART_ADAPTIVE= (PR only)` · kokiri · frame time (worst 1%) (ms) | 15.5 | 16.5 (+7%) |
| replay-scenes · `RX_VK_PART_ADAPTIVE= (PR only)` · market · frame time (worst 1%) (ms) | 20.5 | 20.8 (+2%) |
| replay-scenes · `RX_VK_PART_ADAPTIVE=0 (PR only)` · kokiri · frame time (p99) (ms) | 14.5 | 14.3 (−1%) |
| replay-scenes · `RX_VK_PART_ADAPTIVE=0 (PR only)` · market · frame time (p99) (ms) | 17.3 | 17.4 (+1%) |
| replay-scenes · `RX_VK_PART_ADAPTIVE=0 (PR only)` · kokiri · frame time (worst 1%) (ms) | 16.0 | 15.8 (−1%) |
| replay-scenes · `RX_VK_PART_ADAPTIVE=0 (PR only)` · market · frame time (worst 1%) (ms) | 20.6 | 20.7 (+1%) |

**Flags and settings**

| Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested |
|---|---|---|---|---|---|---|
| `RX_VK_PART_ADAPTIVE` | switch the PR adds (set on the PR side only) | ``, `0` | not in main | the PR's default | replay-scenes, main without it → the PR with : 14.3 → 15.1 (+6%) | doesn't help |
Measurements on `steamdeck`, for the PR description

Verdict: fail on steamdeck (1 report): replay-scenes screenshot.max_diff; replay-scenes kokiri.frametime_p99_ms.max_delta_pct (+15.7%); replay-scenes market.frametime_1pct_low_ms.max_delta_pct (+118.9%) failed.

Hardware: 1: linux+amd+radv+igpu+handheld AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99 AMD Custom APU 0405, 16 GB RAM
Scene: replay-scenes, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=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); replay-scenes: 2 game starts a side, market 20 s after 10 s warm-up, kokiri 20 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)

Before: main @ 56823e2 After: this PR @ 8fd77e4
replay-scenes · RX_VK_PART_ADAPTIVE= (PR only) · kokiri · frame time (p99) (ms) 35.4 40.9 (+16%)
replay-scenes · RX_VK_PART_ADAPTIVE= (PR only) · market · frame time (p99) (ms) 50.8 49.5 (−2%)
replay-scenes · RX_VK_PART_ADAPTIVE= (PR only) · kokiri · frame time (worst 1%) (ms) 37.9 54.3 (+43%)
replay-scenes · RX_VK_PART_ADAPTIVE= (PR only) · market · frame time (worst 1%) (ms) 61.1 133.8 (+119%)
replay-scenes · RX_VK_PART_ADAPTIVE=0 (PR only) · kokiri · frame time (p99) (ms) 34.5 36.2 (+5%)
replay-scenes · RX_VK_PART_ADAPTIVE=0 (PR only) · market · frame time (p99) (ms) 46.2 49.4 (+7%)
replay-scenes · RX_VK_PART_ADAPTIVE=0 (PR only) · kokiri · frame time (worst 1%) (ms) 62.4 44.8 (−28%)
replay-scenes · RX_VK_PART_ADAPTIVE=0 (PR only) · market · frame time (worst 1%) (ms) 123.5 109.2 (−12%)

Flags and settings

Flag What it is Values tried Before this PR After this PR Effect (frame time (p99)) Helps / doesn't help / untested
RX_VK_PART_ADAPTIVE switch the PR adds (set on the PR side only) ``, 0 not in main the PR's default replay-scenes, main without it → the PR with : 35.4 → 40.9 (+16%) doesn't help

As Markdown for the PR description:

## Measurements

**Verdict:** fail on steamdeck (1 report): `replay-scenes screenshot.max_diff`; `replay-scenes kokiri.frametime_p99_ms.max_delta_pct (+15.7%)`; `replay-scenes market.frametime_1pct_low_ms.max_delta_pct (+118.9%)` failed.

Hardware: 1: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 16 GB RAM`  
Scene: replay-scenes, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=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); replay-scenes: 2 game starts a side, market 20 s after 10 s warm-up, kokiri 20 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)

| | Before: main @ 56823e2 | After: this PR @ 8fd77e4 |
|---|---|---|
| replay-scenes · `RX_VK_PART_ADAPTIVE= (PR only)` · kokiri · frame time (p99) (ms) | 35.4 | 40.9 (+16%) |
| replay-scenes · `RX_VK_PART_ADAPTIVE= (PR only)` · market · frame time (p99) (ms) | 50.8 | 49.5 (−2%) |
| replay-scenes · `RX_VK_PART_ADAPTIVE= (PR only)` · kokiri · frame time (worst 1%) (ms) | 37.9 | 54.3 (+43%) |
| replay-scenes · `RX_VK_PART_ADAPTIVE= (PR only)` · market · frame time (worst 1%) (ms) | 61.1 | 133.8 (+119%) |
| replay-scenes · `RX_VK_PART_ADAPTIVE=0 (PR only)` · kokiri · frame time (p99) (ms) | 34.5 | 36.2 (+5%) |
| replay-scenes · `RX_VK_PART_ADAPTIVE=0 (PR only)` · market · frame time (p99) (ms) | 46.2 | 49.4 (+7%) |
| replay-scenes · `RX_VK_PART_ADAPTIVE=0 (PR only)` · kokiri · frame time (worst 1%) (ms) | 62.4 | 44.8 (−28%) |
| replay-scenes · `RX_VK_PART_ADAPTIVE=0 (PR only)` · market · frame time (worst 1%) (ms) | 123.5 | 109.2 (−12%) |

**Flags and settings**

| Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested |
|---|---|---|---|---|---|---|
| `RX_VK_PART_ADAPTIVE` | switch the PR adds (set on the PR side only) | ``, `0` | not in main | the PR's default | replay-scenes, main without it → the PR with : 35.4 → 40.9 (+16%) | doesn't help |
The testers' hardware
Target Report Ran on
nvidia 1 windows+nvidia+nvidia-proprietary+dgpu+window+xess NVIDIA GeForce GTX 980, 582.78.0 Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, 32 GB RAM
nvidia 2 windows+nvidia+nvidia-proprietary+dgpu+window NVIDIA GeForce RTX 4070, 621.24.0 AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM
amd 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
amd 2 linux+amd+radv+igpu AMD Radeon 760M Graphics (RADV PHOENIX), 26.0.8 AMD Ryzen 5 230 w/ Radeon 760M Graphics, 16 GB RAM
intel 1 windows+intel+intel-proprietary+igpu+window Intel(R) UHD Graphics 630, 0.404.2115 Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz, 8 GB RAM
windows+amd 1 windows+amd+amd-proprietary+dgpu+window+fsr4 AMD Radeon RX 9070 XT, 2.0.416 AMD Ryzen 9 7950X 16-Core Processor, 128 GB RAM
windows+amd 2 windows+amd+amd-proprietary+igpu+window+xess AMD Radeon(TM) Graphics, 2.0.279 AMD Ryzen 5 5600G with Radeon Graphics, 28 GB RAM
linux+radv 1 linux+amd+radv+dgpu AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1 AMD Ryzen 7 5700X3D 8-Core Processor, 32 GB RAM
linux+radv 2 linux+amd+radv+igpu AMD Radeon 890M Graphics (RADV STRIX1), 26.1.99 AMD Ryzen Z2 Extreme, 32 GB RAM
steamdeck 1 linux+amd+radv+igpu+handheld AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99 AMD Custom APU 0405, 16 GB RAM
<!-- beanstalk:previous --> <details><summary>Beanstalk test farm · an earlier run: commit <code>8fd77e4</code> (the newer results are in a comment below)</summary> Commit `8fd77e4` · approved by HumanBean (reviewed) · [dashboard](https://beanstalk.magicbean.dev/prs/3004) ⚠️ **Note:** Two starts per side keep both switch modes within the run budget; this is unlikely to resolve the claimed roughly 1% speedup reliably. ⚠️ **Note:** The plan does not run the diagnostic check mode or the in-run alternating A/B, and therefore cannot verify their parity counters or reproduce that measurement protocol. Started at 14:54 UTC. **Estimate:** done in about 2 h 15 min, from the queue and the testers online now; some jobs can't start yet. | Target | Result | Reports | VRAM peak (MB) | Crashes | | --- | --- | --- | --- | --- | | `nvidia` | ❌ fail (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_0a6308ea973a8c65) [2](https://beanstalk.magicbean.dev/reports/rp_338acee3b996103d) | — | none | | `amd` | ❌ fail (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_df8da6ab407d2e1a) [2](https://beanstalk.magicbean.dev/reports/rp_d4199c83c13b4e79) | — | none | | `intel` | ⏳ queued | 1 [1](https://beanstalk.magicbean.dev/reports/rp_3cad2161579fc629) | — | 4 PR runs | | `windows+amd` | ❌ fail (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_1fc8d730df3f54d7) [2](https://beanstalk.magicbean.dev/reports/rp_96d5d5145b10ef3b) | — | none | | `linux+radv` | ❌ fail (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_8284574413e54799) [2](https://beanstalk.magicbean.dev/reports/rp_9900268651eb7058) | — | none | | `steamdeck` | ❌ fail | 1 [1](https://beanstalk.magicbean.dev/reports/rp_b666bc67cb3fe8ef) | — | none | **`replay-scenes`** · frame time p99 (ms) | Target | main | `RX_VK_PART_ADAPTIVE=` | `RX_VK_PART_ADAPTIVE=0` (reference) | | --- | --- | --- | --- | | `nvidia` | 24.0 | 24.9 (+9%) | 22.9 | | `amd` | 40.0 | 43.0 (+44%) | 29.8 | | `intel` | — | — | — | | `windows+amd` | 39.3 | 40.6 (+2%) | 39.9 | | `linux+radv` | 14.5 | 15.1 (+5%) | 14.3 | | `steamdeck` | 34.5 | 40.9 (+13%) | 36.2 | **Why it failed** - `nvidia`: `replay-scenes · RX_VK_PART_ADAPTIVE= (PR only)` `market.frametime_1pct_low_ms.max_delta_pct`: `12.2 → 14.4 (+17.8%); limit 15.0` - `nvidia`: `replay-scenes · RX_VK_PART_ADAPTIVE= (PR only)` `market.frametime_p99_ms: RX_VK_PART_ADAPTIVE= vs RX_VK_PART_ADAPTIVE=0 (PR)`: `10.6 → 12.2 (+15.6%); limit 15.0; the PR's own cells: RX_VK_PART_ADAPTIVE= against RX_VK_PART_ADAPTIVE=0 (RX_VK_PART_ADAPTIVE=0 (PR only))` - `amd`: `replay-scenes · RX_VK_PART_ADAPTIVE=0 (PR only)` `screenshot.max_diff`: `0.1 → 0.2; limit 0.2` - `amd`: `replay-scenes · RX_VK_PART_ADAPTIVE= (PR only)` `kokiri.frametime_p99_ms.max_delta_pct`: `56.6 → 77.0 (+36.0%); limit 15.0` - `amd`: `replay-scenes · RX_VK_PART_ADAPTIVE= (PR only)` `kokiri.frametime_1pct_low_ms.max_delta_pct`: `67.1 → 85.8 (+27.8%); limit 15.0` - `amd`: `replay-scenes · RX_VK_PART_ADAPTIVE= (PR only)` `market.frametime_p99_ms: RX_VK_PART_ADAPTIVE= vs RX_VK_PART_ADAPTIVE=0 (PR)`: `43.4 → 50.8 (+17.2%); limit 15.0; the PR's own cells: RX_VK_PART_ADAPTIVE= against RX_VK_PART_ADAPTIVE=0 (RX_VK_PART_ADAPTIVE=0 (PR only))` - `amd`: `replay-scenes · RX_VK_PART_ADAPTIVE= (PR only)` `kokiri.frametime_p99_ms: RX_VK_PART_ADAPTIVE= vs RX_VK_PART_ADAPTIVE=0 (PR)`: `49.6 → 77.0 (+55.2%); limit 15.0; the PR's own cells: RX_VK_PART_ADAPTIVE= against RX_VK_PART_ADAPTIVE=0 (RX_VK_PART_ADAPTIVE=0 (PR only))` - `windows+amd`: `replay-scenes · RX_VK_PART_ADAPTIVE= (PR only)` `screenshot.max_diff`: `0.2 → 0.3; limit 0.2` - and 6 more, in the reports **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. - `intel`, [report 1](https://beanstalk.magicbean.dev/reports/rp_3cad2161579fc629): `Insufficient frame-time evidence for 10 required comparison(s). See rule results.` <details><summary>What was tested</summary> **What will be tested** · AI plan (`gpt-6.1-terra`) The farm will compare adaptive replay with main and with the PR’s legacy mode in Market and Kokiri Forest, using two starts per side and 20-second uncapped measurements at each location. NVIDIA, AMD, Intel, Windows AMD, Linux RADV and Steam Deck targets will measure frame times and compare stationary pictures; the switch comparison isolates the adaptive mode within the PR. A crash, a frame-time regression over 15%, or a picture difference over the allowed threshold fails the plan. - **Where:** nvidia (1-2 reports), amd (1-2 reports), intel (1-2 reports), windows+amd (1-2 reports), linux+radv (1-2 reports), steamdeck (1-2 reports). - **Matrix:** 2 cells, each on main and the PR: RX_VK_PART_ADAPTIVE `` or `0` (PR only). - **replay-scenes:** from the repository's save `market-entrance` (settings vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0; switches `HOS_OUTPUT_RES=1280x720`, `RX_VK_AUTO_TUNE=0`), then teleport to Market, take the picture market to compare with main, measure market for 20 s (after 10 s warm-up), teleport to Kokiri Forest, take the picture kokiri to compare with main, measure kokiri for 20 s (after 10 s warm-up); 2 runs on each side for each of 2 cells (2 game starts a run). - **Measured:** crashes, frame times, stutters and hitches. - **The PR fails if:** it crashes; or the PR's frame time (p99) with RX_VK_PART_ADAPTIVE= is more than 15% above RX_VK_PART_ADAPTIVE=0; or a picture differs from main by more than 20%; or frame time (p99) is more than 15% above main; or frame time (worst 1%) is more than 15% above main. - **Time:** about 49 min of game runs per tester (8 game starts), plus the two builds. </details> <details><summary>Measurements on `nvidia`, for the PR description</summary> **Verdict:** fail on nvidia (2 reports): `replay-scenes market.frametime_1pct_low_ms.max_delta_pct (+17.8%)`; `replay-scenes market.frametime_p99_ms: RX_VK_PART_ADAPTIVE= vs RX_VK_PART_ADAPTIVE=0 (PR) (+15.6%)` failed. Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+window+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+window `NVIDIA GeForce RTX 4070, 621.24.0` `AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM` Scene: replay-scenes, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=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); replay-scenes: 2 game starts a side, market 20 s after 10 s warm-up, kokiri 20 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 @ 56823e2 | After: this PR @ 8fd77e4 | |---|---|---| | replay-scenes · `RX_VK_PART_ADAPTIVE= (PR only)` · kokiri · frame time (p99) (ms) | 22.3 | 24.9 (+12%) | | replay-scenes · `RX_VK_PART_ADAPTIVE= (PR only)` · market · frame time (p99) (ms) | 29.0 | 28.3 (−2%) | | replay-scenes · `RX_VK_PART_ADAPTIVE= (PR only)` · kokiri · frame time (worst 1%) (ms) | 24.9 | 27.0 (+9%) | | replay-scenes · `RX_VK_PART_ADAPTIVE= (PR only)` · market · frame time (worst 1%) (ms) | 34.4 | 32.4 (−6%) | | replay-scenes · `RX_VK_PART_ADAPTIVE=0 (PR only)` · kokiri · frame time (p99) (ms) | 24.0 | 22.9 (−5%) | | replay-scenes · `RX_VK_PART_ADAPTIVE=0 (PR only)` · market · frame time (p99) (ms) | 30.4 | 30.4 (−0%) | | replay-scenes · `RX_VK_PART_ADAPTIVE=0 (PR only)` · kokiri · frame time (worst 1%) (ms) | 25.3 | 25.2 (−0%) | | replay-scenes · `RX_VK_PART_ADAPTIVE=0 (PR only)` · market · frame time (worst 1%) (ms) | 35.4 | 33.7 (−5%) | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_PART_ADAPTIVE` | switch the PR adds (set on the PR side only) | ``, `0` | not in main | the PR's default | replay-scenes, main without it → the PR with : 22.3 → 24.9 (+12%) | doesn't help | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** fail on nvidia (2 reports): `replay-scenes market.frametime_1pct_low_ms.max_delta_pct (+17.8%)`; `replay-scenes market.frametime_p99_ms: RX_VK_PART_ADAPTIVE= vs RX_VK_PART_ADAPTIVE=0 (PR) (+15.6%)` failed. Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+window+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+window `NVIDIA GeForce RTX 4070, 621.24.0` `AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM` Scene: replay-scenes, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=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); replay-scenes: 2 game starts a side, market 20 s after 10 s warm-up, kokiri 20 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 @ 56823e2 | After: this PR @ 8fd77e4 | |---|---|---| | replay-scenes · `RX_VK_PART_ADAPTIVE= (PR only)` · kokiri · frame time (p99) (ms) | 22.3 | 24.9 (+12%) | | replay-scenes · `RX_VK_PART_ADAPTIVE= (PR only)` · market · frame time (p99) (ms) | 29.0 | 28.3 (−2%) | | replay-scenes · `RX_VK_PART_ADAPTIVE= (PR only)` · kokiri · frame time (worst 1%) (ms) | 24.9 | 27.0 (+9%) | | replay-scenes · `RX_VK_PART_ADAPTIVE= (PR only)` · market · frame time (worst 1%) (ms) | 34.4 | 32.4 (−6%) | | replay-scenes · `RX_VK_PART_ADAPTIVE=0 (PR only)` · kokiri · frame time (p99) (ms) | 24.0 | 22.9 (−5%) | | replay-scenes · `RX_VK_PART_ADAPTIVE=0 (PR only)` · market · frame time (p99) (ms) | 30.4 | 30.4 (−0%) | | replay-scenes · `RX_VK_PART_ADAPTIVE=0 (PR only)` · kokiri · frame time (worst 1%) (ms) | 25.3 | 25.2 (−0%) | | replay-scenes · `RX_VK_PART_ADAPTIVE=0 (PR only)` · market · frame time (worst 1%) (ms) | 35.4 | 33.7 (−5%) | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_PART_ADAPTIVE` | switch the PR adds (set on the PR side only) | ``, `0` | not in main | the PR's default | replay-scenes, main without it → the PR with : 22.3 → 24.9 (+12%) | doesn't help | ``` </details> <details><summary>Measurements on `amd`, for the PR description</summary> **Verdict:** fail on amd (2 reports): `replay-scenes screenshot.max_diff`; `replay-scenes kokiri.frametime_p99_ms.max_delta_pct (+36.0%)`; `replay-scenes kokiri.frametime_1pct_low_ms.max_delta_pct (+27.8%)` failed. 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 `AMD Radeon 760M Graphics (RADV PHOENIX), 26.0.8` `AMD Ryzen 5 230 w/ Radeon 760M Graphics, 16 GB RAM` Scene: replay-scenes, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=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); replay-scenes: 2 game starts a side, market 20 s after 10 s warm-up, kokiri 20 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 @ 56823e2 | After: this PR @ 8fd77e4 | |---|---|---| | replay-scenes · `RX_VK_PART_ADAPTIVE= (PR only)` · kokiri · frame time (p99) (ms) | 33.3 | 43.0 (+29%) | | replay-scenes · `RX_VK_PART_ADAPTIVE= (PR only)` · market · frame time (p99) (ms) | 29.0 | 31.4 (+8%) | | replay-scenes · `RX_VK_PART_ADAPTIVE= (PR only)` · kokiri · frame time (worst 1%) (ms) | 39.2 | 48.1 (+23%) | | replay-scenes · `RX_VK_PART_ADAPTIVE= (PR only)` · market · frame time (worst 1%) (ms) | 32.8 | 36.4 (+11%) | | replay-scenes · `RX_VK_PART_ADAPTIVE=0 (PR only)` · kokiri · frame time (p99) (ms) | 40.0 | 29.8 (−26%) | | replay-scenes · `RX_VK_PART_ADAPTIVE=0 (PR only)` · market · frame time (p99) (ms) | 27.6 | 27.9 (+1%) | | replay-scenes · `RX_VK_PART_ADAPTIVE=0 (PR only)` · kokiri · frame time (worst 1%) (ms) | 50.0 | 38.6 (−23%) | | replay-scenes · `RX_VK_PART_ADAPTIVE=0 (PR only)` · market · frame time (worst 1%) (ms) | 29.9 | 29.8 (−0%) | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_PART_ADAPTIVE` | switch the PR adds (set on the PR side only) | ``, `0` | not in main | the PR's default | replay-scenes, main without it → the PR with : 33.3 → 43.0 (+29%) | doesn't help | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** fail on amd (2 reports): `replay-scenes screenshot.max_diff`; `replay-scenes kokiri.frametime_p99_ms.max_delta_pct (+36.0%)`; `replay-scenes kokiri.frametime_1pct_low_ms.max_delta_pct (+27.8%)` failed. 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 `AMD Radeon 760M Graphics (RADV PHOENIX), 26.0.8` `AMD Ryzen 5 230 w/ Radeon 760M Graphics, 16 GB RAM` Scene: replay-scenes, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=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); replay-scenes: 2 game starts a side, market 20 s after 10 s warm-up, kokiri 20 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 @ 56823e2 | After: this PR @ 8fd77e4 | |---|---|---| | replay-scenes · `RX_VK_PART_ADAPTIVE= (PR only)` · kokiri · frame time (p99) (ms) | 33.3 | 43.0 (+29%) | | replay-scenes · `RX_VK_PART_ADAPTIVE= (PR only)` · market · frame time (p99) (ms) | 29.0 | 31.4 (+8%) | | replay-scenes · `RX_VK_PART_ADAPTIVE= (PR only)` · kokiri · frame time (worst 1%) (ms) | 39.2 | 48.1 (+23%) | | replay-scenes · `RX_VK_PART_ADAPTIVE= (PR only)` · market · frame time (worst 1%) (ms) | 32.8 | 36.4 (+11%) | | replay-scenes · `RX_VK_PART_ADAPTIVE=0 (PR only)` · kokiri · frame time (p99) (ms) | 40.0 | 29.8 (−26%) | | replay-scenes · `RX_VK_PART_ADAPTIVE=0 (PR only)` · market · frame time (p99) (ms) | 27.6 | 27.9 (+1%) | | replay-scenes · `RX_VK_PART_ADAPTIVE=0 (PR only)` · kokiri · frame time (worst 1%) (ms) | 50.0 | 38.6 (−23%) | | replay-scenes · `RX_VK_PART_ADAPTIVE=0 (PR only)` · market · frame time (worst 1%) (ms) | 29.9 | 29.8 (−0%) | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_PART_ADAPTIVE` | switch the PR adds (set on the PR side only) | ``, `0` | not in main | the PR's default | replay-scenes, main without it → the PR with : 33.3 → 43.0 (+29%) | doesn't help | ``` </details> <details><summary>Measurements on `intel`, for the PR description</summary> **Verdict:** queued on intel (1 report). Hardware: 1: windows+intel+intel-proprietary+igpu+window `Intel(R) UHD Graphics 630, 0.404.2115` `Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz, 8 GB RAM` Scene: replay-scenes, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=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); replay-scenes: 2 game starts a side, market 20 s after 10 s warm-up, kokiri 20 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** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_PART_ADAPTIVE` | switch the PR adds (set on the PR side only) | ``, `0` | not in main | the PR's default | replay-scenes, main without it → the PR with : not measured | untested | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** queued on intel (1 report). Hardware: 1: windows+intel+intel-proprietary+igpu+window `Intel(R) UHD Graphics 630, 0.404.2115` `Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz, 8 GB RAM` Scene: replay-scenes, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=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); replay-scenes: 2 game starts a side, market 20 s after 10 s warm-up, kokiri 20 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** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_PART_ADAPTIVE` | switch the PR adds (set on the PR side only) | ``, `0` | not in main | the PR's default | replay-scenes, main without it → the PR with : not measured | untested | ``` </details> <details><summary>Measurements on `windows+amd`, for the PR description</summary> **Verdict:** fail on windows+amd (2 reports): `replay-scenes screenshot.max_diff` failed. Hardware: 1: windows+amd+amd-proprietary+dgpu+window+fsr4 `AMD Radeon RX 9070 XT, 2.0.416` `AMD Ryzen 9 7950X 16-Core Processor, 128 GB RAM`; 2: windows+amd+amd-proprietary+igpu+window+xess `AMD Radeon(TM) Graphics, 2.0.279` `AMD Ryzen 5 5600G with Radeon Graphics, 28 GB RAM` Scene: replay-scenes, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=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); replay-scenes: 2 game starts a side, market 20 s after 10 s warm-up, kokiri 20 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 @ 56823e2 | After: this PR @ 8fd77e4 | |---|---|---| | replay-scenes · `RX_VK_PART_ADAPTIVE= (PR only)` · kokiri · frame time (p99) (ms) | 39.9 | 40.6 (+2%) | | replay-scenes · `RX_VK_PART_ADAPTIVE= (PR only)` · market · frame time (p99) (ms) | 45.5 | 45.9 (+1%) | | replay-scenes · `RX_VK_PART_ADAPTIVE= (PR only)` · kokiri · frame time (worst 1%) (ms) | 40.8 | 42.0 (+3%) | | replay-scenes · `RX_VK_PART_ADAPTIVE= (PR only)` · market · frame time (worst 1%) (ms) | 52.7 | 51.2 (−3%) | | replay-scenes · `RX_VK_PART_ADAPTIVE=0 (PR only)` · kokiri · frame time (p99) (ms) | 39.3 | 39.9 (+2%) | | replay-scenes · `RX_VK_PART_ADAPTIVE=0 (PR only)` · market · frame time (p99) (ms) | 44.0 | 44.3 (+1%) | | replay-scenes · `RX_VK_PART_ADAPTIVE=0 (PR only)` · kokiri · frame time (worst 1%) (ms) | 42.7 | 41.4 (−3%) | | replay-scenes · `RX_VK_PART_ADAPTIVE=0 (PR only)` · market · frame time (worst 1%) (ms) | 45.6 | 49.3 (+8%) | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_PART_ADAPTIVE` | switch the PR adds (set on the PR side only) | ``, `0` | not in main | the PR's default | replay-scenes, main without it → the PR with : 39.9 → 40.6 (+2%) | no clear effect | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** fail on windows+amd (2 reports): `replay-scenes screenshot.max_diff` failed. Hardware: 1: windows+amd+amd-proprietary+dgpu+window+fsr4 `AMD Radeon RX 9070 XT, 2.0.416` `AMD Ryzen 9 7950X 16-Core Processor, 128 GB RAM`; 2: windows+amd+amd-proprietary+igpu+window+xess `AMD Radeon(TM) Graphics, 2.0.279` `AMD Ryzen 5 5600G with Radeon Graphics, 28 GB RAM` Scene: replay-scenes, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=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); replay-scenes: 2 game starts a side, market 20 s after 10 s warm-up, kokiri 20 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 @ 56823e2 | After: this PR @ 8fd77e4 | |---|---|---| | replay-scenes · `RX_VK_PART_ADAPTIVE= (PR only)` · kokiri · frame time (p99) (ms) | 39.9 | 40.6 (+2%) | | replay-scenes · `RX_VK_PART_ADAPTIVE= (PR only)` · market · frame time (p99) (ms) | 45.5 | 45.9 (+1%) | | replay-scenes · `RX_VK_PART_ADAPTIVE= (PR only)` · kokiri · frame time (worst 1%) (ms) | 40.8 | 42.0 (+3%) | | replay-scenes · `RX_VK_PART_ADAPTIVE= (PR only)` · market · frame time (worst 1%) (ms) | 52.7 | 51.2 (−3%) | | replay-scenes · `RX_VK_PART_ADAPTIVE=0 (PR only)` · kokiri · frame time (p99) (ms) | 39.3 | 39.9 (+2%) | | replay-scenes · `RX_VK_PART_ADAPTIVE=0 (PR only)` · market · frame time (p99) (ms) | 44.0 | 44.3 (+1%) | | replay-scenes · `RX_VK_PART_ADAPTIVE=0 (PR only)` · kokiri · frame time (worst 1%) (ms) | 42.7 | 41.4 (−3%) | | replay-scenes · `RX_VK_PART_ADAPTIVE=0 (PR only)` · market · frame time (worst 1%) (ms) | 45.6 | 49.3 (+8%) | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_PART_ADAPTIVE` | switch the PR adds (set on the PR side only) | ``, `0` | not in main | the PR's default | replay-scenes, main without it → the PR with : 39.9 → 40.6 (+2%) | no clear effect | ``` </details> <details><summary>Measurements on `linux+radv`, for the PR description</summary> **Verdict:** fail on linux+radv (2 reports): `replay-scenes screenshot.max_diff` failed. Hardware: 1: linux+amd+radv+dgpu `AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1` `AMD Ryzen 7 5700X3D 8-Core Processor, 32 GB RAM`; 2: linux+amd+radv+igpu `AMD Radeon 890M Graphics (RADV STRIX1), 26.1.99` `AMD Ryzen Z2 Extreme, 32 GB RAM` Scene: replay-scenes, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=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); replay-scenes: 2 game starts a side, market 20 s after 10 s warm-up, kokiri 20 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 @ 56823e2 | After: this PR @ 8fd77e4 | |---|---|---| | replay-scenes · `RX_VK_PART_ADAPTIVE= (PR only)` · kokiri · frame time (p99) (ms) | 14.3 | 15.1 (+6%) | | replay-scenes · `RX_VK_PART_ADAPTIVE= (PR only)` · market · frame time (p99) (ms) | 17.2 | 17.2 (−0%) | | replay-scenes · `RX_VK_PART_ADAPTIVE= (PR only)` · kokiri · frame time (worst 1%) (ms) | 15.5 | 16.5 (+7%) | | replay-scenes · `RX_VK_PART_ADAPTIVE= (PR only)` · market · frame time (worst 1%) (ms) | 20.5 | 20.8 (+2%) | | replay-scenes · `RX_VK_PART_ADAPTIVE=0 (PR only)` · kokiri · frame time (p99) (ms) | 14.5 | 14.3 (−1%) | | replay-scenes · `RX_VK_PART_ADAPTIVE=0 (PR only)` · market · frame time (p99) (ms) | 17.3 | 17.4 (+1%) | | replay-scenes · `RX_VK_PART_ADAPTIVE=0 (PR only)` · kokiri · frame time (worst 1%) (ms) | 16.0 | 15.8 (−1%) | | replay-scenes · `RX_VK_PART_ADAPTIVE=0 (PR only)` · market · frame time (worst 1%) (ms) | 20.6 | 20.7 (+1%) | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_PART_ADAPTIVE` | switch the PR adds (set on the PR side only) | ``, `0` | not in main | the PR's default | replay-scenes, main without it → the PR with : 14.3 → 15.1 (+6%) | doesn't help | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** fail on linux+radv (2 reports): `replay-scenes screenshot.max_diff` failed. Hardware: 1: linux+amd+radv+dgpu `AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1` `AMD Ryzen 7 5700X3D 8-Core Processor, 32 GB RAM`; 2: linux+amd+radv+igpu `AMD Radeon 890M Graphics (RADV STRIX1), 26.1.99` `AMD Ryzen Z2 Extreme, 32 GB RAM` Scene: replay-scenes, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=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); replay-scenes: 2 game starts a side, market 20 s after 10 s warm-up, kokiri 20 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 @ 56823e2 | After: this PR @ 8fd77e4 | |---|---|---| | replay-scenes · `RX_VK_PART_ADAPTIVE= (PR only)` · kokiri · frame time (p99) (ms) | 14.3 | 15.1 (+6%) | | replay-scenes · `RX_VK_PART_ADAPTIVE= (PR only)` · market · frame time (p99) (ms) | 17.2 | 17.2 (−0%) | | replay-scenes · `RX_VK_PART_ADAPTIVE= (PR only)` · kokiri · frame time (worst 1%) (ms) | 15.5 | 16.5 (+7%) | | replay-scenes · `RX_VK_PART_ADAPTIVE= (PR only)` · market · frame time (worst 1%) (ms) | 20.5 | 20.8 (+2%) | | replay-scenes · `RX_VK_PART_ADAPTIVE=0 (PR only)` · kokiri · frame time (p99) (ms) | 14.5 | 14.3 (−1%) | | replay-scenes · `RX_VK_PART_ADAPTIVE=0 (PR only)` · market · frame time (p99) (ms) | 17.3 | 17.4 (+1%) | | replay-scenes · `RX_VK_PART_ADAPTIVE=0 (PR only)` · kokiri · frame time (worst 1%) (ms) | 16.0 | 15.8 (−1%) | | replay-scenes · `RX_VK_PART_ADAPTIVE=0 (PR only)` · market · frame time (worst 1%) (ms) | 20.6 | 20.7 (+1%) | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_PART_ADAPTIVE` | switch the PR adds (set on the PR side only) | ``, `0` | not in main | the PR's default | replay-scenes, main without it → the PR with : 14.3 → 15.1 (+6%) | doesn't help | ``` </details> <details><summary>Measurements on `steamdeck`, for the PR description</summary> **Verdict:** fail on steamdeck (1 report): `replay-scenes screenshot.max_diff`; `replay-scenes kokiri.frametime_p99_ms.max_delta_pct (+15.7%)`; `replay-scenes market.frametime_1pct_low_ms.max_delta_pct (+118.9%)` failed. Hardware: 1: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 16 GB RAM` Scene: replay-scenes, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=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); replay-scenes: 2 game starts a side, market 20 s after 10 s warm-up, kokiri 20 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) | | Before: main @ 56823e2 | After: this PR @ 8fd77e4 | |---|---|---| | replay-scenes · `RX_VK_PART_ADAPTIVE= (PR only)` · kokiri · frame time (p99) (ms) | 35.4 | 40.9 (+16%) | | replay-scenes · `RX_VK_PART_ADAPTIVE= (PR only)` · market · frame time (p99) (ms) | 50.8 | 49.5 (−2%) | | replay-scenes · `RX_VK_PART_ADAPTIVE= (PR only)` · kokiri · frame time (worst 1%) (ms) | 37.9 | 54.3 (+43%) | | replay-scenes · `RX_VK_PART_ADAPTIVE= (PR only)` · market · frame time (worst 1%) (ms) | 61.1 | 133.8 (+119%) | | replay-scenes · `RX_VK_PART_ADAPTIVE=0 (PR only)` · kokiri · frame time (p99) (ms) | 34.5 | 36.2 (+5%) | | replay-scenes · `RX_VK_PART_ADAPTIVE=0 (PR only)` · market · frame time (p99) (ms) | 46.2 | 49.4 (+7%) | | replay-scenes · `RX_VK_PART_ADAPTIVE=0 (PR only)` · kokiri · frame time (worst 1%) (ms) | 62.4 | 44.8 (−28%) | | replay-scenes · `RX_VK_PART_ADAPTIVE=0 (PR only)` · market · frame time (worst 1%) (ms) | 123.5 | 109.2 (−12%) | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_PART_ADAPTIVE` | switch the PR adds (set on the PR side only) | ``, `0` | not in main | the PR's default | replay-scenes, main without it → the PR with : 35.4 → 40.9 (+16%) | doesn't help | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** fail on steamdeck (1 report): `replay-scenes screenshot.max_diff`; `replay-scenes kokiri.frametime_p99_ms.max_delta_pct (+15.7%)`; `replay-scenes market.frametime_1pct_low_ms.max_delta_pct (+118.9%)` failed. Hardware: 1: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 16 GB RAM` Scene: replay-scenes, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=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); replay-scenes: 2 game starts a side, market 20 s after 10 s warm-up, kokiri 20 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) | | Before: main @ 56823e2 | After: this PR @ 8fd77e4 | |---|---|---| | replay-scenes · `RX_VK_PART_ADAPTIVE= (PR only)` · kokiri · frame time (p99) (ms) | 35.4 | 40.9 (+16%) | | replay-scenes · `RX_VK_PART_ADAPTIVE= (PR only)` · market · frame time (p99) (ms) | 50.8 | 49.5 (−2%) | | replay-scenes · `RX_VK_PART_ADAPTIVE= (PR only)` · kokiri · frame time (worst 1%) (ms) | 37.9 | 54.3 (+43%) | | replay-scenes · `RX_VK_PART_ADAPTIVE= (PR only)` · market · frame time (worst 1%) (ms) | 61.1 | 133.8 (+119%) | | replay-scenes · `RX_VK_PART_ADAPTIVE=0 (PR only)` · kokiri · frame time (p99) (ms) | 34.5 | 36.2 (+5%) | | replay-scenes · `RX_VK_PART_ADAPTIVE=0 (PR only)` · market · frame time (p99) (ms) | 46.2 | 49.4 (+7%) | | replay-scenes · `RX_VK_PART_ADAPTIVE=0 (PR only)` · kokiri · frame time (worst 1%) (ms) | 62.4 | 44.8 (−28%) | | replay-scenes · `RX_VK_PART_ADAPTIVE=0 (PR only)` · market · frame time (worst 1%) (ms) | 123.5 | 109.2 (−12%) | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_PART_ADAPTIVE` | switch the PR adds (set on the PR side only) | ``, `0` | not in main | the PR's default | replay-scenes, main without it → the PR with : 35.4 → 40.9 (+16%) | doesn't help | ``` </details> <details><summary>The testers' hardware</summary> | Target | Report | Ran on | | --- | --- | --- | | `nvidia` | [1](https://beanstalk.magicbean.dev/reports/rp_0a6308ea973a8c65) | windows+nvidia+nvidia-proprietary+dgpu+window+xess `NVIDIA GeForce GTX 980, 582.78.0` `Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, 32 GB RAM` | | `nvidia` | [2](https://beanstalk.magicbean.dev/reports/rp_338acee3b996103d) | windows+nvidia+nvidia-proprietary+dgpu+window `NVIDIA GeForce RTX 4070, 621.24.0` `AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM` | | `amd` | [1](https://beanstalk.magicbean.dev/reports/rp_df8da6ab407d2e1a) | 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` | | `amd` | [2](https://beanstalk.magicbean.dev/reports/rp_d4199c83c13b4e79) | linux+amd+radv+igpu `AMD Radeon 760M Graphics (RADV PHOENIX), 26.0.8` `AMD Ryzen 5 230 w/ Radeon 760M Graphics, 16 GB RAM` | | `intel` | [1](https://beanstalk.magicbean.dev/reports/rp_3cad2161579fc629) | windows+intel+intel-proprietary+igpu+window `Intel(R) UHD Graphics 630, 0.404.2115` `Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz, 8 GB RAM` | | `windows+amd` | [1](https://beanstalk.magicbean.dev/reports/rp_1fc8d730df3f54d7) | windows+amd+amd-proprietary+dgpu+window+fsr4 `AMD Radeon RX 9070 XT, 2.0.416` `AMD Ryzen 9 7950X 16-Core Processor, 128 GB RAM` | | `windows+amd` | [2](https://beanstalk.magicbean.dev/reports/rp_96d5d5145b10ef3b) | windows+amd+amd-proprietary+igpu+window+xess `AMD Radeon(TM) Graphics, 2.0.279` `AMD Ryzen 5 5600G with Radeon Graphics, 28 GB RAM` | | `linux+radv` | [1](https://beanstalk.magicbean.dev/reports/rp_8284574413e54799) | linux+amd+radv+dgpu `AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1` `AMD Ryzen 7 5700X3D 8-Core Processor, 32 GB RAM` | | `linux+radv` | [2](https://beanstalk.magicbean.dev/reports/rp_9900268651eb7058) | linux+amd+radv+igpu `AMD Radeon 890M Graphics (RADV STRIX1), 26.1.99` `AMD Ryzen Z2 Extreme, 32 GB RAM` | | `steamdeck` | [1](https://beanstalk.magicbean.dev/reports/rp_b666bc67cb3fe8ef) | linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 16 GB RAM` | </details> </details>
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left. The reported Windows A/B shows a small gain in one scene, but the default changes submission timing on every supported GPU and has not been measured against the base build or tested across Tier 1 systems. The required hardware runs and head CI are still pending. Recommend approval; not approved on the forge.

The change ramps submission-part thresholds and skips empty upload command-buffer work in eligible modes. It may reduce CPU and submission overhead, at the cost of longer intervals before later work reaches the GPU and additional recording-state logic.

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

  • L1 gpu/vk/vk_replay.cpp:2468: Measure the default against the actual base in player workloads before settling the claimed gain. (more on the line) Do: Run interleaved base-versus-head measurements in Market and a heavy moving scene at player settings, reporting average FPS, lows and frame times. (@fix does its part first: Keep later parts at the measured legacy threshold while evaluating the lazy-upload change separately.)
  • L2 gpu/vk/vk_replay.cpp:2468: The enabled default needs Tier 1 hardware coverage for the changed submission cadence. (more on the line) Do: Use the Test Farm to smoke-test and compare performance on the affected Tier 1 Windows and Linux NVIDIA and AMD configurations and Steam Deck, including frame-time tails and visible output. (@fix does its part first: Separate the threshold ramp from lazy upload so each default can be evaluated and selected independently.)

@fix can do L1 and L2.

Questions (1) (not confirmed from the code; they don't hold the recommendation)

  • tests/test_vk_part_adaptive.py:229: Is there a case at HEAD where the recording code submits an upload buffer without ending it?

Checks: Still running: 10 checks.

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

Does it help: Unproven against the base commit. Five same-binary Windows A/B runs report 70.34 to 71.11 FPS (+1.09%) in Market, with better reported frame-time tails, but the OFF side is this PR's code with the switch disabled, not a run of base 56823e27a1. No base-versus-head measurements in other player scenes are supplied.

Other systems: The adaptive thresholds affect threaded and deferred recording as well as direct recording, and can change GPU submission cadence on Windows, Linux and Steam Deck. Lazy upload is gated off for threaded, deferred, GPU profiling and frame-overlap tracking modes. The supplied live run covers one Windows system; no Linux, RADV, Steam Deck or other Tier 1 results are supplied.

Switches: RX_VK_PART_ADAPTIVE is added, default 1; 0 selects legacy thresholds and eager upload buffers, and check/2 uses legacy thresholds with lazy uploads and invariant counters. Its row is present, but the default's performance across supported hardware remains unmeasured.

Reviewed: 8fd77e404e against 56823e27a1: Read the repository rules, PR template, standards, commit, full new header and test, and the changed hunks and surrounding recording, upload, memory and profiling paths. Skimmed the remaining portions of the large changed renderer files and test_hos_ab.py; docs/review-checklist.md and the sibling Tooling checkout are absent. No generated files or translations changed. The supplied comments, measurements and CI status were reviewed.; nothing run (a code review).

Checked and fine:

  • The commit includes an Assisted-by trailer.
  • The switch has a switches.def row; no renderer API structure, shader or generated file changes.
  • The lazy-upload state tracks pool reuse and chunk advancement, and the changed readback refresh obtains the upload buffer before recording copies.
  • The supplied check-mode run reported zero invariant mismatches on the author's Windows machine.

Testing: No code or tests were run, as requested. The author reports a Windows live run and five A/B runs; head CI is still running. The requested Test Farm run could not be initiated from the available tools and no farm results were supplied.

Overlaps and merge order: Not established; network access was unavailable.


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

**Recommendation: Approve.** The code is ready: only testing is left. The reported Windows A/B shows a small gain in one scene, but the default changes submission timing on every supported GPU and has not been measured against the base build or tested across Tier 1 systems. The required hardware runs and head CI are still pending. Recommend approval; not approved on the forge. The change ramps submission-part thresholds and skips empty upload command-buffer work in eligible modes. It may reduce CPU and submission overhead, at the cost of longer intervals before later work reaches the GPU and additional recording-state logic. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L1** `gpu/vk/vk_replay.cpp:2468`: Measure the default against the actual base in player workloads before settling the claimed gain. (more on the line) **Do:** Run interleaved base-versus-head measurements in Market and a heavy moving scene at player settings, reporting average FPS, lows and frame times. *(`@fix` does its part first: Keep later parts at the measured legacy threshold while evaluating the lazy-upload change separately.)* - **L2** `gpu/vk/vk_replay.cpp:2468`: The enabled default needs Tier 1 hardware coverage for the changed submission cadence. (more on the line) **Do:** Use the Test Farm to smoke-test and compare performance on the affected Tier 1 Windows and Linux NVIDIA and AMD configurations and Steam Deck, including frame-time tails and visible output. *(`@fix` does its part first: Separate the threshold ramp from lazy upload so each default can be evaluated and selected independently.)* `@fix` can do L1 and L2. **Questions (1)** (not confirmed from the code; they don't hold the recommendation) - `tests/test_vk_part_adaptive.py:229`: Is there a case at HEAD where the recording code submits an upload buffer without ending it? **Checks:** Still running: 10 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven against the base commit. Five same-binary Windows A/B runs report 70.34 to 71.11 FPS (+1.09%) in Market, with better reported frame-time tails, but the OFF side is this PR's code with the switch disabled, not a run of base 56823e27a13a. No base-versus-head measurements in other player scenes are supplied. **Other systems:** The adaptive thresholds affect threaded and deferred recording as well as direct recording, and can change GPU submission cadence on Windows, Linux and Steam Deck. Lazy upload is gated off for threaded, deferred, GPU profiling and frame-overlap tracking modes. The supplied live run covers one Windows system; no Linux, RADV, Steam Deck or other Tier 1 results are supplied. **Switches:** RX_VK_PART_ADAPTIVE is added, default 1; 0 selects legacy thresholds and eager upload buffers, and check/2 uses legacy thresholds with lazy uploads and invariant counters. Its row is present, but the default's performance across supported hardware remains unmeasured. **Reviewed:** 8fd77e404e48 against 56823e27a13a: Read the repository rules, PR template, standards, commit, full new header and test, and the changed hunks and surrounding recording, upload, memory and profiling paths. Skimmed the remaining portions of the large changed renderer files and test_hos_ab.py; docs/review-checklist.md and the sibling Tooling checkout are absent. No generated files or translations changed. The supplied comments, measurements and CI status were reviewed.; nothing run (a code review). **Checked and fine:** - The commit includes an Assisted-by trailer. - The switch has a switches.def row; no renderer API structure, shader or generated file changes. - The lazy-upload state tracks pool reuse and chunk advancement, and the changed readback refresh obtains the upload buffer before recording copies. - The supplied check-mode run reported zero invariant mismatches on the author's Windows machine. **Testing:** No code or tests were run, as requested. The author reports a Windows live run and five A/B runs; head CI is still running. The requested Test Farm run could not be initiated from the available tools and no farm results were supplied. **Overlaps and merge order:** Not established; network access was unavailable. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
@ -2416,2 +2466,3 @@
static const int64_t kPartFirst = std::clamp<int64_t>(env_int("RX_VK_PART_FIRST", 32), 0, kPartMin);
const int64_t need = rec_parts == 0 && kPartFirst ? kPartFirst : kPartMin;
const int mode = rec_cur ? rec_cur->adaptive_mode : part_adaptive_mode();
const int64_t need = part_adaptive_fast::part_threshold(rec_parts, kPartFirst, kPartMin, kPartMax, mode == 1);
Member

L1 (should fix): Measure the default against the actual base in player workloads before settling the claimed gain.

When: The supplied A/B compares two paths in the changed binary in Market. Larger later parts delay GPU submission, and existing comments record substantial differences between part sizes while moving, so that comparison alone does not establish the result against base in heavy scenes.

Do: Run interleaved base-versus-head measurements in Market and a heavy moving scene at player settings, reporting average FPS, lows and frame times.

**L1** (should fix): Measure the default against the actual base in player workloads before settling the claimed gain. *When:* The supplied A/B compares two paths in the changed binary in Market. Larger later parts delay GPU submission, and existing comments record substantial differences between part sizes while moving, so that comparison alone does not establish the result against base in heavy scenes. **Do:** Run interleaved base-versus-head measurements in Market and a heavy moving scene at player settings, reporting average FPS, lows and frame times.
Member

L2 (should fix): The enabled default needs Tier 1 hardware coverage for the changed submission cadence.

When: The ramp applies on NVIDIA, AMD and Steam Deck on both supported operating systems, but the supplied run covers only one Windows machine. Different drivers and GPU workloads can respond differently to longer parts.

Do: Use the Test Farm to smoke-test and compare performance on the affected Tier 1 Windows and Linux NVIDIA and AMD configurations and Steam Deck, including frame-time tails and visible output.

**L2** (should fix): The enabled default needs Tier 1 hardware coverage for the changed submission cadence. *When:* The ramp applies on NVIDIA, AMD and Steam Deck on both supported operating systems, but the supplied run covers only one Windows machine. Different drivers and GPU workloads can respond differently to longer parts. **Do:** Use the Test Farm to smoke-test and compare performance on the affected Tier 1 Windows and Linux NVIDIA and AMD configurations and Steam Deck, including frame-time tails and visible output.
Owner

Independent Linux Market A/B on PR head 8fd77e404e48. RX_VK_PART_ADAPTIVE defaults to on in this revision.

Inconclusive in this short capture. Median average FPS changed by +19.50%.

Metric Off (0) On (1)
Average FPS, each run 83.09 / 131.30 132.20 / 124.00
Average FPS, median 107.20 128.10
1% low FPS (1000 ÷ p99) 91.86 95.98
Median frame time 7.71 ms 7.63 ms
p99 frame time 10.96 ms 10.45 ms

| Frames of 50 ms or more, each run | 1 / 0 | 0 / 0 |

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

The first off capture included a 9.45-second presentation stall. It dominates the average FPS delta.

Independent Linux Market A/B on PR head `8fd77e404e48`. `RX_VK_PART_ADAPTIVE` defaults to on in this revision. **Inconclusive in this short capture.** Median average FPS changed by **+19.50%**. | Metric | Off (`0`) | On (`1`) | |---|---:|---:| | Average FPS, each run | 83.09 / 131.30 | 132.20 / 124.00 | | Average FPS, median | 107.20 | 128.10 | | 1% low FPS (1000 ÷ p99) | 91.86 | 95.98 | | Median frame time | 7.71 ms | 7.63 ms | | p99 frame time | 10.96 ms | 10.45 ms | | Frames of 50 ms or more, each run | 1 / 0 | 0 / 0 | Market (child), Linux 7.3.3-1-cachyos, RTX 3090, NVIDIA 620.70.06, 1280x720, 50% (640x360), uncapped with V-Sync and frame generation off. Two interleaved 30-second captures per side on the same PR binary, each after pipeline warm-up. Frame-time and 1% low rows report the median across the two captures. The first off capture included a 9.45-second presentation stall. It dominates the average FPS delta.
Owner

Follow-up Market A/B on the same 8fd77e404e48 build. I ran three fresh interleaved 30-second pairs, with at least 15 seconds of pipeline warm-up each, on the same Linux/RTX 3090 setup (1280x720 output at 50%, uncapped, V-Sync and frame generation off).

Metric Adaptive off Adaptive on
Average FPS, each run 122.11 / 118.43 / 118.53 121.85 / 118.84 / 125.04
Average FPS, median 118.53 121.85
1% low FPS (1000 ÷ p99), median 83.65 85.23
Median frame time 8.23 ms 8.00 ms
p99 frame time, median 11.95 ms 11.73 ms
Frames of 50 ms or more, each run 0 / 0 / 0 0 / 0 / 0

Repeat result: within the run-to-run spread. Median average FPS changed by +2.80%. All six measured captures stayed below 50 ms per frame. The first comparison's 9.45-second presentation stall made its average FPS sensitive to one capture, so the fresh results above are the relevant comparison.

Follow-up Market A/B on the same `8fd77e404e48` build. I ran three fresh interleaved 30-second pairs, with at least 15 seconds of pipeline warm-up each, on the same Linux/RTX 3090 setup (1280x720 output at 50%, uncapped, V-Sync and frame generation off). | Metric | Adaptive off | Adaptive on | |---|---:|---:| | Average FPS, each run | 122.11 / 118.43 / 118.53 | 121.85 / 118.84 / 125.04 | | Average FPS, median | 118.53 | 121.85 | | 1% low FPS (1000 ÷ p99), median | 83.65 | 85.23 | | Median frame time | 8.23 ms | 8.00 ms | | p99 frame time, median | 11.95 ms | 11.73 ms | | Frames of 50 ms or more, each run | 0 / 0 / 0 | 0 / 0 / 0 | **Repeat result: within the run-to-run spread.** Median average FPS changed by **+2.80%**. All six measured captures stayed below 50 ms per frame. The first comparison's 9.45-second presentation stall made its average FPS sensitive to one capture, so the fresh results above are the relevant comparison.
Owner
@rebase
Member

I rebased this pull request onto main (4e762a4b26): the new head is e03766022d.

Conflicts resolved

  • gpu/vk/vk_main.cpp: Kept both close-summary calls.
  • tests/test_hos_ab.py: Kept both A/B switch entries.

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


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

I rebased this pull request onto `main` (4e762a4b2653): the new head is e03766022dab. **Conflicts resolved** - gpu/vk/vk_main.cpp: Kept both close-summary calls. - tests/test_hos_ab.py: Kept both A/B switch entries. Nothing was built or run: read the resolution before merging. --- <sub>Automated rebase by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
BeanBot force-pushed perf/vk-part-adaptive-lazy-upload from 8fd77e404e
Some checks failed
PR description / Title and description (pull_request_target) Successful in 5s
beanstalk/approval approved by HumanBean (reviewed)
beanstalk/nvidia 1/1 fail
beanstalk/amd 2/1 fail
beanstalk/intel 0/1 pass, 0 running, 1 queued
beanstalk/windows+amd 1/1 fail
beanstalk/linux+radv 1/1 fail
beanstalk/steamdeck 1/1 fail
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
to e03766022d
Some checks failed
beanstalk/approval not approved yet
PR description / Title and description (pull_request_target) Successful in 4s
CI / What the change needs (pull_request) Successful in 7s
CI / Third-party parts and guide screenshots (pull_request) Failing after 11s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 16s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Successful in 5m7s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Successful in 2m46s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 5m32s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 5m11s
CI / Website build and checks (pull_request) Failing after 35s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 25m57s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 40m46s
2026-12-02 16:48:11 +00:00
Compare
Member

Beanstalk test farm

Commit e037660 · 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 `e037660` · approved by nobody yet · [dashboard](https://beanstalk.magicbean.dev/prs/3004) A member of `BigBeans` can review this commit and comment `@Beanstalk` to test it.
HumanBean deleted branch perf/vk-part-adaptive-lazy-upload 2026-12-02 16:48:34 +00:00
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left. The enabled default still lacks a measurement against the actual base and the required Tier 1 coverage. The reported Windows gain and Linux follow-up are encouraging but do not settle those two questions. Recommend approval; not approved on the forge.

The change ramps recording-part thresholds and avoids starting empty upload command buffers in eligible modes, potentially reducing CPU and submission overhead. It adds state and synchronization logic whose benefit and driver coverage still need validation.

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

  • L1 gpu/vk/vk_replay.cpp:2468: Measure the default against the actual base in player workloads before settling the claimed gain. When: The supplied A/B compares two paths in the changed binary in Market. Larger later parts delay GPU submission, and existing comments record substantial differences between part sizes while moving, so that comparison alone does not establish the result against base in heavy scenes. Do: Run interleaved base-versus-head measurements in Market and a heavy moving scene at player settings, reporting average FPS, lows and frame times. (@fix does its part first: Keep later parts at the measured legacy threshold while evaluating the lazy-upload change separately.)
  • L2 gpu/vk/vk_replay.cpp:2468: The enabled default needs Tier 1 hardware coverage for the changed submission cadence. When: The ramp applies on NVIDIA, AMD and Steam Deck on both supported operating systems, but the supplied run covers only one Windows machine. Different drivers and GPU workloads can respond differently to longer parts. Do: Use the Test Farm to smoke-test and compare performance on the affected Tier 1 Windows and Linux NVIDIA and AMD configurations and Steam Deck, including frame-time tails and visible output. (@fix does its part first: Separate the threshold ramp from lazy upload so each default can be evaluated and selected independently.)

@fix can do L1 and L2.

Since the last review (on 8fd77e404e)
Still open: L1 (Measure the default against the actual base in player workloads before settling the claime…); L2 (The enabled default needs Tier 1 hardware coverage for the changed submission cadence.)

Checks: Still running: 11 checks.

Also noticed (1; not asked for, not blocking)
  • The reported Linux follow-up gain is within the observed run-to-run spread.
More: does it help, other systems, switches, what was read

Does it help: Unproven against the actual base. The PR reports a 1.09% mean FPS gain across five Windows in-run A/B captures, but compares switch settings in the PR binary; the Linux RTX 3090 follow-up reports a 2.80% median gain within run-to-run spread.

Other systems: The submission cadence can affect Vulkan drivers on Windows and Linux, including AMD RADV and Steam Deck. The recorded Linux NVIDIA run gives some coverage; the remaining Tier 1 systems have not been reported tested. Threaded, deferred, profiling and frame-overlap modes retain eager upload acquisition.

Switches: RX_VK_PART_ADAPTIVE is added, default 1; 0 selects legacy thresholds and eager uploads, while 2 checks invariants using legacy thresholds and eligible lazy uploads. The enabled default is not yet supported by actual-base and Tier 1 measurements; it is listed in switches.def.

Reviewed: e03766022d against 4e762a4b26: Read the repository rules and PR template, the full adaptive helper, and the relevant change and call-site excerpts. Skimmed the larger changed renderer and test files; they were not read in full. No review checklist file exists at the specified path.; nothing run (a code review).

Checked and fine:

  • The legacy switch setting retains the fixed threshold and eager upload path.
  • The switch is recorded in the renderer switch table.
  • The recorded Windows check-mode run reported zero invariant mismatches.

Testing: No commands that build or run project code were executed. The PR reports Windows game and game-free test runs, plus independent Linux NVIDIA captures; CI is still running.

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


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

**Recommendation: Approve.** The code is ready: only testing is left. The enabled default still lacks a measurement against the actual base and the required Tier 1 coverage. The reported Windows gain and Linux follow-up are encouraging but do not settle those two questions. Recommend approval; not approved on the forge. The change ramps recording-part thresholds and avoids starting empty upload command buffers in eligible modes, potentially reducing CPU and submission overhead. It adds state and synchronization logic whose benefit and driver coverage still need validation. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L1** `gpu/vk/vk_replay.cpp:2468`: Measure the default against the actual base in player workloads before settling the claimed gain. *When:* The supplied A/B compares two paths in the changed binary in Market. Larger later parts delay GPU submission, and existing comments record substantial differences between part sizes while moving, so that comparison alone does not establish the result against base in heavy scenes. **Do:** Run interleaved base-versus-head measurements in Market and a heavy moving scene at player settings, reporting average FPS, lows and frame times. *(`@fix` does its part first: Keep later parts at the measured legacy threshold while evaluating the lazy-upload change separately.)* - **L2** `gpu/vk/vk_replay.cpp:2468`: The enabled default needs Tier 1 hardware coverage for the changed submission cadence. *When:* The ramp applies on NVIDIA, AMD and Steam Deck on both supported operating systems, but the supplied run covers only one Windows machine. Different drivers and GPU workloads can respond differently to longer parts. **Do:** Use the Test Farm to smoke-test and compare performance on the affected Tier 1 Windows and Linux NVIDIA and AMD configurations and Steam Deck, including frame-time tails and visible output. *(`@fix` does its part first: Separate the threshold ramp from lazy upload so each default can be evaluated and selected independently.)* `@fix` can do L1 and L2. **Since the last review** (on 8fd77e404e48) Still open: L1 (Measure the default against the actual base in player workloads before settling the claime…); L2 (The enabled default needs Tier 1 hardware coverage for the changed submission cadence.) **Checks:** Still running: 11 checks. <details> <summary>Also noticed (1; not asked for, not blocking)</summary> - The reported Linux follow-up gain is within the observed run-to-run spread. </details> <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven against the actual base. The PR reports a 1.09% mean FPS gain across five Windows in-run A/B captures, but compares switch settings in the PR binary; the Linux RTX 3090 follow-up reports a 2.80% median gain within run-to-run spread. **Other systems:** The submission cadence can affect Vulkan drivers on Windows and Linux, including AMD RADV and Steam Deck. The recorded Linux NVIDIA run gives some coverage; the remaining Tier 1 systems have not been reported tested. Threaded, deferred, profiling and frame-overlap modes retain eager upload acquisition. **Switches:** RX_VK_PART_ADAPTIVE is added, default 1; 0 selects legacy thresholds and eager uploads, while 2 checks invariants using legacy thresholds and eligible lazy uploads. The enabled default is not yet supported by actual-base and Tier 1 measurements; it is listed in switches.def. **Reviewed:** e03766022dab against 4e762a4b2653: Read the repository rules and PR template, the full adaptive helper, and the relevant change and call-site excerpts. Skimmed the larger changed renderer and test files; they were not read in full. No review checklist file exists at the specified path.; nothing run (a code review). **Checked and fine:** - The legacy switch setting retains the fixed threshold and eager upload path. - The switch is recorded in the renderer switch table. - The recorded Windows check-mode run reported zero invariant mismatches. **Testing:** No commands that build or run project code were executed. The PR reports Windows game and game-free test runs, plus independent Linux NVIDIA captures; CI is still running. **Overlaps and merge order:** Not checked; network access is closed. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its rebase. Nothing was run; a maintainer decides.</sub>
Author
Contributor

This was merged (head e037660, after BeanBot's rebase) before I answered. This comment follows up on the results posted since.

Test farm (Beanstalk, run on 8fd77e4): the part ramp makes frame-time tails worse on several systems. The useful numbers are the PR's own cells, RX_VK_PART_ADAPTIVE default against =0 in the same build (frame time p99, ms):

Tester Market =0 → default Kokiri =0 → default
Radeon 760M, RADV, Linux 43.36 → 50.81 (+17.2%) 49.63 → 77.03 (+55.2%)
RTX 4070, Windows 10.58 → 12.24 (+15.6%) 6.87 → 7.62 (+10.9%)
Steam Deck 49.40 → 49.52 (+0.2%) 36.20 → 40.90 (+13.0%)
GTX 980, Windows 50.19 → 44.43 (−11.5%) 38.83 → 42.19 (+8.7%)
RX 9070 XT, Windows 12.50 → 12.70 (+1.6%) 9.06 → 9.79 (+8.1%)
RX 9070 XT, RADV, Linux 12.64 → 13.04 (+3.1%) 8.94 → 9.66 (+8.1%)
Radeon 890M, RADV, Linux 22.25 → 21.36 (−4.0%) 19.71 → 20.56 (+4.3%)
Radeon (Windows, driver 2.0.279) 76.16 → 79.04 (+3.8%) 70.74 → 71.31 (+0.8%)
Radeon 8060S, RADV, Linux 12.39 → 11.95 (−3.6%) 9.94 → 8.97 (−9.7%)

Kokiri's p99 is higher with the default in 8 of 9 reports, and the rule limit (15%) was crossed on three independent systems (760M, RTX 4070, Steam Deck). The Intel UHD 630 report could not run.

The cause is in the change itself: part_adaptive_fast::part_threshold (gpu/vk/part_adaptive_fast.h) lets later parts grow 120 → 240 → 512 draws, so the GPU gets each part's work later in the frame. That hurts most where the GPU is the limit (the iGPUs and the Deck). The lazy upload command buffer only skips empty begin/end work and doesn't move submissions.

What I'll do about it: a follow-up PR turns the ramp off by default and keeps lazy upload: RX_VK_PART_ADAPTIVE=1 will mean lazy upload with the legacy thresholds, and the ramp will only run with RX_VK_PART_ADAPTIVE=ramp. I've prepared the branch. It isn't open yet because it needs an in-game run first. The reason will be in gpu/vk/switches.def and in a comment at maybe_split.

Pictures: the farm flagged screenshot.max_diff on the Steam Deck (Market 0.78 against main's 0.18 with itself). The PR picture there is an all-black frame (3 KB PNG). The same black capture shows up on the main side and on other PRs' runs (#2989, #2997), so I count it as a capture failure, not a rendering difference. The other flagged pictures (Windows RX 9070 XT, the 890M and the 8060S) were also flagged in the =0 cell. That cell runs the legacy path, so the PR's default is not what moves them.

@HumanBean's Linux Market A/B (RTX 3090, 8fd77e4): thanks. The first run gave +19.50% median FPS, but a 9.45 s stall in one off capture accounts for that. The three-pair repeat gave +2.80% (118.53 → 121.85 FPS, p99 11.95 → 11.73 ms), within the spread. On that GPU-light setup the ramp doesn't hurt, which fits the farm's pattern.

BeanBot L1/L2 (base-vs-head at player settings, Tier 1 coverage): the farm results above answer L2 against the ramp. L1 (base-vs-head at player settings) still hasn't been measured. Nothing more was run from my side: this PR is merged, and I made no code change to it. The description can't be edited after the merge (our forge tooling refuses merged PRs), so this comment is where the results are recorded.

This was merged (head e037660, after BeanBot's rebase) before I answered. This comment follows up on the results posted since. **Test farm (Beanstalk, run on 8fd77e4): the part ramp makes frame-time tails worse on several systems.** The useful numbers are the PR's own cells, `RX_VK_PART_ADAPTIVE` default against `=0` in the same build (frame time p99, ms): | Tester | Market `=0` → default | Kokiri `=0` → default | |---|---:|---:| | Radeon 760M, RADV, Linux | 43.36 → 50.81 (+17.2%) | 49.63 → 77.03 (+55.2%) | | RTX 4070, Windows | 10.58 → 12.24 (+15.6%) | 6.87 → 7.62 (+10.9%) | | Steam Deck | 49.40 → 49.52 (+0.2%) | 36.20 → 40.90 (+13.0%) | | GTX 980, Windows | 50.19 → 44.43 (−11.5%) | 38.83 → 42.19 (+8.7%) | | RX 9070 XT, Windows | 12.50 → 12.70 (+1.6%) | 9.06 → 9.79 (+8.1%) | | RX 9070 XT, RADV, Linux | 12.64 → 13.04 (+3.1%) | 8.94 → 9.66 (+8.1%) | | Radeon 890M, RADV, Linux | 22.25 → 21.36 (−4.0%) | 19.71 → 20.56 (+4.3%) | | Radeon (Windows, driver 2.0.279) | 76.16 → 79.04 (+3.8%) | 70.74 → 71.31 (+0.8%) | | Radeon 8060S, RADV, Linux | 12.39 → 11.95 (−3.6%) | 9.94 → 8.97 (−9.7%) | Kokiri's p99 is higher with the default in 8 of 9 reports, and the rule limit (15%) was crossed on three independent systems (760M, RTX 4070, Steam Deck). The Intel UHD 630 report could not run. The cause is in the change itself: `part_adaptive_fast::part_threshold` (`gpu/vk/part_adaptive_fast.h`) lets later parts grow 120 → 240 → 512 draws, so the GPU gets each part's work later in the frame. That hurts most where the GPU is the limit (the iGPUs and the Deck). The lazy upload command buffer only skips empty `begin`/`end` work and doesn't move submissions. **What I'll do about it:** a follow-up PR turns the ramp off by default and keeps lazy upload: `RX_VK_PART_ADAPTIVE=1` will mean lazy upload with the legacy thresholds, and the ramp will only run with `RX_VK_PART_ADAPTIVE=ramp`. I've prepared the branch. It isn't open yet because it needs an in-game run first. The reason will be in `gpu/vk/switches.def` and in a comment at `maybe_split`. **Pictures:** the farm flagged `screenshot.max_diff` on the Steam Deck (Market 0.78 against main's 0.18 with itself). The PR picture there is an all-black frame (3 KB PNG). The same black capture shows up on the main side and on other PRs' runs (#2989, #2997), so I count it as a capture failure, not a rendering difference. The other flagged pictures (Windows RX 9070 XT, the 890M and the 8060S) were also flagged in the `=0` cell. That cell runs the legacy path, so the PR's default is not what moves them. **@HumanBean's Linux Market A/B (RTX 3090, 8fd77e4):** thanks. The first run gave +19.50% median FPS, but a 9.45 s stall in one off capture accounts for that. The three-pair repeat gave +2.80% (118.53 → 121.85 FPS, p99 11.95 → 11.73 ms), within the spread. On that GPU-light setup the ramp doesn't hurt, which fits the farm's pattern. **BeanBot L1/L2 (base-vs-head at player settings, Tier 1 coverage):** the farm results above answer L2 against the ramp. L1 (base-vs-head at player settings) still hasn't been measured. Nothing more was run from my side: this PR is merged, and I made no code change to it. The description can't be edited after the merge (our forge tooling refuses merged PRs), so this comment is where the results are recorded.
Author
Contributor

The follow-up is #3117: the ramp runs only with RX_VK_PART_ADAPTIVE=ramp; the default keeps the lazy upload command buffer and the legacy part thresholds.

The follow-up is #3117: the ramp runs only with `RX_VK_PART_ADAPTIVE=ramp`; the default keeps the lazy upload command buffer and the legacy part thresholds.
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!3004
No description provided.