perf(vk): inline POD ring encoding, direct dispatch, and batched R flush (RX_VK_RECORDER_FAST) #2968
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!2968
Loading…
Reference in a new issue
No description provided.
Delete branch "siantm/Longshot:perf/vk-recorder-inline-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
Reduces Vulkan command-ring recording and consumer dispatch overhead (
cmds_ms/draw_ms/ frame tail latency) ingpu/vk/vk_work.h,gpu/vk/vk_recorder.h, andgpu/vk/vk_replay.cpp.Before this change, every
vkCmd*call on the hot path invoked a cross-TUcall_count_on()function check (vk_work.h), markedRoute::MODE::OFFas[[likely]]despiteTHREADbeing active, ran anoinlinepacker that reserved 80 KB (g_ring_room) before checking ring wrap and wrapped arguments in a lambda closure, dispatched every packet via indirectp->run(p)call on the consumer thread, and executed a releaseR.storeon every single ~32 B packet.With
RX_VK_RECORDER_FAST(default on,1):gpu/vk/vk_work.hchecks an inlineg_call_count_onboolean ([[unlikely]]) instead of making a cross-TU call on everyvkCmd*.gpu/vk/vk_recorder.hadds inline exact-size POD ring encoding (Recorder::reserve_exact+fast_pod_sentinel+Pod*payloads for 18 fixed-size commands and 6 bounded small-array commands such asvkCmdPushConstants <= 256B,vkCmdBindVertexBuffers2 <= 16,vkCmdSetViewportWithCount <= 16,vkCmdSetScissorWithCount <= 16,vkCmdSetColorBlendEnableEXT <= 8, andvkCmdSetColorWriteMaskEXT <= 8), falling back to legacyEncwhenRX_VK_RECORDER_FAST=0or over-cap.Recorder::loop()dispatches fast POD opcodes directly viaswitch (p->op)and batches consumerR.store(r, release)updates everymin(65536, cap / 4)bytes, on drain toseenbefore re-checkingW/idle(), and onOP_PARTbeforeparts_done.First read vk_recorder.h, vk_work.h, and vk_replay.cpp.
Testing
Tested: Windows 11, NVIDIA GeForce RTX 4060 (driver 621.40, Vulkan 1.4).
python -X utf8 -I tests/test_recorder_sync.py --cxx clang++ --headers ... --bench 20000passed (including Windows exit test + broken exit test + 20 broken variants).python -X utf8 -I tests/test_recorder_parts.py --cxx clang++ --headers ...passed (6 cases + 8 broken controls).python -X utf8 -I tests/test_vk_recorder_fast.py --cxx clang++ --headers ...passed (ALL FAST PASS,env_off, 12,500 randomized commands, wrap boundaries,HOS_ABmixed fast/legacy packets, 4 broken variants).python -X utf8 -I tests/test_hos_ab.py,test_recorder_own_idle.py,test_thinlto_tls.py,test_saveload_warm_cache.py,test_threaded_rendering.py,test_ub_update_batch.py, and 8-TUclang++ -fsyntax-onlypassed.RX_VK_RECORDER_FAST=1, 25 s): 1971 frames,RUN_ERROR=None.HOS_AB(HOS_AB=RX_VK_RECORDER_FAST=0,3,0, 5×90 s, 145 paired periods in Market): 5/5 runs won, zero crashes/errors.Still to test:
tests/test_recorder_sync.py,tests/test_recorder_parts.py, anddev.py abin Market by hand (by hand).Measurements
Verdict: faster: +1.10% fps, the mean frame time -0.137 ms (95% interval +0.36% to +1.86% faster vs
RX_VK_RECORDER_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-runHOS_AB=RX_VK_RECORDER_FAST=0,3,0across 5×90 s runs (145 paired periods; 16,536 ON frames vs 16,361 OFF frames).Baseline: both columns are one build,
329824972onperf/vk-recorder-inline-fast(main@495ed9fe2):RX_VK_RECORDER_FAST=0(Before) againstRX_VK_RECORDER_FASTunset (After).3298249732982497cmds_msdraw_msRisks
Set
RX_VK_RECORDER_FAST=0to revert producer emission to legacy lambda-closure ring packing while keepingRX_VK_RECORDER=thread. Consumer decoding handles both fast POD packets and legacy closure packets identically across recording boundaries (HOS_ABsafe).Assisted-by: Antigravity
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 CPU-bound 5x90s HOS_AB (+1.10% FPS, 95% CI +0.36%..+1.86%, cmds_ms -5.55%, 0.1% Low +13.22%) and recorder_sync/parts suites PASS
Possibly related, for context:
@review
Recommendation: Approve. The commit omits the required AI-assistance trailer. The reported performance gain also compares two configurations of this PR, so the gain over the base remains unproven. Nothing blocking is left: what remains is for the author before merging (below). Recommend approval; not approved on the forge.
The change adds compact Vulkan recorder packets, direct dispatch and batched consumer progress updates. It may reduce recording overhead, at the cost of a larger, more complex recording and dispatch path.
Should fix (1): not blocking, but worth doing before merging.
Testing before merging (2) (runs on the systems it can change; it doesn't hold the recommendation)
495ed9fewith this head in the same scene and settings, using multiple interleaved runs and reporting frame-time tails as well as the targeted timings.@fixcan do L1.Checks: Still running: 10 checks.
More: does it help, other systems, switches, what was read
Does it help: Unproven against the base. On Windows with an RTX 4060, five in-run comparisons report +1.10% FPS and a 0.14 ms lower mean frame time with the fast encoder on, but both sides use the PR’s other changes.
Other systems: The recorder runs across Vulkan drivers and operating systems, including Linux and Steam Deck. The reported game run covers Windows and NVIDIA only; Linux, AMD and Intel results are still outstanding.
Switches: RX_VK_RECORDER_FAST is added, default on; 0 selects legacy producer encoding, while the consumer batching and other changes remain active. It is listed in switches.def and can change between recordings through HOS_AB. The default’s overall benefit against main is not yet established.
Reviewed:
3298249725against495ed9fe2a: Read AGENTS.md, CONTRIBUTING.md, the PR template, relevant standards, the commit and diff, and the recorder changes and surrounding ring code. Reviewed the changed work and replay sections, switch row and test wiring; skimmed the new test’s harness and cases. The full vk_replay.cpp and vk_work.h were not read; ../Tooling/AGENTS.md was unavailable, and docs/review-checklist.md does not exist.; nothing run (a code review).Checked and fine:
Testing: No code or tests were run, as requested. The author reports game-free checks and a Windows NVIDIA game run; CI is still running.
Overlaps and merge order: Not checked; the network is closed.
Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.
3298249725659b446facAddressed review feedback in
659b446fa:Assisted-by: Antigravity (Google DeepMind)to the commit message.Checks run:
python -I tests/test_vk_recorder_fast.py --cxx clang++ --headers <vulkan_headers>: PASS (includingenv_offand all 4 broken variants)python -I tests/test_vk_recorder_fast.py --cxx g++ --headers <vulkan_headers>: PASSpython -I tests/test_recorder_sync.py --cxx clang++ --headers <vulkan_headers>: PASSpython -I tests/test_recorder_parts.py --cxx clang++ --headers <vulkan_headers>: PASSpython -I tests/test_recorder_own_idle.py --cxx clang++ --headers <vulkan_headers>: PASSpython -I tests/test_hos_ab.py --cc clang: PASSpython -I tests/test_tls_objects.py: PASS (19TLS_OBJECTs; 44 other namespace-scopethread_locals)python -I tests/test_vk_braces.py: PASS (617 renderer sources)@review
@beanstalk
Beanstalk test farm · an earlier run: commit
659b446(the newer results are in a comment below)Commit
659b446· approved by HumanBean (reviewed) · dashboard⚠️ Note: The farm does not measure the reported cmds_ms and draw_ms components or run the standalone recorder test suites; the small reported 1.1% gain may be indistinguishable from run-to-run noise.
⚠️ Note: The plan tests the shipped default against main, not FAST=0 against the PR default or mixed packets during an in-run switch.
Started at 15:09 UTC.
windows+nvidianvidiaamdlinux+radvintelsteamdeckWhy it failed
amd:threaded-recorderkokiri.frametime_1pct_low_ms.max_delta_pct:16.6 → 21.8 (+31.0%); limit 15.0steamdeck:threaded-recorderkokiri.frametime_1pct_low_ms.max_delta_pct:37.5 → 47.3 (+26.0%); limit 15.0steamdeck:threaded-recordermarket.frametime_1pct_low_ms.max_delta_pct:67.2 → 77.3 (+15.0%); limit 15.0Couldn'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 7 required comparison(s). See rule results.What was tested
What will be tested · AI plan (
gpt-6.1-terra)Compare the PR with main on NVIDIA, AMD, Intel and Steam Deck systems, forcing threaded Vulkan recording. Three alternating starts per side measure uncapped frame times for 30 seconds each in Market and Kokiri Forest, with fixed-size rendering and baseline screenshots. A crash, a screenshot difference above 0.25, or a median or tail frame-time regression above 15% fails the PR.
market-entrance(settings vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0; switchesHOS_OUTPUT_RES=1280x720,RX_VK_RECORDER=thread,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 Kokiri Forest, take the picture kokiri to compare with main, measure kokiri for 30 s (after 10 s warm-up); 3 runs on each side.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+dlss+xess
NVIDIA GeForce RTX 4090, 621.40.013th Gen Intel(R) Core(TM) i7-13700K, 32 GB RAM; 2: windows+nvidia+nvidia-proprietary+dgpu+window+xessNVIDIA GeForce GTX 980, 582.78.0Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, 32 GB RAMScene: threaded-recorder, 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_RECORDER=thread, 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); threaded-recorder: 3 game starts a side, market 30 s after 10 s warm-up, kokiri 30 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)495ed9f659b446Flags 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: pass on nvidia (2 reports): no rule failed and no PR run crashed.
Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+window
NVIDIA GeForce RTX 4070, 621.24.0AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM; 2: windows+nvidia+nvidia-proprietary+dgpu+window+dlss+xessNVIDIA GeForce RTX 4090, 621.40.013th Gen Intel(R) Core(TM) i7-13700K, 32 GB RAMScene: threaded-recorder, 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_RECORDER=thread, 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); threaded-recorder: 3 game starts a side, market 30 s after 10 s warm-up, kokiri 30 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)495ed9f659b446Flags and settings
None: the plan varied no setting, switch or build option.
As Markdown for the PR description:
Measurements on `amd`, for the PR description
Verdict: fail on amd (2 reports):
threaded-recorder kokiri.frametime_1pct_low_ms.max_delta_pct (+31.0%)failed.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+amd+radv+dgpuAMD Radeon RX 7900 XTX (RADV NAVI31), 26.3.1AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAMScene: threaded-recorder, 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_RECORDER=thread, 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); threaded-recorder: 3 game starts a side, market 30 s after 10 s warm-up, kokiri 30 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)495ed9f659b446Flags and settings
None: the plan varied no setting, switch or build option.
As 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+dgpuAMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1AMD Ryzen 7 5700X3D 8-Core Processor, 32 GB RAMScene: threaded-recorder, 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_RECORDER=thread, 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); threaded-recorder: 3 game starts a side, market 30 s after 10 s warm-up, kokiri 30 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)495ed9f659b446Flags 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: queued on intel (1 report).
Hardware: 1: windows+intel+intel-proprietary+igpu+window
Intel(R) UHD Graphics 630, 0.404.2115Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz, 8 GB RAMScene: threaded-recorder, 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_RECORDER=thread, 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); threaded-recorder: 3 game starts a side, market 30 s after 10 s warm-up, kokiri 30 s after 10 s warm-up; each number the median of the runs, then of 1 report
How to reproduce: the farm's plan above (
@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: fail on steamdeck (2 reports):
threaded-recorder kokiri.frametime_1pct_low_ms.max_delta_pct (+26.0%);threaded-recorder market.frametime_1pct_low_ms.max_delta_pct (+15.0%)failed.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: threaded-recorder, 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_RECORDER=thread, 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); threaded-recorder: 3 game starts a side, market 30 s after 10 s warm-up, kokiri 30 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)495ed9f659b446Flags and settings
None: the plan varied no setting, switch or build option.
As Markdown for the PR description:
The testers' hardware
windows+nvidiaNVIDIA GeForce RTX 4090, 621.40.013th Gen Intel(R) Core(TM) i7-13700K, 32 GB RAMwindows+nvidiaNVIDIA GeForce GTX 980, 582.78.0Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, 32 GB RAMnvidiaNVIDIA GeForce RTX 4070, 621.24.0AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAMnvidiaNVIDIA GeForce RTX 4090, 621.40.013th Gen Intel(R) Core(TM) i7-13700K, 32 GB RAMamdAMD Radeon 8060S Graphics (RADV STRIX_HALO), 26.99.99AMD RYZEN AI MAX+ 395 w/ Radeon 8060S, 64 GB RAMamdAMD Radeon RX 7900 XTX (RADV NAVI31), 26.3.1AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAMlinux+radvAMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAMlinux+radvAMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1AMD Ryzen 7 5700X3D 8-Core Processor, 32 GB RAMintelIntel(R) UHD Graphics 630, 0.404.2115Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz, 8 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 RAMRecommendation: Approve. The code is ready: only testing is left. The complete performance change has not been measured against its base, and game coverage is still missing on other affected supported systems. Recommend approval; not approved on the forge.
The change reduces Vulkan recorder packing and dispatch work, at the cost of a more complex packet encoding and consumer path.
Testing before merging (2) (runs on the systems it can change; it doesn't hold the recommendation)
495ed9fewith this head in the same scene and settings, using multiple interleaved runs and reporting frame-time tails as well as the targeted timings.Since the last review (on
3298249725)Resolved: L1 (The commit does not record its AI assistance in a trailer, despite the checked checklist i…)
Still open: L2 (The benchmark does not measure the complete change against its base.); L3 (The recorder changes need game coverage on the other supported systems they affect.)
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 the base. The author reports +1.10% FPS and a 5.55% reduction in cmds_ms over five Windows RTX 4060 runs, but the comparison switches the producer path within the PR build and does not measure the complete change against main.
Other systems: The recorder also runs on Linux and on AMD and Intel GPUs. The reported game run covers Windows and NVIDIA; the requested cross-platform game runs remain outstanding.
Switches: RX_VK_RECORDER_FAST is added, default on. Setting it to 0 selects legacy producer packing; the default's full performance effect against the base remains unmeasured.
Reviewed:
659b446facagainst495ed9fe2a: Read AGENTS.md, CONTRIBUTING.md, the commit message, and portions of the recorder, replay, work and switch diffs. The full changed files and tests were not read; the assessment relies on the earlier review for unchanged code.; nothing run (a code review).Checked and fine:
Testing: No commands from the project or tests were run. CI is still running; the reported game and test results are from the author.
Overlaps and merge order: Not checked.
Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.
AMD Lab Market A/B on PR head
659b446fac0f, usingRX_VK_RECORDER_FAST=0andRX_VK_RECORDER_FAST=1on the same build.Within the run-to-run spread. Median average FPS changed by +1.69%.
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. Threaded recording was forced on both sides.
After warm-up, the harness still flagged pipeline or shader activity in 35 / 47 / 10 frames on side A and 39 / 25 / 17 on side B across the three captures. The FPS and tail numbers include those frames.
@rebase
I rebased this pull request onto
main(d53dbe94be): the new head is47d131c1db.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.
659b446fac47d131c1dbBeanstalk test farm
Commit
47d131c· 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 reported A/B results do not measure the complete change against its base, and Intel game coverage is still missing. The Linux AMD run provides useful coverage, but its performance result is within the run-to-run spread. Recommend approval; not approved on the forge.
The change reduces Vulkan recorder encoding and dispatch work in threaded rendering, at the cost of a larger, more specialized recording path.
Testing before merging (2) (runs on the systems it can change; it doesn't hold the recommendation)
495ed9fewith this head in the same scene and settings, using multiple interleaved runs and reporting frame-time tails as well as the targeted timings.Since the last review (on
659b446fac)Still open: L2 (The benchmark does not measure the complete change against its base.); L3 (The recorder changes still need game coverage on Intel hardware.)
Checks: Still running: 11 checks.
More: does it help, other systems, switches, what was read
Does it help: Unproven for the complete change: the Windows NVIDIA in-build comparison reports +1.10% FPS and 0.127 ms lower cmds_ms, but both sides include other changes from this PR. The Linux AMD in-build comparison reports +1.69% median FPS within run-to-run spread.
Other systems: The recorder path affects threaded rendering on supported operating systems and GPU vendors. Windows NVIDIA and Linux AMD game runs are reported; an Intel game run remains missing.
Switches: RX_VK_RECORDER_FAST is added, defaults on, and selects the POD producer path; off retains legacy producer encoding while shared consumer changes remain. The default's performance benefit for the complete change against base remains unproven.
Reviewed:
47d131c1dbagainstd53dbe94be: Read AGENTS.md and CONTRIBUTING.md, the commit, the rebase comparison for tests/test_hos_ab.py, and the diffs for switches.def, vk_work.h and vk_replay.cpp. Searched the recorder for the switch, reservation and read-pointer publication paths; the full recorder, tests, remaining project rules and full diff were not reread in this re-check.; nothing run (a code review).Checked and fine:
Testing: No commands from the project or tests were run. Reported game-free checks passed; the listed CI checks are still running.
Overlaps and merge order: Not checked; network access is closed.
Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its rebase. Nothing was run; a maintainer decides.
rerum9982 referenced this pull request2026-12-02 21:27:22 +00:00
Thank you @HumanBean for the AMD Lab run and the farm run, and @BeanBot for the rebase. This PR is merged now (
b40214d2b), so this comment only records what the results show; nothing was pushed.AMD Lab (Linux, RX 580, RADV),
RX_VK_RECORDER_FAST=0against1on659b446: within the run-to-run spread, as you say. Median average FPS 55.25 → 56.19 (+1.69 %), p99 frame time 39.32 → 26.26 ms, frames of 50 ms or more 6 / 15 / 2 against 16 / 7 / 5. The tails swing both ways between captures, so I read this as no measurable change on that machine, not as a gain.Beanstalk on
659b446against main495ed9fe: p99 frame time windows+nvidia 21.8 → 20.4 ms, nvidia 6.4 → 6.2, linux+radv 10.2 → 10.3, amd 9.4 → 9.5, steamdeck 34.8 → 30.4; no crashes, pictures within main's own spread.Rupdates (r_batch,gpu/vk/vk_recorder.h:957-1001on main) are not behind the switch, so a ring-room effect would show on both sides of the AMD Lab A/B, and it does not.Still open (L2, L3): a base-against-head comparison of the whole change, and an Intel game run. Neither has run; both need the farm or someone with the hardware. I have one Windows RTX 4060 here and did not run anything new for this comment.