perf(vk): add 128KB MRU non-wiping texture and handle-table memo (RX_VK_TEX_TABLE_FAST) #2970

Open
siantm wants to merge 2 commits from siantm/Longshot:perf/vk-tex-table-memo into main
Contributor

Summary

Speeds up sampled-texture descriptor resolution (desc_ms / FT_TEX = 1.03–1.17 ms/frame in Market) with an L2-resident 128 KB non-wiping MRU cache and fast handle-table resolution (RX_VK_TEX_TABLE_FAST, default on 1).

Before this change, tex_desc_memo occupied 512 KB (exceeding L2), wiped all entries via gen_tag++ whenever any unrelated texture slot registered (reg_gen), scanned up to 4 ways without MRU promotion, and bypassed the memo completely whenever is_table (d.handle_program != ~0U) was true — forcing texture_view_of() + sampler_for() lookups for every element of handle-table arrays.

With RX_VK_TEX_TABLE_FAST:

  1. gpu/vk/tex_table_fast.h shrinks the 4-way memo to 512 sets × 4 ways × 64 B = 128 KB (alignas(64)) with swap-to-way-0 MRU promotion and non-wiping per-entry reg_seen validation (e.slot_ver == texture_slot_version(slot) checked only when e.reg_seen != cur_reg_gen; only samp_gen changes bump gen_tag).
  2. Handle-table arrays (is_table) resolve through consecutive-handle RLE fast-skip (prev_handle) and the 128 KB memo. A memo miss binds what main's slow path binds: the depth-aware dummy view for a texture with no view, then guard_depth_comparison (#3032); the memo keeps what was bound after the guard, and nothing when the slot was registered again while its view was made.

First read tex_table_fast.h and vk_draw.cpp.

Testing

