perf(agc): upload a storage image over several host imports on the GPU #11485

Merged
QRMOE merged 2 commits from upstream-pr/11485 into main 2026-11-12 04:15:26 +00:00
QRMOE commented 2026-10-26 16:54:53 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by QRMOE on 2026-10-26T16:54:53Z.


What

A storage image whose guest range no single host import covers was uploaded through the CPU even when every piece of it was imported: StorageTexture::upload asked HostImportFor for one import of the whole surface, and without it read the surface through GuestMemory::ReadCommitted, which also waits for the GPU writes pending over it. Write-back already handles the same layout: it falls back to importSegments() and stores through each import (writeBackWindows). With the 8 MiB import window and aligned power-of-two import blocks, an image over registered ranges smaller than the window that crosses a block edge always lands in this case. RESIDENT EVIL requiem (PPSA31246) maps its render targets in 2 MiB pieces, so its 3840x2160 targets (about 32 MiB) took the CPU path on every refresh.

upload now falls back to importSegments() for block-unit images, as write-back does, and refresh treats such an image as direct. uploadWindows takes the import segments: with one segment it is unchanged; with several, each segment's pieces are found in its own import and unit shadow (ShadowSources), each window's tiled bytes are copied on the GPU into one device buffer, and the windows are detiled from it as from a slab. Bytes of a window outside the runs (the rest of a tail block) are copied from the import that holds them. The copies are recorded into the open batch and noted as pending reads of the import ranges, like the single-import detile.

Tested

