perf(vk): O(1) page-word bitset hash + Bloom filter for cpu_words and write-back fast paths (RX_VK_WB_CPU_WORDS_FAST) #2997
No reviewers
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
area/mods
area/renderer
area/saves
area/tooling
area/upscaling
beanstalk: approved
beanstalk: failed
beanstalk: needs approval
beanstalk: running
beanstalk: tested
ci: approved
good first issue
gpu/amd
gpu/igpu
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
needs measurements
platform/linux
platform/macos
platform/steam-deck
platform/windows
preview
priority
critical
priority
high
priority
low
regression
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
5 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot!2997
Loading…
Reference in a new issue
No description provided.
Delete branch "siantm/Longshot:perf/vk-wb-cpu-words-fast"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
On steady-state Castle Town
market(main @ 56823e27a),memory_end_submissionaccounted for 4.62% of themkw_vk_replaythread, led bycpu_words_merge()sorting, deduplicating, binary-searching, and merging up to 65,536 guest 8-byte addresses on every submission/part (2.41%ofmkw_vk_replay), alongside per-poolvkGetBufferDeviceAddresscalls,sparse_mirror::clipvector builds when all blocks are present, full scans oflate_pagesinlate_fix_reap(), andimported.upper_bound()tree lookups inshadows_forget_written().This adds
RX_VK_WB_CPU_WORDS_FAST(default1, supporting0,1, andcheck/2with liveHOS_ABmode handoff):gpu/vk/wb_cpu_words_fast.h(CpuWordsPageSet): Replaces sorted-vector merge + binary search with a 2-level 4 KB page-keyed open-addressed bitset hash table (PageSlotwith512-bit word mask per page), a 1024-bit page Bloom filter, O(1)[min_page, max_page]range reject, exacttotal_words > 65536reset parity, and lazy copy-on-first-hitcut_runs()(zero allocation when no owned words intersect write-back runs).gpu/vk/vk_memory.cpp:CpuWordsPageSetinmemory_cpu_owned()andcut_cpu_words()with seamless0 <-> 1 <-> 2state synchronization undercpu_words_mu.sparse_all_present()pre-check beforesparse_mirror::clip.Pool::cached_mirror_addressperVkBufferhandle (cleared inmirror_free), reuses thread-localrunsvector inmemory_end_submission(), guardslate_fix_reap()withlate_pages_min_fix, and adds a 2-slot MRUPool*cache inshadows_forget_written().gpu/vk/switches.def,gpu/vk/vk_main.cpp,gpu/vk/vk_internal.h: RegistersRX_VK_WB_CPU_WORDS_FAST(wb_cpu_words_fast_mode()viahost->ab_valueandcpu_words_fast_close()).Measured in-game across 5 interleaved 90 s
HOS_ABruns inmarket, this improves mean frame rate by +1.68% (81.74 vs 80.38 FPS,-0.209 msmean frame time, 95% CI+0.93%to+2.58%), lifts1% Lowby+2.08 FPS(64.31 vs 62.23) and0.1% Lowby+3.47 FPS(51.23 vs 47.76), and cutswait_gpu_msby-12.35%(-0.2084 ms).Testing
Tested:
skylake), NVIDIA GeForce RTX 4060 (Vulkan 1.4, driver0x9b4a0000),dev.py pack && dev.py rt(0shader parts rebuilt,lift: unchanged).RX_VK_WB_CPU_WORDS_FAST=check, 30 s inmarket, 2,337 frames, 77.9 FPS):121,676 checks, 121,676 rejects, 0 cuts, 121,676 sparse_skips, 78,057 addr_hits, 0 mismatches,RUN_ERROR=None.HOS_AB(RX_VK_WB_CPU_WORDS_FASTflipped every 3.0 s) inmarket: 5/5 runs won (+1.69%,+1.81%,+1.64%,+0.81%,+2.59%).python -I tests/test_vk_wb_cpu_words_fast.py(includes 10MUST_FAILbroken variants)python -I tests/test_hos_ab.py --cc clangpython -I tests/test_tls_objects.pypython -I tests/test_vk_braces.pypython -I tests/test_wb_learn.py --cxx clang++python -I tests/test_wb_spans.py --cxx clang++python -I tests/test_sparse_mirror.py --cxx clang++python -I tests/test_wb_diff_split.pypython -I tests/test_wb_diff_cpu_writes.pyStill to test:
@Beanstalk: Extended gameplay across dungeons/sparse-heavy scenes (Hyrule Field, Kokiri Forest, temples) withRX_VK_WB_CPU_WORDS_FAST=checkon AMD/Intel GPUs to confirm0 mismatcheson pools with partial sparse blocks and activecut_cpu_wordshits.Measurements
Verdict: Faster: +1.68% FPS (
-0.209 msmean frame time, 95% CI+0.93%to+2.58%across 147 paired 3 s periods; 5/5 runs won).Setup: Windows 11, RTX 4060 (Vulkan 1.4);
market, child (crowded), 1280×720 output, 50% internal resolution (768×432), V-Sync Off, Frame Generation Off,HOS_FPS_MAX=1000; 5 interleaved 90 s runs withHOS_AB=RX_VK_WB_CPU_WORDS_FAST=0,3,0viadev.py queue run ab-14b-5x --mode timing.Baseline: Both columns are one build,
v3.2.0-196-g47f4b6055, alternatingRX_VK_WB_CPU_WORDS_FAST=0(Side 1, OFF) andRX_VK_WB_CPU_WORDS_FASTunset (Side 0, ON) every 3.0 s (n = 16,275OFF /n = 16,558ON frames).47f4b60547f4b605wait_gpu_msRisks
RX_VK_WB_CPU_WORDS_FAST=0branches directly into verbatimmaincode paths forcpu_words, sparse clipping, mirror address lookup,late_fix_reap(), andshadows_forget_written().RX_VK_WB_CPU_WORDS_FAST=checkvalidates exact bit-level output equivalence against the baseline paths live at runtime. No persistent caches, saves, or shader stamps are affected.Checklist
Ready for review
main; the title is a Conventional Commit.mise run testpasses (any failure that also fails onmainis named).main, or Measurements says why there is nothing to measure.third_party/untouched; nothing GPL-incompatible.When it applies
gpu/vk/switches.def.tests/that reads changed source is updated, not weakened.Assisted-by:/Co-Authored-By:trailers.Ready to merge
main, measured again or a comment says why the numbers still hold.Tested in game: Windows 11 RTX 4060 Market: RX_VK_WB_CPU_WORDS_FAST=check 121676 checks 0 mismatches; 5x90s HOS_AB +1.68% FPS (81.74 vs 80.38 fps, 95% CI +0.93%..+2.58%), 1% Low +2.08 fps
@review
Recommendation: Approve. The advertised numeric check mode silently enables the fast path instead of checking it, and the commit lacks the AI-assistance trailer claimed by the checklist. The reported speedup also needs a comparison against main and coverage of the affected hardware. Nothing blocking is left: what remains is for the author before merging (below). Recommend approval; not approved on the forge.
The change replaces CPU-owned word tracking and adds several write-back shortcuts. It may reduce replay-thread work, at the cost of a larger stateful implementation and retained hash-table and thread-local storage.
Should fix (1): not blocking, but worth doing before merging.
gpu/vk/vk_main.cpp:162: The parser does not recognize the advertised numeric check value. (more on the line) Do: Parse 2 as check mode and add a behavioral test for the environment values.Nits (1): optional.
Testing before merging (2) (runs on the systems it can change; it doesn't hold the recommendation)
gpu/vk/vk_memory.cpp:7586: The live parity run did not exercise any CPU-owned-word cuts, and the other affected Tier 1 systems have not been tested. (more on the line) Do: Run extended sparse-heavy gameplay with check mode and active cuts on the affected Tier 1 hardware and operating systems, and report mismatches and performance.@fixcan do L1 and L2.Checks: Still running: 10 checks.
More: does it help, other systems, switches, what was read
Does it help: Unproven against main. The PR reports 81.74 versus 80.38 FPS and improved lows over five runs, but both sides use the PR build; the comparison does not include its unconditional overhead. The live parity run recorded zero cuts, so it did not exercise the central intersection path.
Other systems: The write-back path affects GPU memory synchronization on Windows and Linux across vendors, including Steam Deck. The supplied run covers Windows and an NVIDIA RTX 4060 in Market; sparse-heavy scenes, active cuts, AMD, Linux and Steam Deck remain untested.
Switches: RX_VK_WB_CPU_WORDS_FAST is added, default on; 0 selects the baseline and check selects comparison mode. The claimed numeric value 2 instead selects on. The default is measured only on one Windows NVIDIA setup, and the measurement does not compare the PR with main.
Reviewed:
47f4b60557against56823e27a1: Read AGENTS.md, CONTRIBUTING.md, the PR template, relevant standards, the commit and changed code paths, the new header and test harness, and callers and state around write-back and late-page handling. Skimmed the remaining large renderer files and recorded results; no generated files or translations changed. docs/review-checklist.md and ../Tooling/AGENTS.md are absent. Did not read every line of the large changed renderer files.; nothing run (a code review).Checked and fine:
Testing: No code or tests were run, as requested. The PR reports a Windows RTX 4060 gameplay run and standalone checks; CI is still running.
Overlaps and merge order: Not checked; network access is unavailable.
Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.
@ -159,0 +159,4 @@static int parse_wb_cpu_words_fast_env() {const char* e = getenv("RX_VK_WB_CPU_WORDS_FAST");if (!e || !*e) return 1;if (std::strcmp(e, "check") == 0) return 2;L1 (should fix): The parser does not recognize the advertised numeric check value.
When: With RX_VK_WB_CPU_WORDS_FAST=2, env_value_off returns false and the parser returns 1, so the game runs the fast path without parity checks or mismatch reporting.
Do: Parse 2 as check mode and add a behavioral test for the environment values.
@ -7435,28 +7586,44 @@ void memory_end_submission(VkCommandBuffer cmd, uint64_t part) {cut_cpu_words(*p, runs);L4 (should fix): The live parity run did not exercise any CPU-owned-word cuts, and the other affected Tier 1 systems have not been tested.
When: The reported 121,676 checks were all rejects, leaving the intersection and partially resident sparse-block paths unverified in gameplay; AMD, Linux and Steam Deck results are also absent.
Do: Run extended sparse-heavy gameplay with check mode and active cuts on the affected Tier 1 hardware and operating systems, and report mismatches and performance.
47f4b60557a1a75e6d8cAddressed the review feedback in commit
a1a75e6d8:gpu/vk/vk_main.cpp:162,gpu/vk/wb_cpu_words_fast.h): Addedmkwvk::wb_cpu_words_fast::parse_mode_value()ingpu/vk/wb_cpu_words_fast.hand delegatedparse_wb_cpu_words_fast_env()to it so"2"and"check"(trimmed, case-insensitive) return check mode2,env_value_off()values return0, andnullptr/empty/other values return1. Updatedgpu/vk/switches.def(=check (or 2)), added behavioral unit tests and theignore_numeric_check_modebroken variant intests/test_vk_wb_cpu_words_fast.py, and updated--cxxfallback (CXX->clang++->g++) with Windows DLLPATHsetup.Assisted-by: Antigravity (Google DeepMind)to the commit message.clang++andg++(-std=c++20 -Wall -Wextra -Werror -fsyntax-only) ongpu/vk/wb_cpu_words_fast.hand theparse_wb_cpu_words_fast_env()wrapperpython -I -B tests/test_vk_wb_cpu_words_fast.pywith--cxx clang++,--cxx g++.exe, and default compiler (all 11 broken variants caught)python -I -B tests/test_hos_ab.py --cc clang,tests/test_tls_objects.py,tests/test_vk_braces.pyp->cpu_wordsnon-empty), Tier 1 AMD/Linux/Steam Deck check runs, and interleavedmain-vs-head measurements at player settings remain pending live test coverage /@Beanstalk.@siantm only members of
BigBeanscan start the farm. One of them can approve this request by reacting 👍 to it or to this comment.@review
@beanstalk
Beanstalk test farm · an earlier run: commit
a1a75e6(the newer results are in a comment below)Commit
a1a75e6· approved by HumanBean (reviewed) · dashboard⚠️ Note: The farm's noise-tolerant thresholds and two starts per side cannot establish the claimed 1.68% speedup or reproduce its interleaved in-run confidence interval; the performance scenario instead compares the complete PR with main.
⚠️ Note: Check-mode counters report whether cuts occurred, but these unattended routes cannot guarantee active cuts or partially resident sparse blocks, and the available counters do not establish partial-block coverage.
⚠️ Note: Live mode handoffs and device-specific player presets are not exercised; performance uses fixed CPU-limiting settings for comparable results.
Started at 14:56 UTC.
Estimate: done in about 2 h 15 min, from the queue and the testers online now; some jobs can't start yet.
nvidiawindows+nvidiaamdlinux+radvintelsteamdeckWhy it failed
nvidia:default-performancescreenshot.max_diff:0.1 → 0.7; limit 0.2windows+nvidia:default-performancescreenshot.max_diff:0.1 → 0.4; limit 0.2windows+nvidia:default-performancecrash:2 PR runs crashedwindows+nvidia:default-performancescreenshot.max_diff:0.2 → 0.9; limit 0.2What was tested
What will be tested · AI plan (
gpt-6.1-terra)Compare main and the default fast path over two starts per side in Market, Hyrule Field and the Forest Temple, measuring 30 seconds per location at uncapped frame rates. Separate check-mode starts exercise Market, Kokiri Forest, Hyrule Field and the Forest Temple, recording parity-check and cut counts. Crashes, reported write-back mismatches, substantial frame-time regressions or excessive still-scene picture differences fail the plan.
check(PR only).market-entrance(settings vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0; switchesHOS_OUTPUT_RES=1280x720,RX_VK_AUTO_TUNE=0), then teleport to Market, take the picture market to compare with main, measure market for 30 s (after 10 s warm-up), teleport to Hyrule Field, take the picture field to compare with main, measure field for 30 s (after 10 s warm-up), teleport to Forest Temple, take the picture temple to compare with main, measure temple for 30 s (after 10 s warm-up); 2 runs on each side.market-entrance(switchesHOS_FPS_MAX=30,HOS_OUTPUT_RES=1280x720), then teleport to Market, teleport to Kokiri Forest, teleport to Hyrule Field, teleport to Forest Temple; 2 runs on each side.Measurements on `nvidia`, for the PR description
Verdict: fail on nvidia (2 reports):
default-performance screenshot.max_difffailed.Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+window
NVIDIA GeForce RTX 3090, 621.1.0AMD Ryzen 9 5900X 12-Core Processor, 128 GB RAM; 2: windows+nvidia+nvidia-proprietary+dgpu+windowNVIDIA GeForce RTX 4070 Ti SUPER, 621.14.0AMD Ryzen 7 7800X3D 8-Core Processor, 32 GB RAMScene: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); writeback-parity, from the repository's save market-entrance (HOS_FPS_MAX=30, HOS_OUTPUT_RES=1280x720); each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); default-performance: 2 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up, temple 30 s after 10 s warm-up; writeback-parity: 2 game starts a side; each number the median of the runs, then of 2 reports
How to reproduce: the farm's plan above (
@Beanstalkon this PR runs it again)56823e2a1a75e6RX_VK_WB_CPU_WORDS_FAST=check (PR only)· forbidden log linesFlags and settings
RX_VK_WB_CPU_WORDS_FASTcheckAs Markdown for the PR description:
Measurements on `windows+nvidia`, for the PR description
Verdict: fail on windows+nvidia (2 reports):
default-performance screenshot.max_diff;default-performance crashfailed.Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+window+dlss+xess
NVIDIA GeForce RTX 3070, 621.35.0AMD Ryzen 5 5600X3D 6-Core Processor, 32 GB RAM; 2: windows+nvidia+nvidia-proprietary+dgpu+windowNVIDIA GeForce RTX 3050 Ti Laptop GPU, 621.1.0AMD Ryzen 7 5800H with Radeon Graphics, 16 GB RAMScene: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); writeback-parity, from the repository's save market-entrance (HOS_FPS_MAX=30, HOS_OUTPUT_RES=1280x720); each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); default-performance: 2 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up, temple 30 s after 10 s warm-up; writeback-parity: 2 game starts a side; each number the median of the runs, then of 2 reports
How to reproduce: the farm's plan above (
@Beanstalkon this PR runs it again)56823e2a1a75e6RX_VK_WB_CPU_WORDS_FAST=check (PR only)· forbidden log linesFlags and settings
RX_VK_WB_CPU_WORDS_FASTcheckAs Markdown for the PR description:
Measurements on `linux+radv`, for the PR description
Verdict: pass on linux+radv (2 reports): no rule failed and no PR run crashed.
Hardware: 1: linux+amd+radv+dgpu
AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM; 2: linux+amd+radv+igpuAMD Radeon 890M Graphics (RADV STRIX1), 26.1.99AMD Ryzen Z2 Extreme, 32 GB RAMScene: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); writeback-parity, from the repository's save market-entrance (HOS_FPS_MAX=30, HOS_OUTPUT_RES=1280x720); each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); default-performance: 2 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up, temple 30 s after 10 s warm-up; writeback-parity: 2 game starts a side; each number the median of the runs, then of 2 reports
How to reproduce: the farm's plan above (
@Beanstalkon this PR runs it again)56823e2a1a75e6RX_VK_WB_CPU_WORDS_FAST=check (PR only)· forbidden log linesFlags and settings
RX_VK_WB_CPU_WORDS_FASTcheckAs Markdown for the PR description:
The testers' hardware
nvidiaNVIDIA GeForce RTX 3090, 621.1.0AMD Ryzen 9 5900X 12-Core Processor, 128 GB RAMnvidiaNVIDIA GeForce RTX 4070 Ti SUPER, 621.14.0AMD Ryzen 7 7800X3D 8-Core Processor, 32 GB RAMwindows+nvidiaNVIDIA GeForce RTX 3070, 621.35.0AMD Ryzen 5 5600X3D 6-Core Processor, 32 GB RAMwindows+nvidiaNVIDIA GeForce RTX 3050 Ti Laptop GPU, 621.1.0AMD Ryzen 7 5800H with Radeon Graphics, 16 GB RAMlinux+radvAMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAMlinux+radvAMD Radeon 890M Graphics (RADV STRIX1), 26.1.99AMD Ryzen Z2 Extreme, 32 GB RAMRecommendation: Approve. The code is ready: only testing is left. The numeric check mode and AI attribution are fixed. The complete performance gain against main and live coverage of CPU-owned-word cuts and other affected Tier 1 systems remain unverified. Recommend approval; not approved on the forge.
The change optimizes Vulkan write-back bookkeeping and adds a check mode for comparing paths. It adds bookkeeping and a default-on switch; the cost and gain of the complete change against main remain unmeasured.
Testing before merging (2) (runs on the systems it can change; it doesn't hold the recommendation)
gpu/vk/vk_memory.cpp:7586: The live parity run did not exercise any CPU-owned-word cuts, and the other affected Tier 1 systems have not been tested. When: The reported 121,676 checks were all rejects, leaving the intersection and partially resident sparse-block paths unverified in gameplay; AMD, Linux and Steam Deck results are also absent. Do: Run extended sparse-heavy gameplay with check mode and active cuts on the affected Tier 1 hardware and operating systems, and report mismatches and performance.Since the last review (on
47f4b60557)Resolved: L1 (The parser does not recognize the advertised numeric check value.); L2 (The checklist claims AI assistance is recorded, but the only commit has no Assisted-by or…)
Still open: L3 (The reported A/B comparison does not establish the performance of the complete change agai…); L4 (The live parity run did not exercise any CPU-owned-word cuts, and the other affected Tier…)
Checks: Still running: 10 checks.
Also noticed (1; not asked for, not blocking)
More: does it help, other systems, switches, what was read
Does it help: Unproven against main. The reported five interleaved runs on Windows with an RTX 4060 show 81.74 versus 80.38 FPS and improved lows, but both sides use the PR build, so they do not measure the complete change against its base.
Other systems: The write-back paths affect Vulkan rendering across GPU vendors and operating systems. The reported live check covered Windows and NVIDIA but had zero CPU-owned-word cuts; AMD, Linux and Steam Deck coverage is pending.
Switches: RX_VK_WB_CPU_WORDS_FAST is added, defaulting to 1; 0 selects the old paths and check or 2 compares paths. Whether the default is justified for the complete change awaits the main-versus-head measurement.
Reviewed:
a1a75e6d8cagainst56823e27a1: Read the changed parser and its behavioral tests, the environment helper, commit metadata, repository rules and PR template; inspected the write-back diff and relevant call sites. The full large renderer files, generated material and recorded runs were not read in full.; nothing run (a code review).Checked and fine:
Testing: No commands that build or run code were executed. The author's reported checks passed; CI is still running. Live CPU-owned-word cuts, Tier 1 hardware coverage and main-versus-head performance measurements are pending.
Overlaps and merge order: Not checked; network access is closed.
Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.
Independent Linux Market A/B on PR head
a1a75e6d8c80.RX_VK_WB_CPU_WORDS_FASTdefaults to on in this revision.Within the run-to-run spread. Median average FPS changed by -0.88%.
0)1)Market (child), Linux 7.3.3-1-cachyos, RTX 3090, NVIDIA 620.70.06, 1280x720, 50% (640x360), uncapped with V-Sync and frame generation off. Two interleaved 30-second captures per side on the same PR binary, each after pipeline warm-up. Frame-time and 1% low rows report the median across the two captures.
@rebase
I rebased this pull request onto
main(b552589596): the new head isa56e548849.Conflicts resolved
Nothing was built or run: read the resolution before merging.
Automated rebase by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.
a1a75e6d8ca56e548849Beanstalk test farm
Commit
a56e548· approved by nobody yet · dashboardA member of
BigBeanscan review this commit and comment@Beanstalkto test it.Recommendation: Approve. The code is ready: only testing is left. The complete change has not yet shown a gain against main, and the live parity run did not exercise CPU-owned-word cuts. The remaining Tier 1 parity coverage is also pending. Recommend approval; not approved on the forge.
The change replaces CPU-owned-word searches with a page bitset and adds several write-back fast paths. It may reduce replay-thread work, at the cost of more state and synchronization paths that need live coverage.
Testing before merging (2) (runs on the systems it can change; it doesn't hold the recommendation)
gpu/vk/vk_memory.cpp:7586: The live parity run did not exercise any CPU-owned-word cuts, and the other affected Tier 1 systems have not been tested. When: The reported 121,676 checks were all rejects, leaving the intersection and partially resident sparse-block paths unverified in gameplay; AMD, Linux and Steam Deck results are also absent. Do: Run extended sparse-heavy gameplay with check mode and active cuts on the affected Tier 1 hardware and operating systems, and report mismatches and performance.Since the last review (on
a1a75e6d8c)Still open: L3 (The reported A/B comparison does not establish the performance of the complete change agai…); L4 (The live parity run did not exercise any CPU-owned-word cuts, and the other affected Tier…)
Checks: Still running: 11 checks.
More: does it help, other systems, switches, what was read
Does it help: Unproven against main. The author's five Windows RTX 4060 runs reported +1.68% FPS and improved lows, but compared two modes of the PR build; an independent Linux RTX 3090 comparison of those modes found a -0.88% median FPS change within run-to-run spread.
Other systems: The write-back paths affect Vulkan on Windows and Linux across GPU vendors, including Steam Deck. Windows NVIDIA Market was tested in check mode, but it recorded zero cuts; AMD and Steam Deck check runs and Linux parity coverage remain pending.
Switches: RX_VK_WB_CPU_WORDS_FAST is added, defaulting to 1; 0 selects baseline paths and check or 2 enables parity checks. The default's benefit for the complete change remains unproven against main.
Reviewed:
a56e548849againstb552589596: Read AGENTS.md and CONTRIBUTING.md, the rebase comparison in vk_main.cpp, and the CPU-word and write-back code relevant to the ledger. Skimmed the remaining diff and tests; did not read every changed code file in full. The pull request template and standards were located but not read in full.; nothing run (a code review).Checked and fine:
Testing: No commands that build or run the project were executed. The reported game-free checks passed before the rebase; CI is still running on this head.
Overlaps and merge order: Not checked; network access is unavailable.
Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its rebase. Nothing was run; a maintainer decides.
AMD Lab Market A/B on PR head
a56e54884966, usingRX_VK_WB_CPU_WORDS_FAST=0andRX_VK_WB_CPU_WORDS_FAST=1on the same build.Within the run-to-run spread. Median average FPS changed by +3.23%.
0)1)Market (child), headless Linux 7.3.3-1-cachyos, Core i7-9700K, Radeon RX 580 with Mesa RADV 3:26.2.6-1, 1280x720 output and 50% (640x360) render scale, uncapped with V-Sync and frame generation off. Three alternating pairs, 40 seconds per capture after warm-up.
After warm-up, the harness still flagged pipeline or shader activity in 56 / 19 / 27 frames on side A and 19 / 67 / 25 on side B across the three captures. The FPS and tail numbers include those frames.
This was merged (head
a56e548, after BeanBot's rebase) before I answered. Here is a summary of the results posted since. The description can't be edited after the merge (our forge tooling refuses merged PRs), so they are recorded here.Test farm (Beanstalk, run on
a1a75e6, main against the PR): no frame-time regression. The three failures don't come from the change. Frame time p99 (ms), main → PR:What the failures are:
@HumanBean's A/Bs,
RX_VK_WB_CPU_WORDS_FAST=0against=1on the same build: thanks.Neither A/B confirms the +1.68% from my Windows run, and neither shows a slowdown.
BeanBot's testing items: L3 (main against head at player settings) is partly answered: the farm compared main against the PR on 5 PCs, but at fixed 720p custom settings, not player presets. L4 (live cuts) is still open (see above). The Steam Deck and Intel jobs did not report.
No code change and nothing run from my side for this reply.