Tested: Windows 11, NVIDIA GeForce RTX 4060 (driver 621.40, Vulkan 1.4).

  • python -X utf8 -I tests/test_vk_tex_table_fast.py --cxx clang++ --headers ... passed (128 KB layout, MRU promotion, non-wiping reg_gen, handle-table RLE, the key's depth bit, 3000-op A/B trace, source wiring, and 6 broken variants caught).
  • python -X utf8 -I tests/test_hos_ab.py, tests/test_saveload_warm_cache.py, tests/test_flat_map.py, tests/test_tls_objects.py, and clang++ -fsyntax-only on gpu/vk/vk_draw.cpp passed.
  • Live Market (RX_VK_TEX_TABLE_FAST=1, 25 s): 2016 frames, RUN_ERROR=None.
  • Live parity (RX_VK_TEX_TABLE_FAST=check, 25 s): 20,600,000+ checks (98.2% hits, 2.58M+ RLE skips), 0 mismatches, RUN_ERROR=None.
  • Queued in-run HOS_AB (HOS_AB=RX_VK_TEX_TABLE_FAST=0,3,0, 5×90 s, 149 paired periods in Market): 5/5 runs won, zero crashes/errors.
  • Rebased onto main @ 1e782fa4b (2026-12-03), the fast path moved onto #3032's depth-aware dummy view and guard_depth_comparison: tests/run_all.py --exact of 22 checks passed (Windows 11, llvm-mingw clang++): test_vk_tex_table_fast, test_tex_desc_memo, test_dummy_views, test_recording_admission, test_sampler_admission, test_hos_ab, test_switch_table, test_vk_desc_span_fast, test_vk_ubo_ssbo_fast, test_desc_clock, test_desc_counts, test_descriptor_array_census, test_drawn_page_map, test_fsr3fi_hud_capture, test_handle_table_arrays, test_hidden_mesh_depth, test_pick_tex_gen, test_prof_symbols, test_program_answer_domains, test_program_cache_reader, test_taau_env_lookup, test_target_layouts.
  • Rebased again onto main @ 0aeb6858 (2026-12-03): test_vk_tex_table_fast, test_tex_desc_memo, test_recording_admission, test_sampler_admission, test_hos_ab and test_switch_table passed, and clang++ -fsyntax-only of gpu/vk/vk_draw.cpp. No game run on the rebased head.
  • Test farm on a4aa1ce (before #3032 on both sides): passed on windows+nvidia, linux+nvidia and intel; failed on windows+amd (screenshot.max_diff 0.42 on an RX 9070 XT, 0.96 on a Ryzen 5600G whose main pictures also differ from each other by 0.79), linux+radv (one PC's Market 1% low +22.5%) and steamdeck (0.78, the PR's picture taken on a loading screen). RX_VK_TEX_TABLE_FAST=check logged no mismatch.
  • AMD Lab, Linux RX 580 (3 pairs, =0 vs =1): -1.49% median FPS, within the run-to-run spread; p99 42.51 -> 44.52 ms.

Still to test:

  • AMD (Windows, the 5600G especially) and Steam Deck: the farm on the rebased head, and RX_VK_TEX_TABLE_FAST=check on AMD, since the fast path changed with #3032 (@Beanstalk / by hand).
  • main against this head at player settings, in the Market and a heavy area (by hand).

Measurements

Verdict: faster: +1.09% fps, the mean frame time -0.137 ms (95% interval +0.61% to +1.60% faster vs RX_VK_TEX_TABLE_FAST=0).

Setup: Windows 11, NVIDIA GeForce RTX 4060 (driver 621.40, Vulkan 1.4); Market, child (crowded), 50% res (768x432), output res 1280x720, frame generation Off, vsync Off, uncapped (HOS_FPS_MAX=1000), queued in-run HOS_AB=RX_VK_TEX_TABLE_FAST=0,3,0 across 5×90 s runs (149 paired periods; 16,300 ON frames vs 16,123 OFF frames).

Baseline: both columns are one build, ba8257aa7 on perf/vk-tex-table-memo (main @ 495ed9fe2): RX_VK_TEX_TABLE_FAST=0 (Before) against RX_VK_TEX_TABLE_FAST unset (After).

Before, RX_VK_TEX_TABLE_FAST=0: this PR @ ba8257aa After, RX_VK_TEX_TABLE_FAST unset: this PR @ ba8257aa Δ
fps 79.62 80.47 +1.09%
mean frame time 12.56 ms 12.43 ms -0.14 ms
median frame time 12.29 ms 12.15 ms -0.14 ms
p99 frame time 15.88 ms 15.72 ms -0.16 ms
1% low fps 63.09 63.61 +0.82%
0.1% low fps 50.38 54.00 +7.19%
desc_ms 2.744 ms 2.611 ms -4.87% (-0.134 ms)
draw_ms 7.359 ms 7.209 ms -2.04% (-0.150 ms)

Risks

Set RX_VK_TEX_TABLE_FAST=0 to fall back to the 512 KB tex_desc_memo path (with legacy is_table resolution), or RX_VK_TEX_TABLE_FAST=check to verify live parity (0 mismatches). Shader cache and pipeline cache are untouched.

Assisted-by: Antigravity

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.
  • 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 Speeds up sampled-texture descriptor resolution (`desc_ms` / `FT_TEX` = 1.03–1.17 ms/frame in Market) with an L2-resident 128 KB non-wiping MRU cache and fast handle-table resolution (`RX_VK_TEX_TABLE_FAST`, default on `1`). Before this change, `tex_desc_memo` occupied 512 KB (exceeding L2), wiped all entries via `gen_tag++` whenever any unrelated texture slot registered (`reg_gen`), scanned up to 4 ways without MRU promotion, and bypassed the memo completely whenever `is_table` (`d.handle_program != ~0U`) was true — forcing `texture_view_of()` + `sampler_for()` lookups for every element of handle-table arrays. With `RX_VK_TEX_TABLE_FAST`: 1. `gpu/vk/tex_table_fast.h` shrinks the 4-way memo to 512 sets × 4 ways × 64 B = 128 KB (`alignas(64)`) with swap-to-way-0 MRU promotion and non-wiping per-entry `reg_seen` validation (`e.slot_ver == texture_slot_version(slot)` checked only when `e.reg_seen != cur_reg_gen`; only `samp_gen` changes bump `gen_tag`). 2. Handle-table arrays (`is_table`) resolve through consecutive-handle RLE fast-skip (`prev_handle`) and the 128 KB memo. A memo miss binds what `main`'s slow path binds: the depth-aware dummy view for a texture with no view, then `guard_depth_comparison` (#3032); the memo keeps what was bound after the guard, and nothing when the slot was registered again while its view was made. First read [tex_table_fast.h](gpu/vk/tex_table_fast.h) and [vk_draw.cpp](gpu/vk/vk_draw.cpp). ## Testing **Tested:** Windows 11, NVIDIA GeForce RTX 4060 (driver 621.40, Vulkan 1.4). - `python -X utf8 -I tests/test_vk_tex_table_fast.py --cxx clang++ --headers ...` passed (128 KB layout, MRU promotion, non-wiping `reg_gen`, handle-table RLE, the key's depth bit, 3000-op A/B trace, source wiring, and 6 broken variants caught). - `python -X utf8 -I tests/test_hos_ab.py`, `tests/test_saveload_warm_cache.py`, `tests/test_flat_map.py`, `tests/test_tls_objects.py`, and `clang++ -fsyntax-only` on `gpu/vk/vk_draw.cpp` passed. - Live Market (`RX_VK_TEX_TABLE_FAST=1`, 25 s): 2016 frames, `RUN_ERROR=None`. - Live parity (`RX_VK_TEX_TABLE_FAST=check`, 25 s): 20,600,000+ checks (`98.2%` hits, `2.58M+` RLE skips), `0` mismatches, `RUN_ERROR=None`. - Queued in-run `HOS_AB` (`HOS_AB=RX_VK_TEX_TABLE_FAST=0,3,0`, 5×90 s, 149 paired periods in Market): 5/5 runs won, zero crashes/errors. - Rebased onto `main` @ `1e782fa4b` (2026-12-03), the fast path moved onto #3032's depth-aware dummy view and `guard_depth_comparison`: `tests/run_all.py --exact` of 22 checks passed (Windows 11, llvm-mingw clang++): `test_vk_tex_table_fast`, `test_tex_desc_memo`, `test_dummy_views`, `test_recording_admission`, `test_sampler_admission`, `test_hos_ab`, `test_switch_table`, `test_vk_desc_span_fast`, `test_vk_ubo_ssbo_fast`, `test_desc_clock`, `test_desc_counts`, `test_descriptor_array_census`, `test_drawn_page_map`, `test_fsr3fi_hud_capture`, `test_handle_table_arrays`, `test_hidden_mesh_depth`, `test_pick_tex_gen`, `test_prof_symbols`, `test_program_answer_domains`, `test_program_cache_reader`, `test_taau_env_lookup`, `test_target_layouts`. - Rebased again onto `main` @ `0aeb6858` (2026-12-03): `test_vk_tex_table_fast`, `test_tex_desc_memo`, `test_recording_admission`, `test_sampler_admission`, `test_hos_ab` and `test_switch_table` passed, and `clang++ -fsyntax-only` of `gpu/vk/vk_draw.cpp`. No game run on the rebased head. - Test farm on `a4aa1ce` (before #3032 on both sides): passed on `windows+nvidia`, `linux+nvidia` and `intel`; failed on `windows+amd` (`screenshot.max_diff` 0.42 on an RX 9070 XT, 0.96 on a Ryzen 5600G whose main pictures also differ from each other by 0.79), `linux+radv` (one PC's Market 1% low +22.5%) and `steamdeck` (0.78, the PR's picture taken on a loading screen). `RX_VK_TEX_TABLE_FAST=check` logged no mismatch. - AMD Lab, Linux RX 580 (3 pairs, `=0` vs `=1`): -1.49% median FPS, within the run-to-run spread; p99 42.51 -> 44.52 ms. **Still to test:** - AMD (Windows, the 5600G especially) and Steam Deck: the farm on the rebased head, and `RX_VK_TEX_TABLE_FAST=check` on AMD, since the fast path changed with #3032 (`@Beanstalk` / `by hand`). - `main` against this head at player settings, in the Market and a heavy area (`by hand`). ## Measurements **Verdict:** faster: +1.09% fps, the mean frame time -0.137 ms (95% interval +0.61% to +1.60% faster vs `RX_VK_TEX_TABLE_FAST=0`). Setup: Windows 11, NVIDIA GeForce RTX 4060 (driver 621.40, Vulkan 1.4); Market, child (crowded), 50% res (768x432), output res 1280x720, frame generation Off, vsync Off, uncapped (`HOS_FPS_MAX=1000`), queued in-run `HOS_AB=RX_VK_TEX_TABLE_FAST=0,3,0` across 5×90 s runs (149 paired periods; 16,300 ON frames vs 16,123 OFF frames). Baseline: both columns are one build, `ba8257aa7` on `perf/vk-tex-table-memo` (`main` @ `495ed9fe2`): `RX_VK_TEX_TABLE_FAST=0` (Before) against `RX_VK_TEX_TABLE_FAST` unset (After). | | Before, RX_VK_TEX_TABLE_FAST=0: this PR @ ba8257aa | After, RX_VK_TEX_TABLE_FAST unset: this PR @ ba8257aa | Δ | |---|---|---|---| | fps | 79.62 | 80.47 | +1.09% | | mean frame time | 12.56 ms | 12.43 ms | -0.14 ms | | median frame time | 12.29 ms | 12.15 ms | -0.14 ms | | p99 frame time | 15.88 ms | 15.72 ms | -0.16 ms | | 1% low fps | 63.09 | 63.61 | +0.82% | | 0.1% low fps | 50.38 | 54.00 | +7.19% | | `desc_ms` | 2.744 ms | 2.611 ms | -4.87% (-0.134 ms) | | `draw_ms` | 7.359 ms | 7.209 ms | -2.04% (-0.150 ms) | ## Risks Set `RX_VK_TEX_TABLE_FAST=0` to fall back to the 512 KB `tex_desc_memo` path (with legacy `is_table` resolution), or `RX_VK_TEX_TABLE_FAST=check` to verify live parity (`0` mismatches). Shader cache and pipeline cache are untouched. Assisted-by: Antigravity ## 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] 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): add 128KB MRU non-wiping texture + handle-table memo (RX_VK_TEX_TABLE_FAST)
Some checks failed
PR description / Title and description (pull_request_target) Successful in 5s
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
ba8257aa7c
Author
Contributor

Tested in game: Windows 11 RTX 4060 Market CPU-bound 5x90s HOS_AB (+1.09% FPS, 95% CI +0.61%..+1.60%, desc_ms -4.87%, 0.1% Low +7.19%) and =check 0 mismatches on 20.6M checks

Tested in game: Windows 11 RTX 4060 Market CPU-bound 5x90s HOS_AB (+1.09% FPS, 95% CI +0.61%..+1.60%, desc_ms -4.87%, 0.1% Low +7.19%) and =check 0 mismatches on 20.6M checks
Member

Possibly related, for context:

  • PR #2920 perf(vk): add per-thread texture/sampler and read-only SSBO descriptor memos — Merged descriptor memo predecessor; overlapping build_descriptors and texture memo machinery.
  • PR #2055 WIP: perf(vk): a texture binding's slot version read once and handed to the fingerprint and the view — Open change in vk_draw.cpp for texture slot-version lookups; possible code overlap.
Possibly related, for context: - PR #2920 perf(vk): add per-thread texture/sampler and read-only SSBO descriptor memos — Merged descriptor memo predecessor; overlapping build_descriptors and texture memo machinery. - PR #2055 WIP: perf(vk): a texture binding's slot version read once and handed to the fingerprint and the view — Open change in vk_draw.cpp for texture slot-version lookups; possible code overlap.
Member
@review
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left. The reported speedup compares two modes of this branch rather than the branch against main, so the gain and default are not yet established. Recommend approval; not approved on the forge.

The change adds a smaller per-thread texture descriptor memo and caches handle-table resolution. It adds a second cache and more invalidation and diagnostic logic; its player-facing performance benefit remains unproven against main.

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

  • L1 gpu/vk/vk_draw.cpp:5041: The reported A/B does not measure the full change against main under player settings. (more on the line) Do: Measure the base and this head in interleaved runs at player settings in Market and another heavy area, reporting FPS, lows, frame times, descriptor time and RAM. (@fix does its part first: Avoid allocating the existing texture memo when only the new memo is needed, while preserving its separate SSBO cache.)
  • L2 gpu/vk/switches.def:813: The default-on renderer path has not been tested on the other affected Tier 1 systems. (more on the line) Do: Run parity and representative base-versus-head performance checks on the affected Tier 1 systems, including Steam Deck, before settling the default.

@fix can do L1.

Checks: Still running: 10 checks.

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

Does it help: Unproven. The reported five paired runs on an RTX 4060 show +1.09% FPS and 0.134 ms less descriptor time with the switch on versus off in the same PR build, but neither side is main. The run also uses 50% render resolution rather than the device's normal player settings.

Other systems: The path handles graphics and compute descriptors, direct handles and handle tables on both Windows and Linux. Live parity was reported only on Windows with an RTX 4060; AMD, Linux and Steam Deck results are outstanding. The additional memo is allocated per recording thread alongside the existing memo, so its RAM and cache effects also need assessment.

Switches: RX_VK_TEX_TABLE_FAST is added, default on; 0 selects the existing path and check compares paths. Its switch-table row is present, but the default is not established for the unmeasured Tier 1 systems or against main.

Reviewed: ba8257aa7c against 495ed9fe2a: Read the repository rules, PR template, standards, commit log, changed renderer diff, new cache header, changed switch and A/B wiring, and the relevant descriptor, texture and registration code. Read portions of the new test including its harness, mutations and runner; skimmed the remainder. The full vk_draw.cpp and test files were not read in full. docs/review-checklist.md was absent.; nothing run (a code review).

Checked and fine:

  • The new switch has a switches.def row and HOS_AB wiring.
  • Texture slot versions are published before the registration generation, and the new memo checks changed slots after a generation change.
  • The new per-thread state uses the existing TLS ownership mechanism.
  • The reported Windows check-mode run found zero mismatches across more than 20.6 million checks.

Testing: No code, tests or project scripts were run, as requested. The supplied CI checks are still running.

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


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

**Recommendation: Approve.** The code is ready: only testing is left. The reported speedup compares two modes of this branch rather than the branch against main, so the gain and default are not yet established. Recommend approval; not approved on the forge. The change adds a smaller per-thread texture descriptor memo and caches handle-table resolution. It adds a second cache and more invalidation and diagnostic logic; its player-facing performance benefit remains unproven against main. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L1** `gpu/vk/vk_draw.cpp:5041`: The reported A/B does not measure the full change against main under player settings. (more on the line) **Do:** Measure the base and this head in interleaved runs at player settings in Market and another heavy area, reporting FPS, lows, frame times, descriptor time and RAM. *(`@fix` does its part first: Avoid allocating the existing texture memo when only the new memo is needed, while preserving its separate SSBO cache.)* - **L2** `gpu/vk/switches.def:813`: The default-on renderer path has not been tested on the other affected Tier 1 systems. (more on the line) **Do:** Run parity and representative base-versus-head performance checks on the affected Tier 1 systems, including Steam Deck, before settling the default. `@fix` can do L1. **Checks:** Still running: 10 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven. The reported five paired runs on an RTX 4060 show +1.09% FPS and 0.134 ms less descriptor time with the switch on versus off in the same PR build, but neither side is main. The run also uses 50% render resolution rather than the device's normal player settings. **Other systems:** The path handles graphics and compute descriptors, direct handles and handle tables on both Windows and Linux. Live parity was reported only on Windows with an RTX 4060; AMD, Linux and Steam Deck results are outstanding. The additional memo is allocated per recording thread alongside the existing memo, so its RAM and cache effects also need assessment. **Switches:** RX_VK_TEX_TABLE_FAST is added, default on; 0 selects the existing path and check compares paths. Its switch-table row is present, but the default is not established for the unmeasured Tier 1 systems or against main. **Reviewed:** ba8257aa7cba against 495ed9fe2aaa: Read the repository rules, PR template, standards, commit log, changed renderer diff, new cache header, changed switch and A/B wiring, and the relevant descriptor, texture and registration code. Read portions of the new test including its harness, mutations and runner; skimmed the remainder. The full vk_draw.cpp and test files were not read in full. docs/review-checklist.md was absent.; nothing run (a code review). **Checked and fine:** - The new switch has a switches.def row and HOS_AB wiring. - Texture slot versions are published before the registration generation, and the new memo checks changed slots after a generation change. - The new per-thread state uses the existing TLS ownership mechanism. - The reported Windows check-mode run found zero mismatches across more than 20.6 million checks. **Testing:** No code, tests or project scripts were run, as requested. The supplied CI checks are still running. **Overlaps and merge order:** Not determined; network access was unavailable. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.</sub>
@ -810,6 +810,7 @@ SW(RX_VK_TEX_DESC_MEMO, kill, enum, "on (1): per-thread 4-way texture descriptor
SW(RX_VK_TEX_MAX_DIM, hw, int, "2048; 1024 on Minimum settings (or Custom with none, where Auto picks Minimum) when the driver allows 4.5 GB or less (or an iGPU with 16 GB RAM or less)", "Width above which a big decoded ASTC texture leaves out its top mip levels.")
SW(RX_VK_TEX_MAX_MB, tune, int, "1536 MB", "Size in MB down to which any texture leaves out top mip levels, whatever its width.")
SW(RX_VK_TEX_SKIP_MB, hw, int, "64 MB; 8 on Minimum settings (or Custom with none, where Auto picks Minimum) when the driver allows 4.5 GB or less (or an iGPU with 16 GB RAM or less)", "Size as RGBA8, in MB, from which a decoded ASTC texture wider than the max width loses top levels.")
SW(RX_VK_TEX_TABLE_FAST, kill, enum, "on (1): 128 KB L2-resident MRU non-wiping texture descriptor memo for both single and handle-table descriptors with RLE fast-skip", "=0 (or off, false, no): uses the legacy tex_desc_memo path; =check: runs both and logs any mismatch; any other value: on (HOS_AB may flip).")
Member

L2 (should fix): The default-on renderer path has not been tested on the other affected Tier 1 systems.

When: AMD on Windows and Linux, NVIDIA on Linux, and Steam Deck run the new descriptor and cache path without a reported parity or performance run.

Do: Run parity and representative base-versus-head performance checks on the affected Tier 1 systems, including Steam Deck, before settling the default.

**L2** (should fix): The default-on renderer path has not been tested on the other affected Tier 1 systems. *When:* AMD on Windows and Linux, NVIDIA on Linux, and Steam Deck run the new descriptor and cache path without a reported parity or performance run. **Do:** Run parity and representative base-versus-head performance checks on the affected Tier 1 systems, including Steam Deck, before settling the default.
@ -5037,6 +5038,50 @@ void tex_desc_memo_begin_recording() {
VkSampler tex_desc_zero_sampler(bool is_depth) { return sampler_for(0, is_depth, false); }
TLS_OBJECT(tex_table_fast_tls, tex_table_fast::State)
Member

L1 (should fix): The reported A/B does not measure the full change against main under player settings.

When: Both reported sides run this branch, and the on path allocates the new per-thread cache in addition to the existing cache. The numbers therefore omit any shared branch cost and do not establish the gain at the normal resolution and preset.

Do: Measure the base and this head in interleaved runs at player settings in Market and another heavy area, reporting FPS, lows, frame times, descriptor time and RAM.

**L1** (should fix): The reported A/B does not measure the full change against main under player settings. *When:* Both reported sides run this branch, and the on path allocates the new per-thread cache in addition to the existing cache. The numbers therefore omit any shared branch cost and do not establish the gain at the normal resolution and preset. **Do:** Measure the base and this head in interleaved runs at player settings in Market and another heavy area, reporting FPS, lows, frame times, descriptor time and RAM.
siantm force-pushed perf/vk-tex-table-memo from ba8257aa7c
Some checks failed
PR description / Title and description (pull_request_target) Successful in 5s
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
to a4aa1ce125
Some checks failed
PR description / Title and description (pull_request_target) Successful in 5s
beanstalk/approval approved by HumanBean (reviewed)
beanstalk/windows+nvidia 2/1 pass
beanstalk/linux+nvidia 2/1 pass
beanstalk/windows+amd 2/1 fail
beanstalk/linux+radv 1/1 fail
beanstalk/intel 1/1 pass
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
2026-12-02 13:20:49 +00:00
Compare
Author
Contributor

Addressed the L1 allocation part in a4aa1ce12:

  • L1 (lazy legacy tex_desc_memo allocation, separate SSBO cache):

    • Extracted tex_desc_memo::SsboState in gpu/vk/tex_desc_memo.h (preserving State::ssbo and forwarding overloads) and switched build_descriptors()'s SSBO memo in gpu/vk/vk_draw.cpp to TLS_OBJECT(tex_desc_ssbo_tls, tex_desc_memo::SsboState).
    • tex_desc_memo_begin_recording() now pre-allocates only tex_desc_ssbo_tls() when tex_desc_memo_mode != 0, and build_descriptors() lazily allocates tex_desc_memo_tls() only when tm_mode != 0 && tf_mode == 0 (e.g. RX_VK_TEX_TABLE_FAST=0, HOS_AB flip to 0, or RX_VK_TEX_DESC_MEMO=check). When RX_VK_TEX_TABLE_FAST is active (1 or check), the 512 KB legacy texture memo is never allocated.
    • Fixed GCC -Werror=sign-compare / -Werror=extra hazards in gpu/vk/tex_table_fast.h and tests/test_vk_tex_table_fast.py, and added source-wiring checks for SsboState and lazy tex_desc_memo_tls allocation.
  • Verified locally on a4aa1ce12:

    • python -I tests/test_vk_tex_table_fast.py (clang++ and C:\msys64\mingw64\bin\g++.exe, with and without Vulkan headers v1.4.345, all 6 MUST_FAIL variants caught)
    • clang++ -std=c++20 -fms-extensions -Wno-c++11-narrowing -DVK_NO_PROTOTYPES -DMKWVK_BUILDING -fsyntax-only on gpu/vk/vk_draw.cpp
    • python -I tests/test_hos_ab.py --cc clang
    • python -I tests/test_tls_objects.py
    • python -I tests/test_vk_braces.py
  • Remaining live checks: Interleaved base-vs-head player-settings measurement (L1) and Tier-1 parity/perf verification on AMD Windows/Linux, NVIDIA Linux, and Steam Deck (L2) are still pending on target hardware.

Addressed the **L1** allocation part in `a4aa1ce12`: - **L1 (lazy legacy `tex_desc_memo` allocation, separate SSBO cache):** - Extracted `tex_desc_memo::SsboState` in `gpu/vk/tex_desc_memo.h` (preserving `State::ssbo` and forwarding overloads) and switched `build_descriptors()`'s SSBO memo in `gpu/vk/vk_draw.cpp` to `TLS_OBJECT(tex_desc_ssbo_tls, tex_desc_memo::SsboState)`. - `tex_desc_memo_begin_recording()` now pre-allocates only `tex_desc_ssbo_tls()` when `tex_desc_memo_mode != 0`, and `build_descriptors()` lazily allocates `tex_desc_memo_tls()` only when `tm_mode != 0 && tf_mode == 0` (e.g. `RX_VK_TEX_TABLE_FAST=0`, `HOS_AB` flip to `0`, or `RX_VK_TEX_DESC_MEMO=check`). When `RX_VK_TEX_TABLE_FAST` is active (`1` or `check`), the 512 KB legacy texture memo is never allocated. - Fixed GCC `-Werror=sign-compare` / `-Werror=extra` hazards in `gpu/vk/tex_table_fast.h` and `tests/test_vk_tex_table_fast.py`, and added source-wiring checks for `SsboState` and lazy `tex_desc_memo_tls` allocation. - **Verified locally on `a4aa1ce12`:** - `python -I tests/test_vk_tex_table_fast.py` (`clang++` and `C:\msys64\mingw64\bin\g++.exe`, with and without Vulkan headers `v1.4.345`, all 6 `MUST_FAIL` variants caught) - `clang++ -std=c++20 -fms-extensions -Wno-c++11-narrowing -DVK_NO_PROTOTYPES -DMKWVK_BUILDING -fsyntax-only` on `gpu/vk/vk_draw.cpp` - `python -I tests/test_hos_ab.py --cc clang` - `python -I tests/test_tls_objects.py` - `python -I tests/test_vk_braces.py` - **Remaining live checks:** Interleaved base-vs-head player-settings measurement (L1) and Tier-1 parity/perf verification on AMD Windows/Linux, NVIDIA Linux, and Steam Deck (L2) are still pending on target hardware.
Owner

@review
@beanstalk

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

Commit a4aa1ce · approved by HumanBean (reviewed) · dashboard

⚠️ Note: The farm cannot measure descriptor time directly or reproduce the reported interleaved in-run A/B and its confidence interval; a roughly 1% gain may be smaller than run-to-run noise.
⚠️ Note: The parity scenario fails on mismatch logs but does not guarantee that a particular handle-table or depth-comparison case was reached.
⚠️ Note: macOS is not represented by an available farm target, and the fixed CPU-oriented settings are not each tester’s normal player settings.

Summary, written by AI (gpt-6.1-terra) from the numbers below:

The change failed on Windows+AMD, Linux+RADV and Steam Deck; Windows+NVIDIA, Linux+NVIDIA and Intel passed. Screenshot max diff increased from 0.2246 to 0.4193 and 0.7928 to 0.9638 on the two Windows+AMD PCs, and from 0.2665 to 0.7792 on one Steam Deck, against a 0.2 limit. On the failing Linux+RADV PC, Market 1% low frame time worsened from 24.118 to 29.539 ms (+22.5%, above the 15% limit). The Windows Intel UHD 630 report was inconclusive because both baseline and PR crashed in every start on that PC, while a Linux Intel PC passed.

Done (started 2026-12-02 16:02 UTC, last report 11:32 UTC). Comment @Beanstalk to run it again.

Target Result Reports Frame time p99 (ms), main → PR VRAM peak (MB) Crashes
windows+nvidia ✅ pass (an outlier) 2 1 2 26.5 → 26.2 (−1%) — none
linux+nvidia ✅ pass (an outlier) 2 1 2 15.6 → 15.5 (−0%) — none
windows+amd ❌ fail (an outlier) 2 1 2 39.1 → 39.0 (−0%) — none
linux+radv ❌ fail (an outlier) 2 1 2 14.0 → 14.0 (+0%) — none
intel ✅ pass 2 1 2 205.6 → 206.3 (+0%) — 4 PR runs
steamdeck ❌ fail (an outlier) 2 1 2 38.8 → 38.6 (−1%) — none

Why it failed

  • windows+amd: default-performance screenshot.max_diff: 0.2 → 0.4; limit 0.2
  • windows+amd: default-performance screenshot.max_diff: 0.8 → 1.0; limit 0.2
  • linux+radv: default-performance market-perf.frametime_1pct_low_ms.max_delta_pct: 24.1 → 29.5 (+22.5%); limit 15.0
  • steamdeck: default-performance screenshot.max_diff: 0.3 → 0.8; limit 0.2

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 6 required comparison(s). See rule results.
What was tested

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

The farm will compare main with the default PR in Market and Hyrule Field, then run the PR’s live parity check in both places. Three performance starts per side and one parity start per side take about 50 minutes per tester, with uncapped, CPU-oriented settings. Frame times, FPS, memory, screenshots, and parity mismatch logs will be recorded; crashes, substantial frame-time regressions, picture differences, or mismatch logs fail the PR. Windows and Linux GPU targets include the Steam Deck. No tester online now matches linux+nvidia: that target waits for one.

  • Where: windows+nvidia (1-2 reports), linux+nvidia (1-2 reports), windows+amd (1-2 reports), linux+radv (1-2 reports), intel (1-2 reports), steamdeck (1-2 reports).
  • Matrix: 1 cell, each on main and the PR: RX_VK_TEX_TABLE_FAST check (PR only).
  • default-performance: from the repository's save market-entrance (settings vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0; switches HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0), then teleport to Market, take the picture market to compare with main, measure market-perf for 30 s (after 10 s warm-up), teleport to Hyrule Field, take the picture field to compare with main, measure field-perf for 30 s (after 10 s warm-up); 3 runs on each side.
  • live-parity: 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, measure market-check for 20 s (after 10 s warm-up), teleport to Hyrule Field, measure field-check for 20 s (after 10 s warm-up); 1 run on each side.
  • Measured: crashes, frame times, stutters and hitches, draws and frame rate, memory and CPU time, the game's log.
  • The PR fails if: it crashes; or frame time (p99) in field-perf is more than 15% above main; or frame time (worst 1%) in field-perf is more than 15% above main; or a picture differs from main by more than 20%; or frame time (p99) in market-perf is more than 15% above main; or frame time (worst 1%) in market-perf is more than 15% above main; or forbidden log lines is above 0.
  • Time: about 51 min of game runs per tester (8 game starts), plus the two builds.
Measurements on `windows+nvidia`, for the PR description

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

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 Ti SUPER, 621.14.0 AMD Ryzen 7 7800X3D 8-Core Processor, 32 GB RAM
Scene: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); live-parity, 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); default-performance: 3 game starts a side, market-perf 30 s after 10 s warm-up, field-perf 30 s after 10 s warm-up; live-parity: 1 game start a side, market-check 20 s after 10 s warm-up, field-check 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 @ 495ed9f After: this PR @ a4aa1ce
default-performance · field-perf · frame time (p99) (ms) 26.5 26.2 (−1%)
default-performance · market-perf · frame time (p99) (ms) 28.9 31.4 (+9%)
default-performance · field-perf · frame time (worst 1%) (ms) 27.6 27.4 (−0%)
default-performance · market-perf · frame time (worst 1%) (ms) 33.9 33.4 (−1%)
default-performance · forbidden log lines 0.0 0.0
live-parity · RX_VK_TEX_TABLE_FAST=check (PR only) · field-check · frame time (p99) (ms) 25.0 28.8 (+15%)
live-parity · RX_VK_TEX_TABLE_FAST=check (PR only) · market-check · frame time (p99) (ms) 29.8 32.8 (+10%)
live-parity · RX_VK_TEX_TABLE_FAST=check (PR only) · field-check · frame time (worst 1%) (ms) 26.3 29.7 (+13%)
live-parity · RX_VK_TEX_TABLE_FAST=check (PR only) · market-check · frame time (worst 1%) (ms) 47.8 39.4 (−18%)
live-parity · RX_VK_TEX_TABLE_FAST=check (PR only) · forbidden log lines 0.0 0.0

Flags and settings

Flag What it is Values tried Before this PR After this PR Effect (frame time (p99)) Helps / doesn't help / untested
RX_VK_TEX_TABLE_FAST switch the PR adds (set on the PR side only) check not in main the PR's default live-parity, main without it → the PR with check: 25.0 → 28.8 (+15%) doesn't help

As Markdown for the PR description:

## Measurements

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

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 Ti SUPER, 621.14.0` `AMD Ryzen 7 7800X3D 8-Core Processor, 32 GB RAM`  
Scene: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); live-parity, 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); default-performance: 3 game starts a side, market-perf 30 s after 10 s warm-up, field-perf 30 s after 10 s warm-up; live-parity: 1 game start a side, market-check 20 s after 10 s warm-up, field-check 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 @ 495ed9f | After: this PR @ a4aa1ce |
|---|---|---|
| default-performance · field-perf · frame time (p99) (ms) | 26.5 | 26.2 (−1%) |
| default-performance · market-perf · frame time (p99) (ms) | 28.9 | 31.4 (+9%) |
| default-performance · field-perf · frame time (worst 1%) (ms) | 27.6 | 27.4 (−0%) |
| default-performance · market-perf · frame time (worst 1%) (ms) | 33.9 | 33.4 (−1%) |
| default-performance · forbidden log lines | 0.0 | 0.0 |
| live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · field-check · frame time (p99) (ms) | 25.0 | 28.8 (+15%) |
| live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · market-check · frame time (p99) (ms) | 29.8 | 32.8 (+10%) |
| live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · field-check · frame time (worst 1%) (ms) | 26.3 | 29.7 (+13%) |
| live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · market-check · frame time (worst 1%) (ms) | 47.8 | 39.4 (−18%) |
| live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · forbidden log lines | 0.0 | 0.0 |

**Flags and settings**

| Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested |
|---|---|---|---|---|---|---|
| `RX_VK_TEX_TABLE_FAST` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | live-parity, main without it → the PR with check: 25.0 → 28.8 (+15%) | doesn't help |
Measurements on `linux+nvidia`, for the PR description

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

Hardware: 1: linux+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce GTX 1660 Ti, 620.73.4 Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz, 16 GB RAM; 2: linux+nvidia+nvidia-proprietary+dgpu+dlss NVIDIA GeForce RTX 5070 Laptop GPU, 620.85.2 AMD Ryzen AI 9 365 w/ Radeon 880M, 32 GB RAM
Scene: default-performance, 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); live-parity, 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); default-performance: 3 game starts a side, market-perf 30 s after 10 s warm-up, field-perf 30 s after 10 s warm-up; live-parity: 1 game start a side, market-check 20 s after 10 s warm-up, field-check 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 @ 495ed9f After: this PR @ a4aa1ce
default-performance · field-perf · frame time (p99) (ms) 15.6 15.5 (−0%)
default-performance · market-perf · frame time (p99) (ms) 19.4 20.0 (+3%)
default-performance · field-perf · frame time (worst 1%) (ms) 16.9 16.5 (−2%)
default-performance · market-perf · frame time (worst 1%) (ms) 24.1 24.4 (+1%)
default-performance · forbidden log lines 0.0 0.0
live-parity · RX_VK_TEX_TABLE_FAST=check (PR only) · field-check · frame time (p99) (ms) 15.1 15.3 (+2%)
live-parity · RX_VK_TEX_TABLE_FAST=check (PR only) · market-check · frame time (p99) (ms) 21.8 23.3 (+7%)
live-parity · RX_VK_TEX_TABLE_FAST=check (PR only) · field-check · frame time (worst 1%) (ms) 16.2 16.6 (+2%)
live-parity · RX_VK_TEX_TABLE_FAST=check (PR only) · market-check · frame time (worst 1%) (ms) 28.6 37.1 (+30%)
live-parity · RX_VK_TEX_TABLE_FAST=check (PR only) · forbidden log lines 0.0 0.0

Flags and settings

Flag What it is Values tried Before this PR After this PR Effect (frame time (p99)) Helps / doesn't help / untested
RX_VK_TEX_TABLE_FAST switch the PR adds (set on the PR side only) check not in main the PR's default live-parity, main without it → the PR with check: 15.1 → 15.3 (+2%) no clear effect

As Markdown for the PR description:

## Measurements

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

Hardware: 1: linux+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce GTX 1660 Ti, 620.73.4` `Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz, 16 GB RAM`; 2: linux+nvidia+nvidia-proprietary+dgpu+dlss `NVIDIA GeForce RTX 5070 Laptop GPU, 620.85.2` `AMD Ryzen AI 9 365 w/ Radeon 880M, 32 GB RAM`  
Scene: default-performance, 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); live-parity, 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); default-performance: 3 game starts a side, market-perf 30 s after 10 s warm-up, field-perf 30 s after 10 s warm-up; live-parity: 1 game start a side, market-check 20 s after 10 s warm-up, field-check 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 @ 495ed9f | After: this PR @ a4aa1ce |
|---|---|---|
| default-performance · field-perf · frame time (p99) (ms) | 15.6 | 15.5 (−0%) |
| default-performance · market-perf · frame time (p99) (ms) | 19.4 | 20.0 (+3%) |
| default-performance · field-perf · frame time (worst 1%) (ms) | 16.9 | 16.5 (−2%) |
| default-performance · market-perf · frame time (worst 1%) (ms) | 24.1 | 24.4 (+1%) |
| default-performance · forbidden log lines | 0.0 | 0.0 |
| live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · field-check · frame time (p99) (ms) | 15.1 | 15.3 (+2%) |
| live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · market-check · frame time (p99) (ms) | 21.8 | 23.3 (+7%) |
| live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · field-check · frame time (worst 1%) (ms) | 16.2 | 16.6 (+2%) |
| live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · market-check · frame time (worst 1%) (ms) | 28.6 | 37.1 (+30%) |
| live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · forbidden log lines | 0.0 | 0.0 |