Windows 11 Home 26200, Ryzen 7 9800X3D, AMD Radeon RX 9070 XT (AMD 32.0.31021.1015, Vulkan 1.4.349), WinLibs GCC 15.2.0 r7, Release. The head is 1c01a02411 on main 8ff4baf534 (rebased; Texture.cpp conflicted with #10696, whose CollectWrites refresh now runs inside the new if (!segments.empty()) block, after the segments are imported). The regression tests and the validation comparison below were run on that head; the title runs further down were run on the earlier head.

  • agc_storage_writeback_blocks gains uploadBlockTests: a 64 KiB R_X 1024x1024 image, once over 64 adjacent 64 KiB pieces (one import covers it) and once 64 KiB in, over 66 pieces (two aligned import blocks, so two segment imports). Each is created from a byte pattern, must leave a StorageUpload pending read in the recorder (the GPU-direct path; the CPU path leaves none), and is then written back unchanged; every guest byte must still match the pattern.

    • A third case puts the same 66 pieces in 2 MiB import windows, so the surface spans three segment imports.
    • uploadShadowedSegmentTests covers the gathered-slab branch of uploadWindows: the surface sits 1 MiB into write-watched memory over three 2 MiB imports, and one whole unit in each import's part of the surface is held fresh by a unit shadow slab, filled with its own byte (0xc1-0xc3) that guest memory doesn't hold. The image is uploaded, written back unchanged and published; the slab-held units must come back with the slab bytes and every other byte must match the pattern.
    • On main (Texture.cpp and Texture.hpp from 8ff4baf534, with these tests): the two-segment and three-segment cases fail with the upload took the CPU path. With this PR: all four cases pass, GPU-direct, 4194304 of 4194304 bytes as expected, 196608 of 196608 from the slabs.
    • With the slab branch broken on purpose (gathered slab pieces copied from the import instead of the slab), the shadowed case fails with the round trip changed 195840 bytes, 195840 of them in the slab-held units, so it does exercise that branch.
  • Khronos validation layer (Vulkan SDK 1.4.363.0), same machine and GPU, ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, ctest --test-dir build -R <pattern> -V over the 23 agc_storage_*, agc_driver_storage_*, agc_driver_graphics and agc_driver_bda_device tests on 8ff4baf534 (22 on 88795ed448): neither log contains was not found but was requested by env var VK_INSTANCE_LAYERS (with VK_LOADER_DEBUG=layer the loader inserts VK_LAYER_KHRONOS_validation from the SDK's VkLayer_khronos_validation.dll); VUID- occurrences are 0 on main and 0 with this PR; main (8ff4baf534 Texture.cpp and Texture.hpp, with this PR's tests) passes 22 of 23 (agc_storage_writeback_blocks fails, its multi-segment cases taking the CPU upload), this PR 23 of 23. Before the rebase the same comparison on 88795ed448 gave 21 of 22 and 22 of 22.

    • Gather buffer size: with several segments, uploadWindows allocates one device buffer holding the tiled bytes of every window it detiles, each window rounded up to 256 bytes, kept by the recorder until the batch retires. For a whole-surface upload the windows cover the surface, so the buffer is the surface's guestBytes plus at most 255 bytes per window; a partial upload gathers only its runs. For a 3840x2160 64 KiB R_X target (DescribeSurface, height padded to 2176): 33,423,360 bytes (31.9 MiB) at 4 bytes per texel, 66,846,720 (63.8 MiB) at 8 and 133,693,440 (127.5 MiB) at 16; with a full 12-level mip chain at 4 bytes, 46,071,808 (43.9 MiB). Only surfaces that no single import covers take this path.
    • @Sumaiter ran the earlier 22 tests on an NVIDIA GeForce RTX 4060 Laptop GPU (driver 596.21) at this head and at main 88795ed448: 22 of 22 each, 0 VUID-, and the same negative control fails as expected.
  • On the previous base (main 7a01e6a494), tools/select_tests.py selected 1524 of 2467 tests for this diff, -j4, ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1: 7 failures, all also failing on main on this machine: select_tests, nid_database_cache, agc_host_import_cut_lifetime, agc_driver_depth_plane_partial_store, agc_driver_sample_order_grid_reference, guest_timed_join_import_libkernel_sys, guest_timed_join_import_libkernel_web.

  • Title: RESIDENT EVIL requiem (PPSA31246, 01.200.000), main menu, same machine, four runs in one session alternating the two builds (base, this PR, base, this PR), same script and environment (APS5_TRACE_SECONDS=660:20 APS5_TRACE_SUMMARY_EVERY=30 APS5_PROFILE_GPU=1 APS5_LOOP_GUARD=100000, no APS5_PROFILE_DRAW), after one warm-up run of the base build. Both builds are commits with a clean tree, so the summary lines carry dirty: false:

    • Base e08df2b41307: main 88795ed448 with #10935, #10304, #9950, #11199 and #11369 merged (the title stops earlier without them), and the merge of #8898 reverted: on current main the title stops at boot with compute shader ...: reads or writes a converted float image with 16-bit data, which is not implemented (#11580 implements that path; it has not been run with the title yet).
    • This PR c1ed7352b4e9: the base with this branch merged; the diff between the two is this PR's three files.
    run build commit presents in 20 s frame p50 / p90 / p99 / max (ms) GPU busy per present (ms)
    b1 base e08df2b41307 93 214.3 / 226.7 / 290.0 / 290.0 68.0
    c1 this PR c1ed7352b4e9 104 187.9 / 197.7 / 218.6 / 521.4 64.4
    b2 base e08df2b41307 93 214.3 / 227.3 / 266.4 / 266.4 65.0
    c2 this PR c1ed7352b4e9 104 182.4 / 195.5 / 489.3 / 767.1 65.8
    • With this PR the median frame is 182 to 188 ms against 214 ms, 104 presents per 20 s against 93 (about +12 %), in both pairs.
    • c1 and c2 each have one or two slow frames (521 ms in c1, 767 and 489 ms in c2; base maximum 290 ms over its two runs). Matched, repeated control runs of both builds are still to be done; until then the slow frames are unexplained. In each, one dispatch on queue worker 0x0 runs for 300 to 590 ms while the GPU is idle and other queues wait on its memory; the time is not inside any traced slice. Five later runs of the same scene on builds that contain this PR's change had none: the four runs of #8887 on top of this PR (5c93abe8121c, maximum 231 to 235 ms) and one more run of c1ed7352b4e9 with the worker sampler (109 presents, p50 183.6 ms, maximum 239.6 ms). The slow frames are intermittent and not shown to come from this PR; two base runs are too few to rule them out there. This PR does not claim an improvement of the frame-time tail.
    • Traces of b2 and c2: aps5-trace-menu-base-e08df2b41307.json.gz, aps5-trace-menu-11485-c1ed7352b4e9.json.gz.
aps5-summary.jsonl window lines, b1, c1, b2, c2
{"commit":"e08df2b41307","dirty":false,"env":{"APS5_DUMP_FRAMES":"100000","APS5_DUMP_FRAMES_EVERY":"20","APS5_LOG_TIMESTAMPS":"1","APS5_LOOP_GUARD":"100000","APS5_NO_PROFILE":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_PROFILE_GPU":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"660:20","APS5_TRACE_SUMMARY_EVERY":"30"},"gpu":"AMD Radeon RX 9070 XT","driver":"AMD proprietary driver 26.6.2 (LLPC)","os":"Windows 10.0.26200","cpu":"AMD Ryzen 7 9800X3D 8-Core Processor","cpu_threads":16,"memory_mib":32313,"title_id":"PPSA31246","title":"RESIDENT EVIL requiem","content_version":"01.200.000","resolution":"3840x2160","window":{"spec":"seconds 660:20","first_present":3720,"ms":20083.213},"presents":93,"frame_ms":{"p50":214.347,"p90":226.734,"p99":289.952,"max":289.952},"gpu_busy_ms_per_present":67.952,"worker_busy_pct":{"queue worker 0x38":0.042,"queue worker 0x20":46.649,"queue worker 0x0":99.389,"queue worker 0x28":80.323},"top_phases_ms_per_frame":{"Driver.Packet":488.467,"Driver.Packet.memory_wait":218.719,"Driver.Packet.dispatch":205.718,"Driver.Dispatch":173.243,"Resources.Complete":106.721,"Vulkan.Dispatch":80.859,"Vulkan.Dispatch.shader_resources":78.897,"Graphics.Draw":75.724},"trace_dropped":false,"trace":"aps5-trace-e08df2b41307-19260.json.gz"}
{"commit":"c1ed7352b4e9","dirty":false,"env":{"APS5_DUMP_FRAMES":"100000","APS5_DUMP_FRAMES_EVERY":"20","APS5_LOG_TIMESTAMPS":"1","APS5_LOOP_GUARD":"100000","APS5_NO_PROFILE":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_PROFILE_GPU":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"660:20","APS5_TRACE_SUMMARY_EVERY":"30"},"gpu":"AMD Radeon RX 9070 XT","driver":"AMD proprietary driver 26.6.2 (LLPC)","os":"Windows 10.0.26200","cpu":"AMD Ryzen 7 9800X3D 8-Core Processor","cpu_threads":16,"memory_mib":32313,"title_id":"PPSA31246","title":"RESIDENT EVIL requiem","content_version":"01.200.000","resolution":"3840x2160","window":{"spec":"seconds 660:20","first_present":4324,"ms":20026.206},"presents":104,"frame_ms":{"p50":187.865,"p90":197.666,"p99":218.649,"max":521.423},"gpu_busy_ms_per_present":64.448,"worker_busy_pct":{"queue worker 0x38":0.047,"queue worker 0x20":49.908,"queue worker 0x0":98.993,"queue worker 0x28":85.057},"top_phases_ms_per_frame":{"Driver.Packet":450.326,"Driver.Packet.memory_wait":219.756,"Driver.Packet.dispatch":151.962,"Driver.Dispatch":133.122,"Graphics.Draw":79.329,"Graphics.Draw.draw_and_resource_release":78.618,"Resources.Complete":76.338,"Driver.Packet.draw":44.702},"trace_dropped":false,"trace":"aps5-trace-c1ed7352b4e9-3224.json.gz"}
{"commit":"e08df2b41307","dirty":false,"env":{"APS5_DUMP_FRAMES":"100000","APS5_DUMP_FRAMES_EVERY":"20","APS5_LOG_TIMESTAMPS":"1","APS5_LOOP_GUARD":"100000","APS5_NO_PROFILE":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_PROFILE_GPU":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"660:20","APS5_TRACE_SUMMARY_EVERY":"30"},"gpu":"AMD Radeon RX 9070 XT","driver":"AMD proprietary driver 26.6.2 (LLPC)","os":"Windows 10.0.26200","cpu":"AMD Ryzen 7 9800X3D 8-Core Processor","cpu_threads":16,"memory_mib":32313,"title_id":"PPSA31246","title":"RESIDENT EVIL requiem","content_version":"01.200.000","resolution":"3840x2160","window":{"spec":"seconds 660:20","first_present":3638,"ms":20056.808},"presents":93,"frame_ms":{"p50":214.260,"p90":227.304,"p99":266.413,"max":266.413},"gpu_busy_ms_per_present":64.978,"worker_busy_pct":{"queue worker 0x38":0.051,"queue worker 0x20":48.591,"queue worker 0x0":99.207,"queue worker 0x28":81.755},"top_phases_ms_per_frame":{"Driver.Packet":494.795,"Driver.Packet.memory_wait":228.181,"Driver.Packet.dispatch":205.546,"Driver.Dispatch":174.355,"Resources.Complete":105.054,"Vulkan.Dispatch":79.770,"Vulkan.Dispatch.shader_resources":77.792,"Graphics.Draw":73.480},"trace_dropped":false,"trace":"aps5-trace-e08df2b41307-7844.json.gz"}
{"commit":"c1ed7352b4e9","dirty":false,"env":{"APS5_DUMP_FRAMES":"100000","APS5_DUMP_FRAMES_EVERY":"20","APS5_LOG_TIMESTAMPS":"1","APS5_LOOP_GUARD":"100000","APS5_NO_PROFILE":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_PROFILE_GPU":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"660:20","APS5_TRACE_SUMMARY_EVERY":"30"},"gpu":"AMD Radeon RX 9070 XT","driver":"AMD proprietary driver 26.6.2 (LLPC)","os":"Windows 10.0.26200","cpu":"AMD Ryzen 7 9800X3D 8-Core Processor","cpu_threads":16,"memory_mib":32313,"title_id":"PPSA31246","title":"RESIDENT EVIL requiem","content_version":"01.200.000","resolution":"3840x2160","window":{"spec":"seconds 660:20","first_present":4160,"ms":20079.305},"presents":104,"frame_ms":{"p50":182.442,"p90":195.542,"p99":489.340,"max":767.129},"gpu_busy_ms_per_present":65.779,"worker_busy_pct":{"queue worker 0x38":0.044,"queue worker 0x20":51.359,"queue worker 0x0":99.199,"queue worker 0x28":84.551},"top_phases_ms_per_frame":{"Driver.Packet":453.752,"Driver.Packet.memory_wait":222.389,"Driver.Packet.dispatch":156.665,"Driver.Dispatch":145.725,"Graphics.Draw":72.726,"Graphics.Draw.draw_and_resource_release":72.076,"Resources.Complete":67.923,"Vulkan.Dispatch":44.686},"trace_dropped":false,"trace":"aps5-trace-c1ed7352b4e9-21436.json.gz"}
tools/trace_digest.py, base (b2)

seconds 660:20 from present 3638: 93 presents, frame p50 214.3 / p90 227.3 / p99 266.4 / max 266.4 ms, GPU busy 65.0 ms per present
AMD Radeon RX 9070 XT, AMD proprietary driver 26.6.2 (LLPC), Windows 10.0.26200, 3840x2160, commit e08df2b41307, dropped: no

{"commit":"e08df2b41307","dirty":false,"env":{"APS5_DUMP_FRAMES":"100000","APS5_DUMP_FRAMES_EVERY":"20","APS5_LOG_TIMESTAMPS":"1","APS5_LOOP_GUARD":"100000","APS5_NO_PROFILE":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_PROFILE_GPU":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"660:20","APS5_TRACE_SUMMARY_EVERY":"30"},"gpu":"AMD Radeon RX 9070 XT","driver":"AMD proprietary driver 26.6.2 (LLPC)","os":"Windows 10.0.26200","cpu":"AMD Ryzen 7 9800X3D 8-Core Processor","cpu_threads":16,"memory_mib":32313,"title_id":"PPSA31246","title":"RESIDENT EVIL requiem","content_version":"01.200.000","resolution":"3840x2160","window":{"spec":"seconds 660:20","first_present":3638,"ms":20056.808},"presents":93,"frame_ms":{"p50":214.26,"p90":227.304,"p99":266.413,"max":266.413},"gpu_busy_ms_per_present":64.978,"worker_busy_pct":{"queue worker 0x38":0.051,"queue worker 0x20":48.591,"queue worker 0x0":99.207,"queue worker 0x28":81.755},"top_phases_ms_per_frame":{"Driver.Packet":494.795,"Driver.Packet.memory_wait":228.181,"Driver.Packet.dispatch":205.546,"Driver.Dispatch":174.355,"Resources.Complete":105.054,"Vulkan.Dispatch":79.77,"Vulkan.Dispatch.shader_resources":77.792,"Graphics.Draw":73.48},"trace_dropped":false,"trace":"aps5-trace-e08df2b41307-7844.json.gz"}

Slowest frames (largest slices inside each, inclusive)

  • present 3688: 266.4 ms at 10730 ms: Driver.WorkerWait (queue worker 0x38) 266.3, Driver.WorkerWait.dequeue_order (queue worker 0x38) 264.8, Driver.Packet (queue worker 0x0) 262.3, Driver.Packet (queue worker 0x28) 228.2
  • present 3690: 251.4 ms at 11221 ms: Driver.WorkerWait (queue worker 0x38) 251.3, Driver.WorkerWait.dequeue_order (queue worker 0x38) 249.5, Driver.Packet (queue worker 0x0) 248.4, Driver.Packet (queue worker 0x28) 200.0
  • present 3654: 239.7 ms at 3460 ms: Driver.WorkerWait (queue worker 0x38) 239.6, Driver.WorkerWait.dequeue_order (queue worker 0x38) 237.8, Driver.Packet (queue worker 0x0) 235.8, Driver.Packet (queue worker 0x28) 193.1
  • present 3651: 232.4 ms at 2777 ms: Driver.WorkerWait (queue worker 0x38) 232.3, Driver.WorkerWait.dequeue_order (queue worker 0x38) 230.3, Driver.Packet (queue worker 0x0) 228.6, Driver.Packet (queue worker 0x28) 192.6
  • present 3671: 231.7 ms at 7109 ms: Driver.WorkerWait (queue worker 0x38) 231.6, Driver.WorkerWait.dequeue_order (queue worker 0x38) 229.9, Driver.Packet (queue worker 0x0) 228.3, Driver.Packet (queue worker 0x28) 193.2

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
queue worker 0x38 0.0 (0 %) 213.3 (99 %) 2.3 0.0 Driver.EndSubmission 0.1, Driver.Completion 0.0
queue worker 0x20 64.4 (30 %) 150.0 (70 %) 1.3 1.2 Driver.Packet 104.6, Driver.EndSubmission 0.1
queue worker 0x0 155.9 (72 %) 57.9 (27 %) 1.9 15.0 Driver.Packet 212.3
draw committer 67.4 (31 %) 5.5 (3 %) 142.8 0.4 Graphics.Draw 67.7, Recorder.Sync 0.4
presenter 1.3 (1 %) 0.7 (0 %) 213.7 0.1 VideoOut.Flip 2.0
queue worker 0x28 6.4 (3 %) 208.9 (97 %) 0.5 0.2 Driver.Packet 176.1, Driver.EndSubmission 0.2
gpu 64.3 (30 %) 0.0 (0 %) 151.3 0.0 batch 64.3, draw 0.0

Largest slices (ms per frame, inclusive, all threads): Driver.Packet 493.0, Driver.WorkerWait 363.3, Driver.Packet.memory_wait 228.2, Driver.WorkerWait.dequeue_order 211.5, Driver.Packet.dispatch 204.9, Driver.Dispatch 173.6, Driver.WorkerWait.idle_and_completion_poll 151.8, Resources.Complete 104.1, Vulkan.Dispatch 79.2, Vulkan.Dispatch.shader_resources 77.2

Longest waits

  • Driver.WorkerWait (queue worker 0x38) 266.5 ms at 10730 ms, present 3688
  • Driver.WorkerWait (queue worker 0x38) 251.1 ms at 11221 ms, present 3690
  • Driver.WorkerWait (queue worker 0x38) 239.6 ms at 3460 ms, present 3654
  • Driver.WorkerWait (queue worker 0x38) 232.9 ms at 2777 ms, present 3651
  • Driver.WorkerWait (queue worker 0x38) 231.7 ms at 7109 ms, present 3671
  • Driver.WorkerWait (queue worker 0x38) 231.1 ms at 13175 ms, present 3699
  • Driver.WorkerWait (queue worker 0x38) 229.8 ms at 11472 ms, present 3691
  • Driver.WorkerWait (queue worker 0x38) 227.8 ms at 438 ms, present 3640
  • Driver.WorkerWait (queue worker 0x38) 227.7 ms at 18961 ms, present 3726
  • Driver.WorkerWait (queue worker 0x38) 227.1 ms at 7341 ms, present 3672

Largest GPU batches (GPU ranges inside, and the CPU slices that recorded each, inclusive)

  • batch 187782: 25.1 ms at 11128 ms, present 3689: GPU draw 21.5, storage-upload 0.2, dcc-clear 0.0; recorded by Graphics.Draw (draw committer) 19.7, Graphics.Draw.draw_and_resource_release (draw committer) 19.7, Resources.Complete (draw committer) 17.2, Resources.Prepare (draw committer) 0.3
  • batch 187842: 23.3 ms at 11367 ms, present 3690: GPU draw 19.8, storage-upload 0.2, dcc-clear 0.0; recorded by Graphics.Draw (draw committer) 19.7, Graphics.Draw.draw_and_resource_release (draw committer) 19.7, Resources.Complete (draw committer) 17.2, Resources.Prepare (draw committer) 0.3
  • batch 187964: 19.0 ms at 11835 ms, present 3692: GPU draw 15.4, storage-upload 0.2, dcc-clear 0.0; recorded by Graphics.Draw (draw committer) 21.1, Graphics.Draw.draw_and_resource_release (draw committer) 21.1, Resources.Complete (draw committer) 17.5, Recorder.Sync (draw committer) 1.8
  • batch 187905: 18.7 ms at 11603 ms, present 3691: GPU draw 15.1, storage-upload 0.2, dcc-clear 0.0; recorded by Graphics.Draw (draw committer) 22.9, Graphics.Draw.draw_and_resource_release (draw committer) 22.9, Resources.Complete (draw committer) 19.4, Recorder.Sync (draw committer) 1.7
  • batch 188026: 18.5 ms at 12044 ms, present 3693: GPU draw 14.9, storage-upload 0.2, dcc-clear 0.0; recorded by Graphics.Draw (draw committer) 19.0, Graphics.Draw.draw_and_resource_release (draw committer) 19.0, Resources.Complete (draw committer) 16.6, Resources.Prepare (draw committer) 0.3
tools/trace_digest.py, this PR (c2)

seconds 660:20 from present 4160: 104 presents, frame p50 182.4 / p90 195.5 / p99 489.3 / max 767.1 ms, GPU busy 65.8 ms per present
AMD Radeon RX 9070 XT, AMD proprietary driver 26.6.2 (LLPC), Windows 10.0.26200, 3840x2160, commit c1ed7352b4e9, dropped: no

{"commit":"c1ed7352b4e9","dirty":false,"env":{"APS5_DUMP_FRAMES":"100000","APS5_DUMP_FRAMES_EVERY":"20","APS5_LOG_TIMESTAMPS":"1","APS5_LOOP_GUARD":"100000","APS5_NO_PROFILE":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_PROFILE_GPU":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"660:20","APS5_TRACE_SUMMARY_EVERY":"30"},"gpu":"AMD Radeon RX 9070 XT","driver":"AMD proprietary driver 26.6.2 (LLPC)","os":"Windows 10.0.26200","cpu":"AMD Ryzen 7 9800X3D 8-Core Processor","cpu_threads":16,"memory_mib":32313,"title_id":"PPSA31246","title":"RESIDENT EVIL requiem","content_version":"01.200.000","resolution":"3840x2160","window":{"spec":"seconds 660:20","first_present":4160,"ms":20079.305},"presents":104,"frame_ms":{"p50":182.442,"p90":195.542,"p99":489.34,"max":767.129},"gpu_busy_ms_per_present":65.779,"worker_busy_pct":{"queue worker 0x38":0.044,"queue worker 0x20":51.359,"queue worker 0x0":99.199,"queue worker 0x28":84.551},"top_phases_ms_per_frame":{"Driver.Packet":453.752,"Driver.Packet.memory_wait":222.389,"Driver.Packet.dispatch":156.665,"Driver.Dispatch":145.725,"Graphics.Draw":72.726,"Graphics.Draw.draw_and_resource_release":72.076,"Resources.Complete":67.923,"Vulkan.Dispatch":44.686},"trace_dropped":false,"trace":"aps5-trace-c1ed7352b4e9-21436.json.gz"}

Slowest frames (largest slices inside each, inclusive)

  • present 4180: 767.1 ms at 3708 ms: Driver.WorkerWait (queue worker 0x38) 767.1, Driver.WorkerWait.dequeue_order (queue worker 0x38) 765.7, Driver.Packet (queue worker 0x0) 764.1, Driver.Packet (queue worker 0x28) 737.2
  • present 4215: 489.3 ms at 10664 ms: Driver.WorkerWait (queue worker 0x38) 489.3, Driver.WorkerWait.dequeue_order (queue worker 0x38) 487.1, Driver.Packet (queue worker 0x0) 485.6, Driver.Packet (queue worker 0x28) 459.1
  • present 4166: 239.1 ms at 1097 ms: Driver.WorkerWait (queue worker 0x38) 239.0, Driver.WorkerWait.dequeue_order (queue worker 0x38) 237.0, Driver.Packet (queue worker 0x0) 235.8, Driver.Packet (queue worker 0x28) 208.9
  • present 4188: 208.7 ms at 5757 ms: Driver.WorkerWait (queue worker 0x38) 208.6, Driver.WorkerWait.dequeue_order (queue worker 0x38) 206.8, Driver.Packet (queue worker 0x0) 205.2, Driver.Packet (queue worker 0x28) 176.1
  • present 4179: 207.6 ms at 3501 ms: Driver.WorkerWait (queue worker 0x38) 207.4, Driver.WorkerWait.dequeue_order (queue worker 0x38) 206.1, Driver.Packet (queue worker 0x0) 204.5, Driver.Packet (queue worker 0x28) 177.1

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
queue worker 0x38 0.0 (0 %) 191.3 (99 %) 1.8 0.0 Driver.EndSubmission 0.1
queue worker 0x20 62.0 (32 %) 130.1 (67 %) 1.0 1.0 Driver.Packet 98.6, Driver.EndSubmission 0.0
queue worker 0x0 120.0 (62 %) 71.2 (37 %) 1.9 13.2 Driver.Packet 189.7, Driver.Completion 0.0
draw committer 49.1 (25 %) 1.6 (1 %) 142.3 0.4 Graphics.Draw 48.3, Recorder.Sync 0.7
presenter 1.0 (0 %) 0.6 (0 %) 191.5 0.1 VideoOut.Flip 1.6
queue worker 0x28 1.3 (1 %) 191.4 (99 %) 0.3 0.1 Driver.Packet 163.1, Driver.EndSubmission 0.1
gpu 66.4 (34 %) 0.0 (0 %) 126.6 0.0 batch 66.4

Largest slices (ms per frame, inclusive, all threads): Driver.Packet 451.4, Driver.WorkerWait 315.8, Driver.Packet.memory_wait 222.4, Driver.WorkerWait.dequeue_order 189.5, Driver.Packet.dispatch 155.5, Driver.Dispatch 144.5, Driver.WorkerWait.idle_and_completion_poll 126.3, Graphics.Draw 72.7, Graphics.Draw.draw_and_resource_release 72.0, Resources.Complete 66.8

Longest waits

  • Driver.WorkerWait (queue worker 0x38) 767.2 ms at 3709 ms, present 4180
  • Driver.Packet.memory_wait (queue worker 0x28) 735.1 ms at 3711 ms, present 4180
  • Driver.WorkerWait (queue worker 0x20) 673.2 ms at 3804 ms, present 4180
  • Driver.WorkerWait (queue worker 0x38) 489.3 ms at 10664 ms, present 4215
  • Driver.Packet.memory_wait (queue worker 0x28) 455.8 ms at 10668 ms, present 4215
  • GpuMutex.wait.indirect (queue worker 0x20) 299.3 ms at 10688 ms, present 4215
  • Driver.WorkerWait (queue worker 0x38) 239.5 ms at 1098 ms, present 4166
  • Driver.WorkerWait (queue worker 0x38) 208.8 ms at 5757 ms, present 4188
  • Driver.Packet.memory_wait (queue worker 0x28) 207.4 ms at 1100 ms, present 4166
  • Driver.WorkerWait (queue worker 0x38) 207.1 ms at 3501 ms, present 4179

Largest GPU batches (GPU ranges inside, and the CPU slices that recorded each, inclusive)

  • batch 158221: 21.1 ms at 16912 ms, present 4246: GPU draw 17.1, shadow-publish 0.3, storage-upload 0.2; recorded by Graphics.Draw (draw committer) 20.7, Graphics.Draw.draw_and_resource_release (draw committer) 20.6, Resources.Complete (draw committer) 17.7, Resources.Prepare (draw committer) 0.3
  • batch 156932: 21.1 ms at 11089 ms, present 4215: GPU draw 16.9, shadow-publish 0.3, storage-upload 0.2; recorded by Graphics.Draw (draw committer) 21.2, Graphics.Draw.draw_and_resource_release (draw committer) 21.1, Resources.Complete (draw committer) 18.3, Recorder.Sync (draw committer) 0.9
  • batch 157762: 21.0 ms at 14845 ms, present 4235: GPU draw 17.3, shadow-publish 0.3, storage-upload 0.2; recorded by Graphics.Draw (draw committer) 19.3, Graphics.Draw.draw_and_resource_release (draw committer) 19.3, Resources.Complete (draw committer) 16.7, Resources.Prepare (draw committer) 0.2
  • batch 157517: 21.0 ms at 13700 ms, present 4229: GPU draw 17.2, shadow-publish 0.3, storage-upload 0.2; recorded by Graphics.Draw (draw committer) 25.5, Graphics.Draw.draw_and_resource_release (draw committer) 25.5, Resources.Complete (draw committer) 22.2, Resources.Prepare (draw committer) 0.4
  • batch 157927: 21.0 ms at 15593 ms, present 4239: GPU draw 17.2, shadow-publish 0.3, storage-upload 0.2; recorded by Graphics.Draw (draw committer) 20.4, Graphics.Draw.draw_and_resource_release (draw committer) 20.3, Resources.Complete (draw committer) 17.7, Resources.Prepare (draw committer) 0.3
  • Not run: Linux, other GPU vendors, the full CTest suite. Gameplay was not reached.
  • tools/check_conventions.py --base origin/main passes. tools/pr_overlap.py --branch perf/agc-segmented-storage-upload lists text overlaps, none implementing the same thing:
    • #10696 (merged since) added a CollectWrites inside the import branch of upload, which this PR restructures; after the rebase it runs inside the new if (!segments.empty()) branch. At 1c01a02411 tools/pr_overlap.py reports no line conflicts; the PRs it could not compare conflict with main themselves.
    • #7514 replaces the HostImportFor call in refresh's direct with a cached lookup; this PR adds || (blockUnits && !importSegments().empty()) to the same line.
    • #8707 and #8887 change neighbouring lines of tests/Recorder.cpp.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: AMD Radeon RX 9070 XT, AMD driver 32.0.31021.1015 (Vulkan 1.4.349), Windows 11 Home 26200; NVIDIA GeForce RTX 4060 Laptop GPU, driver 596.21, Windows 11 Home 26200 (the 22-test set, by @Sumaiter)
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5021347280 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11485). Originally posted by [QRMOE](https://github.com/QRMOE) on 2026-10-26T16:54:53Z. --- ### What A storage image whose guest range no single host import covers was uploaded through the CPU even when every piece of it was imported: `StorageTexture::upload` asked `HostImportFor` for one import of the whole surface, and without it read the surface through `GuestMemory::ReadCommitted`, which also waits for the GPU writes pending over it. Write-back already handles the same layout: it falls back to `importSegments()` and stores through each import (`writeBackWindows`). With the 8 MiB import window and aligned power-of-two import blocks, an image over registered ranges smaller than the window that crosses a block edge always lands in this case. RESIDENT EVIL requiem (PPSA31246) maps its render targets in 2 MiB pieces, so its 3840x2160 targets (about 32 MiB) took the CPU path on every refresh. `upload` now falls back to `importSegments()` for block-unit images, as write-back does, and `refresh` treats such an image as direct. `uploadWindows` takes the import segments: with one segment it is unchanged; with several, each segment's pieces are found in its own import and unit shadow (`ShadowSources`), each window's tiled bytes are copied on the GPU into one device buffer, and the windows are detiled from it as from a slab. Bytes of a window outside the runs (the rest of a tail block) are copied from the import that holds them. The copies are recorded into the open batch and noted as pending reads of the import ranges, like the single-import detile. ### Tested Windows 11 Home 26200, Ryzen 7 9800X3D, AMD Radeon RX 9070 XT (AMD 32.0.31021.1015, Vulkan 1.4.349), WinLibs GCC 15.2.0 r7, Release. The head is 1c01a02411 on `main` 8ff4baf534 (rebased; `Texture.cpp` conflicted with #10696, whose `CollectWrites` refresh now runs inside the new `if (!segments.empty())` block, after the segments are imported). The regression tests and the validation comparison below were run on that head; the title runs further down were run on the earlier head. - `agc_storage_writeback_blocks` gains `uploadBlockTests`: a 64 KiB R_X 1024x1024 image, once over 64 adjacent 64 KiB pieces (one import covers it) and once 64 KiB in, over 66 pieces (two aligned import blocks, so two segment imports). Each is created from a byte pattern, must leave a `StorageUpload` pending read in the recorder (the GPU-direct path; the CPU path leaves none), and is then written back unchanged; every guest byte must still match the pattern. - A third case puts the same 66 pieces in 2 MiB import windows, so the surface spans three segment imports. - `uploadShadowedSegmentTests` covers the gathered-slab branch of `uploadWindows`: the surface sits 1 MiB into write-watched memory over three 2 MiB imports, and one whole unit in each import's part of the surface is held fresh by a unit shadow slab, filled with its own byte (0xc1-0xc3) that guest memory doesn't hold. The image is uploaded, written back unchanged and published; the slab-held units must come back with the slab bytes and every other byte must match the pattern. - On `main` (`Texture.cpp` and `Texture.hpp` from 8ff4baf534, with these tests): the two-segment and three-segment cases fail with `the upload took the CPU path`. With this PR: all four cases pass, GPU-direct, 4194304 of 4194304 bytes as expected, 196608 of 196608 from the slabs. - With the slab branch broken on purpose (gathered slab pieces copied from the import instead of the slab), the shadowed case fails with `the round trip changed 195840 bytes, 195840 of them in the slab-held units`, so it does exercise that branch. - Khronos validation layer (Vulkan SDK 1.4.363.0), same machine and GPU, `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`, `ctest --test-dir build -R <pattern> -V` over the 23 `agc_storage_*`, `agc_driver_storage_*`, `agc_driver_graphics` and `agc_driver_bda_device` tests on 8ff4baf534 (22 on 88795ed448): neither log contains `was not found but was requested by env var VK_INSTANCE_LAYERS` (with `VK_LOADER_DEBUG=layer` the loader inserts `VK_LAYER_KHRONOS_validation` from the SDK's `VkLayer_khronos_validation.dll`); `VUID-` occurrences are 0 on `main` and 0 with this PR; `main` (8ff4baf534 `Texture.cpp` and `Texture.hpp`, with this PR's tests) passes 22 of 23 (`agc_storage_writeback_blocks` fails, its multi-segment cases taking the CPU upload), this PR 23 of 23. Before the rebase the same comparison on 88795ed448 gave 21 of 22 and 22 of 22. - Gather buffer size: with several segments, `uploadWindows` allocates one device buffer holding the tiled bytes of every window it detiles, each window rounded up to 256 bytes, kept by the recorder until the batch retires. For a whole-surface upload the windows cover the surface, so the buffer is the surface's `guestBytes` plus at most 255 bytes per window; a partial upload gathers only its runs. For a 3840x2160 64 KiB R_X target (`DescribeSurface`, height padded to 2176): 33,423,360 bytes (31.9 MiB) at 4 bytes per texel, 66,846,720 (63.8 MiB) at 8 and 133,693,440 (127.5 MiB) at 16; with a full 12-level mip chain at 4 bytes, 46,071,808 (43.9 MiB). Only surfaces that no single import covers take this path. - @Sumaiter ran the earlier 22 tests on an NVIDIA GeForce RTX 4060 Laptop GPU (driver 596.21) at this head and at `main` 88795ed448: 22 of 22 each, 0 `VUID-`, and the same negative control fails as expected. - On the previous base (`main` 7a01e6a494), `tools/select_tests.py` selected 1524 of 2467 tests for this diff, `-j4`, `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1`: 7 failures, all also failing on `main` on this machine: `select_tests`, `nid_database_cache`, `agc_host_import_cut_lifetime`, `agc_driver_depth_plane_partial_store`, `agc_driver_sample_order_grid_reference`, `guest_timed_join_import_libkernel_sys`, `guest_timed_join_import_libkernel_web`. - Title: RESIDENT EVIL requiem (PPSA31246, 01.200.000), main menu, same machine, four runs in one session alternating the two builds (base, this PR, base, this PR), same script and environment (`APS5_TRACE_SECONDS=660:20 APS5_TRACE_SUMMARY_EVERY=30 APS5_PROFILE_GPU=1 APS5_LOOP_GUARD=100000`, no `APS5_PROFILE_DRAW`), after one warm-up run of the base build. Both builds are commits with a clean tree, so the summary lines carry `dirty: false`: - Base `e08df2b41307`: `main` 88795ed448 with #10935, #10304, #9950, #11199 and #11369 merged (the title stops earlier without them), and the merge of #8898 reverted: on current `main` the title stops at boot with `compute shader ...: reads or writes a converted float image with 16-bit data, which is not implemented` (#11580 implements that path; it has not been run with the title yet). - This PR `c1ed7352b4e9`: the base with this branch merged; the diff between the two is this PR's three files. | run | build | commit | presents in 20 s | frame p50 / p90 / p99 / max (ms) | GPU busy per present (ms) | |---|---|---|---|---|---| | b1 | base | `e08df2b41307` | 93 | 214.3 / 226.7 / 290.0 / 290.0 | 68.0 | | c1 | this PR | `c1ed7352b4e9` | 104 | 187.9 / 197.7 / 218.6 / 521.4 | 64.4 | | b2 | base | `e08df2b41307` | 93 | 214.3 / 227.3 / 266.4 / 266.4 | 65.0 | | c2 | this PR | `c1ed7352b4e9` | 104 | 182.4 / 195.5 / 489.3 / 767.1 | 65.8 | - With this PR the median frame is 182 to 188 ms against 214 ms, 104 presents per 20 s against 93 (about +12 %), in both pairs. - c1 and c2 each have one or two slow frames (521 ms in c1, 767 and 489 ms in c2; base maximum 290 ms over its two runs). Matched, repeated control runs of both builds are still to be done; until then the slow frames are unexplained. In each, one dispatch on queue worker 0x0 runs for 300 to 590 ms while the GPU is idle and other queues wait on its memory; the time is not inside any traced slice. Five later runs of the same scene on builds that contain this PR's change had none: the four runs of #8887 on top of this PR (`5c93abe8121c`, maximum 231 to 235 ms) and one more run of `c1ed7352b4e9` with the worker sampler (109 presents, p50 183.6 ms, maximum 239.6 ms). The slow frames are intermittent and not shown to come from this PR; two base runs are too few to rule them out there. This PR does not claim an improvement of the frame-time tail. - Traces of b2 and c2: [aps5-trace-menu-base-e08df2b41307.json.gz](https://github.com/user-attachments/files/33986655/aps5-trace-menu-base-e08df2b41307.json.gz), [aps5-trace-menu-11485-c1ed7352b4e9.json.gz](https://github.com/user-attachments/files/33986665/aps5-trace-menu-11485-c1ed7352b4e9.json.gz). <details><summary>aps5-summary.jsonl window lines, b1, c1, b2, c2</summary> ```json {"commit":"e08df2b41307","dirty":false,"env":{"APS5_DUMP_FRAMES":"100000","APS5_DUMP_FRAMES_EVERY":"20","APS5_LOG_TIMESTAMPS":"1","APS5_LOOP_GUARD":"100000","APS5_NO_PROFILE":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_PROFILE_GPU":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"660:20","APS5_TRACE_SUMMARY_EVERY":"30"},"gpu":"AMD Radeon RX 9070 XT","driver":"AMD proprietary driver 26.6.2 (LLPC)","os":"Windows 10.0.26200","cpu":"AMD Ryzen 7 9800X3D 8-Core Processor","cpu_threads":16,"memory_mib":32313,"title_id":"PPSA31246","title":"RESIDENT EVIL requiem","content_version":"01.200.000","resolution":"3840x2160","window":{"spec":"seconds 660:20","first_present":3720,"ms":20083.213},"presents":93,"frame_ms":{"p50":214.347,"p90":226.734,"p99":289.952,"max":289.952},"gpu_busy_ms_per_present":67.952,"worker_busy_pct":{"queue worker 0x38":0.042,"queue worker 0x20":46.649,"queue worker 0x0":99.389,"queue worker 0x28":80.323},"top_phases_ms_per_frame":{"Driver.Packet":488.467,"Driver.Packet.memory_wait":218.719,"Driver.Packet.dispatch":205.718,"Driver.Dispatch":173.243,"Resources.Complete":106.721,"Vulkan.Dispatch":80.859,"Vulkan.Dispatch.shader_resources":78.897,"Graphics.Draw":75.724},"trace_dropped":false,"trace":"aps5-trace-e08df2b41307-19260.json.gz"} {"commit":"c1ed7352b4e9","dirty":false,"env":{"APS5_DUMP_FRAMES":"100000","APS5_DUMP_FRAMES_EVERY":"20","APS5_LOG_TIMESTAMPS":"1","APS5_LOOP_GUARD":"100000","APS5_NO_PROFILE":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_PROFILE_GPU":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"660:20","APS5_TRACE_SUMMARY_EVERY":"30"},"gpu":"AMD Radeon RX 9070 XT","driver":"AMD proprietary driver 26.6.2 (LLPC)","os":"Windows 10.0.26200","cpu":"AMD Ryzen 7 9800X3D 8-Core Processor","cpu_threads":16,"memory_mib":32313,"title_id":"PPSA31246","title":"RESIDENT EVIL requiem","content_version":"01.200.000","resolution":"3840x2160","window":{"spec":"seconds 660:20","first_present":4324,"ms":20026.206},"presents":104,"frame_ms":{"p50":187.865,"p90":197.666,"p99":218.649,"max":521.423},"gpu_busy_ms_per_present":64.448,"worker_busy_pct":{"queue worker 0x38":0.047,"queue worker 0x20":49.908,"queue worker 0x0":98.993,"queue worker 0x28":85.057},"top_phases_ms_per_frame":{"Driver.Packet":450.326,"Driver.Packet.memory_wait":219.756,"Driver.Packet.dispatch":151.962,"Driver.Dispatch":133.122,"Graphics.Draw":79.329,"Graphics.Draw.draw_and_resource_release":78.618,"Resources.Complete":76.338,"Driver.Packet.draw":44.702},"trace_dropped":false,"trace":"aps5-trace-c1ed7352b4e9-3224.json.gz"} {"commit":"e08df2b41307","dirty":false,"env":{"APS5_DUMP_FRAMES":"100000","APS5_DUMP_FRAMES_EVERY":"20","APS5_LOG_TIMESTAMPS":"1","APS5_LOOP_GUARD":"100000","APS5_NO_PROFILE":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_PROFILE_GPU":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"660:20","APS5_TRACE_SUMMARY_EVERY":"30"},"gpu":"AMD Radeon RX 9070 XT","driver":"AMD proprietary driver 26.6.2 (LLPC)","os":"Windows 10.0.26200","cpu":"AMD Ryzen 7 9800X3D 8-Core Processor","cpu_threads":16,"memory_mib":32313,"title_id":"PPSA31246","title":"RESIDENT EVIL requiem","content_version":"01.200.000","resolution":"3840x2160","window":{"spec":"seconds 660:20","first_present":3638,"ms":20056.808},"presents":93,"frame_ms":{"p50":214.260,"p90":227.304,"p99":266.413,"max":266.413},"gpu_busy_ms_per_present":64.978,"worker_busy_pct":{"queue worker 0x38":0.051,"queue worker 0x20":48.591,"queue worker 0x0":99.207,"queue worker 0x28":81.755},"top_phases_ms_per_frame":{"Driver.Packet":494.795,"Driver.Packet.memory_wait":228.181,"Driver.Packet.dispatch":205.546,"Driver.Dispatch":174.355,"Resources.Complete":105.054,"Vulkan.Dispatch":79.770,"Vulkan.Dispatch.shader_resources":77.792,"Graphics.Draw":73.480},"trace_dropped":false,"trace":"aps5-trace-e08df2b41307-7844.json.gz"} {"commit":"c1ed7352b4e9","dirty":false,"env":{"APS5_DUMP_FRAMES":"100000","APS5_DUMP_FRAMES_EVERY":"20","APS5_LOG_TIMESTAMPS":"1","APS5_LOOP_GUARD":"100000","APS5_NO_PROFILE":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_PROFILE_GPU":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"660:20","APS5_TRACE_SUMMARY_EVERY":"30"},"gpu":"AMD Radeon RX 9070 XT","driver":"AMD proprietary driver 26.6.2 (LLPC)","os":"Windows 10.0.26200","cpu":"AMD Ryzen 7 9800X3D 8-Core Processor","cpu_threads":16,"memory_mib":32313,"title_id":"PPSA31246","title":"RESIDENT EVIL requiem","content_version":"01.200.000","resolution":"3840x2160","window":{"spec":"seconds 660:20","first_present":4160,"ms":20079.305},"presents":104,"frame_ms":{"p50":182.442,"p90":195.542,"p99":489.340,"max":767.129},"gpu_busy_ms_per_present":65.779,"worker_busy_pct":{"queue worker 0x38":0.044,"queue worker 0x20":51.359,"queue worker 0x0":99.199,"queue worker 0x28":84.551},"top_phases_ms_per_frame":{"Driver.Packet":453.752,"Driver.Packet.memory_wait":222.389,"Driver.Packet.dispatch":156.665,"Driver.Dispatch":145.725,"Graphics.Draw":72.726,"Graphics.Draw.draw_and_resource_release":72.076,"Resources.Complete":67.923,"Vulkan.Dispatch":44.686},"trace_dropped":false,"trace":"aps5-trace-c1ed7352b4e9-21436.json.gz"} ``` </details> <details><summary>tools/trace_digest.py, base (b2)</summary> **seconds 660:20** from present 3638: 93 presents, frame p50 214.3 / p90 227.3 / p99 266.4 / max 266.4 ms, GPU busy 65.0 ms per present AMD Radeon RX 9070 XT, AMD proprietary driver 26.6.2 (LLPC), Windows 10.0.26200, 3840x2160, commit e08df2b41307, dropped: no ```json {"commit":"e08df2b41307","dirty":false,"env":{"APS5_DUMP_FRAMES":"100000","APS5_DUMP_FRAMES_EVERY":"20","APS5_LOG_TIMESTAMPS":"1","APS5_LOOP_GUARD":"100000","APS5_NO_PROFILE":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_PROFILE_GPU":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"660:20","APS5_TRACE_SUMMARY_EVERY":"30"},"gpu":"AMD Radeon RX 9070 XT","driver":"AMD proprietary driver 26.6.2 (LLPC)","os":"Windows 10.0.26200","cpu":"AMD Ryzen 7 9800X3D 8-Core Processor","cpu_threads":16,"memory_mib":32313,"title_id":"PPSA31246","title":"RESIDENT EVIL requiem","content_version":"01.200.000","resolution":"3840x2160","window":{"spec":"seconds 660:20","first_present":3638,"ms":20056.808},"presents":93,"frame_ms":{"p50":214.26,"p90":227.304,"p99":266.413,"max":266.413},"gpu_busy_ms_per_present":64.978,"worker_busy_pct":{"queue worker 0x38":0.051,"queue worker 0x20":48.591,"queue worker 0x0":99.207,"queue worker 0x28":81.755},"top_phases_ms_per_frame":{"Driver.Packet":494.795,"Driver.Packet.memory_wait":228.181,"Driver.Packet.dispatch":205.546,"Driver.Dispatch":174.355,"Resources.Complete":105.054,"Vulkan.Dispatch":79.77,"Vulkan.Dispatch.shader_resources":77.792,"Graphics.Draw":73.48},"trace_dropped":false,"trace":"aps5-trace-e08df2b41307-7844.json.gz"} ``` **Slowest frames** (largest slices inside each, inclusive) - present 3688: 266.4 ms at 10730 ms: Driver.WorkerWait (queue worker 0x38) 266.3, Driver.WorkerWait.dequeue_order (queue worker 0x38) 264.8, Driver.Packet (queue worker 0x0) 262.3, Driver.Packet (queue worker 0x28) 228.2 - present 3690: 251.4 ms at 11221 ms: Driver.WorkerWait (queue worker 0x38) 251.3, Driver.WorkerWait.dequeue_order (queue worker 0x38) 249.5, Driver.Packet (queue worker 0x0) 248.4, Driver.Packet (queue worker 0x28) 200.0 - present 3654: 239.7 ms at 3460 ms: Driver.WorkerWait (queue worker 0x38) 239.6, Driver.WorkerWait.dequeue_order (queue worker 0x38) 237.8, Driver.Packet (queue worker 0x0) 235.8, Driver.Packet (queue worker 0x28) 193.1 - present 3651: 232.4 ms at 2777 ms: Driver.WorkerWait (queue worker 0x38) 232.3, Driver.WorkerWait.dequeue_order (queue worker 0x38) 230.3, Driver.Packet (queue worker 0x0) 228.6, Driver.Packet (queue worker 0x28) 192.6 - present 3671: 231.7 ms at 7109 ms: Driver.WorkerWait (queue worker 0x38) 231.6, Driver.WorkerWait.dequeue_order (queue worker 0x38) 229.9, Driver.Packet (queue worker 0x0) 228.3, Driver.Packet (queue worker 0x28) 193.2 **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | queue worker 0x38 | 0.0 (0 %) | 213.3 (99 %) | 2.3 | 0.0 | Driver.EndSubmission 0.1, Driver.Completion 0.0 | | queue worker 0x20 | 64.4 (30 %) | 150.0 (70 %) | 1.3 | 1.2 | Driver.Packet 104.6, Driver.EndSubmission 0.1 | | queue worker 0x0 | 155.9 (72 %) | 57.9 (27 %) | 1.9 | 15.0 | Driver.Packet 212.3 | | draw committer | 67.4 (31 %) | 5.5 (3 %) | 142.8 | 0.4 | Graphics.Draw 67.7, Recorder.Sync 0.4 | | presenter | 1.3 (1 %) | 0.7 (0 %) | 213.7 | 0.1 | VideoOut.Flip 2.0 | | queue worker 0x28 | 6.4 (3 %) | 208.9 (97 %) | 0.5 | 0.2 | Driver.Packet 176.1, Driver.EndSubmission 0.2 | | gpu | 64.3 (30 %) | 0.0 (0 %) | 151.3 | 0.0 | batch 64.3, draw 0.0 | **Largest slices** (ms per frame, inclusive, all threads): Driver.Packet 493.0, Driver.WorkerWait 363.3, Driver.Packet.memory_wait 228.2, Driver.WorkerWait.dequeue_order 211.5, Driver.Packet.dispatch 204.9, Driver.Dispatch 173.6, Driver.WorkerWait.idle_and_completion_poll 151.8, Resources.Complete 104.1, Vulkan.Dispatch 79.2, Vulkan.Dispatch.shader_resources 77.2 **Longest waits** - Driver.WorkerWait (queue worker 0x38) 266.5 ms at 10730 ms, present 3688 - Driver.WorkerWait (queue worker 0x38) 251.1 ms at 11221 ms, present 3690 - Driver.WorkerWait (queue worker 0x38) 239.6 ms at 3460 ms, present 3654 - Driver.WorkerWait (queue worker 0x38) 232.9 ms at 2777 ms, present 3651 - Driver.WorkerWait (queue worker 0x38) 231.7 ms at 7109 ms, present 3671 - Driver.WorkerWait (queue worker 0x38) 231.1 ms at 13175 ms, present 3699 - Driver.WorkerWait (queue worker 0x38) 229.8 ms at 11472 ms, present 3691 - Driver.WorkerWait (queue worker 0x38) 227.8 ms at 438 ms, present 3640 - Driver.WorkerWait (queue worker 0x38) 227.7 ms at 18961 ms, present 3726 - Driver.WorkerWait (queue worker 0x38) 227.1 ms at 7341 ms, present 3672 **Largest GPU batches** (GPU ranges inside, and the CPU slices that recorded each, inclusive) - batch 187782: 25.1 ms at 11128 ms, present 3689: GPU draw 21.5, storage-upload 0.2, dcc-clear 0.0; recorded by Graphics.Draw (draw committer) 19.7, Graphics.Draw.draw_and_resource_release (draw committer) 19.7, Resources.Complete (draw committer) 17.2, Resources.Prepare (draw committer) 0.3 - batch 187842: 23.3 ms at 11367 ms, present 3690: GPU draw 19.8, storage-upload 0.2, dcc-clear 0.0; recorded by Graphics.Draw (draw committer) 19.7, Graphics.Draw.draw_and_resource_release (draw committer) 19.7, Resources.Complete (draw committer) 17.2, Resources.Prepare (draw committer) 0.3 - batch 187964: 19.0 ms at 11835 ms, present 3692: GPU draw 15.4, storage-upload 0.2, dcc-clear 0.0; recorded by Graphics.Draw (draw committer) 21.1, Graphics.Draw.draw_and_resource_release (draw committer) 21.1, Resources.Complete (draw committer) 17.5, Recorder.Sync (draw committer) 1.8 - batch 187905: 18.7 ms at 11603 ms, present 3691: GPU draw 15.1, storage-upload 0.2, dcc-clear 0.0; recorded by Graphics.Draw (draw committer) 22.9, Graphics.Draw.draw_and_resource_release (draw committer) 22.9, Resources.Complete (draw committer) 19.4, Recorder.Sync (draw committer) 1.7 - batch 188026: 18.5 ms at 12044 ms, present 3693: GPU draw 14.9, storage-upload 0.2, dcc-clear 0.0; recorded by Graphics.Draw (draw committer) 19.0, Graphics.Draw.draw_and_resource_release (draw committer) 19.0, Resources.Complete (draw committer) 16.6, Resources.Prepare (draw committer) 0.3 </details> <details><summary>tools/trace_digest.py, this PR (c2)</summary> **seconds 660:20** from present 4160: 104 presents, frame p50 182.4 / p90 195.5 / p99 489.3 / max 767.1 ms, GPU busy 65.8 ms per present AMD Radeon RX 9070 XT, AMD proprietary driver 26.6.2 (LLPC), Windows 10.0.26200, 3840x2160, commit c1ed7352b4e9, dropped: no ```json {"commit":"c1ed7352b4e9","dirty":false,"env":{"APS5_DUMP_FRAMES":"100000","APS5_DUMP_FRAMES_EVERY":"20","APS5_LOG_TIMESTAMPS":"1","APS5_LOOP_GUARD":"100000","APS5_NO_PROFILE":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_PROFILE_GPU":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"660:20","APS5_TRACE_SUMMARY_EVERY":"30"},"gpu":"AMD Radeon RX 9070 XT","driver":"AMD proprietary driver 26.6.2 (LLPC)","os":"Windows 10.0.26200","cpu":"AMD Ryzen 7 9800X3D 8-Core Processor","cpu_threads":16,"memory_mib":32313,"title_id":"PPSA31246","title":"RESIDENT EVIL requiem","content_version":"01.200.000","resolution":"3840x2160","window":{"spec":"seconds 660:20","first_present":4160,"ms":20079.305},"presents":104,"frame_ms":{"p50":182.442,"p90":195.542,"p99":489.34,"max":767.129},"gpu_busy_ms_per_present":65.779,"worker_busy_pct":{"queue worker 0x38":0.044,"queue worker 0x20":51.359,"queue worker 0x0":99.199,"queue worker 0x28":84.551},"top_phases_ms_per_frame":{"Driver.Packet":453.752,"Driver.Packet.memory_wait":222.389,"Driver.Packet.dispatch":156.665,"Driver.Dispatch":145.725,"Graphics.Draw":72.726,"Graphics.Draw.draw_and_resource_release":72.076,"Resources.Complete":67.923,"Vulkan.Dispatch":44.686},"trace_dropped":false,"trace":"aps5-trace-c1ed7352b4e9-21436.json.gz"} ``` **Slowest frames** (largest slices inside each, inclusive) - present 4180: 767.1 ms at 3708 ms: Driver.WorkerWait (queue worker 0x38) 767.1, Driver.WorkerWait.dequeue_order (queue worker 0x38) 765.7, Driver.Packet (queue worker 0x0) 764.1, Driver.Packet (queue worker 0x28) 737.2 - present 4215: 489.3 ms at 10664 ms: Driver.WorkerWait (queue worker 0x38) 489.3, Driver.WorkerWait.dequeue_order (queue worker 0x38) 487.1, Driver.Packet (queue worker 0x0) 485.6, Driver.Packet (queue worker 0x28) 459.1 - present 4166: 239.1 ms at 1097 ms: Driver.WorkerWait (queue worker 0x38) 239.0, Driver.WorkerWait.dequeue_order (queue worker 0x38) 237.0, Driver.Packet (queue worker 0x0) 235.8, Driver.Packet (queue worker 0x28) 208.9 - present 4188: 208.7 ms at 5757 ms: Driver.WorkerWait (queue worker 0x38) 208.6, Driver.WorkerWait.dequeue_order (queue worker 0x38) 206.8, Driver.Packet (queue worker 0x0) 205.2, Driver.Packet (queue worker 0x28) 176.1 - present 4179: 207.6 ms at 3501 ms: Driver.WorkerWait (queue worker 0x38) 207.4, Driver.WorkerWait.dequeue_order (queue worker 0x38) 206.1, Driver.Packet (queue worker 0x0) 204.5, Driver.Packet (queue worker 0x28) 177.1 **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | queue worker 0x38 | 0.0 (0 %) | 191.3 (99 %) | 1.8 | 0.0 | Driver.EndSubmission 0.1 | | queue worker 0x20 | 62.0 (32 %) | 130.1 (67 %) | 1.0 | 1.0 | Driver.Packet 98.6, Driver.EndSubmission 0.0 | | queue worker 0x0 | 120.0 (62 %) | 71.2 (37 %) | 1.9 | 13.2 | Driver.Packet 189.7, Driver.Completion 0.0 | | draw committer | 49.1 (25 %) | 1.6 (1 %) | 142.3 | 0.4 | Graphics.Draw 48.3, Recorder.Sync 0.7 | | presenter | 1.0 (0 %) | 0.6 (0 %) | 191.5 | 0.1 | VideoOut.Flip 1.6 | | queue worker 0x28 | 1.3 (1 %) | 191.4 (99 %) | 0.3 | 0.1 | Driver.Packet 163.1, Driver.EndSubmission 0.1 | | gpu | 66.4 (34 %) | 0.0 (0 %) | 126.6 | 0.0 | batch 66.4 | **Largest slices** (ms per frame, inclusive, all threads): Driver.Packet 451.4, Driver.WorkerWait 315.8, Driver.Packet.memory_wait 222.4, Driver.WorkerWait.dequeue_order 189.5, Driver.Packet.dispatch 155.5, Driver.Dispatch 144.5, Driver.WorkerWait.idle_and_completion_poll 126.3, Graphics.Draw 72.7, Graphics.Draw.draw_and_resource_release 72.0, Resources.Complete 66.8 **Longest waits** - Driver.WorkerWait (queue worker 0x38) 767.2 ms at 3709 ms, present 4180 - Driver.Packet.memory_wait (queue worker 0x28) 735.1 ms at 3711 ms, present 4180 - Driver.WorkerWait (queue worker 0x20) 673.2 ms at 3804 ms, present 4180 - Driver.WorkerWait (queue worker 0x38) 489.3 ms at 10664 ms, present 4215 - Driver.Packet.memory_wait (queue worker 0x28) 455.8 ms at 10668 ms, present 4215 - GpuMutex.wait.indirect (queue worker 0x20) 299.3 ms at 10688 ms, present 4215 - Driver.WorkerWait (queue worker 0x38) 239.5 ms at 1098 ms, present 4166 - Driver.WorkerWait (queue worker 0x38) 208.8 ms at 5757 ms, present 4188 - Driver.Packet.memory_wait (queue worker 0x28) 207.4 ms at 1100 ms, present 4166 - Driver.WorkerWait (queue worker 0x38) 207.1 ms at 3501 ms, present 4179 **Largest GPU batches** (GPU ranges inside, and the CPU slices that recorded each, inclusive) - batch 158221: 21.1 ms at 16912 ms, present 4246: GPU draw 17.1, shadow-publish 0.3, storage-upload 0.2; recorded by Graphics.Draw (draw committer) 20.7, Graphics.Draw.draw_and_resource_release (draw committer) 20.6, Resources.Complete (draw committer) 17.7, Resources.Prepare (draw committer) 0.3 - batch 156932: 21.1 ms at 11089 ms, present 4215: GPU draw 16.9, shadow-publish 0.3, storage-upload 0.2; recorded by Graphics.Draw (draw committer) 21.2, Graphics.Draw.draw_and_resource_release (draw committer) 21.1, Resources.Complete (draw committer) 18.3, Recorder.Sync (draw committer) 0.9 - batch 157762: 21.0 ms at 14845 ms, present 4235: GPU draw 17.3, shadow-publish 0.3, storage-upload 0.2; recorded by Graphics.Draw (draw committer) 19.3, Graphics.Draw.draw_and_resource_release (draw committer) 19.3, Resources.Complete (draw committer) 16.7, Resources.Prepare (draw committer) 0.2 - batch 157517: 21.0 ms at 13700 ms, present 4229: GPU draw 17.2, shadow-publish 0.3, storage-upload 0.2; recorded by Graphics.Draw (draw committer) 25.5, Graphics.Draw.draw_and_resource_release (draw committer) 25.5, Resources.Complete (draw committer) 22.2, Resources.Prepare (draw committer) 0.4 - batch 157927: 21.0 ms at 15593 ms, present 4239: GPU draw 17.2, shadow-publish 0.3, storage-upload 0.2; recorded by Graphics.Draw (draw committer) 20.4, Graphics.Draw.draw_and_resource_release (draw committer) 20.3, Resources.Complete (draw committer) 17.7, Resources.Prepare (draw committer) 0.3 </details> - Not run: Linux, other GPU vendors, the full CTest suite. Gameplay was not reached. - `tools/check_conventions.py --base origin/main` passes. `tools/pr_overlap.py --branch perf/agc-segmented-storage-upload` lists text overlaps, none implementing the same thing: - #10696 (merged since) added a `CollectWrites` inside the import branch of `upload`, which this PR restructures; after the rebase it runs inside the new `if (!segments.empty())` branch. At 1c01a02411 `tools/pr_overlap.py` reports no line conflicts; the PRs it could not compare conflict with `main` themselves. - #7514 replaces the `HostImportFor` call in `refresh`'s `direct` with a cached lookup; this PR adds `|| (blockUnits && !importSegments().empty())` to the same line. - #8707 and #8887 change neighbouring lines of `tests/Recorder.cpp`. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: AMD Radeon RX 9070 XT, AMD driver 32.0.31021.1015 (Vulkan 1.4.349), Windows 11 Home 26200; NVIDIA GeForce RTX 4060 Laptop GPU, driver 596.21, Windows 11 Home 26200 (the 22-test set, by @Sumaiter) - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
MarcZX10 commented 2026-10-26 17:07:50 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-26T17:07:50Z.

Review: CHANGES_REQUESTED


I reviewed the segmented-upload path and its new round-trip test. The author reports a controlled same-GPU regression test and validation-layer comparison, and the current required policy checks pass. I have not independently run the AGC GPU tests here, and the hosted product jobs are skipped by path policy.

Two repository requirements still block approval:

  1. This head is 365 commits behind current main (check_main_sync.py --strict reports 1 ahead / 365 behind; merge preview is clean). CONTRIBUTING.md requires branches to be based on and kept up to date with current main. Please sync the branch, resolve any changed-context effects, and rerun the focused AGC validation tests on the updated base and change.
  2. The performance evidence is in comments, while the rule requires the PR description to contain two valid summary lines with different commits. The two posted aps5-summary.jsonl lines both identify 29ce6d87eb5b and dirty: true; the reported baseline is also based on 7a01e6a494, not current main. Please provide a current-main/change pair with distinct commit IDs and put both lines, the trace attachments, and digest output in the PR description. The reported CLI/runtime data is useful, but the current evidence does not yet meet the stated gate.

I did not find a separate confirmed code defect in the diff during this pass. The related issue #11481 describes a distinct small-tiled-image shadow/write-before-label case; this PR's segmented upload change does not alter that write-back/label path, so I do not consider it a fix for #11481.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5656015464 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11485#pullrequestreview-5656015464). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-26T17:07:50Z. **Review:** CHANGES_REQUESTED --- I reviewed the segmented-upload path and its new round-trip test. The author reports a controlled same-GPU regression test and validation-layer comparison, and the current required policy checks pass. I have not independently run the AGC GPU tests here, and the hosted product jobs are skipped by path policy. Two repository requirements still block approval: 1. This head is 365 commits behind current `main` (`check_main_sync.py --strict` reports 1 ahead / 365 behind; merge preview is clean). `CONTRIBUTING.md` requires branches to be based on and kept up to date with current `main`. Please sync the branch, resolve any changed-context effects, and rerun the focused AGC validation tests on the updated base and change. 2. The performance evidence is in comments, while the rule requires the PR description to contain two valid summary lines with different commits. The two posted `aps5-summary.jsonl` lines both identify `29ce6d87eb5b` and `dirty: true`; the reported baseline is also based on `7a01e6a494`, not current `main`. Please provide a current-main/change pair with distinct commit IDs and put both lines, the trace attachments, and digest output in the PR description. The reported CLI/runtime data is useful, but the current evidence does not yet meet the stated gate. I did not find a separate confirmed code defect in the diff during this pass. The related issue #11481 describes a distinct small-tiled-image shadow/write-before-label case; this PR's segmented upload change does not alter that write-back/label path, so I do not consider it a fix for #11481.
MarcZX10 commented 2026-10-29 07:55:02 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T07:55:02Z.

Review: DISMISSED


Re-review — changes requested

The new three-segment and shadow-slab tests address the coverage request, and the CollectWrites refresh is retained inside the accepted-import block. The current performance report and integration evidence still do not satisfy the repository's review requirements.

Findings

[P1] Replace the non-compliant performance capture

This PR is labeled perf. The report's four captures use the RESIDENT EVIL requiem main menu and set APS5_PROFILE_GPU=1 and APS5_TRACE_SUMMARY_EVERY=30 (along with frame-dump/logging switches). The repository's Performance report form requires a stable gameplay scene, warm caches, no other APS5_TRACE_* or APS5_PROFILE_* switch, and no redirected log. Please provide the required matched main/change captures using that protocol, with the two summary lines, attached traces, and trace_digest.py output in the PR description. Alternate at least two runs per build as GAME_TESTING.md requires. The current captures are useful diagnostic evidence but cannot substantiate this PR's performance claim under the prescribed form.

[P2] Validate the current-main integration

The capture/test base is 8ff4baf53489033dae79090640143e82d159ee4d. Current main is 4c7d275bef89d309313d16bc2bc05d37a1b50be2 and has since changed Texture.cpp and Recorder.cpp, both touched by this PR. The merge preview is clean, but the current integrated code has not been covered by the reported GPU tests. Please rebase or integrate current main and rerun the focused upload tests on both current main and the change with the required Vulkan validation settings.

[P2] Close the unexplained long-frame follow-up

The PR description still records 489–767 ms frames only in the candidate captures and says matched repeated controls have not been completed. The later candidate-only runs do not rule out a baseline outlier. Please run the requested matched controls or otherwise identify the cause before retaining the performance claim. I am not treating this as a demonstrated regression; the comparison is currently inconclusive for the tail.

What I checked

  • Exact head 1c01a02411d7af40ed02f786ecbd3c0802f118e1; current main merge preview is clean.
  • The author reports the new three-segment and slab-held cases, validation-layer runs, and a negative control.
  • git diff --check and tools/check_conventions.py pass against current main.
  • Hosted Windows passes; product Linux and specialized jobs are skipped.

Not verified

I did not run a local AGC build or GPU tests; this workspace exposes no Vulkan device.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5694447624 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11485#pullrequestreview-5694447624). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T07:55:02Z. **Review:** DISMISSED --- # Re-review — changes requested The new three-segment and shadow-slab tests address the coverage request, and the `CollectWrites` refresh is retained inside the accepted-import block. The current performance report and integration evidence still do not satisfy the repository's review requirements. ## Findings ### [P1] Replace the non-compliant performance capture This PR is labeled `perf`. The report's four captures use the RESIDENT EVIL requiem main menu and set `APS5_PROFILE_GPU=1` and `APS5_TRACE_SUMMARY_EVERY=30` (along with frame-dump/logging switches). The repository's Performance report form requires a stable gameplay scene, warm caches, no other `APS5_TRACE_*` or `APS5_PROFILE_*` switch, and no redirected log. Please provide the required matched main/change captures using that protocol, with the two summary lines, attached traces, and `trace_digest.py` output in the PR description. Alternate at least two runs per build as `GAME_TESTING.md` requires. The current captures are useful diagnostic evidence but cannot substantiate this PR's performance claim under the prescribed form. ### [P2] Validate the current-main integration The capture/test base is `8ff4baf53489033dae79090640143e82d159ee4d`. Current `main` is `4c7d275bef89d309313d16bc2bc05d37a1b50be2` and has since changed `Texture.cpp` and `Recorder.cpp`, both touched by this PR. The merge preview is clean, but the current integrated code has not been covered by the reported GPU tests. Please rebase or integrate current `main` and rerun the focused upload tests on both current main and the change with the required Vulkan validation settings. ### [P2] Close the unexplained long-frame follow-up The PR description still records 489–767 ms frames only in the candidate captures and says matched repeated controls have not been completed. The later candidate-only runs do not rule out a baseline outlier. Please run the requested matched controls or otherwise identify the cause before retaining the performance claim. I am not treating this as a demonstrated regression; the comparison is currently inconclusive for the tail. ## What I checked - Exact head `1c01a02411d7af40ed02f786ecbd3c0802f118e1`; current `main` merge preview is clean. - The author reports the new three-segment and slab-held cases, validation-layer runs, and a negative control. - `git diff --check` and `tools/check_conventions.py` pass against current `main`. - Hosted Windows passes; product Linux and specialized jobs are skipped. ## Not verified I did not run a local AGC build or GPU tests; this workspace exposes no Vulkan device.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!11485
No description provided.