perf(vk): sparse mirrors' block 256 KB on RADV (RX_VK_SPARSE_BLOCK_KB) #3114
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
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot!3114
Loading…
Reference in a new issue
No description provided.
Delete branch "decohered/Longshot:perf/sparse-block-256k"
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 my Steam Machine the sparse mirrors would hitch on every area change -- and it was due to the size of their blocks.
It's a switch now -- if you don't touch it, you get 256 KB on RADV and the driver's own alignment everywhere else, as before. RADV is the only driver I tested this on so it's the only one that changes.
RX_VK_SPARSE_BLOCK_KBis rounded up to a power of two, at least the driver's alignment, and never goes over 8 MiB, so #2998's unbind cut still lands on block edges;0is the driver's own blockvk: sparse binds:line now splits the binds' time into making the ranges, the queue's lock, the held batch's flush and the bind callStart with
sparse_block_foringpu/vk/vk_vma.cpp, thentests/test_sparse_block.py.Testing
Tested: I've played on this a lot: one 132-minute session with 64 KB blocks and one of 54 minutes with 256 KB, on builds of my own branch where the block was the only difference.
Steam Machine: Navi 33 8 GB, SteamOS 3.10.1, kernel 7.3.1-valve3, RADV steamos-26.05.20
tests/test_sparse_block.pypasses with clang++ and g++ 16.2.0: 256 KB on RADV, the driver's own block elsewhere, asked sizes rounded up to a power of two, at least the driver's alignment, 8 MiB at most; after review (3319b91af) the code before it fails the test on an asked 100 KBtests/test_sparse_bind_ranges.py,tests/test_sparse_mirror.pyandtests/test_sparse_spare.pypassThe renderer builds whole at
3319b91afon Linux.mise run teston Linux at0bc26a2c8: 863 pass, 12 skip (Windows only or a device it needs), 16 fail. The same 16 fail on main @76092c5e5with the same tools (the toolchain from nixpkgs; mise's pinned one isn't set up here), so none come from this change.The 16
byte_compile_tracked, f2i_immediate, global_load_16, native_suatom, test_check_cache, test_checks_container, test_cloth_kernels, test_dav1d_av1, test_game_module_imports, test_lifter, test_lifter_semantics, test_native_zstd, test_run_all_junit, test_thinlto_tls, test_ui_renderer, test_utf8_paths
Still to test:
vk: sparse binds:line than main (@Beanstalk play through a few zone changes on a Steam Deck, this PR against main, and compare the log's sparse binds line)Measurements
Verdict: On RADV, 256 KB blocks spent 38 ms a minute in sparse binds against 320 with 64 KB, and had frames of 100 ms or more 0.07 times a minute against 0.39, with the mirrors holding about the same memory.
Baseline: both columns are builds of my own branch @ 6cb6989ef (not on the forge), one session each on the Steam Machine, differing only in
RX_VK_SPARSE_BLOCK_KB. Main binds RADV's 4 KB block, which the Summary's figures describe.Risks
The downside is that a larger block can have a little bit of memory that a mirror doesn't need, though I didn't notice it in my sessions. Only RADV changes by default, and
RX_VK_SPARSE_BLOCK_KB=0reverts to the driver's block size.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.🤖 Generated with Claude Code
Possibly related, for context:
@review
Recommendation: Request changes. The override can pass a non-power-of-two alignment to VMA, and the new timing log attributes range preparation to queue-lock contention. The claimed performance gain also needs a controlled comparison with main and a Steam Deck run.
The change uses larger sparse-mirror blocks by default on RADV to reduce allocations and bind ranges. It also adds an override and bind timing counters; arbitrary override values need safer alignment handling.
Blocking (1): must change before merging.
gpu/vk/vk_vma.cpp:775: The override can produce an alignment that is not a power of two, which is then passed to VMA as a VkMemoryRequirements alignment. (more on the line) Do: Round the requested block to a valid power-of-two alignment, retain the driver's minimum, and test the resulting allocation contract.Should fix (1): not blocking, but worth doing before merging.
gpu/vk/vk_memory.cpp:4676: The reported queue-lock time includes all range preparation before the lock is attempted. (more on the line) Do: Take a timestamp immediately before acquiring present_mu and use it for lock wait; report preparation separately if it is useful.Testing before merging (2) (runs on the systems it can change; it doesn't hold the recommendation)
@fixcan do L1 and L2.Checks: Still running: 11 checks.
More: does it help, other systems, switches, what was read
Does it help: Unproven. One 132-minute session at 64 KB reported 320 ms/minute in sparse binds and one 54-minute session at 256 KB reported 38 ms/minute, but neither was the PR against main, and the sessions were not repeated on the same route.
Other systems: The default changes RADV sparse mirrors, including Steam Deck; the override affects other Vulkan drivers too. The bind timing instrumentation runs on every driver using sparse mirrors. The author reports a Linux renderer build and RADV play, but Steam Deck and controlled main-versus-PR results remain outstanding.
Switches: RX_VK_SPARSE_BLOCK_KB is new: unset selects 256 KB on RADV and driver alignment elsewhere; 0 selects driver alignment. Its table row is present. The RADV default needs controlled measurements, and arbitrary values must produce a valid allocation alignment.
Reviewed:
0bc26a2c83against76092c5e5a: Read AGENTS.md, CONTRIBUTING.md, the PR template, relevant standards, the complete diff and commits, both changed tests, sparse_mirror.h, and the sparse allocation, bind, growth, release and logging paths. Skimmed the remainder of the large changed renderer files and switch table; did not read them in full. docs/review-checklist.md and the adjacent Tooling checkout were absent.; nothing run (a code review).Checked and fine:
Testing: No code or tests were run, as requested. The author reports Linux game sessions, sparse tests and a renderer build; CI is still running.
Overlaps and merge order: Not checked; network access was unavailable.
Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.
@ -4663,0 +4673,4 @@const auto t_end = std::chrono::steady_clock::now();const double all = ms(t_end - t0).count();st_sparse_bind_ms += all;st_sparse_lock_ms += ms(t_locked - t0).count();L2 (should fix): The reported queue-lock time includes all range preparation before the lock is attempted.
When: For a bind with many ranges, t0 is taken before the merge, cut and vector allocations, while t_locked is taken after acquiring present_mu. Their difference attributes that CPU work to waiting for the queue lock, so the new diagnostic identifies the wrong source of time.
Do: Take a timestamp immediately before acquiring present_mu and use it for lock wait; report preparation separately if it is useful.
@ -758,0 +772,4 @@return std::min<uint64_t>((uint64_t)kb << 10, 8ull << 20);}();const uint64_t a = std::max<uint64_t>(driver_alignment, 1);const uint64_t b = (std::max(asked, a) + a - 1) / a * a;L1 (blocking): The override can produce an alignment that is not a power of two, which is then passed to VMA as a VkMemoryRequirements alignment.
When: With RX_VK_SPARSE_BLOCK_KB=100 and RADV's 4 KB alignment, this returns 102400 bytes. alloc_sparse_block passes that value as r.alignment to vmaAllocateMemory, whose allocation alignment must be a power of two; allocations can assert or be aligned incorrectly.
Do: Round the requested block to a valid power-of-two alignment, retain the driver's minimum, and test the resulting allocation contract.
That one was my mistake -- both are fixed in
3319b91af.Now, an asked block size will be rounded up to the next power of two, and will never be less than the driver's alignment. So if you ask for 100 KB, you'll get 128 KB. RADV will still get 256 KB by default. I added 100, 300, and 3 KB to the test and the old code fails it.
The log was slightly misleading as well. The lock's time starts right before the lock now, and making the ranges is a separate number.
@Beanstalk
@review
Beanstalk test farm · ⚠️ couldn't be judged on linux+radv, steamdeck, windows+amd and 3 more
Commit
3319b91· approved by HumanBean (reviewed) · dashboard⚠️ Note: The sparse-bind timing line is new, so its captured total cannot be compared directly with main by this plan; it is unjudged if sparse mirrors or the diagnostic line are not reached.
⚠️ Note: VRAM peak is a whole-GPU proxy, not mirror-only memory; the short scripted route cannot reproduce the reported long-session bind and hitch rates.
⚠️ Note: The override’s rounding and block-size extremes are not exercised; the plan tests the shipped default against main.
Done (started 06:50 UTC, last report 15:06 UTC). Comment
@Beanstalkto run it again.linux+radvsteamdeckwindows+amdnvidiainteligpuCouldn'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.
linux+radv, report 1:main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store'slinux+radv, report 2:main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store'ssteamdeck, report 1:main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store'ssteamdeck, report 2:main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store'swindows+amd, report 1:main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store'swindows+amd, report 2:main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store'snvidia, report 1:main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store'snvidia, report 2:main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store'sWhat was tested
What will be tested · AI plan (
gpt-6.1-terra)The plan compares main and the PR across several area changes through Hyrule Field, Market and Kakariko, with three interleaved starts per side and 20-second warmed measurements in each area. It records frame times, transition hitches and load times, VRAM, pictures, and the PR’s sparse-bind timing log. Crashes, sparse-bind failures, substantial timing or memory regressions, and large picture differences fail the PR. The Steam Deck target will wait for a tester to come online. No tester online now matches steamdeck: that target waits for one.
kokiri-start(settings vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0; switchesHOS_OUTPUT_RES=1280x720,RX_VK_AUTO_TUNE=0), then teleport to Hyrule Field, take the picture field to compare with main, measure field for 20 s (after 10 s warm-up), teleport to Market, take the picture market to compare with main, measure market for 20 s (after 10 s warm-up), teleport to Kakariko Village, take the picture kakariko to compare with main, measure kakariko for 20 s (after 10 s warm-up); 3 runs on each side.Measurements on `linux+radv`, for the PR description
Verdict: could not be judged on linux+radv (2 reports).
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 8060S Graphics (RADV STRIX_HALO), 26.99.99AMD RYZEN AI MAX+ 395 w/ Radeon 8060S, 64 GB RAMScene: area-transitions, from the repository's save kokiri-start (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); area-transitions: 3 game starts a side, field 20 s after 10 s warm-up, market 20 s after 10 s warm-up, kakariko 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 (
@Beanstalkon this PR runs it again)Nothing was measured: no metric came back.
Flags and settings
None: the plan varied no setting, switch or build option.
As Markdown for the PR description:
Measurements on `steamdeck`, for the PR description
Verdict: could not be judged on steamdeck (2 reports).
Hardware: 1: linux+amd+radv+igpu+handheld
AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99AMD Custom APU 0405, 16 GB RAM; 2: linux+amd+radv+igpu+handheldAMD Custom GPU 0405 (RADV VANGOGH), 26.1.99AMD Custom APU 0405, 16 GB RAMScene: area-transitions, from the repository's save kokiri-start (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); area-transitions: 3 game starts a side, field 20 s after 10 s warm-up, market 20 s after 10 s warm-up, kakariko 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 (
@Beanstalkon this PR runs it again)Nothing was measured: no metric came back.
Flags and settings
None: the plan varied no setting, switch or build option.
As Markdown for the PR description:
Measurements on `windows+amd`, for the PR description
Verdict: could not be judged on windows+amd (2 reports).
Hardware: 1: windows+amd+amd-proprietary+dgpu+window
AMD Radeon RX 9070 XT, 2.0.416AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAM; 2: windows+amd+amd-proprietary+dgpu+window+fsr4AMD Radeon RX 9070 XT, 2.0.416AMD Ryzen 9 7950X 16-Core Processor, 128 GB RAMScene: area-transitions, from the repository's save kokiri-start (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); area-transitions: 3 game starts a side, field 20 s after 10 s warm-up, market 20 s after 10 s warm-up, kakariko 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 (
@Beanstalkon this PR runs it again)Nothing was measured: no metric came back.
Flags and settings
None: the plan varied no setting, switch or build option.
As Markdown for the PR description:
Measurements on `nvidia`, for the PR description
Verdict: could not be judged on nvidia (2 reports).
Hardware: 1: linux+nvidia+nvidia-proprietary+dgpu+dlss
NVIDIA GeForce RTX 5070 Laptop GPU, 620.85.2AMD Ryzen AI 9 365 w/ Radeon 880M, 32 GB RAM; 2: windows+nvidia+nvidia-proprietary+dgpu+window+dlss+xessNVIDIA GeForce RTX 3070, 621.35.0AMD Ryzen 5 5600X3D 6-Core Processor, 32 GB RAMScene: area-transitions, from the repository's save kokiri-start (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); area-transitions: 3 game starts a side, field 20 s after 10 s warm-up, market 20 s after 10 s warm-up, kakariko 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 (
@Beanstalkon this PR runs it again)Nothing was measured: no metric came back.
Flags and settings
None: the plan varied no setting, switch or build option.
As Markdown for the PR description:
Measurements on `intel`, for the PR description
Verdict: could not be judged on intel (2 reports).
Hardware: 1: linux+intel+anv+igpu
Intel(R) Graphics (RKL GT1), 26.2.411th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz, 128 GB RAM; 2: windows+intel+intel-proprietary+igpu+windowIntel(R) UHD Graphics 630, 0.404.2115Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz, 8 GB RAMScene: area-transitions, from the repository's save kokiri-start (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); area-transitions: 3 game starts a side, field 20 s after 10 s warm-up, market 20 s after 10 s warm-up, kakariko 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 (
@Beanstalkon this PR runs it again)Nothing was measured: no metric came back.
Flags and settings
None: the plan varied no setting, switch or build option.
As Markdown for the PR description:
Measurements on `igpu`, for the PR description
Verdict: could not be judged on igpu (2 reports).
Hardware: 1: linux+amd+radv+igpu
AMD Radeon 8060S Graphics (RADV STRIX_HALO), 26.99.99AMD RYZEN AI MAX+ 395 w/ Radeon 8060S, 64 GB RAM; 2: linux+intel+anv+igpuIntel(R) Graphics (RKL GT1), 26.2.411th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz, 128 GB RAMScene: area-transitions, from the repository's save kokiri-start (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); area-transitions: 3 game starts a side, field 20 s after 10 s warm-up, market 20 s after 10 s warm-up, kakariko 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 (
@Beanstalkon this PR runs it again)Nothing was measured: no metric came back.
Flags and settings
None: the plan varied no setting, switch or build option.
As Markdown for the PR description:
The testers' hardware
linux+radvAMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAMlinux+radvAMD Radeon 8060S Graphics (RADV STRIX_HALO), 26.99.99AMD RYZEN AI MAX+ 395 w/ Radeon 8060S, 64 GB RAMsteamdeckAMD Custom GPU 0405 (RADV VANGOGH), 26.1.99AMD Custom APU 0405, 16 GB RAMsteamdeckAMD Custom GPU 0405 (RADV VANGOGH), 26.1.99AMD Custom APU 0405, 16 GB RAMwindows+amdAMD Radeon RX 9070 XT, 2.0.416AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAMwindows+amdAMD Radeon RX 9070 XT, 2.0.416AMD Ryzen 9 7950X 16-Core Processor, 128 GB RAMnvidiaNVIDIA GeForce RTX 5070 Laptop GPU, 620.85.2AMD Ryzen AI 9 365 w/ Radeon 880M, 32 GB RAMnvidiaNVIDIA GeForce RTX 3070, 621.35.0AMD Ryzen 5 5600X3D 6-Core Processor, 32 GB RAMintelIntel(R) Graphics (RKL GT1), 26.2.411th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz, 128 GB RAMintelIntel(R) UHD Graphics 630, 0.404.2115Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz, 8 GB RAMigpuAMD Radeon 8060S Graphics (RADV STRIX_HALO), 26.99.99AMD RYZEN AI MAX+ 395 w/ Radeon 8060S, 64 GB RAMigpuIntel(R) Graphics (RKL GT1), 26.2.411th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz, 128 GB RAMRecommendation: Approve. The code is ready: only testing is left. The alignment and timing fixes address the code findings. The performance gain against main and the RADV default on Steam Deck still need comparable runs. Recommend approval; not approved on the forge.
The change uses larger sparse mirror blocks by default on RADV to reduce bind work and separates range preparation from queue-lock timing. It adds an override and instrumentation, with a potential memory cost from larger blocks.
Testing before merging (2) (runs on the systems it can change; it doesn't hold the recommendation)
Since the last review (on
0bc26a2c83)Resolved: L1 (The override can produce an alignment that is not a power of two, which is then passed to…); L2 (The reported queue-lock time includes all range preparation before the lock is attempted.)
Still open: L3 (The gain and default have not been measured against main under comparable conditions.); L4 (The new RADV default has not been tested on Steam Deck.)
Checks: Still running: 11 checks.
More: does it help, other systems, switches, what was read
Does it help: Unproven against main. The author's single sessions on a Steam Machine reported 38 ms of sparse binds per minute with 256 KB blocks versus 320 ms with 64 KB, and 0.07 versus 0.39 frames of at least 100 ms per minute; neither session used main's 4 KB default or a matched route.
Other systems: The default changes RADV sparse buffers, including Steam Deck; a Deck run remains outstanding. Other drivers retain their alignment by default, although the override can change their blocks too. The author reports a Linux renderer build and game-free checks; Windows renderer CI is still running.
Switches: RX_VK_SPARSE_BLOCK_KB is new: unset defaults to 256 KB on RADV and the driver's alignment elsewhere; 0 selects the driver's alignment. The RADV default still needs comparable measurement and a Deck run.
Reviewed:
3319b91af8against76092c5e5a: Read the diff, commit list, repository guidance, sparse block calculation, allocation and bind paths, and the sparse block test. Skimmed the larger changed renderer files and bind-range test; the full changed renderer files were not read.; nothing run (a code review).Checked and fine:
Testing: No commands from the project were run. The author reports Linux renderer and sparse tests passing; CI is still running.
Overlaps and merge order: Not checked; network unavailable.
Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.
AMD Lab Market A/B:
mainee9e1ed76(A) against PR head3319b91af82fmerged onto it (B), two builds.Within the run-to-run spread. Median average FPS changed by -0.24%.
main)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 at 33% render scale, uncapped with V-Sync and frame generation off. Three alternating pairs, 60 seconds per capture after warm-up, each a timing job of the queue.
Each run's last
vk: sparse binds:log line:On this RX 580 the driver's own sparse block is 64 KB (not the 4 KB of your Steam Machine), so the PR changes 64 KB to 256 KB here.
mainhas nosparse bindsline, so the two sides are compared on each run's lastvk: sparse mirrors:line (cumulative for the run: boot, teleport to the Market, then the standing capture):main), each runBind time overlaps between the sides; the PR's mirrors held a little more memory (about 10 to 40 MB). This is a single teleport and a still scene, not the repeated area changes the PR is about, so it says nothing either way about those hitches.
Local (RTX 3090) Market A/B:
mainee9e1ed76(A) against PR head3319b91af82fmerged onto it (B), two builds.No change to be seen, on a busy PC. By default this PR changes nothing on NVIDIA (the block stays the driver's), so this is a check for side effects.
main) fpsIn the two undisturbed pairs B was 1.3% and 1.1% lower. An earlier set of three pairs, disturbed by the same other work, went both ways (A 125.5 / 90.6 / 109.3, B 120.7 / 125.5 / 110.7), so a gap of about 1% is below what this PC resolved tonight.
CPU-bound (GPU 5.1 ms of a frame of about 8 ms). Market (child), headless Linux 7.3.3-1-cachyos, Ryzen 9 7900X, GeForce RTX 3090 with NVIDIA driver 620.70.06, 1920x1080 output at 100% render scale, no upscaler, uncapped with V-Sync and frame generation off. 60 seconds per capture after warm-up, each a timing job of the queue.
AMD lab A/B/A/B:
main7bc53f841(A) against this PR's head3319b91afmerged onto it (B). AMD lab PC: Linux 7.3.3-1-cachyos, Core i7-9700K, 15 GB RAM (zram swap), Radeon RX 580 with Mesa RADV 3:26.2.6-1. A/B/A/B, 90 s per run after a 15 s warm-up, each a timing job in the queue, headless, uncapped, V-Sync and frame generation off.Scenario: area changes. After one untimed lap, teleports through Hyrule Field, Kakariko, Kokiri Forest, Lost Woods and the Market, 6 s apart plus loading. 1280x720 output, 33 % render scale.
No clear gain on this GPU, and no clear loss. The RX 580 is not the case the PR describes: here RADV's own alignment is 64 KB, not 4 KB (log:
sparse mirrors' block: 256 KB (the driver's alignment 64 KB ...)), so this compares 64 KB blocks with 256 KB.vk: sparse mirrors:lineNot covered: the 4 KB-alignment case (Steam Deck, Steam Machine), where the PR expects its gain.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.