**Flags and settings**

| Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested |
|---|---|---|---|---|---|---|
| `RX_VK_TEX_TABLE_FAST` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | live-parity, main without it → the PR with check: 15.1 → 15.3 (+2%) | no clear effect |
Measurements on `windows+amd`, for the PR description

Verdict: fail on windows+amd (2 reports): default-performance 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: default-performance, 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); live-parity, 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); default-performance: 3 game starts a side, market-perf 30 s after 10 s warm-up, field-perf 30 s after 10 s warm-up; live-parity: 1 game start a side, market-check 20 s after 10 s warm-up, field-check 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 @ 495ed9f After: this PR @ a4aa1ce
default-performance · field-perf · frame time (p99) (ms) 39.1 39.0 (−0%)
default-performance · market-perf · frame time (p99) (ms) 45.3 44.0 (−3%)
default-performance · field-perf · frame time (worst 1%) (ms) 40.0 39.7 (−1%)
default-performance · market-perf · frame time (worst 1%) (ms) 48.3 49.6 (+3%)
default-performance · forbidden log lines 0.0 0.0
live-parity · RX_VK_TEX_TABLE_FAST=check (PR only) · field-check · frame time (p99) (ms) 38.8 39.2 (+1%)
live-parity · RX_VK_TEX_TABLE_FAST=check (PR only) · market-check · frame time (p99) (ms) 46.6 44.5 (−5%)
live-parity · RX_VK_TEX_TABLE_FAST=check (PR only) · field-check · frame time (worst 1%) (ms) 39.4 41.0 (+4%)
live-parity · RX_VK_TEX_TABLE_FAST=check (PR only) · market-check · frame time (worst 1%) (ms) 56.4 49.3 (−13%)
live-parity · RX_VK_TEX_TABLE_FAST=check (PR only) · forbidden log lines 0.0 0.0

Flags and settings

