perf(agc): copy only the vertex records a draw fetches #9875
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/9875"
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 winstrex on 2026-10-22T20:14:44Z.
What
A draw copies each vertex range it binds from the V# base address up to the last record it fetches, but it reads nothing below its lowest record. In Hades (PPSA03355) gameplay, 99 % of the draws are indexed with a nonzero vertex offset. Over 3 s, a draw copied 112 KiB of vertex data on average and read 0.78 KiB of it, about 1.9 GB/s of copies on the draw committer. The vertex buffers there are rewritten every few draws, so a kept snapshot doesn't help: no copy was reused.
Now a copy starts at the lowest record the draw fetches:
(first vertex + lowest index) × stride. The index scan that finds the highest index now also returns the lowest one. Primitive restart indices count for neither, and kept index copies and kept index ranges store the lowest index too.first instance × stride.The buffer keeps the size and layout it has on
main, so the binding offset, the vertex offset, the indices andgl_VertexIndexdon't change. Only the bytes below the window are left unwritten. A kept vertex snapshot records where its valid bytes start:mainmakes.Writes are tracked over the whole range from the V# base address, as on
main, so the bytes a draw doesn't read still decide whether its snapshot can be reused. Tracking only the window would be correct but slower: a write collect is memoized by the page its range starts on, and the windows of draws over one buffer start on many different pages.APS5_POISON_VERTEX_PREFIX=1fills the unwritten bytes with0x7f, so a draw that read below its window would show in its frames. It is off by default.drawInputReuseTestsintests/Recorder.cpponly ran when the recorder tests were started without arguments, which no ctest entry does. It is now registered asagc_draw_input_reuse, with the window cases added.Overlap:
maincf528e78c6(3f43b8f92), for the conflict with #8756 below, the Mewgenics fix on top of it, and a merge withmain8ff4baf534(a00390354) for a conflict with #6642 in the list of tests thatCMakeLists.txtgives thelibcpath; the merge keeps both tests. #9712 is still open, and none of the #7895 series has changed these files since.CopyDrawInputthat creates the buffer. The two combine: a window copy writes fewer bytes into BAR. Whichever lands second keeps both.offsetoutput toReusableDrawSnapshot, so that a storage read can be served from a kept snapshot that contains it. The merge keeps both:offsetstays where #8756 put it, aftergeneration, so its callers don't change, and this PR'sfromandlowestfollow it. The one vertex caller passesnullptrforoffset. The two don't meet: the containing lookup only serves storage snapshots, and only a vertex snapshot can start past its address (ReusableDrawSnapshotandKeepDrawSnapshotrequirefromto be 0 for any other use), so every storage snapshot it finds holds its whole range.VK_EXT_primitive_topology_list_restart, usedHighestDrawIndex, which this PR replaces, and set the lowest index to 0. The merge withmain3a2b919816(69b3cf6a4) adapts it toDrawIndexRange, so those draws also bound the window, from their lowest kept index. c0b700f66 tests it:APS5_NO_LIST_RESTARTleaves the extension off, soagc_driver_list_restart_compactedtakes that path on any GPU, withAPS5_POISON_VERTEX_PREFIXset.main67092e70b5(59a1c9332c) stores the window and the lowest index with an owned entry too, and reuses it only for a draw that starts inside that window, as kept vertex snapshots already do.a409365521tests it, andb442da8d6emakes theAPS5_VERIFY_OWNED_DRAW_INPUTScheck compare only the part the entry holds.tools/pr_overlap.pyalso reports test registrations inCMakeLists.txtnear those of #6182, #6185, #9565 and #9626.Mewgenics regression, fixed in 2a9cbce9e
@XatiX found that
3f43b8f92dropped Mewgenics (PPSA37318) from 54–60 to 4–6 presents per second in its tutorial battle, with the vertex phase taking about 8 s of every 10 s on the draw committer, even while idle (report, scripted A/B with traces).The cause: a kept window snapshot only served draws whose window ended past its start. Draws over one shared vertex buffer at falling lowest vertices, or at rising ones once the pool evicts, each kept their own snapshot, every one sized to the whole range from the buffer's address. Together they overflowed the 1 GiB draw input budget, so every draw copied again.
2a9cbce9e lets a kept snapshot serve those draws by filling it in downward, as described above, and tracks writes over the whole range again.
A local benchmark (not part of the PR) records 4096 draws of 4 vertices over one 512 KiB vertex buffer with a 32-byte stride. Each draw's range runs from the buffer's address to its last vertex. It measures the steady state, after three warm-up frames of the same draws, as µs per draw, the mean of 3 runs:
main3f43b8f922a9cbce9eAt
3f43b8f92, the rising and falling cases copied 4094 and 4096 of the 4096 draws every frame.vertexWindowSeriesTestsinagc_draw_input_reusecovers this: 512 draws at falling vertices over one watched buffer must all get the guest's bytes from a single kept snapshot, and a later CPU store into it must not be served stale. The existing case for a read below a window now requires it to be filled into the kept snapshot. Both fail without the fix.@XatiX repeated the scripted comparison at
2a9cbce9e, with the same route and machine as the report (Windows 11, RTX 5080, driver 617.42, 3840x2160), against the same base:mainplus #11482, #7048 and a local libSceMouse change, 8b3d78400 (comment). Presents per 10 s, fromtools/trace_digest.py:2a9cbce9e3f43b8f92(earlier report)Both runs rendered correctly and logged no errors. Both sides ran with
APS5_PROFILE_DRAW=1and frame dumps enabled, so these numbers confirm the fix but are not this PR's performance measurement.Tested
Windows 11 (10.0.26300), NVIDIA GeForce RTX 5070 Ti, driver 621.01 (591.86 for the measurements marked as before the rebase), WinLibs GCC 15.2.0 r7, Release, with Overwolf's implicit Vulkan layers disabled.
Hades (PPSA03355), after the merge with
main67092e70b5: 533 presents in the 10 s window onmain67092e70b5and 600 (the 60 FPS cap) with this PR atb442da8d6e. Frame p50 / p90 / p99 goes from 18.6 / 20.5 / 24.5 to 16.7 / 16.9 / 17.2 ms, and the committer'sGraphics.Drawfrom 10.2 to 4.3 ms per frame. OneAPS5_TRACE_SECONDS=150:10capture per side,APS5_TRACE_EVENTS=1048576, same machine, scene, scripted input and session, noAPS5_PROFILE_*, log not redirected, no events dropped.hades-traces-main-67092e70b5.zip · hades-traces-pr-b442da8d6e.zip
Summary lines and trace_digest
main67092e70b5:seconds 150:10 from present 8171: 533 presents, frame p50 18.6 / p90 20.5 / p99 24.5 / max 43.3 ms, GPU busy 1.3 ms per present
NVIDIA GeForce RTX 5070 Ti, NVIDIA 621.01, Windows 10.0.26300, 1920x1080, commit
67092e70b5, dropped: noSlowest frames (largest slices inside each, inclusive)
Persistent spikes (frame time above the fastest frame that separates it from a longer frame; one entry per stall, not per frame)
Threads (ms per frame)
Largest slices (ms per frame, inclusive, all threads): Graphics.Draw 10.2, Driver.Packet 9.8, Driver.Packet.draw 6.4, Driver.Draw 6.2, Graphics.Draw.draw_and_resource_release 2.3, Driver.Draw.draw_enqueued 1.5, batch 1.3, Driver.Packet.dispatch 1.3, Driver.WorkerWait 1.2, Graphics.Draw.vertex_upload 1.2
Longest waits
Largest GPU batches (GPU ranges inside, and the CPU slices that recorded each, inclusive)
This PR,
b442da8d6e:seconds 150:10 from present 8937: 600 presents, frame p50 16.7 / p90 16.9 / p99 17.2 / max 19.8 ms, GPU busy 1.2 ms per present
NVIDIA GeForce RTX 5070 Ti, NVIDIA 621.01, Windows 10.0.26300, 1920x1080, commit
b442da8d6e, dropped: noSlowest frames (largest slices inside each, inclusive)
Persistent spikes (frame time above the fastest frame that separates it from a longer frame; one entry per stall, not per frame)
Threads (ms per frame)
Largest slices (ms per frame, inclusive, all threads): VideoOut.Flip 16.3, VideoOut.Flip.vblank_wait 15.8, Driver.Packet 7.1, Graphics.Draw 4.3, Driver.Packet.draw 3.1, Driver.Draw 3.0, Driver.Packet.rendering_wait 2.8, Graphics.Draw.draw_and_resource_release 1.8, batch 1.2, Driver.Packet.dispatch 0.8
Longest waits
Largest GPU batches (GPU ranges inside, and the CPU slices that recorded each, inclusive)
Hades (PPSA03355), gameplay, against
mained1e0ed08f: 51.8 FPS onmained1e0ed08fand 59.2 FPS with this PR at69aec25b3f, which is this branch merged with that samemain. The committer'sGraphics.Drawgoes from 14.9 to 11.8 ms per frame. Captured as the Performance report form describes: oneAPS5_TRACE_SECONDS=150:4capture per side, after one warm-up run of the scene and a restart of the title, on the same machine in the same session, with no otherAPS5_TRACE_*orAPS5_PROFILE_*switch and the log not redirected (the title wrote to its own console). The only otherAPS5_*variable isAPS5_PAD_INPUT_FILE, the scripted input, the same on both sides. No events were dropped, both builds are clean (dirty: false), NVIDIA driver 621.01.hades-form-main-ed1e0ed08.zip · hades-form-pr-69aec25b3.zip
Against the
mainof the moment,4bc9e779aa, the merge is clean:Measurements
mained1e0ed08f69aec25b3fGraphics.Drawper frame (ms,top_phases_ms_per_frame)aps5-summary.jsonl,mainfirst:tools/trace_digest.py,main:Slowest frames (largest slices inside each, inclusive)
Threads (ms per frame)
Largest slices (ms per frame, inclusive, all threads): Graphics.Draw 12.0, Driver.Packet 11.9, Driver.Packet.draw 9.0, Driver.Draw 8.7, Graphics.Draw.draw_and_resource_release 3.2, Graphics.Draw.validate 2.9, Driver.Draw.shader_compile_and_link 2.4, Driver.Draw.draw_enqueued 1.9, Driver.WorkerWait 1.4, Driver.WorkerWait.idle_and_completion_poll 1.3
Longest waits
Largest GPU batches (GPU ranges inside, and the CPU slices that recorded each, inclusive)
seconds 150:4 from present 8841: 237 presents, frame p50 16.7 / p90 17.7 / p99 19.8 / max 21.3 ms, GPU busy 1.4 ms per present
NVIDIA GeForce RTX 5070 Ti, NVIDIA 621.01, Windows 10.0.26300, 1920x1080, commit
69aec25b3f, dropped: noSlowest frames (largest slices inside each, inclusive)
Threads (ms per frame)
Largest slices (ms per frame, inclusive, all threads): Driver.Packet 7.9, VideoOut.Flip 7.3, VideoOut.Flip.vblank_wait 6.7, Driver.Packet.draw 6.2, Graphics.Draw 6.0, Driver.Draw 6.0, Graphics.Draw.draw_and_resource_release 3.0, Driver.Draw.shader_compile_and_link 1.9, batch 1.4, Driver.WorkerWait 1.2
Longest waits
Largest GPU batches (GPU ranges inside, and the CPU slices that recorded each, inclusive)
Earlier Hades captures (superseded): all with
APS5_TRACE_SECONDS=150:10plusAPS5_TRACE_EVENTS,APS5_TRACE_SUMMARY_EVERYandAPS5_TRACE_DIR, and with the log redirected, which the form does not allow; the pair above replaces them.main1a217758a5against4a5a263920: 47.1 against 60.0 FPS,Graphics.Draw16.3 against 11.3 ms. main · PRmain7a225bb303against41c56ed22: 50.3 against 60.0 FPS,Graphics.Draw15.2 against 11.2 ms. main · PRmaincf528e78c6against2a9cbce9e, with the Mewgenics fix: 45.4 against 53.9 FPS,Graphics.Draw15.0 against 11.6 ms. main · PRmain1da03c6f3against f223f45c1, after the rebase, two captures per side: 34.3 and 33.6 against 37.1 and 37.0 FPS,Graphics.Draw14.6–15.1 against 11.0–11.4 ms. main · PRmain4d646b9e4against 7c06af4af, before the rebase, two captures per side: 33.5–35.0 against 36.7–37.0 FPS,Graphics.Draw14.3–15.1 against 11.0 ms. main · PRThe Pathless (PPSA01825) (measured before the rebase, on
4d646b9e4against 7c06af4af): main menu, 96–98 presents per 10 s onmainand 99–101 with this PR, over the last six 10 s intervals of one run per side. Vertex copies are a small part of its draws. On currentmainit stops after about 33 s withstoring storage image results pending over memory outside the write watch without the guest bytes saved before them is not implemented(#7017), so both sides of this measurement have #7048 applied locally. That error wasn't investigated further.LEGO Horizon Adventures (PPSA14632) (measured before the rebase, on
4d646b9e4against 7c06af4af): loading after the graphics quality screen, 65–69 presents per 10 s onmainand 72–73 with this PR (one run per side). Its vertex buffers are mostly static, so this also covers reusing and filling in kept window snapshots.Frames, pixel by pixel (measured before the rebase, on
4d646b9e4against 7c06af4af): five titles, two runs ofmainand one run of this PR withAPS5_POISON_VERTEX_PREFIX=1, with frames dumped byAPS5_DUMP_FRAMESat full resolution. The titles don't play out the same from run to run, so only the frames that are identical in bothmainruns can be compared. The poisoned run matches all of them in ANIMAL WELL (55) and The Pathless (24), and all but one in Hades (2 of 3) and LEGO Horizon Adventures (6 of 7). Balatro has none, because its background animates. The two that differ are a loading bar that is one column longer and a loading icon drawn a few frames earlier. The other frames show the same scenes at slightly different moments, with no stray geometry from the poisoned bytes.Frame comparison
mainrunsValidation layer, after the rebase: the draw and VideoOut tests pass on
main1da03c6f3(73) and on this PR f223f45c1 (76, the 3 new ones included), with noVUID-messages on either side. They ran withVK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation,ANYPS5_NO_SHADER_CACHE=1andANYPS5_REQUIRE_VULKAN=1, and neither log haswas not found but was requested by env var VK_INSTANCE_LAYERS. Before the rebase the same set gave 70 and 73.Tests
ctest -V -Rwith^(agc_driver_graphics|agc_draw_.*|agc_recorder_.*|agc_driver_draw_.*|agc_vertex_.*|agc_embedded_vertex_fetch.*|agc_driver_.*vertex.*|agc_driver_pipelined_indirect_draw|agc_driver_queued_index_read_order|agc_driver_mesh_index_cache|agc_driver_.*provoking_vertex|guest_indexed_draw|agc_driver_flip.*|video_out_flip_.*)$.New tests:
drawIndexRangeTests,vertexCopyStartTestsand theClampDrawIndicescases intests/Graphics.cppcover the window start: restart indices, the lowest index after clamping, interleaved attributes, per-instance attributes, zero stride and a start past the range.agc_draw_input_reusecovers reusing, filling in and keeping window snapshots, and the lowest index of kept index copies and ranges.DrawOffsetIndicesdraws with a lowest index of 3, a strip that starts with a restart index, and write-watched indices drawn twice, so the second draw takes its lowest index from the kept index copy. It also runs asagc_driver_draw_offset_indices_poisoned, and with indices bound in place asagc_driver_draw_offset_indices_poisoned_in_place. Sinceb3e5c7c585its indices sit in a registered guest block; before, they were constants in the test image, which the allocation registry does not cover, so that variant copied them instead of binding them in place.8ee49d287d: 26 changes to the new code. One, tracking writes over the whole range instead of the window, is now the code itself: the Mewgenics fix made it so, because tracking only the window turned out slower (see above). The other 25 were rebuilt one at a time and run against the tests above, at8ee49d287dand, for the in-place index change, again atb3e5c7c585. 21 make a test fail. The other 4:ReusableDrawSnapshot. Both check more bytes than needed (the part below the kept window is read from the guest again anyway), so they can only drop a snapshot, never serve stale bytes;After the merge with
main67092e70b5, with NVIDIA driver 621.01 and the Overwolf layers disabled: the AGC, VideoOut and shader set (-R "agc|video_out|shader") runs onmain67092e70b5(1599) and ona409365521(1603), withAPS5_DRAW_PIPELINEunset and set, with noVUID-messages on either side and the layer loaded.agc_driver_quad_pixel_maskfails on both sides, and withAPS5_DRAW_PIPELINE=1so doagc_driver_draw_recapture_on_change,agc_driver_queued_constant_ram_dumpandagc_driver_draw_unsupported_buffer_type_skip_refused.agc_owned_draw_inputs_verifyfailed ona409365521only;b442da8d6efixes it, and atb442da8d6ethe owned and draw input tests pass under the layer with both settings. Fullctestsuite ata409365521: 4793 of 4796 pass;vulkan_validation_gate_commandsandagc_driver_quad_pixel_maskfail the same way onmain, and the third is thatagc_owned_draw_inputs_verify.After the merge with
mained1e0ed08f, at69aec25b3f, with NVIDIA driver 621.01: the draw set withagc_driver_list_restart.*passes onmained1e0ed08f(108) and on this PR (112), withAPS5_DRAW_PIPELINEunset and set, with noVUID-messages on either side.VK_LOADER_DEBUG=layershowsVK_LAYER_KHRONOS_validationinserted and noVK_LAYER_OW_*layer on both sides. WithAPS5_DRAW_PIPELINE=1,agc_driver_draw_unsupported_buffer_type_skip_refusedfails on both sides as before.agc_driver_vertex_elected_atomic_maxis skipped on both sides because this GPU runs vertex programs in subgroups.After the merge with
main1a217758a5, at4a5a263920, with NVIDIA driver 621.01: the draw set withagc_driver_list_restart.*passes onmain1a217758a5(105) and on this PR (109), withAPS5_DRAW_PIPELINEunset and set, with noVUID-messages on either side.VK_LOADER_DEBUG=layershowsVK_LAYER_KHRONOS_validationinserted and noVK_LAYER_OW_*layer on both sides. WithAPS5_DRAW_PIPELINE=1,agc_driver_draw_unsupported_buffer_type_skip_refusedfails on both sides as before.agc_driver_vertex_elected_atomic_max, new inmain, is skipped on both sides because this GPU runs vertex programs in subgroups.After the merge with
main7a225bb303, at41c56ed22, with NVIDIA driver 621.01: the draw set withagc_driver_list_restart.*passes onmain(83) and on this PR (87), withAPS5_DRAW_PIPELINEunset and set, with noVUID-messages on either side.VK_LOADER_DEBUG=layershowsVK_LAYER_KHRONOS_validationinserted and noVK_LAYER_OW_*layer on both sides. WithAPS5_DRAW_PIPELINE=1,agc_driver_draw_unsupported_buffer_type_skip_refusedfails on both sides as before.After the merge with
main3a2b919816, atc0b700f66, with NVIDIA driver 621.01: the draw set, now withagc_driver_list_restart.*, passes onmain(83) and on this PR (87), withAPS5_DRAW_PIPELINEunset and set, with noVUID-messages on either side and the layer loaded. WithAPS5_DRAW_PIPELINE=1,agc_driver_draw_unsupported_buffer_type_skip_refusedfails on both sides as before. This GPU hasVK_EXT_primitive_topology_list_restart, so onlyagc_driver_list_restart_compactedtakes the compaction path. Its draw keeps indices 3 4 5 after a dropped 5 4. Taking the lowest index from the first kept-count indices before compaction (4), or adding 1 to it, makes it fail. Keeping0, or taking the lowest of all indices before compaction, passes: both copy more, never less.After the merge with
main8ff4baf534, ata00390354, with NVIDIA driver 621.01: the draw set (the one below without theagc_driver_flipandvideo_out_fliptests) passes onmain(81) and on this PR (84), withAPS5_DRAW_PIPELINEunset and set, with noVUID-messages on either side and the layer loaded. WithAPS5_DRAW_PIPELINE=1,agc_driver_draw_unsupported_buffer_type_skip_refusedfails on both sides as before.With the Mewgenics fix, at
2a9cbce9e, with NVIDIA driver 621.01, againstmainf55190f7e3:main(98) and on this PR (101), withAPS5_DRAW_PIPELINEunset and set, with noVUID-messages on either side and the layer loaded. WithAPS5_DRAW_PIPELINE=1,agc_driver_draw_unsupported_buffer_type_skip_refusedfails on both sides as before.vertexWindowSeriesTestsincluded.After the merge with
maincf528e78c6, at3f43b8f92, with NVIDIA driver 610.88:Validation layer: a wider draw and VideoOut set (below) passes on
main(98) and on this PR (101), withAPS5_DRAW_PIPELINEunset and set, with noVUID-messages on either side and the layer loaded. WithAPS5_DRAW_PIPELINE=1,agc_driver_draw_unsupported_buffer_type_skip_refusedfails on both sides with the same driver failure (buffer descriptor uses an unsupported type).Tests
ctest -V -Rwith^(agc_draw_.*|agc_driver_draw_.*|agc_driver_flip.*|agc_driver_graphics|.*vertex.*|agc_recorder_.*|agc_driver_mesh_.*|agc_driver_pipelined_indirect_draw|agc_driver_queued_index_read_order|guest_indexed_draw|video_out_flip_.*)$. #8756'scontainingSnapshotTestsruns inagc_draw_snapshot_cap.Full
ctestsuite with the GPU (--parallel 4 --timeout 120): 2280 of 2291 pass and 7 are skipped. The other 4 (log_macros,log_macros_timestamps,agc_host_import_cut_lifetimeandagc_driver_depth_plane_partial_store) fail the same way onmaincf528e78c6.The measurements other than the Hades capture with the fix are from before the merge.
Full
ctestsuite before the merge, at f223f45c1 (--parallel 4 --timeout 120): 1894 of 1906 pass and 6 are skipped. The other 6 fail the same way onmain1da03c6f3:log_macros,log_macros_timestamps,agc_driver_sample_order,agc_driver_sample_order_grid_reference,agc_driver_sample_order_recipe_depth_locationsandagc_driver_wave32_subgroup. Before the rebase, the fork's Windows CI passed on 7c06af4af (run 39838320780), but its runner has no Vulkan device and skips the GPU tests.tools/check_conventions.pypasses.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)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T00:45:04Z.
Review: CHANGES_REQUESTED
Reviewed — changes requested
The current-head draw tests and performance report are extensive, but the reported Soul Hackers 2 stall remains unresolved; I cannot recommend approval while the PR has a repeatable adverse result that has not yet been compared under matched conditions.
What I checked
c0b700f66448fa43004de25e70f7dee5faa6e431, the latest report and the currentmaincomparison.Results
Raw status
windows pendingRaw status
conventions passRaw status
linux skipping; register-context skipping; relinker skipping; relinker-asan skipping; write-watch skippingAuthor-reported results
Atc0b700f66, the draw set passed onmain(83) and the PR (87), withAPS5_DRAW_PIPELINEboth unset and set and noVUID-messages. I did not independently run it.Author-reported results
The description contains paired main/change captures, traces, and digests for Hades. The latest capture with the Mewgenics fix reports 45.4 to 53.9 FPS andGraphics.Draw15.0 to 11.6 ms/frame.Negative control
The Soul Hackers 2 report used a base containing #12227 and #11602. It says the game stalled after about seven seconds in 3/3 PR runs and in 1/4 base runs, with the PR runs showing 123 file opens before stopping. That is concerning evidence, but the unequal run counts and the base's one stall do not establish that this PR introduced the problem.
Findings
Blocking
APS5_PROFILE_*variables, PR runs with and withoutAPS5_POISON_VERTEX_PREFIX=1, and alternating base runs. Please add those results or otherwise explain the difference before requesting approval. If the stall occurs with poison enabled, include the affected frame and title state; if it also occurs on base at a similar rate, report that too. Until then, this remains an unresolved title-level regression risk, not a proven defect in this change.Non-blocking
Sources
c0b700f66448fa43004de25e70f7dee5faa6e431.mainat3a2b91981651569163768854a1fcdc7193b6667b.2026-10-28T15:35:26Z.Not verified
I did not reproduce the title stall, run the requested alternating runs, build the project, or independently verify the attached traces. The hosted Windows job is pending; Linux and specialized jobs are skipped.
To get this to a good state
Please post the matched Soul Hackers 2 runs requested in the thread, with the exact base and PR revisions, run order, environment, and whether the poisoned run changed the image or loading behavior. Then the review can distinguish a PR-related failure from a timing-dependent stall.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T22:24:02Z.
Review: CHANGES_REQUESTED
Re-checked — new head, changes requested
The matched Soul Hackers 2 report addresses the earlier stall concern, but the required performance and validation comparisons still use an older
mainthan the one this PR must integrate with.What I ran
34d8d68cf5bba6e4c6aece959e9e15ff4220afaa; PR base:bb04a4f1ea0175e9e4f149f0359a764d62ff3296; livemain:4c8cff191609bc5f28bf9ee2f93672b531285aa4.mainhas changed production code inDraw.cpp,Recorder.cpp,VertexInput.hppandVulkanDevice.cpp, all touched by this PR. That makes the older comparison evidence insufficient for the integrated tree.Results
98564fbbf9720183015bf566b471a137a454f8cdbb04a4f1ea/34d8d68cf5; all reached the first map and continued to 150 seconds. Two additional PR runs withAPS5_POISON_VERTEX_PREFIX=1showed the same frames. This resolves the earlier reported stall for those tested conditions.maincf528e78c6and change2a9cbce9e; neither is the currentmain/integrated head.Unedited local check output
git diff --checkproduced no output and exited 0.Findings
Blocking
mainand change summary lines from the same machine and scene. Since the report'scf528e78c6baseline, currentmainhas substantial changes in PR-touched AGC production files, includingDraw.cpp. Please integrate livemain, then capture the current-main baseline and integrated PR head in the same Hades scene and machine, with their summary lines, traces and digests.mainand the integrated PR head withctest -V,VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation,ANYPS5_NO_SHADER_CACHE=1andANYPS5_REQUIRE_VULKAN=1. Report exact SHAs, GPU/driver/OS, layer-load confirmation and any newVUID-messages. The posted comparison does not cover currentmain4c8cff1916and the integrated head.Non-blocking
Sources
mainNot verified
I did not build, run CTest, run GPU tests, or capture title performance locally. The Soul Hackers 2 runs and existing performance/validation reports are author-reported. Linux and specialized CI jobs were skipped.
To get this to a good state
Integrate live
main, publish the matched performance pair and focused validation comparison on the new head, then request re-review. I will rerun the same non-build checks and review the exact updated head and CI.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T23:50:13Z.
Review: CHANGES_REQUESTED
Re-checked — new head, changes requested
The Hades measurements in the new comment are useful, but the required performance report for this head and current
mainis not present in the PR description.What I ran
41c56ed22ae0a9008b2f3322faa229ed5a0e0ddc; recorded PR base:7a225bb303c1a452057000f32b70b56486625fd6.upstream/main:1189ec3003672bb364dd9f3119ead7b3976e3c83; merge preview is clean, treea6155808cf8aaef355a464d437528444be86d234.Results
git diff --checkmain7a225bb303vs PR41c56ed22; same reported machine and capture setupcf528e78c6/2a9cbce9ee), but not the new7a225bb303/41c56ed22pair, its two summary lines, trace attachments and digest outputUnedited local command output
The author-reported Hades pair and AGC comparison are in the re-review request. They use
main7a225bb303; the currentmainis1189ec3003672bb364dd9f3119ead7b3976e3c83. Since7a225bb303, currentmainchanged guest-buffer import/resource-validation paths and shared test registration, so the older pair does not establish the measured result for today's baseline.Findings
Blocking
The
perfreport is incomplete for the updated measurement. Please add the exactaps5-summary.jsonlline for currentmainand this head, attach both matching traces, and includetools/trace_digest.pyoutput in the PR description. Capture both against currentmain1189ec3003672bb364dd9f3119ead7b3976e3c83and this head using the same title, scene and machine; the existing merge preview is clean, so I am not asking for a rebase solely because the branch is behind.Non-blocking
None found in this source re-check.
Sources
Not verified
The reported performance and validation tests are author-run; I did not independently run them. The current hosted Windows job was still running, and the product Linux job was skipped.
To get this to a good state
Post the complete matched capture pair on the current base, including both summary lines, both traces and digest output. I will rerun the same non-build checks and reassess the exact new head.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-30T04:14:41Z.
Review: CHANGES_REQUESTED
Re-checked — new head, changes requested
The paired result is on this PR’s measured base, so a newer-main capture is not required solely because main advanced; the posted captures still use extra trace switches forbidden by the performance form.
What I ran
4a5a26392074ccf1b1c0ca6e5e186e7278a00297; PR base and measured main:1a217758a55c09e817366fa4411daac854eeb3f9; current main:5ecef095b61e7a406b279c97896f3a8a6fbd6353.1f4d5a28b9682386d02bec8efdbd46cfb7fb41d9.Results
1f4d5a28b9682386d02bec8efdbd46cfb7fb41d9.All conventions checks passed.Recorder.cpp,VertexInput.hpp,GuestBufferMemory.cpp, orShaderResources.cpp. The shared production paths changed areDraw.cpp,Draw.hpp, andVulkanDevice.cpp; I found no specific change to the vertex-copy implementation that invalidates this pair.1a217...and PR4a5a...summaries, traces, and digests from the same reported machine/session. The author reports 471 vs 600 presents in the 10-second window andGraphics.Draw16.3 vs 11.3 ms/frame. These are author-reported results, not independently reproduced.APS5_TRACE_EVENTS=1048576andAPS5_TRACE_SUMMARY_EVERY=10; the performance form says to set no otherAPS5_TRACE_*orAPS5_PROFILE_*switch. The pair therefore does not meet the report protocol.VUID-messages. I did not run these tests locally.Unedited local command output
git merge-tree --write-tree upstream/main upstream/pr/9875git diff --check upstream/main...upstream/pr/9875exited 0 and produced no output.python3 tools/check_conventions.py --base upstream/main --head upstream/pr/9875The first
git diff --name-onlycommand produced no output. The second produced:Findings
Blocking
The summary lines show that the captures set
APS5_TRACE_EVENTSandAPS5_TRACE_SUMMARY_EVERYin addition to the permitted capture interval. Please recapture the same main and PR builds in the same scene/session without additionalAPS5_TRACE_*orAPS5_PROFILE_*switches, then replace the summary lines, traces, and digests with output from those captures.Non-blocking
I withdraw my previous request for another pair solely because main advanced from
1a217...: the reported main is this PR’s declared base, the PR includes that base, and its merge preview onto current main is clean. The repository’s performance rule asks for a matched main/change pair, not a capture against the newest main on every review refresh. I found no current-main change to the vertex-copy implementation that would invalidate this pair.Sources
Not verified
I did not run a local build, GPU test, or capture. The performance and Vulkan-validation results above are author-reported. The current Windows hosted job was in progress at the last status refresh.
To get this to a good state
Replace the pair with captures that follow the linked form, including the exact summary lines, matching traces, and digests. I will rerun the same non-build checks on the new head.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-30T15:19:17Z.
Review: CHANGES_REQUESTED
Re-checked — new head, changes requested
The new head incorporates current
main, but the performance evidence still uses an earlier source tree and capture switches prohibited by the repository's report form.What I ran
Reviewed exact head
69aec25b3ffabed6af83e8bf305c2d245e74fccbagainst PR base/currentmained1e0ed08fc2452192df91793a33dd0cc7ad5212on Debian 12 x86_64, Python 3.11.2, GCC 12.2.0. The current-main merge preview is clean; I did not build or run CTest or GPU captures locally.Results
55eb85a6bfa9c7d5ac9d43810b2bb88b6dbd3d6f. The current head includes currentmain.VulkanDevice.cpp,Draw.hpp,Recorder.hpp,Draw.cppandRecorder.cppchanged between measured base1a217758a5and currentmain.main1a217758a5and PR commit4a5a26392074, not the current base/head. Both summary lines include extra trace switches forbidden by the current performance form.Selected unedited output
Negative control
Not run locally. The PR reports that the
vertexWindowSeriesTestscases fail without the snapshot-fill fix; I did not build an exact-head binary to exercise that control.Findings
Blocking
The performance form requires a base/change pair on the same machine and scene, with no extra
APS5_TRACE_*orAPS5_PROFILE_*switches. The posted lines setAPS5_TRACE_EVENTSandAPS5_TRACE_SUMMARY_EVERY, so the attached captures do not meet that protocol. They also comparemain1a217758a5with PR commit4a5a26392074, while the current head is69aec25b3f; between that measured base and currentmain, the five production files listed above changed. Please capture a new pair on currentmained1e0ed08fc2452192df91793a33dd0cc7ad5212and exact PR head69aec25b3ffabed6af83e8bf305c2d245e74fccb, using only the permitted capture-window setting, with matching scene/settings/machine. Add both summary lines, both traces and the uneditedtools/trace_digest.pyoutput.The earlier Vulkan-validation comparison is also on the
1a217758a5base. Since currentmainchanged AGC production files involved in this PR, rerun the focused validation comparison on currentmainand this exact head, and report any newVUID-messages.Non-blocking
The PR-specific code at
4a5a26392074is an ancestor of the new merge head; no local build or GPU result was produced in this review. The current hosted checks were still pending.Sources
Not verified
No local build, CTest, GPU validation run, game capture or trace digest was performed. Author-reported tests and captures are on earlier heads and were not independently reproduced.
To get this to a good state
Post a compliant current-base/current-head Hades pair with the two summary lines, trace attachments and digest output; repeat the focused AGC validation comparison on the same base/head. I will re-run the no-build checks and inspect the new evidence before reviewing again.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-31T22:54:57Z.
Review: APPROVED
Reviewed — looks good
The matched performance capture now meets the repository protocol, current-base validation shows no new Vulkan findings, and I found no remaining blocking issue.
What I ran
Reviewed exact head
a3fc34a47719e664df1c47f9609408803d38c330; the PR's recorded base isf776fddcffd1cfece220ecdd894371988b164f6a, and currentmainis7a5d9bf02af636382aec927593b1a5867899ed0f. The merge preview against currentmainwas clean (tree4219b4ec1ef59184a070376ae0713532a1e078fd). The six AGC production-file patches from the measured base/change pair have the same stable patch IDs as the current base/head patches, and currentmainhas no changes in those six paths since the PR's recorded base. Environment: Debian Linux 6.1, Python 3.11.2, GCC 12.2.0. I did not build or run CTest locally; I did runtrace_digest.pyon both attached traces.Results
git diff --check.trace_digest.pyran successfully on each trace. The measured production diff is patch-ID identical to the six corresponding current-base/head production patches.mainf776fddcffd1and this exact head, the author reports 115 base / 119 PR cases. WithAPS5_DRAW_PIPELINEunset, all passed; with it set, one unsupported-buffer-type case failed on both sides, while the four new tests passed on the PR. NoVUID-messages were reported; the same vertex elected-atomic test was skipped on both sides. I did not run these tests.Selected raw output
Precheck limitation
The no-build precheck passed diff and convention checks but could not complete its ABI/test-quality stages because those helper scripts are not present in its isolated PR snapshot. The CMake test-fragment glob and the three changed fragment registrations were inspected directly.
Findings
Blocking
None.
Non-blocking
The hosted Linux product job and specialized platform/GPU jobs were skipped. The author supplied current-base validation results for the GPU-dependent change; I have not independently reproduced those runs.
Sources
main.Not verified
I did not locally build the project, run CTest, reproduce the Windows GPU/Vulkan validation report, or test on an AMD GPU or a PS5 console. The hosted Linux product job was skipped.