perf(vk): Skip Upscaler Wait on GPUs whose upscale network does not translate, and late pages judged by the part that wrote them back #3212
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!3212
Loading…
Reference in a new issue
No description provided.
Delete branch "Veix/Longshot:perf/skip-tail-amd-late"
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
Skip Upscaler Wait now works on GPUs whose upscale network does not translate (AMD RX 6000 and older, NVIDIA GTX 10 and 16): on an RX 6800 XT with FSR 4, 75.1 -> 84.5 fps. And with the row on, a capture's page is no longer late while only the frame before's upscale and HUD are still on the GPU, and the render thread no longer waits for a late page's repair to read bytes the repair cannot change: on an RTX 4070 SUPER, 4K DLSS 99.8 -> 102.1 fps, 4K DLAA 77.9 -> 79.6.
On a GPU without cooperative matrices (or, on AMD, without WMMA) the game's upscale network is left out, and its pass is drawn in its place by the temporal upscaler or FSR 3.1 (
upscale_stub). Skip Upscaler Wait finds the upscale by the programdispatchnotes before it draws a network, and this path returned before that note: the part before the upscale was never cut, and the frame limiter waited for the whole frame on every frame, as with the row off. An RX 6800 XT's log with FSR 4: 0 of 10,796 frames waited up to their upscale.With the row on, the game's next submits come while the frame before's upscale and HUD, its last parts, are still on the GPU. A page the CPU wrote that a write-back not done yet also writes is late, and gets a repair on the GPU (a 64 KB stamp block, 64 MB at most) or a wait.
mainjudges that by the whole submission, so pages the frame before wrote back early in its frame were late until its upscale was done: on the market route here, about 75 % of the late pages had the part that wrote them back done already. Once the stamp table is full, each of them is a wait for the frame before's whole submission, upscale included.With pages judged by their part, the stamp table no longer fills, and the pages still late get the GPU repair. The render thread reads some of them while it records (pointer tables, headers:
submitted_read_locked), and such a read waited for the repair, which runs behind the frame before's upscale and HUD: on this PC +1.2 ms a frame of draw and descriptor recording, and the rule alone lost about 2 % there.What this changes:
upscale_stub,gpu/vk/vk_draw.cpp): where the temporal upscaler or FSR 3.1 drew the scene into the picture, its program is noted for the frame limiter's part (skip_tail_note_upscale), asdispatchdoes for the networks that translate; once, the log says so (vk: Skip Upscaler Wait: the gameplay upscale is network ...'s stand-in). A blit, a typed fallback or a movie's upscale is not noted.late_replay::landed_by_part,gpu/vk/late_replay.h): a page late by its submission is not late when the part that recorded its newest write-back has reached its place on the recordings' timeline (vk_parts_reached,vk_part_seqoverpart_rec,gpu/vk/vk_replay.cpp) and no write in place of it is pending. Each part's write-backs are recorded at its end and noted just before its submit.late_landed_by_part,gpu/vk/vk_memory.cpp): at the capture (capture_make, the timeline read before the pages are copied), at the take (capture_late_at_replay, by the timeline the capture read) and in the repair's build (late_fix_build, for the pages it copies again from guest memory).late_read_same, called fromlate_fix_cpu_read,gpu/vk/vk_memory.cpp): a read of a page whose repair has not run takes the capture's copy with no wait when the page's write-backs the repair gives words of are done (by their submission, or their part), no capture or GPU write has given the page a newer generation since the take, the host's write mark of the page is clear, and guest memory holds the copy's bytes there. The repair writes a word only where such a write-back changed it, with that write-back's value, which is then in guest memory too: the copy's bytes are what the read would take after the repair. The page stays under its repair for its other bytes. The newest write-back is noted when the repair is recorded (late_fix_emit), the generation at the take.MkwVkHost.page_written, API version 96,host/rx_backend.c): the soft write watch's mark of one page, read and left set, for a write of the game's after its newest submission, which no capture has taken yet. -1 where the build has no watch: the read waits.RX_VK_PER_QUEUE_FENCES=0) or a write in place is pending, a page is judged as onmain. A counter the GPU counts and the game sets back to 0 now gets the game's 0 in the mirror at once.RX_VK_LATE_BY_PART(kill, on;=0:main's rule) andRX_VK_LATE_READ_SAME(kill, on;=0: the read waits for the repair), andRX_VK_TEST_LATE_READ_CHECK(diag: such reads wait too and are compared after the repair; the late pages' line counts them), with their rows ingpu/vk/switches.def.RX_VK_MEM_CHECKcounts the pages the rule did not call late as a path of their own (by a part done at the capture, with their replaced words),gpu/vk/mem_check.h.Read first:
upscale_stubingpu/vk/vk_draw.cpp;landed_by_partingpu/vk/late_replay.h;late_landed_by_partand its three callers, andlate_read_sameingpu/vk/vk_memory.cpp.Written with AI assistance (Claude); the commits carry
Co-Authored-By:trailers.Testing
Tested: Windows 11, RTX 4070 SUPER, driver 621.24; the walking route (market, castle, market), headless, 4K DLSS 67 %, the row on, this branch's build.
RX_VK_FORCE_UPSCALE_STUB=2, as on an RX 6800 XT): the log names network6676619641320ba7as the stand-in, and 6,000 frames waited up to their upscale.RX_VK_MEM_CHECK=1: 0 candidates written back from a mirror and not late, 0 takes unpaired (95,880).RX_VK_TEST_LATE_READ_CHECK=1: every read the read rule let go waited for the repair too and was compared after it: 0 of them changed (the late pages' line: 142, 80, 96 a window, changed 0).tests/test_upscale_fallback.py(new cases: the scene drawn in place of a network is noted; not with the row off or no program bound; never for a blit, a typed fallback or a movie), failing onmainand passing here.tests/test_late_by_part.py(new: the rule, the page tables, the timeline lookups andcapture_late_at_replaycut from the source, withRX_VK_LATE_BY_PARTon and at 0),tests/test_late_fix_build.pycases (t) and (u) to (z) (the read: a word the write-back did not write, read with no wait and left so by the repair; the word it wrote, a write-back not done, a newer generation, the mark set or not known, and the game putting the GPU's word back to its old value: the wait; run withRX_VK_LATE_READ_SAMEon, at 0 and checked; each of the read's four conditions taken out of the source fails its case),tests/test_mem_check.py, g++ and clang++. The checks reading the changed files: 15 fail, the same 15 onmainf359e2621on this PC (shader headers not generated, and fixtures missingui,order_watch_on,sync_watch_event_on). For the read and the host's mark, the checks reading the files they change: 178 pass, 12 skip, andtests/test_ui_renderer.pyfails (a pop-out's picture invk_paint.cpp), the same onmainf359e2621.Still to test:
Measurements
Verdict: on an RX 6800 XT with FSR 4, +12.5 % FPS with the row on; the game's wait for the GPU 6.82 -> 0.06 ms a frame.
Baseline: the row off in #3178's build, not a
mainbuild: with the row off the frame limiter makesmain's wait, and both states ran on one build, interleaved, on a tester's RX 6800 XT, which this PC is not.Setup: Windows, RX 6800 XT, AMD 26.11.2, 2560x1440, FSR 4 Performance (1280x720 -> 2560x1440), one spot; #3178's automatic states, interleaved, 6 windows of 600 frames each. "Row on" is #3178's state with this change and the test form of the rule.
main's wait) @2b89064bd2b89064bdAn RX 7900 XT (AMD 26.11.2, i7-14700KF, 2294x960 -> 3440x1440, V-Sync on; its network translates, so only the rule
applies there), #3178 @
92a2281be, the same automatic states, 10-11 windows each, the averages of the play windows over the session (thescenes as he played them): the row off against the row on with the rule.
main's wait) @92a2281be92a2281beThe same card at one spot with FSR 4, by its tester's screenshots: on nightly 1100 (the row without this rule) 75 -> 81 fps with the row; on #3178 83 -> ~98 fps (with the rule; the reader fix there added nothing on this card, 104.7 against 105.7 in the logs above).
This PC: Windows 11, RTX 4070 SUPER, driver 621.24, Ryzen 9 9900X, 64 GB; the walking route (market, castle, market), headless, the row on, the second market stay from 5 s after its entry; two runs a state, interleaved, one build. Baseline: this branch with
RX_VK_LATE_BY_PART=0andRX_VK_LATE_READ_SAME=0, which ismain's behaviour on this card (its upscale network translates: the replacement path does not run).main's behaviour) @0207afebf0207afebfThe rule alone (
RX_VK_LATE_READ_SAME=0): 98.0 / 98.3 fps with DLSS and 76.5 / 76.2 with DLAA, its draw and descriptor recording 4.72 / 1.96 ms a frame against 4.12 / 1.40 before and 4.15 / 1.41 after.Risks
RX_VK_LATE_BY_PART=0brings backmain's rule,RX_VK_LATE_READ_SAME=0the read's wait for the repair; Skip Upscaler Wait's row off brings back the limiter's whole wait. A revert is enough.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
mainand passes here.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
Tested in game: Windows 11, RTX 4070 SUPER, driver 621.24: the walking route (market, castle, market), headless, 4K DLSS 67 %, Skip Upscaler Wait on, this branch's build. With the upscale network forced onto the replacement path (RX_VK_FORCE_UPSCALE_STUB=2) the frame limiter waited up to the upscale on 6,000 frames; with RX_VK_MEM_CHECK=1, 0 pages written back from a mirror and not late. An RX 6800 XT (AMD 26.11.2, FSR 4) on #3178 with this change: 75.1 -> 84.5 fps with the row on.
@review
Recommendation: Approve. The new game-free check assumes a GCC-compatible compiler and does not honor the selected compiler when run directly. The performance gain and the default-on page rule also need measurements on this head against its base. Nothing blocking is left: what remains is for the author before merging (below). Recommend approval; not approved on the forge.
The fallback upscale can now mark the point where Skip Upscaler Wait should stop waiting, and completed recording parts can keep pages out of the late-page repair path. This may reduce frame waits, at the cost of timeline queries and page-table lookups on capture and replay paths.
Should fix (1): not blocking, but worth doing before merging.
tests/test_late_by_part.py:243: The new check defaults to g++ and always passes GCC-style options, so it does not use the configured compiler when invoked directly and cannot run with MSVC's cl. (more on the line) Do: Honor the configured C++ compiler by default and construct the appropriate command line for cl or clang-cl as well as GCC-compatible compilers.Testing before merging (2) (runs on the systems it can change; it doesn't hold the recommendation)
gpu/vk/vk_memory.cpp:2570: The default-on page rule runs on systems beyond the reported Windows NVIDIA head test and needs coverage of those paths. (more on the line) Do: Run the head on affected Tier 1 AMD and NVIDIA systems on Windows and Linux, including Steam Deck, and compare rendering and frame pacing with the rule off and on.@fixcan do L1.Checks: Still running: 11 checks.
More: does it help, other systems, switches, what was read
Does it help: Unproven for this head against its base. A diagnostic build on RX 6800 XT measured 75.1 to 84.5 fps and 15.66 to 14.75 ms p99 with the row off versus on, but it included a test form of the rule and was not a base-versus-head comparison. The RTX 4070 SUPER run shows the forced fallback was identified for 6,000 frames.
Other systems: The page rule affects mirrored memory capture and replay across vendors and operating systems, including when Skip Upscaler Wait is off. The reported head run covers Windows and RTX 4070 SUPER; AMD, Linux and Steam Deck coverage for the default-on rule remains outstanding.
Switches: RX_VK_LATE_BY_PART is added as a kill switch, default on. It has a switches.def row, but the reported comparisons do not establish that its default is suitable across the affected systems.
Reviewed:
bb7580a714againstf359e26213: Read AGENTS.md, CONTRIBUTING.md, the pull request template, standards, commit messages, the full diff, late_replay.h and test_late_by_part.py. Reviewed the changed sections and relevant surrounding recording, capture, write-back and upscale paths in the larger source files; the remaining portions of those files and the other changed tests were skimmed. docs/review-checklist.md and ../Tooling/AGENTS.md were absent.; nothing run (a code review).Checked and fine:
Testing: No code or tests were run, as requested. CI was still running in the supplied results.
Overlaps and merge order: Not checked; the network is closed.
Automated code review by BeanBot (gpt-6.1-terra), asked for by Veix. Nothing was run; a maintainer decides.
@ -2550,2 +2567,4 @@const uint64_t done = vk_timeline_completed();c->late_done = done;// (RX_VK_LATE_BY_PART: the recordings' timeline, read before the pages are copied below: a part done by it has its// write-backs in guest memory, and so in the copy)L3 (should fix): The default-on page rule runs on systems beyond the reported Windows NVIDIA head test and needs coverage of those paths.
When: AMD and Linux players, including Steam Deck users, take the new timeline and page classification path without a reported run of this head showing correct rendering and frame pacing.
Do: Run the head on affected Tier 1 AMD and NVIDIA systems on Windows and Linux, including Steam Deck, and compare rendering and frame pacing with the rule off and on.
@ -0,0 +240,4 @@def main():parser = argparse.ArgumentParser(description=__doc__)parser.add_argument("--cxx", default="g++")L1 (should fix): The new check defaults to g++ and always passes GCC-style options, so it does not use the configured compiler when invoked directly and cannot run with MSVC's cl.
When: On a Windows developer setup with only a configured Visual Studio compiler, the default invocation cannot find g++; passing --cxx cl still supplies -std=c++20, -I and -o instead of the corresponding MSVC options.
Do: Honor the configured C++ compiler by default and construct the appropriate command line for cl or clang-cl as well as GCC-compatible compilers.
@review
Recommendation: Approve. The code is ready: only testing is left. The compiler fix addresses the open test issue. The claimed performance gain and the default-on page rule still need base-versus-head measurements and coverage on affected systems. Recommend approval; not approved on the forge.
The change makes Skip Upscaler Wait apply to supported fallback upscalers and avoids unnecessary late-page repairs when the writing GPU part has finished. It adds timeline and page-tracking complexity in exchange for potentially less waiting.
Testing before merging (2) (runs on the systems it can change; it doesn't hold the recommendation)
gpu/vk/vk_memory.cpp:2570: The default-on page rule runs on systems beyond the reported Windows NVIDIA head test and needs coverage of those paths. When: AMD and Linux players, including Steam Deck users, take the new timeline and page classification path without a reported run of this head showing correct rendering and frame pacing. Do: Run the head on affected Tier 1 AMD and NVIDIA systems on Windows and Linux, including Steam Deck, and compare rendering and frame pacing with the rule off and on.Since the last review (on
bb7580a714)Resolved: L1 (The new check defaults to g++ and always passes GCC-style options, so it does not use the…)
Still open: L2 (The claimed performance gain has not been measured between the base and this head with the…); L3 (The default-on page rule runs on systems beyond the reported Windows NVIDIA head test and…)
Checks: Still running: 11 checks.
More: does it help, other systems, switches, what was read
Does it help: Unproven against the base and this head. A diagnostic build reported 75.1 to 84.5 fps on an RX 6800 XT with the setting off versus on, but that comparison was not against this head and its base.
Other systems: The page rule affects Vulkan replay across GPU vendors and operating systems. The recorded head run covers Windows on an RTX 4070 SUPER; AMD, older NVIDIA and Linux coverage remains outstanding.
Switches: RX_VK_LATE_BY_PART is added, default on; setting it to 0 restores the previous page rule. The default still needs the outstanding hardware coverage and base-versus-head measurements.
Reviewed:
11a27ce7c7againstf359e26213: Read tests/test_late_by_part.py in full, the change since the ledger, repository rules and pull request template. Skimmed the broader diff and recorded results; the other changed code files were not read in full.; nothing run (a code review).Checked and fine:
Testing: No commands from the project or tests were run. The reported Windows NVIDIA run exercised the forced fallback and memory check; CI is still running.
Overlaps and merge order: none found
Automated code review by BeanBot (gpt-6.1-terra), asked for by Veix. Nothing was run; a maintainer decides.
@review
Recommendation: Approve. The code is ready: only testing is left. The reported runs show promising gains, but a same-settings comparison of the final implementation against the base and coverage of other affected systems are still missing. Recommend approval; not approved on the forge.
The change enables Skip Upscaler Wait on GPUs using the replacement upscale path and reduces waits for late-page repairs. It adds synchronization and write-watch logic to the renderer, with default-on switches for the new rules.
Testing before merging (2) (runs on the systems it can change; it doesn't hold the recommendation)
gpu/vk/vk_memory.cpp:2570: The default-on page rule runs on systems beyond the reported Windows NVIDIA head test and needs coverage of those paths. When: AMD and Linux players, including Steam Deck users, take the new timeline and page classification path without a reported run of this head showing correct rendering and frame pacing. Do: Run the head on affected Tier 1 AMD and NVIDIA systems on Windows and Linux, including Steam Deck, and compare rendering and frame pacing with the rule off and on.Since the last review (on
11a27ce7c7)Still open: L2 (The claimed performance gain has not been measured between the base and this head with the…); L3 (The default-on page rule runs on systems beyond the reported Windows NVIDIA head test and…)
Checks: Still running: 11 checks.
More: does it help, other systems, switches, what was read
Does it help: Unproven against the base at this head. The reported diagnostic-build RX 6800 XT comparison is 75.1 to 84.5 fps, and the RTX 4070 SUPER comparison with both new rules toggled is approximately 99.8 to 102.1 fps; neither is a same-settings base-versus-head comparison.
Other systems: The page rules affect GPU write-backs and CPU reads across vendors and operating systems. The reported head run covers Windows on an RTX 4070 SUPER; affected AMD, older NVIDIA and Linux paths remain to be tested.
Switches: RX_VK_LATE_BY_PART and RX_VK_LATE_READ_SAME default on; their performance and correctness across affected systems still need coverage. RX_VK_TEST_LATE_READ_CHECK defaults off and is diagnostic. All three have rows in switches.def.
Reviewed:
71d3b8dca1againstf359e26213: Read AGENTS.md, CONTRIBUTING.md and the pull request template; inspected the changes since the ledger, the affected synchronization and write-watch paths, and portions of the base diff. The full changed code and tests were not read in full; test files and recorded runs were skimmed. No review-checklist.md was found.; nothing run (a code review).Checked and fine:
Testing: No commands that build or run project code were executed. The author reports game-free checks and a Windows RTX 4070 SUPER game 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 Veix. Nothing was run; a maintainer decides.
AMD lab A/B/A/B:
main7bc53f841(A) against this PR's head71d3b8dcamerged 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: standing in the Market, 1920x1080 output, FSR 3.1 from 960x540, Skip Upscaler Wait on in both.
About +14 % fps on the RX 580 (52.5-53.2 to 60.3), the same in both pairs.
wait_gpu_ms, meanmain_cpu_ms, meanvk: Skip Upscaler Wait: the gameplay upscale is network 72ba090c70fe2614's stand-in (it does not translate here), then6000 frames waited for up to their upscale; the whole frame: 91 without an upscale, 22 with guest memory read in place after it, 0 out of time(B2: 82 and 21).This covers the "Linux, a dedicated GPU: ... no lower FPS" item in part: it compares
mainwith the PR, both with the row on, in a standing view, not the row on against off on the market route.Measured on Windows at Market center: the late-page part works as described (35 late pages a capture to about 2, no waits), and the frame rate is level on this PC: +0.5 % fps, −1.8 % CPU ms.
This head (
71d3b8dca) as a pack over mainf359e2621, its merge base. The pack carries both changed modules (game exe andlongshot_vk.dll); the DLL has the PR's newstand-inlog line, main's does not.Setup: Windows 11, Ryzen 7 5700X3D, RX 9070 XT, AMD 26.11.2. Market center (child, a save at the fountain, loaded directly), the right stick held right from the load, 1280x720 16:9, uncapped (HOS_FPS_MAX=240), render thread on, Skip Upscaler Wait on (the default), a 20 s window, 3 alternating pairs, all 6 runs admitted, game clock 1.000.
f359e2621stand-inline never appears. The RX 6800 XT gain in the description is not something this PC can show.Note for anyone measuring on main since #2822: Mouse camera now defaults to Native, and with
HOS_INPUT_EXCLUSIVE=1read_input(host/nn_hid.c) returns beforehos_mouse_native_stick(), so a scripted right stick turns nothing. These runs setHOS_MOUSE_NATIVE=0. An earlier still-camera round gave +1.2 % fps and −2.6 % CPU ms.🤖 Generated with Claude Code
RX 7900 XT on
71d3b8dc— FSR 3.1 and FSR 4At FSR 4 67%, enabling Skip Upscaler Wait raised average FPS by 7.8% and dropped the 1% low by 25.7%. The p99 regression reproduced in both pairs: 11.12 → 14.89 ms and 10.51 → 14.21 ms.
Setup. Windows 11, Radeon RX 7900 XT, driver
32.0.32029.2010. Fixed Hyrule Field view, 3440×1440 output, frame generation and V-Sync off, uncapped. Both arms used PR head71d3b8dc. Each row is two interleaved pairs (off/on/off/on) withdev.py ab, at least 20 s to settle after each launch, then a 30 s frame trace. Values are medians across the two runs per state. The runner calculates each run's 1% low as1000 / p99_ms.Average FPS rose in all six configurations. FSR 4 p99 rose in both pairs at every scale. The FSR 3.1 92% p99 regression was concentrated in one enabled run. All captures had zero cold frames and zero frames at or above 50 ms. The FSR 3.1 50% row comes directly from the four run records because the report generator flagged per-launch Windows handle differences.
Late-page rules at FSR 4 67%
I kept Skip Upscaler Wait on in both arms and switched
RX_VK_LATE_BY_PARTandRX_VK_LATE_READ_SAMEtogether from0to1, using the same two-pair protocol. Enabling the pair increased average FPS 102.9 → 109.9 (+6.8%), reduced median frame time 9.62 → 8.76 ms, and worsened p99 12.15 → 14.86 ms and 1% low 82.4 → 67.3 FPS (−18.3%). The p99 increase reproduced in both pairs (12.34 → 14.89 ms and 11.95 → 14.83 ms). This measures the combined effect of the two rules.In both FSR 4 67% skip-wait-on traces from the matrix, the slowest 1% of frames coincided with increased render-thread waiting and main-thread blocking. GPU work stayed roughly flat on those frames. The FSR 4 67% matrix logs showed zero Vulkan errors.
@rebase
I rebased this pull request onto
main(be69c3f99c): the new head ise285e9998c.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.
71d3b8dca1e285e9998cRecommendation: Approve. The requested base comparison and AMD and Linux coverage have been supplied. The pull request is reported as unmergeable, so its mergeability needs to be resolved before it can be merged. Nothing blocking is left. Recommend approval; not approved on the forge.
The change lets Skip Upscaler Wait work with the replacement upscale path and reduces waits for late pages. It adds timeline and page-tracking complexity to the Vulkan memory path.
Questions (1) (not confirmed from the code; they don't hold the recommendation)
Since the last review (on
71d3b8dca1)Resolved: L2 (The claimed performance gain has not been measured between the base and this head with the…); L3 (The default-on page rule runs on systems beyond the reported Windows NVIDIA head test and…)
Checks: Still running:
PR description / Title and description (pull_request_target).Also noticed (2; not asked for, not blocking)
More: does it help, other systems, switches, what was read
Does it help: Yes. HumanBean's Linux RX 580 A/B/A/B comparison against main improved average FPS from 52.5–53.2 to 60.3 and improved p99 frame time from 21.96–22.55 to 19.46–19.59 ms. The Windows RX 9070 XT comparison showed a 0.5% median FPS increase, within the reported noise.
Other systems: The page rule affects Vulkan memory replay across GPUs and operating systems. Recorded runs cover Windows NVIDIA and AMD and Linux AMD; the Linux run did not inspect the picture by eye.
Switches: RX_VK_LATE_BY_PART and RX_VK_LATE_READ_SAME default on and restore the previous rules at 0. RX_VK_TEST_LATE_READ_CHECK defaults off and enables diagnostic comparisons at 1. All have entries in switches.def; the recorded results support the defaults on tested systems, though frame pacing varies by workload.
Reviewed:
e285e9998cagainstbe69c3f99c: Read the repository instructions, contribution rules, pull request template, commit list, diff for vk_api.h, rx_backend.c and test_program_hooks.py, and references to the changed host callback and version checks. The remaining changed files and their full diffs were not read in this check; recorded runs and test claims were reviewed from the pull request and comments.; nothing run (a code review).Checked and fine:
Testing: No commands that build or run code were executed. The reported title and description check is still running.
Overlaps and merge order: Not checked.
Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its rebase. Nothing was run; a maintainer decides.