Flag What it is Values tried Before this PR After this PR Effect (frame time (p99)) Helps / doesn't help / untested
RX_VK_TEX_TABLE_FAST switch the PR adds (set on the PR side only) check not in main the PR's default live-parity, main without it → the PR with check: 38.8 → 39.2 (+1%) no clear effect

As Markdown for the PR description:

## Measurements

**Verdict:** fail on windows+amd (2 reports): `default-performance 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: default-performance, 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); live-parity, 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); default-performance: 3 game starts a side, market-perf 30 s after 10 s warm-up, field-perf 30 s after 10 s warm-up; live-parity: 1 game start a side, market-check 20 s after 10 s warm-up, field-check 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 @ 495ed9f | After: this PR @ a4aa1ce |
|---|---|---|
| default-performance · field-perf · frame time (p99) (ms) | 39.1 | 39.0 (−0%) |
| default-performance · market-perf · frame time (p99) (ms) | 45.3 | 44.0 (−3%) |
| default-performance · field-perf · frame time (worst 1%) (ms) | 40.0 | 39.7 (−1%) |
| default-performance · market-perf · frame time (worst 1%) (ms) | 48.3 | 49.6 (+3%) |
| default-performance · forbidden log lines | 0.0 | 0.0 |
| live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · field-check · frame time (p99) (ms) | 38.8 | 39.2 (+1%) |
| live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · market-check · frame time (p99) (ms) | 46.6 | 44.5 (−5%) |
| live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · field-check · frame time (worst 1%) (ms) | 39.4 | 41.0 (+4%) |
| live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · market-check · frame time (worst 1%) (ms) | 56.4 | 49.3 (−13%) |
| live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · forbidden log lines | 0.0 | 0.0 |

**Flags and settings**

| Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested |
|---|---|---|---|---|---|---|
| `RX_VK_TEX_TABLE_FAST` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | live-parity, main without it → the PR with check: 38.8 → 39.2 (+1%) | no clear effect |
Measurements on `linux+radv`, for the PR description

Verdict: fail on linux+radv (2 reports): default-performance market-perf.frametime_1pct_low_ms.max_delta_pct (+22.5%) 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: default-performance, 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); live-parity, 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); default-performance: 3 game starts a side, market-perf 30 s after 10 s warm-up, field-perf 30 s after 10 s warm-up; live-parity: 1 game start a side, market-check 20 s after 10 s warm-up, field-check 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 @ 495ed9f After: this PR @ a4aa1ce
default-performance · field-perf · frame time (p99) (ms) 14.0 14.0 (+0%)
default-performance · market-perf · frame time (p99) (ms) 17.2 17.3 (+1%)
default-performance · field-perf · frame time (worst 1%) (ms) 15.3 15.7 (+2%)
default-performance · market-perf · frame time (worst 1%) (ms) 19.6 22.3 (+13%)
default-performance · forbidden log lines 0.0 0.0
live-parity · RX_VK_TEX_TABLE_FAST=check (PR only) · field-check · frame time (p99) (ms) 14.0 14.2 (+1%)
live-parity · RX_VK_TEX_TABLE_FAST=check (PR only) · market-check · frame time (p99) (ms) 16.7 17.4 (+4%)
live-parity · RX_VK_TEX_TABLE_FAST=check (PR only) · field-check · frame time (worst 1%) (ms) 15.6 16.5 (+6%)
live-parity · RX_VK_TEX_TABLE_FAST=check (PR only) · market-check · frame time (worst 1%) (ms) 21.0 21.2 (+1%)
live-parity · RX_VK_TEX_TABLE_FAST=check (PR only) · forbidden log lines 0.0 0.0

Flags and settings

Flag What it is Values tried Before this PR After this PR Effect (frame time (p99)) Helps / doesn't help / untested
RX_VK_TEX_TABLE_FAST switch the PR adds (set on the PR side only) check not in main the PR's default live-parity, main without it → the PR with check: 14.0 → 14.2 (+1%) no clear effect

As Markdown for the PR description:

## Measurements

**Verdict:** fail on linux+radv (2 reports): `default-performance market-perf.frametime_1pct_low_ms.max_delta_pct (+22.5%)` 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: default-performance, 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); live-parity, 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); default-performance: 3 game starts a side, market-perf 30 s after 10 s warm-up, field-perf 30 s after 10 s warm-up; live-parity: 1 game start a side, market-check 20 s after 10 s warm-up, field-check 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 @ 495ed9f | After: this PR @ a4aa1ce |
|---|---|---|
| default-performance · field-perf · frame time (p99) (ms) | 14.0 | 14.0 (+0%) |
| default-performance · market-perf · frame time (p99) (ms) | 17.2 | 17.3 (+1%) |
| default-performance · field-perf · frame time (worst 1%) (ms) | 15.3 | 15.7 (+2%) |
| default-performance · market-perf · frame time (worst 1%) (ms) | 19.6 | 22.3 (+13%) |
| default-performance · forbidden log lines | 0.0 | 0.0 |
| live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · field-check · frame time (p99) (ms) | 14.0 | 14.2 (+1%) |
| live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · market-check · frame time (p99) (ms) | 16.7 | 17.4 (+4%) |
| live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · field-check · frame time (worst 1%) (ms) | 15.6 | 16.5 (+6%) |
| live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · market-check · frame time (worst 1%) (ms) | 21.0 | 21.2 (+1%) |
| live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · forbidden log lines | 0.0 | 0.0 |

**Flags and settings**

| Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested |
|---|---|---|---|---|---|---|
| `RX_VK_TEX_TABLE_FAST` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | live-parity, main without it → the PR with check: 14.0 → 14.2 (+1%) | no clear effect |
Measurements on `intel`, for the PR description

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

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; 2: linux+intel+anv+igpu Intel(R) Graphics (RKL GT1), 26.2.4 11th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz, 128 GB RAM
Scene: default-performance, 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); live-parity, 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); default-performance: 3 game starts a side, market-perf 30 s after 10 s warm-up, field-perf 30 s after 10 s warm-up; live-parity: 1 game start a side, market-check 20 s after 10 s warm-up, field-check 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 @ 495ed9f After: this PR @ a4aa1ce
default-performance · field-perf · frame time (p99) (ms) 205.6 206.3 (+0%)
default-performance · market-perf · frame time (p99) (ms) 234.1 235.1 (+0%)
default-performance · field-perf · frame time (worst 1%) (ms) 208.0 211.5 (+2%)
default-performance · market-perf · frame time (worst 1%) (ms) 236.4 237.0 (+0%)
default-performance · forbidden log lines 0.0 0.0
live-parity · RX_VK_TEX_TABLE_FAST=check (PR only) · field-check · frame time (p99) (ms) 204.3 209.5 (+3%)
live-parity · RX_VK_TEX_TABLE_FAST=check (PR only) · market-check · frame time (p99) (ms) 256.7 303.2 (+18%)
live-parity · RX_VK_TEX_TABLE_FAST=check (PR only) · field-check · frame time (worst 1%) (ms) 205.4 214.8 (+5%)
live-parity · RX_VK_TEX_TABLE_FAST=check (PR only) · market-check · frame time (worst 1%) (ms) 270.4 489.9 (+81%)
live-parity · RX_VK_TEX_TABLE_FAST=check (PR only) · forbidden log lines 0.0 0.0

Flags and settings

Flag What it is Values tried Before this PR After this PR Effect (frame time (p99)) Helps / doesn't help / untested
RX_VK_TEX_TABLE_FAST switch the PR adds (set on the PR side only) check not in main the PR's default live-parity, main without it → the PR with check: 204.3 → 209.5 (+3%) doesn't help

As Markdown for the PR description:

## Measurements

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

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`; 2: linux+intel+anv+igpu `Intel(R) Graphics (RKL GT1), 26.2.4` `11th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz, 128 GB RAM`  
Scene: default-performance, 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); live-parity, 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); default-performance: 3 game starts a side, market-perf 30 s after 10 s warm-up, field-perf 30 s after 10 s warm-up; live-parity: 1 game start a side, market-check 20 s after 10 s warm-up, field-check 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 @ 495ed9f | After: this PR @ a4aa1ce |
|---|---|---|
| default-performance · field-perf · frame time (p99) (ms) | 205.6 | 206.3 (+0%) |
| default-performance · market-perf · frame time (p99) (ms) | 234.1 | 235.1 (+0%) |
| default-performance · field-perf · frame time (worst 1%) (ms) | 208.0 | 211.5 (+2%) |
| default-performance · market-perf · frame time (worst 1%) (ms) | 236.4 | 237.0 (+0%) |
| default-performance · forbidden log lines | 0.0 | 0.0 |
| live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · field-check · frame time (p99) (ms) | 204.3 | 209.5 (+3%) |
| live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · market-check · frame time (p99) (ms) | 256.7 | 303.2 (+18%) |
| live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · field-check · frame time (worst 1%) (ms) | 205.4 | 214.8 (+5%) |
| live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · market-check · frame time (worst 1%) (ms) | 270.4 | 489.9 (+81%) |
| live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · forbidden log lines | 0.0 | 0.0 |

**Flags and settings**

| Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested |
|---|---|---|---|---|---|---|
| `RX_VK_TEX_TABLE_FAST` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | live-parity, main without it → the PR with check: 204.3 → 209.5 (+3%) | doesn't help |
Measurements on `steamdeck`, for the PR description

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

Hardware: 1: linux+amd+radv+igpu+handheld AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99 AMD Custom APU 0405, 16 GB RAM; 2: linux+amd+radv+igpu+handheld AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99 AMD Custom APU 0405, 16 GB RAM
Scene: default-performance, 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); live-parity, 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); default-performance: 3 game starts a side, market-perf 30 s after 10 s warm-up, field-perf 30 s after 10 s warm-up; live-parity: 1 game start a side, market-check 20 s after 10 s warm-up, field-check 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 @ 495ed9f After: this PR @ a4aa1ce
default-performance · field-perf · frame time (p99) (ms) 38.8 38.6 (−1%)
default-performance · market-perf · frame time (p99) (ms) 47.6 50.4 (+6%)
default-performance · field-perf · frame time (worst 1%) (ms) 46.8 43.0 (−8%)
default-performance · market-perf · frame time (worst 1%) (ms) 62.4 61.4 (−2%)
default-performance · forbidden log lines 0.0 0.0
live-parity · RX_VK_TEX_TABLE_FAST=check (PR only) · field-check · frame time (p99) (ms) 40.4 43.1 (+7%)
live-parity · RX_VK_TEX_TABLE_FAST=check (PR only) · market-check · frame time (p99) (ms) 50.8 50.6 (−0%)
live-parity · RX_VK_TEX_TABLE_FAST=check (PR only) · field-check · frame time (worst 1%) (ms) 53.9 57.1 (+6%)
live-parity · RX_VK_TEX_TABLE_FAST=check (PR only) · market-check · frame time (worst 1%) (ms) 73.7 83.9 (+14%)
live-parity · RX_VK_TEX_TABLE_FAST=check (PR only) · forbidden log lines 0.0 0.0

Flags and settings

Flag What it is Values tried Before this PR After this PR Effect (frame time (p99)) Helps / doesn't help / untested
RX_VK_TEX_TABLE_FAST switch the PR adds (set on the PR side only) check not in main the PR's default live-parity, main without it → the PR with check: 40.4 → 43.1 (+7%) doesn't help

As Markdown for the PR description:

## Measurements

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

Hardware: 1: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 16 GB RAM`; 2: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 16 GB RAM`  
Scene: default-performance, 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); live-parity, 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); default-performance: 3 game starts a side, market-perf 30 s after 10 s warm-up, field-perf 30 s after 10 s warm-up; live-parity: 1 game start a side, market-check 20 s after 10 s warm-up, field-check 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 @ 495ed9f | After: this PR @ a4aa1ce |
|---|---|---|
| default-performance · field-perf · frame time (p99) (ms) | 38.8 | 38.6 (−1%) |
| default-performance · market-perf · frame time (p99) (ms) | 47.6 | 50.4 (+6%) |
| default-performance · field-perf · frame time (worst 1%) (ms) | 46.8 | 43.0 (−8%) |
| default-performance · market-perf · frame time (worst 1%) (ms) | 62.4 | 61.4 (−2%) |
| default-performance · forbidden log lines | 0.0 | 0.0 |
| live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · field-check · frame time (p99) (ms) | 40.4 | 43.1 (+7%) |
| live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · market-check · frame time (p99) (ms) | 50.8 | 50.6 (−0%) |
| live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · field-check · frame time (worst 1%) (ms) | 53.9 | 57.1 (+6%) |
| live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · market-check · frame time (worst 1%) (ms) | 73.7 | 83.9 (+14%) |
| live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · forbidden log lines | 0.0 | 0.0 |

**Flags and settings**

| Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested |
|---|---|---|---|---|---|---|
| `RX_VK_TEX_TABLE_FAST` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | live-parity, main without it → the PR with check: 40.4 → 43.1 (+7%) | doesn't help |
The testers' hardware
Target Report Ran on
windows+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
windows+nvidia 2 windows+nvidia+nvidia-proprietary+dgpu+window NVIDIA GeForce RTX 4070 Ti SUPER, 621.14.0 AMD Ryzen 7 7800X3D 8-Core Processor, 32 GB RAM
linux+nvidia 1 linux+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce GTX 1660 Ti, 620.73.4 Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz, 16 GB RAM
linux+nvidia 2 linux+nvidia+nvidia-proprietary+dgpu+dlss NVIDIA GeForce RTX 5070 Laptop GPU, 620.85.2 AMD Ryzen AI 9 365 w/ Radeon 880M, 32 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
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
intel 2 linux+intel+anv+igpu Intel(R) Graphics (RKL GT1), 26.2.4 11th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz, 128 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
steamdeck 2 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>a4aa1ce</code> (the newer results are in a comment below)</summary> Commit `a4aa1ce` · approved by HumanBean (reviewed) · [dashboard](https://beanstalk.magicbean.dev/prs/2970) ⚠️ **Note:** The farm cannot measure descriptor time directly or reproduce the reported interleaved in-run A/B and its confidence interval; a roughly 1% gain may be smaller than run-to-run noise. ⚠️ **Note:** The parity scenario fails on mismatch logs but does not guarantee that a particular handle-table or depth-comparison case was reached. ⚠️ **Note:** macOS is not represented by an available farm target, and the fixed CPU-oriented settings are not each tester’s normal player settings. > **Summary**, written by AI (`gpt-6.1-terra`) from the numbers below: > > The change failed on Windows+AMD, Linux+RADV and Steam Deck; Windows+NVIDIA, Linux+NVIDIA and Intel passed. Screenshot max diff increased from 0.2246 to 0.4193 and 0.7928 to 0.9638 on the two Windows+AMD PCs, and from 0.2665 to 0.7792 on one Steam Deck, against a 0.2 limit. On the failing Linux+RADV PC, Market 1% low frame time worsened from 24.118 to 29.539 ms (+22.5%, above the 15% limit). The Windows Intel UHD 630 report was inconclusive because both baseline and PR crashed in every start on that PC, while a Linux Intel PC passed. Done (started 2026-12-02 16:02 UTC, last report 11:32 UTC). Comment `@Beanstalk` to run it again. | Target | Result | Reports | Frame time p99 (ms), main → PR | VRAM peak (MB) | Crashes | | --- | --- | --- | --- | --- | --- | | `windows+nvidia` | ✅ pass (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_06ede4bd996afbb6) [2](https://beanstalk.magicbean.dev/reports/rp_7b4a6a2c0244e441) | 26.5 → 26.2 (−1%) | — | none | | `linux+nvidia` | ✅ pass (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_d6c5b86bc0150073) [2](https://beanstalk.magicbean.dev/reports/rp_b85f4eb6b1637253) | 15.6 → 15.5 (−0%) | — | none | | `windows+amd` | ❌ fail (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_cd84f929ded41507) [2](https://beanstalk.magicbean.dev/reports/rp_75f4c46157bb2c98) | 39.1 → 39.0 (−0%) | — | none | | `linux+radv` | ❌ fail (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_4df5de4c1389dab9) [2](https://beanstalk.magicbean.dev/reports/rp_64e0687cde356b2a) | 14.0 → 14.0 (+0%) | — | none | | `intel` | ✅ pass | 2 [1](https://beanstalk.magicbean.dev/reports/rp_fb0f033d52524fb1) [2](https://beanstalk.magicbean.dev/reports/rp_9f4ae2a749c417f0) | 205.6 → 206.3 (+0%) | — | 4 PR runs | | `steamdeck` | ❌ fail (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_e77dfa27d75de9c5) [2](https://beanstalk.magicbean.dev/reports/rp_7cd7f6945805c8ed) | 38.8 → 38.6 (−1%) | — | none | **Why it failed** - `windows+amd`: `default-performance` `screenshot.max_diff`: `0.2 → 0.4; limit 0.2` - `windows+amd`: `default-performance` `screenshot.max_diff`: `0.8 → 1.0; limit 0.2` - `linux+radv`: `default-performance` `market-perf.frametime_1pct_low_ms.max_delta_pct`: `24.1 → 29.5 (+22.5%); limit 15.0` - `steamdeck`: `default-performance` `screenshot.max_diff`: `0.3 → 0.8; limit 0.2` **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_fb0f033d52524fb1): `Insufficient frame-time evidence for 6 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 main with the default PR in Market and Hyrule Field, then run the PR’s live parity check in both places. Three performance starts per side and one parity start per side take about 50 minutes per tester, with uncapped, CPU-oriented settings. Frame times, FPS, memory, screenshots, and parity mismatch logs will be recorded; crashes, substantial frame-time regressions, picture differences, or mismatch logs fail the PR. Windows and Linux GPU targets include the Steam Deck. No tester online now matches linux+nvidia: that target waits for one. - **Where:** windows+nvidia (1-2 reports), linux+nvidia (1-2 reports), windows+amd (1-2 reports), linux+radv (1-2 reports), intel (1-2 reports), steamdeck (1-2 reports). - **Matrix:** 1 cell, each on main and the PR: RX_VK_TEX_TABLE_FAST `check` (PR only). - **default-performance:** from the repository's save `market-entrance` (settings vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0; switches `HOS_OUTPUT_RES=1280x720`, `RX_VK_AUTO_TUNE=0`), then teleport to Market, take the picture market to compare with main, measure market-perf for 30 s (after 10 s warm-up), teleport to Hyrule Field, take the picture field to compare with main, measure field-perf for 30 s (after 10 s warm-up); 3 runs on each side. - **live-parity:** 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, measure market-check for 20 s (after 10 s warm-up), teleport to Hyrule Field, measure field-check for 20 s (after 10 s warm-up); 1 run on each side. - **Measured:** crashes, frame times, stutters and hitches, draws and frame rate, memory and CPU time, the game's log. - **The PR fails if:** it crashes; or frame time (p99) in field-perf is more than 15% above main; or frame time (worst 1%) in field-perf is more than 15% above main; or a picture differs from main by more than 20%; or frame time (p99) in market-perf is more than 15% above main; or frame time (worst 1%) in market-perf is more than 15% above main; or forbidden log lines is above 0. - **Time:** about 51 min of game runs per tester (8 game starts), plus the two builds. </details> <details><summary>Measurements on `windows+nvidia`, for the PR description</summary> **Verdict:** pass on windows+nvidia (2 reports): no rule failed and no PR run crashed. 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 Ti SUPER, 621.14.0` `AMD Ryzen 7 7800X3D 8-Core Processor, 32 GB RAM` Scene: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); live-parity, 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); default-performance: 3 game starts a side, market-perf 30 s after 10 s warm-up, field-perf 30 s after 10 s warm-up; live-parity: 1 game start a side, market-check 20 s after 10 s warm-up, field-check 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 @ 495ed9f | After: this PR @ a4aa1ce | |---|---|---| | default-performance · field-perf · frame time (p99) (ms) | 26.5 | 26.2 (−1%) | | default-performance · market-perf · frame time (p99) (ms) | 28.9 | 31.4 (+9%) | | default-performance · field-perf · frame time (worst 1%) (ms) | 27.6 | 27.4 (−0%) | | default-performance · market-perf · frame time (worst 1%) (ms) | 33.9 | 33.4 (−1%) | | default-performance · forbidden log lines | 0.0 | 0.0 | | live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · field-check · frame time (p99) (ms) | 25.0 | 28.8 (+15%) | | live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · market-check · frame time (p99) (ms) | 29.8 | 32.8 (+10%) | | live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · field-check · frame time (worst 1%) (ms) | 26.3 | 29.7 (+13%) | | live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · market-check · frame time (worst 1%) (ms) | 47.8 | 39.4 (−18%) | | live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · forbidden log lines | 0.0 | 0.0 | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_TEX_TABLE_FAST` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | live-parity, main without it → the PR with check: 25.0 → 28.8 (+15%) | doesn't help | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** pass on windows+nvidia (2 reports): no rule failed and no PR run crashed. 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 Ti SUPER, 621.14.0` `AMD Ryzen 7 7800X3D 8-Core Processor, 32 GB RAM` Scene: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); live-parity, 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); default-performance: 3 game starts a side, market-perf 30 s after 10 s warm-up, field-perf 30 s after 10 s warm-up; live-parity: 1 game start a side, market-check 20 s after 10 s warm-up, field-check 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 @ 495ed9f | After: this PR @ a4aa1ce | |---|---|---| | default-performance · field-perf · frame time (p99) (ms) | 26.5 | 26.2 (−1%) | | default-performance · market-perf · frame time (p99) (ms) | 28.9 | 31.4 (+9%) | | default-performance · field-perf · frame time (worst 1%) (ms) | 27.6 | 27.4 (−0%) | | default-performance · market-perf · frame time (worst 1%) (ms) | 33.9 | 33.4 (−1%) | | default-performance · forbidden log lines | 0.0 | 0.0 | | live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · field-check · frame time (p99) (ms) | 25.0 | 28.8 (+15%) | | live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · market-check · frame time (p99) (ms) | 29.8 | 32.8 (+10%) | | live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · field-check · frame time (worst 1%) (ms) | 26.3 | 29.7 (+13%) | | live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · market-check · frame time (worst 1%) (ms) | 47.8 | 39.4 (−18%) | | live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · forbidden log lines | 0.0 | 0.0 | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_TEX_TABLE_FAST` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | live-parity, main without it → the PR with check: 25.0 → 28.8 (+15%) | doesn't help | ``` </details> <details><summary>Measurements on `linux+nvidia`, for the PR description</summary> **Verdict:** pass on linux+nvidia (2 reports): no rule failed and no PR run crashed. Hardware: 1: linux+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce GTX 1660 Ti, 620.73.4` `Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz, 16 GB RAM`; 2: linux+nvidia+nvidia-proprietary+dgpu+dlss `NVIDIA GeForce RTX 5070 Laptop GPU, 620.85.2` `AMD Ryzen AI 9 365 w/ Radeon 880M, 32 GB RAM` Scene: default-performance, 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); live-parity, 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); default-performance: 3 game starts a side, market-perf 30 s after 10 s warm-up, field-perf 30 s after 10 s warm-up; live-parity: 1 game start a side, market-check 20 s after 10 s warm-up, field-check 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 @ 495ed9f | After: this PR @ a4aa1ce | |---|---|---| | default-performance · field-perf · frame time (p99) (ms) | 15.6 | 15.5 (−0%) | | default-performance · market-perf · frame time (p99) (ms) | 19.4 | 20.0 (+3%) | | default-performance · field-perf · frame time (worst 1%) (ms) | 16.9 | 16.5 (−2%) | | default-performance · market-perf · frame time (worst 1%) (ms) | 24.1 | 24.4 (+1%) | | default-performance · forbidden log lines | 0.0 | 0.0 | | live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · field-check · frame time (p99) (ms) | 15.1 | 15.3 (+2%) | | live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · market-check · frame time (p99) (ms) | 21.8 | 23.3 (+7%) | | live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · field-check · frame time (worst 1%) (ms) | 16.2 | 16.6 (+2%) | | live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · market-check · frame time (worst 1%) (ms) | 28.6 | 37.1 (+30%) | | live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · forbidden log lines | 0.0 | 0.0 | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_TEX_TABLE_FAST` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | live-parity, main without it → the PR with check: 15.1 → 15.3 (+2%) | no clear effect | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** pass on linux+nvidia (2 reports): no rule failed and no PR run crashed. Hardware: 1: linux+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce GTX 1660 Ti, 620.73.4` `Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz, 16 GB RAM`; 2: linux+nvidia+nvidia-proprietary+dgpu+dlss `NVIDIA GeForce RTX 5070 Laptop GPU, 620.85.2` `AMD Ryzen AI 9 365 w/ Radeon 880M, 32 GB RAM` Scene: default-performance, 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); live-parity, 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); default-performance: 3 game starts a side, market-perf 30 s after 10 s warm-up, field-perf 30 s after 10 s warm-up; live-parity: 1 game start a side, market-check 20 s after 10 s warm-up, field-check 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 @ 495ed9f | After: this PR @ a4aa1ce | |---|---|---| | default-performance · field-perf · frame time (p99) (ms) | 15.6 | 15.5 (−0%) | | default-performance · market-perf · frame time (p99) (ms) | 19.4 | 20.0 (+3%) | | default-performance · field-perf · frame time (worst 1%) (ms) | 16.9 | 16.5 (−2%) | | default-performance · market-perf · frame time (worst 1%) (ms) | 24.1 | 24.4 (+1%) | | default-performance · forbidden log lines | 0.0 | 0.0 | | live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · field-check · frame time (p99) (ms) | 15.1 | 15.3 (+2%) | | live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · market-check · frame time (p99) (ms) | 21.8 | 23.3 (+7%) | | live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · field-check · frame time (worst 1%) (ms) | 16.2 | 16.6 (+2%) | | live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · market-check · frame time (worst 1%) (ms) | 28.6 | 37.1 (+30%) | | live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · forbidden log lines | 0.0 | 0.0 | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_TEX_TABLE_FAST` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | live-parity, main without it → the PR with check: 15.1 → 15.3 (+2%) | no clear effect | ``` </details> <details><summary>Measurements on `windows+amd`, for the PR description</summary> **Verdict:** fail on windows+amd (2 reports): `default-performance 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: default-performance, 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); live-parity, 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); default-performance: 3 game starts a side, market-perf 30 s after 10 s warm-up, field-perf 30 s after 10 s warm-up; live-parity: 1 game start a side, market-check 20 s after 10 s warm-up, field-check 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 @ 495ed9f | After: this PR @ a4aa1ce | |---|---|---| | default-performance · field-perf · frame time (p99) (ms) | 39.1 | 39.0 (−0%) | | default-performance · market-perf · frame time (p99) (ms) | 45.3 | 44.0 (−3%) | | default-performance · field-perf · frame time (worst 1%) (ms) | 40.0 | 39.7 (−1%) | | default-performance · market-perf · frame time (worst 1%) (ms) | 48.3 | 49.6 (+3%) | | default-performance · forbidden log lines | 0.0 | 0.0 | | live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · field-check · frame time (p99) (ms) | 38.8 | 39.2 (+1%) | | live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · market-check · frame time (p99) (ms) | 46.6 | 44.5 (−5%) | | live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · field-check · frame time (worst 1%) (ms) | 39.4 | 41.0 (+4%) | | live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · market-check · frame time (worst 1%) (ms) | 56.4 | 49.3 (−13%) | | live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · forbidden log lines | 0.0 | 0.0 | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_TEX_TABLE_FAST` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | live-parity, main without it → the PR with check: 38.8 → 39.2 (+1%) | no clear effect | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** fail on windows+amd (2 reports): `default-performance 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: default-performance, 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); live-parity, 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); default-performance: 3 game starts a side, market-perf 30 s after 10 s warm-up, field-perf 30 s after 10 s warm-up; live-parity: 1 game start a side, market-check 20 s after 10 s warm-up, field-check 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 @ 495ed9f | After: this PR @ a4aa1ce | |---|---|---| | default-performance · field-perf · frame time (p99) (ms) | 39.1 | 39.0 (−0%) | | default-performance · market-perf · frame time (p99) (ms) | 45.3 | 44.0 (−3%) | | default-performance · field-perf · frame time (worst 1%) (ms) | 40.0 | 39.7 (−1%) | | default-performance · market-perf · frame time (worst 1%) (ms) | 48.3 | 49.6 (+3%) | | default-performance · forbidden log lines | 0.0 | 0.0 | | live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · field-check · frame time (p99) (ms) | 38.8 | 39.2 (+1%) | | live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · market-check · frame time (p99) (ms) | 46.6 | 44.5 (−5%) | | live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · field-check · frame time (worst 1%) (ms) | 39.4 | 41.0 (+4%) | | live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · market-check · frame time (worst 1%) (ms) | 56.4 | 49.3 (−13%) | | live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · forbidden log lines | 0.0 | 0.0 | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_TEX_TABLE_FAST` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | live-parity, main without it → the PR with check: 38.8 → 39.2 (+1%) | no clear effect | ``` </details> <details><summary>Measurements on `linux+radv`, for the PR description</summary> **Verdict:** fail on linux+radv (2 reports): `default-performance market-perf.frametime_1pct_low_ms.max_delta_pct (+22.5%)` 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: default-performance, 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); live-parity, 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); default-performance: 3 game starts a side, market-perf 30 s after 10 s warm-up, field-perf 30 s after 10 s warm-up; live-parity: 1 game start a side, market-check 20 s after 10 s warm-up, field-check 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 @ 495ed9f | After: this PR @ a4aa1ce | |---|---|---| | default-performance · field-perf · frame time (p99) (ms) | 14.0 | 14.0 (+0%) | | default-performance · market-perf · frame time (p99) (ms) | 17.2 | 17.3 (+1%) | | default-performance · field-perf · frame time (worst 1%) (ms) | 15.3 | 15.7 (+2%) | | default-performance · market-perf · frame time (worst 1%) (ms) | 19.6 | 22.3 (+13%) | | default-performance · forbidden log lines | 0.0 | 0.0 | | live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · field-check · frame time (p99) (ms) | 14.0 | 14.2 (+1%) | | live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · market-check · frame time (p99) (ms) | 16.7 | 17.4 (+4%) | | live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · field-check · frame time (worst 1%) (ms) | 15.6 | 16.5 (+6%) | | live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · market-check · frame time (worst 1%) (ms) | 21.0 | 21.2 (+1%) | | live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · forbidden log lines | 0.0 | 0.0 | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_TEX_TABLE_FAST` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | live-parity, main without it → the PR with check: 14.0 → 14.2 (+1%) | no clear effect | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** fail on linux+radv (2 reports): `default-performance market-perf.frametime_1pct_low_ms.max_delta_pct (+22.5%)` 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: default-performance, 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); live-parity, 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); default-performance: 3 game starts a side, market-perf 30 s after 10 s warm-up, field-perf 30 s after 10 s warm-up; live-parity: 1 game start a side, market-check 20 s after 10 s warm-up, field-check 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 @ 495ed9f | After: this PR @ a4aa1ce | |---|---|---| | default-performance · field-perf · frame time (p99) (ms) | 14.0 | 14.0 (+0%) | | default-performance · market-perf · frame time (p99) (ms) | 17.2 | 17.3 (+1%) | | default-performance · field-perf · frame time (worst 1%) (ms) | 15.3 | 15.7 (+2%) | | default-performance · market-perf · frame time (worst 1%) (ms) | 19.6 | 22.3 (+13%) | | default-performance · forbidden log lines | 0.0 | 0.0 | | live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · field-check · frame time (p99) (ms) | 14.0 | 14.2 (+1%) | | live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · market-check · frame time (p99) (ms) | 16.7 | 17.4 (+4%) | | live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · field-check · frame time (worst 1%) (ms) | 15.6 | 16.5 (+6%) | | live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · market-check · frame time (worst 1%) (ms) | 21.0 | 21.2 (+1%) | | live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · forbidden log lines | 0.0 | 0.0 | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_TEX_TABLE_FAST` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | live-parity, main without it → the PR with check: 14.0 → 14.2 (+1%) | no clear effect | ``` </details> <details><summary>Measurements on `intel`, for the PR description</summary> **Verdict:** pass on intel (2 reports): no rule failed and no PR run crashed. 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`; 2: linux+intel+anv+igpu `Intel(R) Graphics (RKL GT1), 26.2.4` `11th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz, 128 GB RAM` Scene: default-performance, 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); live-parity, 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); default-performance: 3 game starts a side, market-perf 30 s after 10 s warm-up, field-perf 30 s after 10 s warm-up; live-parity: 1 game start a side, market-check 20 s after 10 s warm-up, field-check 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 @ 495ed9f | After: this PR @ a4aa1ce | |---|---|---| | default-performance · field-perf · frame time (p99) (ms) | 205.6 | 206.3 (+0%) | | default-performance · market-perf · frame time (p99) (ms) | 234.1 | 235.1 (+0%) | | default-performance · field-perf · frame time (worst 1%) (ms) | 208.0 | 211.5 (+2%) | | default-performance · market-perf · frame time (worst 1%) (ms) | 236.4 | 237.0 (+0%) | | default-performance · forbidden log lines | 0.0 | 0.0 | | live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · field-check · frame time (p99) (ms) | 204.3 | 209.5 (+3%) | | live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · market-check · frame time (p99) (ms) | 256.7 | 303.2 (+18%) | | live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · field-check · frame time (worst 1%) (ms) | 205.4 | 214.8 (+5%) | | live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · market-check · frame time (worst 1%) (ms) | 270.4 | 489.9 (+81%) | | live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · forbidden log lines | 0.0 | 0.0 | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_TEX_TABLE_FAST` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | live-parity, main without it → the PR with check: 204.3 → 209.5 (+3%) | doesn't help | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** pass on intel (2 reports): no rule failed and no PR run crashed. 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`; 2: linux+intel+anv+igpu `Intel(R) Graphics (RKL GT1), 26.2.4` `11th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz, 128 GB RAM` Scene: default-performance, 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); live-parity, 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); default-performance: 3 game starts a side, market-perf 30 s after 10 s warm-up, field-perf 30 s after 10 s warm-up; live-parity: 1 game start a side, market-check 20 s after 10 s warm-up, field-check 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 @ 495ed9f | After: this PR @ a4aa1ce | |---|---|---| | default-performance · field-perf · frame time (p99) (ms) | 205.6 | 206.3 (+0%) | | default-performance · market-perf · frame time (p99) (ms) | 234.1 | 235.1 (+0%) | | default-performance · field-perf · frame time (worst 1%) (ms) | 208.0 | 211.5 (+2%) | | default-performance · market-perf · frame time (worst 1%) (ms) | 236.4 | 237.0 (+0%) | | default-performance · forbidden log lines | 0.0 | 0.0 | | live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · field-check · frame time (p99) (ms) | 204.3 | 209.5 (+3%) | | live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · market-check · frame time (p99) (ms) | 256.7 | 303.2 (+18%) | | live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · field-check · frame time (worst 1%) (ms) | 205.4 | 214.8 (+5%) | | live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · market-check · frame time (worst 1%) (ms) | 270.4 | 489.9 (+81%) | | live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · forbidden log lines | 0.0 | 0.0 | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_TEX_TABLE_FAST` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | live-parity, main without it → the PR with check: 204.3 → 209.5 (+3%) | doesn't help | ``` </details> <details><summary>Measurements on `steamdeck`, for the PR description</summary> **Verdict:** fail on steamdeck (2 reports): `default-performance screenshot.max_diff` failed. Hardware: 1: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 16 GB RAM`; 2: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 16 GB RAM` Scene: default-performance, 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); live-parity, 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); default-performance: 3 game starts a side, market-perf 30 s after 10 s warm-up, field-perf 30 s after 10 s warm-up; live-parity: 1 game start a side, market-check 20 s after 10 s warm-up, field-check 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 @ 495ed9f | After: this PR @ a4aa1ce | |---|---|---| | default-performance · field-perf · frame time (p99) (ms) | 38.8 | 38.6 (−1%) | | default-performance · market-perf · frame time (p99) (ms) | 47.6 | 50.4 (+6%) | | default-performance · field-perf · frame time (worst 1%) (ms) | 46.8 | 43.0 (−8%) | | default-performance · market-perf · frame time (worst 1%) (ms) | 62.4 | 61.4 (−2%) | | default-performance · forbidden log lines | 0.0 | 0.0 | | live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · field-check · frame time (p99) (ms) | 40.4 | 43.1 (+7%) | | live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · market-check · frame time (p99) (ms) | 50.8 | 50.6 (−0%) | | live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · field-check · frame time (worst 1%) (ms) | 53.9 | 57.1 (+6%) | | live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · market-check · frame time (worst 1%) (ms) | 73.7 | 83.9 (+14%) | | live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · forbidden log lines | 0.0 | 0.0 | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_TEX_TABLE_FAST` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | live-parity, main without it → the PR with check: 40.4 → 43.1 (+7%) | doesn't help | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** fail on steamdeck (2 reports): `default-performance screenshot.max_diff` failed. Hardware: 1: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 16 GB RAM`; 2: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 16 GB RAM` Scene: default-performance, 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); live-parity, 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); default-performance: 3 game starts a side, market-perf 30 s after 10 s warm-up, field-perf 30 s after 10 s warm-up; live-parity: 1 game start a side, market-check 20 s after 10 s warm-up, field-check 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 @ 495ed9f | After: this PR @ a4aa1ce | |---|---|---| | default-performance · field-perf · frame time (p99) (ms) | 38.8 | 38.6 (−1%) | | default-performance · market-perf · frame time (p99) (ms) | 47.6 | 50.4 (+6%) | | default-performance · field-perf · frame time (worst 1%) (ms) | 46.8 | 43.0 (−8%) | | default-performance · market-perf · frame time (worst 1%) (ms) | 62.4 | 61.4 (−2%) | | default-performance · forbidden log lines | 0.0 | 0.0 | | live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · field-check · frame time (p99) (ms) | 40.4 | 43.1 (+7%) | | live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · market-check · frame time (p99) (ms) | 50.8 | 50.6 (−0%) | | live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · field-check · frame time (worst 1%) (ms) | 53.9 | 57.1 (+6%) | | live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · market-check · frame time (worst 1%) (ms) | 73.7 | 83.9 (+14%) | | live-parity · `RX_VK_TEX_TABLE_FAST=check (PR only)` · forbidden log lines | 0.0 | 0.0 | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_TEX_TABLE_FAST` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | live-parity, main without it → the PR with check: 40.4 → 43.1 (+7%) | doesn't help | ``` </details> <details><summary>The testers' hardware</summary> | Target | Report | Ran on | | --- | --- | --- | | `windows+nvidia` | [1](https://beanstalk.magicbean.dev/reports/rp_06ede4bd996afbb6) | 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` | | `windows+nvidia` | [2](https://beanstalk.magicbean.dev/reports/rp_7b4a6a2c0244e441) | windows+nvidia+nvidia-proprietary+dgpu+window `NVIDIA GeForce RTX 4070 Ti SUPER, 621.14.0` `AMD Ryzen 7 7800X3D 8-Core Processor, 32 GB RAM` | | `linux+nvidia` | [1](https://beanstalk.magicbean.dev/reports/rp_d6c5b86bc0150073) | linux+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce GTX 1660 Ti, 620.73.4` `Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz, 16 GB RAM` | | `linux+nvidia` | [2](https://beanstalk.magicbean.dev/reports/rp_b85f4eb6b1637253) | linux+nvidia+nvidia-proprietary+dgpu+dlss `NVIDIA GeForce RTX 5070 Laptop GPU, 620.85.2` `AMD Ryzen AI 9 365 w/ Radeon 880M, 32 GB RAM` | | `windows+amd` | [1](https://beanstalk.magicbean.dev/reports/rp_cd84f929ded41507) | 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_75f4c46157bb2c98) | 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_4df5de4c1389dab9) | 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_64e0687cde356b2a) | linux+amd+radv+igpu `AMD Radeon 890M Graphics (RADV STRIX1), 26.1.99` `AMD Ryzen Z2 Extreme, 32 GB RAM` | | `intel` | [1](https://beanstalk.magicbean.dev/reports/rp_fb0f033d52524fb1) | 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` | | `intel` | [2](https://beanstalk.magicbean.dev/reports/rp_9f4ae2a749c417f0) | linux+intel+anv+igpu `Intel(R) Graphics (RKL GT1), 26.2.4` `11th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz, 128 GB RAM` | | `steamdeck` | [1](https://beanstalk.magicbean.dev/reports/rp_e77dfa27d75de9c5) | linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 16 GB RAM` | | `steamdeck` | [2](https://beanstalk.magicbean.dev/reports/rp_7cd7f6945805c8ed) | 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 1.09% FPS gain compares two modes of the earlier PR build, so the full change's gain against main remains unproven. Tier 1 parity and performance runs are also pending. Recommend approval; not approved on the forge.

The change caches texture descriptor resolution, including handle tables, to reduce renderer CPU work. The revision avoids allocating the legacy texture memo when the fast path alone is needed and retains a separate SSBO cache; the full performance benefit and platform costs still need measurement.

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

  • L1 gpu/vk/vk_draw.cpp:5041: The full change has not been measured against main at player settings. When: The reported switch-off comparison includes PR code and predates the allocation revision, so it cannot establish the current head's gain against main. Do: Run interleaved main-versus-head measurements in the target and heavy scenes at the normal preset and native resolution, reporting frame-time and low-FPS results. (@fix does its part first: Avoid allocating the existing texture memo when only the new memo is needed, while preserving its separate SSBO cache.)
  • L2 gpu/vk/switches.def:813: The default-on renderer path has not been tested on the other affected Tier 1 systems. When: AMD on Windows and Linux, NVIDIA on Linux, and Steam Deck run the new descriptor and cache path without a reported parity or performance run. Do: Run parity and representative base-versus-head performance checks on the affected Tier 1 systems, including Steam Deck, before settling the default.

@fix can do L1.

Since the last review (on ba8257aa7c)
Still open: L1 (The full change has not been measured against main at player settings.); L2 (The default-on renderer path has not been tested on the other affected Tier 1 systems.)

Checks: Still running: 10 checks.

Also noticed (1; not asked for, not blocking)
  • The Test Farm request could not be submitted: no Test Farm tool is available and network access is closed.
More: does it help, other systems, switches, what was read

Does it help: Unproven against main at player settings. The author's five Windows RTX 4060 in-run comparisons on the earlier PR build report +1.09% FPS, -0.134 ms descriptor time and +0.82% 1% low, but compare the switch off versus on within that build.

Other systems: The renderer path can affect Windows and Linux across GPU vendors, including Steam Deck. Windows RTX 4060 has a reported live parity run with more than 20.6 million checks and zero mismatches; AMD Windows and Linux, NVIDIA Linux and Steam Deck results remain pending.

Switches: RX_VK_TEX_TABLE_FAST is added, defaults to 1, supports 0 for the legacy path and check for live parity checks, and has a switches.def row. The default's suitability across affected systems remains unproven.

Reviewed: a4aa1ce125 against 495ed9fe2a: Read AGENTS.md, CONTRIBUTING.md, the PR template, standards, the changed memo headers and the changed descriptor code and its callers. Skimmed the test diff and switch table; vk_draw.cpp and the test files were not read in full. docs/review-checklist.md and the adjacent Tooling AGENTS.md were absent.; nothing run (a code review).

Checked and fine:

  • The separate SSBO state is value-initialized by TLS_OBJECT and used by both SSBO lookup and store.
  • Fast check mode no longer allocates the legacy texture state; legacy check mode still initializes it.
  • The fix retains the fast memo and handle-table path.

Testing: No commands that build or run the project were executed. The author reports game-free checks and a Windows live parity run; 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 HumanBean. Nothing was run; a maintainer decides.

**Recommendation: Approve.** The code is ready: only testing is left. The reported 1.09% FPS gain compares two modes of the earlier PR build, so the full change's gain against main remains unproven. Tier 1 parity and performance runs are also pending. Recommend approval; not approved on the forge. The change caches texture descriptor resolution, including handle tables, to reduce renderer CPU work. The revision avoids allocating the legacy texture memo when the fast path alone is needed and retains a separate SSBO cache; the full performance benefit and platform costs still need measurement. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L1** `gpu/vk/vk_draw.cpp:5041`: The full change has not been measured against main at player settings. *When:* The reported switch-off comparison includes PR code and predates the allocation revision, so it cannot establish the current head's gain against main. **Do:** Run interleaved main-versus-head measurements in the target and heavy scenes at the normal preset and native resolution, reporting frame-time and low-FPS results. *(`@fix` does its part first: Avoid allocating the existing texture memo when only the new memo is needed, while preserving its separate SSBO cache.)* - **L2** `gpu/vk/switches.def:813`: The default-on renderer path has not been tested on the other affected Tier 1 systems. *When:* AMD on Windows and Linux, NVIDIA on Linux, and Steam Deck run the new descriptor and cache path without a reported parity or performance run. **Do:** Run parity and representative base-versus-head performance checks on the affected Tier 1 systems, including Steam Deck, before settling the default. `@fix` can do L1. **Since the last review** (on ba8257aa7cba) Still open: L1 (The full change has not been measured against main at player settings.); L2 (The default-on renderer path has not been tested on the other affected Tier 1 systems.) **Checks:** Still running: 10 checks. <details> <summary>Also noticed (1; not asked for, not blocking)</summary> - The Test Farm request could not be submitted: no Test Farm tool is available and network access is closed. </details> <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven against main at player settings. The author's five Windows RTX 4060 in-run comparisons on the earlier PR build report +1.09% FPS, -0.134 ms descriptor time and +0.82% 1% low, but compare the switch off versus on within that build. **Other systems:** The renderer path can affect Windows and Linux across GPU vendors, including Steam Deck. Windows RTX 4060 has a reported live parity run with more than 20.6 million checks and zero mismatches; AMD Windows and Linux, NVIDIA Linux and Steam Deck results remain pending. **Switches:** RX_VK_TEX_TABLE_FAST is added, defaults to 1, supports 0 for the legacy path and check for live parity checks, and has a switches.def row. The default's suitability across affected systems remains unproven. **Reviewed:** a4aa1ce12590 against 495ed9fe2aaa: Read AGENTS.md, CONTRIBUTING.md, the PR template, standards, the changed memo headers and the changed descriptor code and its callers. Skimmed the test diff and switch table; vk_draw.cpp and the test files were not read in full. docs/review-checklist.md and the adjacent Tooling AGENTS.md were absent.; nothing run (a code review). **Checked and fine:** - The separate SSBO state is value-initialized by TLS_OBJECT and used by both SSBO lookup and store. - Fast check mode no longer allocates the legacy texture state; legacy check mode still initializes it. - The fix retains the fast memo and handle-table path. **Testing:** No commands that build or run the project were executed. The author reports game-free checks and a Windows live parity run; 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 HumanBean. Nothing was run; a maintainer decides.</sub>
Owner

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

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

Metric A (0) B (1)
Average FPS, each capture 55.38 / 56.44 / 55.93 54.73 / 55.10 / 58.02
Average FPS, median 55.93 55.10
1% low FPS (1000 ÷ p99), median 23.52 22.46
Median frame time 17.28 ms 17.52 ms
p99 frame time, median 42.51 ms 44.52 ms
Frames of 50 ms or more, each capture 15 / 8 / 15 21 / 11 / 6

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

After warm-up, the harness still flagged pipeline or shader activity in 32 / 29 / 37 frames on side A and 48 / 42 / 15 on side B across the three captures. The FPS and tail numbers include those frames.

AMD Lab Market A/B on PR head `a4aa1ce12590`, using `RX_VK_TEX_TABLE_FAST=0` and `RX_VK_TEX_TABLE_FAST=1` on the same build. **Within the run-to-run spread.** Median average FPS changed by **-1.49%**. | Metric | A (`0`) | B (`1`) | |---|---:|---:| | Average FPS, each capture | 55.38 / 56.44 / 55.93 | 54.73 / 55.10 / 58.02 | | Average FPS, median | 55.93 | 55.10 | | 1% low FPS (1000 ÷ p99), median | 23.52 | 22.46 | | Median frame time | 17.28 ms | 17.52 ms | | p99 frame time, median | 42.51 ms | 44.52 ms | | Frames of 50 ms or more, each capture | 15 / 8 / 15 | 21 / 11 / 6 | Market (child), headless Linux 7.3.3-1-cachyos, Core i7-9700K, Radeon RX 580 with Mesa RADV 3:26.2.6-1, 1280x720 output and 50% (640x360) render scale, uncapped with V-Sync and frame generation off. Three alternating pairs, 40 seconds per capture after warm-up. After warm-up, the harness still flagged pipeline or shader activity in 32 / 29 / 37 frames on side A and 48 / 42 / 15 on side B across the three captures. The FPS and tail numbers include those frames.
siantm force-pushed perf/vk-tex-table-memo from a4aa1ce125
Some checks failed
PR description / Title and description (pull_request_target) Successful in 5s
beanstalk/approval approved by HumanBean (reviewed)
beanstalk/windows+nvidia 2/1 pass
beanstalk/linux+nvidia 2/1 pass
beanstalk/windows+amd 2/1 fail
beanstalk/linux+radv 1/1 fail
beanstalk/intel 1/1 pass
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 235e44e956
Some checks are pending
CI / What the change needs (pull_request) Blocked by required conditions
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Blocked by required conditions
CI / Third-party parts and guide screenshots (pull_request) Blocked by required conditions
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Blocked by required conditions
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Blocked by required conditions
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Blocked by required conditions
CI / Website build and checks (pull_request) Blocked by required conditions
beanstalk/approval waiting for a BigBean's 👍 on the request
PR description / Title and description (pull_request_target) Successful in 7s
2026-12-03 19:43:33 +00:00
Compare
Member

Beanstalk test farm

Commit 235e44e · 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 `235e44e` · approved by nobody yet · [dashboard](https://beanstalk.magicbean.dev/prs/2970) A member of `BigBeans` can review this commit and comment `@Beanstalk` to test it.
Author
Contributor

Rebased onto main @ 0aeb6858 (head 235e44e9). The default stays on. The description's Testing is updated.

Rebase: a real conflict with #3032, fixed. #3032 (b6e38a13c, on main since 2026-12-03) changed the slow path: a texture with no view gets a depth-aware dummy view, and a depth-comparison sampler goes through guard_depth_comparison. Rebased as it was, this PR's fast path would have skipped both, because it still used the colour dummy view and the PR's own table-only depth-format rule. Now:

  • The fast path makes the same calls as the slow path: the depth-aware dummy view, then guard_depth_comparison(raw_view, tex, last_view_format, d.is_depth, is_table, p.key, k).
  • The memo stores what was actually bound after the guard. It stores nothing if the texture slot was registered again while its view was being made.
  • The old depth-format rule is gone from gpu/vk/tex_table_fast.h. tests/test_vk_tex_table_fast.py's oracle follows the new rule, and its broken variant aimed at the old rule is replaced by key_ignores_depth.
  • tests/recording_admission_test.cpp stubs the new recording hook.

Farm results (a4aa1ce, before #3032 on both sides):

  • steamdeck (screenshot.max_diff 0.78): the PR's Market picture is a loading screen, so the capture came too early. It doesn't show the scene.
  • windows+amd, RX 9070 XT: Field diff 0.42 against main's own 0.11. The PR's picture is darker, but I can't tell a rendering difference from fog or time of day in it.
  • windows+amd, Ryzen 5600G: the PR's Field pictures are badly broken (sky showing through the world, diffs 0.96 and 0.55). That PC's main pictures also differ from each other by 0.79 in the Market. I could not tie the breakage to the PR from the code. This one needs a run of the rebased head on that PC.
  • linux+radv: one PC's Market 1% low rose 24.1 → 29.5 ms (+22.5%); the other linux+radv PC passed.
  • RX_VK_TEX_TABLE_FAST=check logged no mismatch.

AMD Lab, RX 580: -1.49% median FPS, within the run-to-run spread (p99 42.51 → 44.52 ms). I'm not reading that as slower. Only one system shows a tail regression (the farm's RADV PC above), so the default stays on.

L1 / L2 (main against head at player settings, other Tier 1 systems): still open. I can't run the game here (one Windows RTX 4060 PC, a shared queue). Because the fast path changed with #3032, the next useful runs are @Beanstalk on this head (windows+amd especially) and an RX_VK_TEX_TABLE_FAST=check run on AMD.

Tested on the rebased head (Windows 11, llvm-mingw clang++):

  • tests/run_all.py --exact of test_vk_tex_table_fast, test_tex_desc_memo, test_recording_admission, test_sampler_admission, test_hos_ab, test_switch_table: 6 passed, 0 failed.
  • clang++ -fsyntax-only of gpu/vk/vk_draw.cpp, with the build plan's own compile command: no errors.
  • Before the last rebase, on main @ 1e782fa4b (already with #3032), 22 checks that read the changed code passed; the description lists them.
    No game run on the rebased head.
Rebased onto `main` @ `0aeb6858` (head `235e44e9`). The default stays on. The description's Testing is updated. **Rebase: a real conflict with #3032, fixed.** #3032 (`b6e38a13c`, on `main` since 2026-12-03) changed the slow path: a texture with no view gets a depth-aware dummy view, and a depth-comparison sampler goes through `guard_depth_comparison`. Rebased as it was, this PR's fast path would have skipped both, because it still used the colour dummy view and the PR's own table-only depth-format rule. Now: - The fast path makes the same calls as the slow path: the depth-aware dummy view, then `guard_depth_comparison(raw_view, tex, last_view_format, d.is_depth, is_table, p.key, k)`. - The memo stores what was actually bound after the guard. It stores nothing if the texture slot was registered again while its view was being made. - The old depth-format rule is gone from `gpu/vk/tex_table_fast.h`. `tests/test_vk_tex_table_fast.py`'s oracle follows the new rule, and its broken variant aimed at the old rule is replaced by `key_ignores_depth`. - `tests/recording_admission_test.cpp` stubs the new recording hook. **Farm results (`a4aa1ce`, before #3032 on both sides):** - `steamdeck` (`screenshot.max_diff` 0.78): the PR's Market picture is a loading screen, so the capture came too early. It doesn't show the scene. - `windows+amd`, RX 9070 XT: Field diff 0.42 against main's own 0.11. The PR's picture is darker, but I can't tell a rendering difference from fog or time of day in it. - `windows+amd`, Ryzen 5600G: the PR's Field pictures are badly broken (sky showing through the world, diffs 0.96 and 0.55). That PC's main pictures also differ from each other by 0.79 in the Market. I could not tie the breakage to the PR from the code. This one needs a run of the rebased head on that PC. - `linux+radv`: one PC's Market 1% low rose 24.1 → 29.5 ms (+22.5%); the other `linux+radv` PC passed. - `RX_VK_TEX_TABLE_FAST=check` logged no mismatch. **AMD Lab, RX 580:** -1.49% median FPS, within the run-to-run spread (p99 42.51 → 44.52 ms). I'm not reading that as slower. Only one system shows a tail regression (the farm's RADV PC above), so the default stays on. **L1 / L2 (main against head at player settings, other Tier 1 systems):** still open. I can't run the game here (one Windows RTX 4060 PC, a shared queue). Because the fast path changed with #3032, the next useful runs are `@Beanstalk` on this head (`windows+amd` especially) and an `RX_VK_TEX_TABLE_FAST=check` run on AMD. **Tested on the rebased head** (Windows 11, llvm-mingw clang++): - `tests/run_all.py --exact` of `test_vk_tex_table_fast`, `test_tex_desc_memo`, `test_recording_admission`, `test_sampler_admission`, `test_hos_ab`, `test_switch_table`: 6 passed, 0 failed. - `clang++ -fsyntax-only` of `gpu/vk/vk_draw.cpp`, with the build plan's own compile command: no errors. - Before the last rebase, on `main` @ `1e782fa4b` (already with #3032), 22 checks that read the changed code passed; the description lists them. No game run on the rebased head.
Member

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

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

Recommendation: Request changes. This is a default-on renderer path, and its current head has never run in the game. The last Test Farm run (a4aa1ce, before #3032) failed on Windows AMD, Linux RADV and the Steam Deck, and nobody has explained those failures. The only gain is +1.09% fps, from one RTX 4060 with the switch off against on. The PR also conflicts with main in gpu/vk/vk_draw.cpp.

For a player, this is meant to save a little CPU time in the renderer when it binds sampled textures: about 0.13 ms of desc_ms a frame in the Market. It adds a second texture-descriptor memo (128 KB a thread) and moves handle-table arrays onto it. On the code side it adds a second memo beside tex_desc_memo, a second check mode and a copy of the c2 handle reader, so it only pays off if the gain is shown against main.

Does it help: Unproven. The +1.09% fps (95% CI +0.61..+1.60%) and desc_ms -0.134 ms come from one build, ba8257aa7, with the switch off against on: one Windows RTX 4060, 50% render scale at 768x432, 5x90 s HOS_AB. Neither side is main, and that build is two rebases old. On the AMD Lab RX 580 (RADV) it was -1.49% median fps (within the spread), with p99 going 42.51 -> 44.52 ms. On the farm at a4aa1ce, one linux+radv PC's Market 1% low got worse, 24.1 -> 29.5 ms (+22.5%). There is no main-against-head run at player settings on any PC.

Other systems: every GPU and OS runs this path by default. On Windows AMD, the 5600G's Field pictures were broken (sky showing through the world, diffs 0.96/0.55) and the RX 9070 XT's were darker (0.42 against main's own 0.11). The author couldn't tie either to the code, and neither has been re-run. The Steam Deck capture was a loading screen, so it shows nothing either way. =check logged no mismatch anywhere, but the farm itself notes the parity scenario may never reach a handle-table or depth-comparison case. Since then the fast path has changed for #3032 (depth-aware dummy view, guard_depth_comparison on a miss), and that version has no game run at all.

Switches: RX_VK_TEX_TABLE_FAST (kill, enum), default on (1); 0 gives the legacy memo, check runs both and logs mismatches. It has its switches.def row and is wired into HOS_AB. Turning it on for everyone rests on one NVIDIA PC. AMD's only numbers are flat to slightly worse, and its farm failures are open, so the default isn't measured per platform yet.

Reviewed: 235e44e95 against 0aeb68589 (its base; main is now be4942212). Read in full: gpu/vk/tex_table_fast.h and the vk_draw.cpp diff, plus the slow path it mirrors: the build_descriptors texture loop, guard_depth_comparison, desc_fp_note, tex_desc_touch_slow and the tm_mode gate. Also the tex_desc_memo.h diff (SsboState), switches.def, test_hos_ab.py and recording_admission_test.cpp. Not read: tests/test_vk_tex_table_fast.py (748 lines). Nothing run.
Fixed in this review: nothing (nothing pushed; the conflict is left for the author).
Checked and fine:

  • Fast path against slow path, element by element:
    • The fingerprint word (slot_ver << 20 | slot) is the same one desc_fp_note pushes.
    • draw_sampled, depth_samples and st_dummy_textures match the slow path, both on a run-length (RLE) skip and on a hit.
    • The "last element names texture" log matches on has_raw_view.
  • On a miss, the fast path now makes the same calls as the slow path: texture_view_of, then guard_depth_comparison, then the depth-aware dummy_view. The memo keeps what was bound after the guard. store is skipped when the slot was registered again, or the sampler generation moved, while the view was being made.
  • tf_mode runs only when tm_mode == 1 and !log_img_wanted, so dump_on, RX_VK_WATCH_PROG, sampler watching, RX_VK_LOG_IMG and RX_VK_TEX_DESC_MEMO=0/check still take the slow path.
  • The state is per thread (TLS_OBJECT), and the counters are thread_local.
  • Splitting out SsboState keeps the SSBO memo, and the 512 KB legacy memo is now allocated only when the legacy path runs.
  • tex_table_touch_slow matches the legacy tex_desc_touch_slow, plus the non-wiping generation sync.
  • Entry is 64 B, so the memo is 512x4x64 B = 128 KB.

Blocking

  1. gpu/vk/vk_draw.cpp: conflicts with main @ be4942212 (git merge-tree reports a content conflict in this file). Rebase, then re-run the checks the description lists.
  2. gpu/vk/switches.def:664 (default on): the head as it stands has never run in the game, and the last farm run failed on windows+amd, linux+radv and steamdeck without an explanation. Run @Beanstalk on the rebased head (windows+amd especially, plus an =check run on AMD). Until the AMD pictures and the RADV 1% low are explained, or shown not to come from this PR, this can't ship default-on. If they do come from it, make the default per vendor or off.
  3. Measurements: compare main against this head, not switch off against on. Use interleaved runs at player settings (native or the usual render scale) in the Market and one more heavy area, with lows. A ~1% gain inside a p99 regression on AMD isn't a gain yet.

Suggestions

  • gpu/vk/tex_table_fast.h:31-58: c2_read_word, c2_can_read and c2_handle_of are copies of tex_desc_memo.h:90-115. Call tex_desc_memo::c2_* instead, so the two can't drift apart.
  • RX_VK_TRACE_TEX: trace_tex_hit is set only on the slow path (vk_draw.cpp:6367). Before this PR, handle tables always took that path. With the switch on they never do, so the trace no longer sees textures sampled through a table. Add the trace check to the tf_mode gate, or set trace_tex_hit on a hit.
  • Summary: main's memo already has a non-wiping sync (tex_desc_memo::sync_generations(..., non_wiping), driven by desc_span_fast_on()). Say when "wiped all entries whenever any unrelated texture slot registered" still holds, so the gain is credited to the right part.

Testing: By the author on Windows 11 with an RTX 4060: game-free checks on the rebased head (6 checks plus clang++ -fsyntax-only; 22 on the previous base), an =check run on the older head (20.6M checks, 0 mismatches) and the 5x90 s HOS_AB. The farm ran a4aa1ce (pre-#3032): pass on Windows NVIDIA, Linux NVIDIA and Intel; fail on Windows AMD, Linux RADV and the Steam Deck. The AMD Lab ran an RX 580 A/B on a4aa1ce. Missing, and holding the merge: any game run of this head; a farm run of this head; main against the head at player settings.
Overlaps and merge order: #3080, #3304, #3303, #3116, #3049 and #3046 are open; check each for the same build_descriptors texture loop before rebasing. #2055 (WIP) changes texture slot-version lookups in the same function, and #2920 (merged) is the memo this builds on. Whichever of these lands first, the others rebase onto it. This one has to rebase anyway.

**Recommendation: Request changes.** This is a default-on renderer path, and its current head has never run in the game. The last Test Farm run (`a4aa1ce`, before [#3032](https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/3032)) failed on Windows AMD, Linux RADV and the Steam Deck, and nobody has explained those failures. The only gain is +1.09% fps, from one RTX 4060 with the switch off against on. The PR also conflicts with `main` in `gpu/vk/vk_draw.cpp`. For a player, this is meant to save a little CPU time in the renderer when it binds sampled textures: about 0.13 ms of `desc_ms` a frame in the Market. It adds a second texture-descriptor memo (128 KB a thread) and moves handle-table arrays onto it. On the code side it adds a second memo beside `tex_desc_memo`, a second check mode and a copy of the c2 handle reader, so it only pays off if the gain is shown against `main`. **Does it help:** Unproven. The +1.09% fps (95% CI +0.61..+1.60%) and `desc_ms` -0.134 ms come from one build, `ba8257aa7`, with the switch off against on: one Windows RTX 4060, 50% render scale at 768x432, 5x90 s HOS_AB. Neither side is `main`, and that build is two rebases old. On the AMD Lab RX 580 (RADV) it was -1.49% median fps (within the spread), with p99 going 42.51 -> 44.52 ms. On the farm at `a4aa1ce`, one `linux+radv` PC's Market 1% low got worse, 24.1 -> 29.5 ms (+22.5%). There is no `main`-against-head run at player settings on any PC. **Other systems:** every GPU and OS runs this path by default. On Windows AMD, the 5600G's Field pictures were broken (sky showing through the world, diffs 0.96/0.55) and the RX 9070 XT's were darker (0.42 against main's own 0.11). The author couldn't tie either to the code, and neither has been re-run. The Steam Deck capture was a loading screen, so it shows nothing either way. `=check` logged no mismatch anywhere, but the farm itself notes the parity scenario may never reach a handle-table or depth-comparison case. Since then the fast path has changed for [#3032](https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/3032) (depth-aware dummy view, `guard_depth_comparison` on a miss), and that version has no game run at all. **Switches:** `RX_VK_TEX_TABLE_FAST` (kill, enum), default on (`1`); `0` gives the legacy memo, `check` runs both and logs mismatches. It has its `switches.def` row and is wired into HOS_AB. Turning it on for everyone rests on one NVIDIA PC. AMD's only numbers are flat to slightly worse, and its farm failures are open, so the default isn't measured per platform yet. **Reviewed:** `235e44e95` against `0aeb68589` (its base; `main` is now `be4942212`). Read in full: `gpu/vk/tex_table_fast.h` and the `vk_draw.cpp` diff, plus the slow path it mirrors: the `build_descriptors` texture loop, `guard_depth_comparison`, `desc_fp_note`, `tex_desc_touch_slow` and the `tm_mode` gate. Also the `tex_desc_memo.h` diff (`SsboState`), `switches.def`, `test_hos_ab.py` and `recording_admission_test.cpp`. Not read: `tests/test_vk_tex_table_fast.py` (748 lines). Nothing run. **Fixed in this review:** nothing (nothing pushed; the conflict is left for the author). **Checked and fine:** - Fast path against slow path, element by element: - The fingerprint word (`slot_ver << 20 | slot`) is the same one `desc_fp_note` pushes. - `draw_sampled`, `depth_samples` and `st_dummy_textures` match the slow path, both on a run-length (RLE) skip and on a hit. - The "last element names texture" log matches on `has_raw_view`. - On a miss, the fast path now makes the same calls as the slow path: `texture_view_of`, then `guard_depth_comparison`, then the depth-aware `dummy_view`. The memo keeps what was bound after the guard. `store` is skipped when the slot was registered again, or the sampler generation moved, while the view was being made. - `tf_mode` runs only when `tm_mode == 1` and `!log_img_wanted`, so `dump_on`, `RX_VK_WATCH_PROG`, sampler watching, `RX_VK_LOG_IMG` and `RX_VK_TEX_DESC_MEMO=0/check` still take the slow path. - The state is per thread (`TLS_OBJECT`), and the counters are `thread_local`. - Splitting out `SsboState` keeps the SSBO memo, and the 512 KB legacy memo is now allocated only when the legacy path runs. - `tex_table_touch_slow` matches the legacy `tex_desc_touch_slow`, plus the non-wiping generation sync. - `Entry` is 64 B, so the memo is 512x4x64 B = 128 KB. **Blocking** 1. `gpu/vk/vk_draw.cpp`: conflicts with `main` @ `be4942212` (`git merge-tree` reports a content conflict in this file). Rebase, then re-run the checks the description lists. 2. `gpu/vk/switches.def:664` (default on): the head as it stands has never run in the game, and the last farm run failed on `windows+amd`, `linux+radv` and `steamdeck` without an explanation. Run `@Beanstalk` on the rebased head (`windows+amd` especially, plus an `=check` run on AMD). Until the AMD pictures and the RADV 1% low are explained, or shown not to come from this PR, this can't ship default-on. If they do come from it, make the default per vendor or off. 3. Measurements: compare `main` against this head, not switch off against on. Use interleaved runs at player settings (native or the usual render scale) in the Market and one more heavy area, with lows. A ~1% gain inside a p99 regression on AMD isn't a gain yet. **Suggestions** - `gpu/vk/tex_table_fast.h:31-58`: `c2_read_word`, `c2_can_read` and `c2_handle_of` are copies of `tex_desc_memo.h:90-115`. Call `tex_desc_memo::c2_*` instead, so the two can't drift apart. - RX_VK_TRACE_TEX: `trace_tex_hit` is set only on the slow path (`vk_draw.cpp:6367`). Before this PR, handle tables always took that path. With the switch on they never do, so the trace no longer sees textures sampled through a table. Add the trace check to the `tf_mode` gate, or set `trace_tex_hit` on a hit. - Summary: `main`'s memo already has a non-wiping sync (`tex_desc_memo::sync_generations(..., non_wiping)`, driven by `desc_span_fast_on()`). Say when "wiped all entries whenever any unrelated texture slot registered" still holds, so the gain is credited to the right part. **Testing:** By the author on Windows 11 with an RTX 4060: game-free checks on the rebased head (6 checks plus `clang++ -fsyntax-only`; 22 on the previous base), an `=check` run on the older head (20.6M checks, 0 mismatches) and the 5x90 s HOS_AB. The farm ran `a4aa1ce` (pre-[#3032](https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/3032)): pass on Windows NVIDIA, Linux NVIDIA and Intel; fail on Windows AMD, Linux RADV and the Steam Deck. The AMD Lab ran an RX 580 A/B on `a4aa1ce`. Missing, and holding the merge: any game run of this head; a farm run of this head; `main` against the head at player settings. **Overlaps and merge order:** [#3080](https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/3080), [#3304](https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/3304), [#3303](https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/3303), [#3116](https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/3116), [#3049](https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/3049) and [#3046](https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/3046) are open; check each for the same `build_descriptors` texture loop before rebasing. [#2055](https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/2055) (WIP) changes texture slot-version lookups in the same function, and [#2920](https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/2920) (merged) is the memo this builds on. Whichever of these lands first, the others rebase onto it. This one has to rebase anyway.
Some checks are pending
CI / What the change needs (pull_request) Blocked by required conditions
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Blocked by required conditions
CI / Third-party parts and guide screenshots (pull_request) Blocked by required conditions
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Blocked by required conditions
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Blocked by required conditions
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Blocked by required conditions
CI / Website build and checks (pull_request) Blocked by required conditions
beanstalk/approval waiting for a BigBean's 👍 on the request
PR description / Title and description (pull_request_target) Successful in 7s
This pull request has changes conflicting with the target branch.
  • gpu/vk/vk_draw.cpp
Some workflows are waiting to be reviewed.
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u 'perf/vk-tex-table-memo:siantm-perf/vk-tex-table-memo'
git switch 'siantm-perf/vk-tex-table-memo'
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
6 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!2970
No description provided.