perf(agc): copy draw inputs on NVIDIA's Windows driver instead of binding host imports in place #6763
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/6763"
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?
Imported from boykopovar/AnyPS5. Originally posted by SP4C3B4R-8 on 2026-10-16T10:36:47Z.
What
Since #2253, a draw binds its vertex and index ranges in place from the host import that holds them. That was measured on Linux. NVIDIA's Windows driver reads a host import of guest memory far slower than a buffer it allocated, and the draws pay for it on the GPU.
Astro Bot (PPSA21564),
-lvl hub_crashsite, standing at the start position, same build both times,APS5_PROFILE_GPU=1:main)drawGPU time per present ([gputime])Same number of draws (about 220 timed ranges per present); compute dispatches cost the same in both. The frames match (shadows, foliage, sky checked on dumped frames).
Others' A/B runs in this thread: an RTX 3060 shows the same (draws 32.3 against 24.3 ms per frame in place, parl0v), while AMD's Windows driver reads in place about as fast as a copy (RX 9070 XT: 69.8 against 73.1 ms, SoRadGaming), so copying there only costs CPU.
DrawInputsInPlaceUsable,Context::drawInputsInPlace): ranges are copied withVK_DRIVER_ID_NVIDIA_PROPRIETARYon Windows, as before #2253, and bound in place everywhere else.APS5_DRAW_INPUTS_IN_PLACE=1binds them in place andAPS5_NO_DRAW_INPUTS_IN_PLACE=1copies them on any device; the second wins.docs/dev/ARCHITECTURE.mdgets the line.Copies in device-local host-visible memory (ReBAR) cut the draw time further, to 39 ms, but the frame rate stayed the same in this scene (CPU-bound there after this change), so this PR keeps the copies where they were.
Tested
Windows 11 Pro (26300), MinGW-w64 GCC 15.2.0, Release, Ryzen 7 7800X3D, RTX 5070 Ti (16 GB).
agc_draw_inputs_in_place_driver: the decision per driver and host (NVIDIA proprietary on Windows copies; NVIDIA elsewhere, AMD, Intel, RADV and llvmpipe bind in place).agc_draw_inputs_copied(agc_driver_recorder_tests --draw-inputs-copied-only): withContext::drawInputsInPlaceoff, an aligned imported range is not bound in place and its read is not noted. WithInPlaceDrawInputignoring the flag it fails ("an imported draw input was bound in place where draw inputs are copied"). It passes withAPS5_DRAW_INPUTS_IN_PLACE=1exported, andagc_draw_inputs_in_placepasses withAPS5_NO_DRAW_INPUTS_IN_PLACE=1exported: neither depends on the environment.agc_pipeline_link_optimizationstill passes;libsbuilds.tools/check_conventions.py --base origin/mainpasses.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
https://claude.ai/code/session_01GN8FJFTedayRXLHythXkZ4
Imported from boykopovar/AnyPS5. Originally posted by SP4C3B4R-8 on 2026-10-16T10:39:48Z.
Rebased onto
main51acb79ac(headbf1bae55c). One conflict inInPlaceDrawInput, from #4649 (in-place vertex inputs ordered behind pending GPU writes by a barrier), which landed meanwhile: the Windows check now sits in front of its version, so on Windows neither path binds in place unlessAPS5_DRAW_INPUTS_IN_PLACE=1.agc_draw_inputs_in_place,agc_draw_inputs_copiedand #4649'sagc_driver_vertex_target_range_*pass. The numbers in the description are from the previous base (5d9dcc42d).Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-16T10:51:50Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)core/libs/prx/libSceAgcDriver/CMakeLists.txtL1435core/libs/prx/libSceAgcDriver/CMakeLists.txtL1435core/libs/prx/libSceAgcDriver/CMakeLists.txtL1435core/libs/prx/libSceAgcDriver/CMakeLists.txtL1435core/libs/prx/libSceAgcDriver/CMakeLists.txtL705Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/tests/Recorder.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/tests/Recorder.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/include/Context.hppcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/include/Context.hppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/tests/Recorder.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/tests/Recorder.cppdocs/dev/ARCHITECTURE.mdcore/libs/prx/libSceAgcDriver/CMakeLists.txtdocs/dev/ARCHITECTURE.mdcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/tests/Recorder.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/tests/Recorder.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/tests/Recorder.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/tests/Recorder.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppdocs/dev/ENVIRONMENT.mdcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/include/Context.hppcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/tests/Recorder.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/tests/Recorder.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/tests/Recorder.cppdocs/dev/ENVIRONMENT.mddocs/dev/ARCHITECTURE.mdcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/tests/Recorder.cppdocs/dev/ARCHITECTURE.mddocs/dev/ENVIRONMENT.mdcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/tests/Recorder.cppdocs/dev/ARCHITECTURE.mddocs/dev/ENVIRONMENT.mddocs/dev/ENVIRONMENT.mdcore/libs/prx/libSceAgcDriver/tests/Recorder.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/tests/Recorder.cppcore/libs/prx/libSceAgcDriver/tests/Recorder.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/tests/Recorder.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/tests/Recorder.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/include/Context.hppcore/libs/prx/libSceAgcDriver/tests/Recorder.cppdocs/dev/ENVIRONMENT.mdcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppdocs/dev/ENVIRONMENT.mdcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtdocs/dev/ENVIRONMENT.mdcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/include/Context.hppdocs/dev/ENVIRONMENT.mdcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/tests/Recorder.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/tests/Recorder.cppdocs/dev/ENVIRONMENT.mdcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Draw.cppcore/libs/prx/libSceAgcDriver/tests/Recorder.cppdocs/dev/ARCHITECTURE.mddocs/dev/ENVIRONMENT.mdcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/include/Context.hppdocs/dev/ENVIRONMENT.mdcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Graphics/include/Context.hppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppImported from boykopovar/AnyPS5. Originally posted by SoRadGaming on 2026-10-16T12:19:35Z.
The A/B you asked for, on AMD: same scene, ASTRO BOT (PPSA21564 01.007.000)
-lvl hub_crashsite.Host: Windows 11 Pro 26200, Ryzen 7 5800X3D, Radeon RX 9070 XT (AMD proprietary driver 32.0.23033.1002), 32 GB, WinLibs GCC 15.2.0 r7, Release.
Build.
main5d9dcc42dplus a stack of open PRs (#6188, #6273, #6292, #6505, #6503 and others) and this PR's condition inInPlaceDrawInput. On that baseInPlaceDrawInputstill has the four-argument signature (nobehindGpuWrite), so I applied the change by hand there. One binary, toggling onlyAPS5_DRAW_INPUTS_IN_PLACE. Warm shader cache, no input; FPS from the window's present counter over 120 s, after a 120 s settle. Runs alternate.APS5_DRAW_INPUTS_IN_PLACE=1GPU time with
APS5_PROFILE_GPU=1,[gputime]draw class, per present:So on this AMD driver the GPU reads host imports of guest memory about as fast as driver-allocated buffers, unlike the 164 vs 45 ms you measured on NVIDIA. Copying only adds CPU work, and this scene is limited by the pipelined draw committer here, so the frame rate drops about 3 %.
That points at the NVIDIA driver rather than Windows as the case to copy for. Gating the default on
VK_DRIVER_ID_NVIDIA_PROPRIETARYinstead of_WIN32might keep your gain without this loss. I can't check other AMD generations or Intel.AI-assisted (Claude Code); the builds and runs are on my machine.
Imported from boykopovar/AnyPS5. Originally posted by ps54all on 2026-10-16T17:47:45Z.
Data point from a CPU-bound title on Windows: Metal Gear Solid 4 (PPSA18194), gameplay from a save, i9-10850K, RTX 3080 10 GB (610.74), MinGW GCC 15.2. Build: a local stack (#6188, #6187/#6192, #6273, #6077) + this PR, one binary,
APS5_PROFILE_DRAW=1, 1200 s per arm, medians over 10 s gameplay windows.APS5_DRAW_INPUTS_IN_PLACE=1)vertexphase per 10 sHere the frame is held by the draw thread (~140 ms per present, GPU busy ~30 ms), so the copies cost CPU on that thread (vertex time about 2x) and the GPU saving does not show. Frame rate is about the same (scenes are not identical across the two runs; the vertex phase is the clear difference). Not asking for a change; noting that the gain depends on whether the title is GPU- or draw-thread-bound, in case a size threshold or per-buffer heuristic is considered later.
Tested with AI assistance (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by parl0v on 2026-10-16T18:13:12Z.
A/B on a Windows NVIDIA card in a second title: RTX 3060 12 GB (NVIDIA 617.42), i5-12400F, Windows 10 19045, MinGW GCC Release,
main452494439+ this PR (bf1bae55c). Minecraft Dungeons II (PPSA16064 01.100.100), title screen, no input, 200 s rows alternating,APS5_PROFILE_DRAW=1 APS5_PROFILE_GPU=1; the same libs both ways, toggled withAPS5_DRAW_INPUTS_IN_PLACE=1. FPS is the mean of the last 10[present]windows, GPU busy and idle gaps per frame over the last 8, classes per present from the last[gputime]line.drawcopystaging-in/-outAPS5_DRAW_INPUTS_IN_PLACE=1)The draw class drops by a quarter (-8 ms per present) and GPU busy by the same amount, so the in-place reads cost the same here as on your 5070 Ti. The frame rate doesn't move because this scene is CPU-bound on this machine: the freed time shows up as idle gaps (+8 ms). 0 fatal in all six rows.
AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T23:24:40Z.
One test-isolation edge on Windows:
main()deliberately does not setAPS5_DRAW_INPUTS_IN_PLACEfor--draw-inputs-copied-only, but it also does not clear an inherited value. The copied CTest setsAPS5_NO_DRAW_INPUTS_IN_PLACE=1;DrawInputsInPlace()does not consult that variable on Windows, so a caller that already exportsAPS5_DRAW_INPUTS_IN_PLACE=1still takes the in-place path and the copied-only assertion fails. Could the copied-only setup explicitly remove the Windows variable or otherwise control the actual Windows switch?Imported from boykopovar/AnyPS5. Originally posted by SP4C3B4R-8 on 2026-10-17T08:23:37Z.
Thanks all for the A/B runs.
@SoRadGaming good call: the slow in-place reads are NVIDIA's driver, not Windows. With parl0v's RTX 3060 numbers (draws 32.3 against 24.3 ms per frame in place) and yours on the RX 9070 XT (in place as fast as copied), the default now copies only with
VK_DRIVER_ID_NVIDIA_PROPRIETARYon Windows and binds in place everywhere else. The device decides once (DrawInputsInPlaceUsable,Context::drawInputsInPlace), andagc_draw_inputs_in_place_driverchecks the decision per driver and host.@MarcZX100 fixed: the copied-only test no longer depends on the environment. It sets
Context::drawInputsInPlaceitself, and the recorder test binary no longer setsAPS5_DRAW_INPUTS_IN_PLACE. For users,APS5_DRAW_INPUTS_IN_PLACE=1andAPS5_NO_DRAW_INPUTS_IN_PLACE=1now work on any device, and the second wins.agc_draw_inputs_copiedpasses withAPS5_DRAW_INPUTS_IN_PLACE=1exported, andagc_draw_inputs_in_placepasses withAPS5_NO_DRAW_INPUTS_IN_PLACE=1exported.@ps54all noted. On a frame held by the draw thread the copies cost CPU. A size threshold could come later, once there is a scene where it changes the frame rate.
Rebased onto main (
5f61879a9), one commit.Imported from boykopovar/AnyPS5. Originally posted by HQasper on 2026-10-17T20:01:13Z.
Another NVIDIA data point, in case it helps: RTX 5090, driver 617.42, Windows 11, Ryzen 9 9950X3D.
Setup:
The build was main
47a266cf9with #6060's settle floor lowered to 64 KiB locally (APS5_SETTLE_FLOOR_KIB=64), so the absolute numbers are not main's. No traces were captured.Imported from boykopovar/AnyPS5. Originally posted by Scramblrrrr on 2026-10-18T08:38:55Z.
I am preparing a 007 First Light Windows cross-test of dc86eb93e32700178bb886398345499a111b3496 on RTX 5070 Ti / 7800X3D / NVIDIA 617.42. The active fresh-main baseline is still completing cold pipeline compilation, so there is no result for this PR yet. The integration is 87f94c64b4d4 on main
e5c2b3c325, with the required public boot/resource PRs and an opt-in 16 MiB import window. Merge preview has one VulkanDevice.cpp conflict adjacent to that window option; your driver policy can be preserved independently.I will compare your in-place/copy switches in the same build, scene and warm cache and report official trace summaries plus draw GPU time. No duplicate implementation from me. Raw title data stays local. AI-assisted: Codex.
Imported from boykopovar/AnyPS5. Originally posted by Scramblrrrr on 2026-10-18T09:26:00Z.
Completed a Windows 007 First Light menu pair on integration
8bdc43094f996d1334776dac7dc71ca2092915f7, carrying this PR'sdc86eb93e32700178bb886398345499a111b3496on maine5c2b3c325. RTX 5070 Ti, NVIDIA 617.42, Ryzen 7800X3D, Windows 11 Pro 26200, Release, SPIRV-Tools OFF. The merge keeps your policy and the separate opt-in 16 MiB import window. All 51 selected native controls pass (23.77 s, zero skips), including driver selection and both input paths.Same binary, warm caches, 3840x2160, Performance mode, offline main menu with its animated background, no input during each sample. Only
APS5_DRAW_INPUTS_IN_PLACE=1versusAPS5_NO_DRAW_INPUTS_IN_PLACE=1changes. Shared settings: draw cache 1024, resource entries 16, host imports 4096 MiB, texture budget 2048 MiB, synchronous shader preparation, SDR override, profiling and 10 s summary collection. Identical 2 GiB free/28 GiB private guards. Both render correctly and were stopped intentionally after measurement.This single pair shows no clear gain in this scene (about 1.3% between arms, similar to movement/run variation). Recent fully-menu GPU counter reports put the draw class near 3 ms/present in both; compute dominates the GPU time. This does not contradict the draw-heavy Astro Bot result, and it does not measure level gameplay.
The first copied warm-up had a 43.455 s transition stall and resumed before the owned stop; I did not use it as a menu sample. Similar WAIT_REG_MEM_64 diagnostics occur in the previous baseline and imported control, and the copied repeat passed the transition, so there is no demonstrated copy-specific hang or regression.
Official
trace_digest.pyoutputs from six fully contained menu intervals in each arm:import8bd-b:
p99 ms ##@@@% 0-888.6
gpu ms @@%@@@ 0-187.7
copy8bd-a2:
p99 ms %%%@@@ 0-752.8
gpu ms @%%@%% 0-191.4
No title patches or time scaling. Raw title code/assets/descriptors/requests/logs remain local. AI-assisted: Codex.
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-19T08:33:03Z.
This pull request is labeled
perf, so it needs the summary line of a capture onmainand one with the change, from the same title, scene and machine, as the Performance report form asks. Please paste bothaps5-summary.jsonllines, attach the two traces and add the output oftools/trace_digest.py.Imported from boykopovar/AnyPS5. Originally posted by m335671 on 2026-10-19T11:35:32Z.
A/B on a CPU-bound UE5 title: Sword of the Sea (PPSA25344), Windows 11 26200, RTX 4070 12 GB, NVIDIA 617.42, Ryzen 9 7900, 3840x2160.
Build:
main36f60df9ewith this PR merged locally (head4a6069481; the patch is identical toff0ee0975, which is what I built; the later6df86af0fonly adds docs rows). Same binary for both sides:APS5_DRAW_INPUTS_IN_PLACE=1(in-place binding, as onmain);Both runs used
APS5_PROFILE_DRAW=1 APS5_PROFILE_GPU=1 APS5_TRACE_SUMMARY_EVERY=10 APS5_THREAD_PRIORITY=high, a warm shader cache and the same path: about 30 s on the title screen, then New Game, the opening cinematic and about 1 min in game. The figures are medians over each scene's 10 s summary intervals; intervals containing a hitch over 3 s are left out.[gputime]draw / presentThe PR does what it says on this title: draw GPU time halves on the title screen and drops about 5× in game. Frame time barely moves, because the title is CPU-bound on the queue worker:
queue worker 0x0is at 98–99 % busy in both runs, and in gameDriver.Packetis about 720–750 ms per frame, of whichmemory_waitis about 255–267 ms. I saw the same picture last night onmain40393b0f9with the pre-rebase head: draws went from 12.0 to 6.4 ms on the title screen.tools/performance_compare.py, in-game interval (baseline = in place, candidate = PR)Limits:
AI-assisted: yes (Claude Code). The build, the runs and this comment were done and written by Claude Code on my machine.
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-19T11:45:39Z.
Added the two missing rows to
docs/dev/ENVIRONMENT.md(APS5_DRAW_INPUTS_IN_PLACE,APS5_NO_DRAW_INPUTS_IN_PLACE), which was the only failing Conventions check. The driver policy, the A/B numbers from several GPUs and both new tests look right; merged.Imported from boykopovar/AnyPS5. Originally posted by Scramblrrrr on 2026-10-19T13:53:09Z.
Windows 007 cross-test of main's merged input policy, same binary162c34ee813b (main3bb15be09 + carried007 correctness prerequisites), 7800X3D/RTX5070Ti617.42/32GiB, 3840x2160, warm caches, observed offline idle moving main menu:
Settings differ only in APS5_NO_DRAW_INPUTS_IN_PLACE=1 vs APS5_DRAW_INPUTS_IN_PLACE=1 and trace path. All runtime module hashes match between arms. Same import4096MiB/window16MiB/cache1024/texture2048MiB/resource16/SDR flags, SPIRV toolsOFF. Correct menus observed both; no image-diff/audio/gameplay claim. One moving-menu pair, no clock lock: no clear effect here, not evidence against the Astro Bot result. No isolated pristine-main speed claim.
160 selected native passes plus one expected Linux-only import skip preceded the pair. Source manually tracked-clean; trace revision is162c34ee813b, dirty field is unknown because this worktree uses submodule junctions. The first cold trial had a stale trace revision from packaging before the final native build; excluded from this pair, raw trace unmodified. Repackaged full libs before these two arms and verified revision in staged driver.
AI-assisted: Codex. Only aggregate summaries/digests below; title code/captures remain local.
Copied official trace_digest output:
6 intervals, 302.2 to 363.3 s, 129 presents
NVIDIA GeForce RTX 5070 Ti, NVIDIA 617.42, Windows 10.0.26200, 3840x2160, commit 162c34ee813b
Imported official trace_digest output:
6 intervals, 264.9 to 326.7 s, 131 presents
NVIDIA GeForce RTX 5070 Ti, NVIDIA 617.42, Windows 10.0.26200, 3840x2160, commit 162c34ee813b