perf(agc): import a labelled guest mapping once it has outlived three flips #26384

Merged
JJenkx merged 2 commits from upstream-pr/26384 into main 2026-11-28 10:57:23 +00:00
JJenkx commented 2026-11-23 22:04:45 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-11-23T22:04:45Z.


What

Since #7464 a queue-0 label whose guest memory no host import covers is stored on the CPU after recorder.Sync() (WriteLabelOnGpu reason 7), instead of importing the memory for the label. #7465 leaves mappings of 64 KiB or less unimported until their first GPU use, and #7464 measured that importing such a block for its label cost SuperTuxKart (PPSA69421) an import per frame, because it maps and unmaps its label block every frame (#25912).

A title that keeps its label block mapped pays the sync on every label instead. Absolum (PPSA28311) writes labels into three 64 KiB guest allocations that stay mapped for the whole run and that nothing else imports. Private timers in Driver::commitLabel and VulkanDevice::WriteLabelOnGpu (diagnostic builds, not part of this PR) in its campfire scene, per 10 s:

WriteLabelOnGpu returned labels each total
0, recorded on the GPU 175,000–180,000 3 µs ~0.5 s
7, recorder.Sync() and a CPU store 262–341 14–19 ms ~4.9 s

This PR keeps #7464's path for a mapping's first labels and imports a mapping that is clearly long-lived:

  • LabelMappingSettled remembers, per allocation, the backing serial and the flip (StorageTexture::FlipSerial(), the count NoteFlip already keeps) of the first label it saw.
  • When a queue-0 label finds no covering import, a mapping labelled before under the same backing serial, three or more flips earlier, falls through to the existing import path (HostImportFor) and is recorded on the GPU, as a compute-queue label already is. Every other case takes reason 7 as before.
  • A new mapping gets a fresh backing serial (GuestAllocations assigns one on insert, also at a reused address), so a block mapped and unmapped every frame never reaches three flips and keeps today's behaviour.

The table is bounded (cleared at 4,096 allocations) and guarded by its own mutex.

agc_driver_unimported_label_order gains a case: the first label of a new mapping still takes reason 7 without importing; after three NoteFlip() a label of the same mapping returns 0 and imports its memory; the first label of another new mapping still takes reason 7; both labels land.

Tested

Windows 11 Enterprise 22621, Ryzen 9 5950X, Radeon RX 6700 XT (AMD driver 26.11.2), WinLibs GCC 15.2 UCRT r7, Release, Ninja. Built and tested on main f784587f30 (candidate commit 7b6ee9180f23); the branch was then rebased onto 5ae28f2373, which changes nothing under core/libs/prx/libSceAgcDriver.

GPU tests: every test of the 44 label, host import, pending producer and sleep wake executables (47 tests, including the three agc_driver_unimported_label_order variants), 3 runs: 47/47 each run. Four skip here in every run: agc_driver_copied_writer_label_order and its _drain variant (the device reports a minStorageBufferOffsetAlignment of 4), agc_driver_host_import_dma_buf_watch (the device does not select dma-buf) and agc_host_import_sparse (udmabuf is Linux only). Control: the same tree with VulkanDevice.cpp restored to main (the new case and FlipSerial kept), 3 runs: all three agc_driver_unimported_label_order variants fail every run with a label of a mapping labelled three flips earlier synced instead of importing its memory (reason 7).

Absolum (PPSA28311, 01.002.000), the campfire scene with the character HUD, same converted title, save and route each arm (Cross every 6 s from 30 s), 3840×2160, each arm copying its build's libraries in (driver hashes in arm.txt), APS5_TRACE_SECONDS=290:20 only. Arms in main, PR, PR, main order; the first main arm crashed in the title's own code at 11 s (app.exe+0x82612, a write just above 0x200000000, the same early crash I have seen once before on plain main bfcd717ebc5 without this change), so one more main arm ran after them. The 300 s screenshots show the same frame in every arm.

Run Arm Presents in 20 s p50 ms p90 ms p99 ms GPU busy ms per present
2 this PR 945 20.6 23.5 37.6 13.7
3 this PR 934 20.9 23.1 39.5 14.1
4 main 530 37.5 42.5 48.5 24.3
5 main 546 36.5 41.4 48.3 23.4

On average 939.5 against 538 presents (+75%) and p50 20.8 against 37.0 ms. All four summaries are "dirty":false with only the four variables above in env.

Snoopy and the Great Mystery Club (PPSA28795), first backyard scene, same builds and machine, main, PR, PR, main: 223 / 260 / 256 / 223 presents per 20 s, p50 89.9 / 77.2 / 78.2 / 89.9 ms (+16% presents). Summary lines, digests and traces in this comment. A one-off Double Dragon Gaiden (PPSA16018) run with this PR showed no change.

Independent Windows validation reported by AlfaRojo: Windows 11 Pro 26200, GCC 15.2.0 Release, Khronos layer 1.4.363 inserted in every log, on an NVIDIA GeForce RTX 4070 and an AMD Radeon iGPU (gfx1036). The three agc_driver_unimported_label_order tests pass 9 of 9 on each GPU (3 runs). With VulkanDevice.cpp, Texture.hpp and Texture.cpp restored to main, all three fail in every run with "a label of a mapping labelled three flips earlier synced instead of importing its memory (reason 7)". 0 VUID- in every log. Test results only, no performance measured.

Not tested: SuperTuxKart. There is no SuperTuxKart dump on this machine. By construction its per-frame label block keeps #7464's path as long as each mapping lives fewer than three flips; a block that lives longer would now be imported once per mapping instead of syncing for every label after its third flip. Linux and macOS, and other GPUs, are also untested.

Traces, summaries, screenshots, test logs, the control, scripts and the diagnostic timer patch, SHA-256 40694d547d0d43efca6c0b7eb35a8d788b289d00215a447ebcc16760cb86737a.

tools/check_conventions.py --base origin/main: passed.

Performance report

Summary lines (aps5-summary.jsonl), in run order; traces in the release linked above.

Summary lines
{"commit":"f784587f30bf","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_PLAYGO_UNLISTED_CHUNKS":"installed","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"290:20"},"gpu":"AMD Radeon RX 6700 XT","driver":"AMD proprietary driver 26.11.2 (AMD proprietary shader compiler)","os":"Windows 10.0.22621","cpu":"AMD Ryzen 9 5950X 16-Core Processor","cpu_threads":32,"memory_mib":65457,"title_id":"PPSA28311","title":"Absolum","content_version":"01.002.000","resolution":"3840x2160","window":{"spec":"seconds 290:20","first_present":10178,"ms":20026.704},"presents":530,"frame_ms":{"p50":37.506,"p90":42.480,"p99":48.510,"max":52.429},"gpu_busy_ms_per_present":24.312,"worker_busy_pct":{"queue worker 0x0":72.529},"phase_totals_ms":{"Driver.Completion":1.169,"Driver.Dispatch":4257.785,"Driver.Dispatch.capture_resources":209.641,"Driver.Dispatch.decode_key_device_setup":850.391,"Driver.Dispatch.lookup_cache":61.298,"Driver.Dispatch.materialize":165.457,"Driver.Dispatch.prepared_invocation":181.042,"Driver.Draw":7277.026,"Driver.Draw.device_setup":149.557,"Driver.Draw.draw_enqueued":5351.901,"Driver.Draw.post_compile_prepare":54.485,"Driver.Draw.prepare":318.890,"Driver.Draw.shader_compile_and_link":1337.470,"Driver.EndSubmission":1.044,"Driver.Packet":14522.904,"Driver.Packet.device_lock":123.097,"Driver.Packet.dispatch":4328.227,"Driver.Packet.draw":7313.975,"Driver.Packet.execute":292.726,"Driver.Packet.flip_flush":17.246,"Driver.Packet.flush_between_packets":1083.053,"Driver.Packet.memory_wait":0.212,"Driver.Packet.pipeline_drain":599.669,"Driver.Packet.pipeline_prepare":174.624,"Driver.Packet.prepare_memory":162.813,"Driver.Packet.rendering_wait":0.560,"Driver.Present":13139.593,"Driver.Present.acquire_image":5830.535,"Driver.Present.device_setup":0.526,"Driver.Present.gpu_mutex_wait":7054.778,"Driver.Present.inflight_wait":1.409,"Driver.Present.present_display_buffer":84.081,"Driver.Present.queue_present":76.503,"Driver.Present.release_and_callback":0.782,"Driver.Present.render_fence_wait":89.546,"Driver.Present.resize":0.896,"Driver.Present.validate":0.192,"Driver.Suspend":0.117,"GpuMutex.wait.dispatch":22.027,"GpuMutex.wait.draw":0.862,"GpuMutex.wait.end":24.178,"GpuMutex.wait.fill":12.799,"GpuMutex.wait.flush":0.363,"GpuMutex.wait.hook":247.071,"GpuMutex.wait.label":25.913,"GpuMutex.wait.other":2.220,"GpuMutex.wait.present":7053.063,"GpuMutex.wait.wait":1032.630,"Graphics.Draw":2315.048,"Graphics.Draw.draw_and_resource_release":1757.926,"Graphics.Draw.index_upload":186.411,"Graphics.Draw.validate":160.928,"Graphics.Draw.vertex_upload":175.339,"Graphics.DrawWithRecipe":91.033,"Graphics.DrawWithRecipe.draw_and_resource_release":77.499,"Graphics.DrawWithRecipe.index_upload":3.286,"Graphics.DrawWithRecipe.validate":3.826,"Graphics.DrawWithRecipe.vertex_upload":5.348,"Recorder.Reap":342.547,"Recorder.Submit":925.851,"Recorder.Sync":9731.097,"Recorder.WaitSerial":6846.820,"Resources.Complete":14.043,"Resources.Prepare":20.333,"Shader.DrawStage":647.402,"Shader.DrawStage.capture_resources":268.549,"Shader.DrawStage.materialize":122.144,"Shader.DrawStage.prepared_invocation":235.114,"VideoOut.Flip":13142.272,"VideoOut.Flip.completion_mutex_wait":0.611,"VideoOut.Flip.config_mutex_wait":0.067,"VideoOut.Flip.frame_limit":0.292,"VideoOut.Flip.notify_game":12.636,"VideoOut.Flip.present":13123.906,"VideoOut.Flip.validate":0.662,"VideoOut.Flip.vblank_wait":0.418,"VideoOut.Flip.window_prepare":0.788,"VideoOut.Flip.window_title":2.346,"VideoOut.Readiness":1.150,"VideoOut.Readiness.locks_validate":0.372,"Vulkan.Acquire":5829.841,"Vulkan.Acquire.acquire_fence_wait":5781.080,"Vulkan.Acquire.acquire_image":46.260,"Vulkan.Acquire.fence_reset":1.215,"Vulkan.Acquire.retired_swapchains":1.016,"Vulkan.Dispatch":1544.179,"Vulkan.Dispatch.command_record":780.942,"Vulkan.Dispatch.shader_resources":736.959,"Vulkan.DispatchRecipe":0.246,"Vulkan.DispatchRecipe.command_record":0.243,"Vulkan.DrawFromRecipe":93.052,"Vulkan.Present":39.743,"Vulkan.Present.command_record_scale":19.521,"Vulkan.Present.pixel_upload":9.035,"Vulkan.Present.queue_submit":10.738,"Vulkan.QueuePresent":74.758,"Vulkan.QueuePresent.queue_present":73.823,"Vulkan.Retire":89.386,"Vulkan.Retire.wait":82.622},"top_phases_ms_per_frame":{"Driver.Packet":27.402,"VideoOut.Flip":24.797,"Driver.Present":24.792,"VideoOut.Flip.present":24.762,"Recorder.Sync":18.361,"Driver.Packet.draw":13.800,"Driver.Draw":13.730,"Driver.Present.gpu_mutex_wait":13.311},"owned_draw_counts":{},"graphics_track":{"Graphics.Barrier.copy":2650,"Graphics.Barrier.dispatch-lead":46581,"Graphics.Barrier.dispatch-trail":178254,"Graphics.Barrier.draw":11172,"Graphics.Barrier.fill":42,"Graphics.Barrier.fill-clear":7420,"Graphics.Barrier.label-run":231095,"Graphics.Barrier.present-blit":1060,"Graphics.Barrier.shadow-publish":530,"Graphics.Barrier.storage-writeback":1590,"Graphics.BarrierMerged.dispatch-lead":131673,"Graphics.BarrierMerged.fill":12,"Graphics.BarrierMerged.shadow-publish":530,"Graphics.RenderPass":4772,"Graphics.RenderPass.Close.command":2650,"Graphics.RenderPass.Close.image":1589,"Graphics.RenderPass.Close.new-batch":533,"Graphics.RenderPass.Continued":174012},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":15.140,"events_lost":81547,"totals_full":false}},"trace":"aps5-trace-f784587f30bf-278592.json.gz"}
{"commit":"7b6ee9180f23","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_PLAYGO_UNLISTED_CHUNKS":"installed","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"290:20"},"gpu":"AMD Radeon RX 6700 XT","driver":"AMD proprietary driver 26.11.2 (AMD proprietary shader compiler)","os":"Windows 10.0.22621","cpu":"AMD Ryzen 9 5950X 16-Core Processor","cpu_threads":32,"memory_mib":65457,"title_id":"PPSA28311","title":"Absolum","content_version":"01.002.000","resolution":"3840x2160","window":{"spec":"seconds 290:20","first_present":13939,"ms":20001.686},"presents":945,"frame_ms":{"p50":20.600,"p90":23.488,"p99":37.603,"max":48.607},"gpu_busy_ms_per_present":13.710,"worker_busy_pct":{"queue worker 0x0":94.650},"phase_totals_ms":{"Driver.Completion":2.466,"Driver.Dispatch":7575.959,"Driver.Dispatch.capture_resources":405.040,"Driver.Dispatch.decode_key_device_setup":1455.221,"Driver.Dispatch.lookup_cache":104.840,"Driver.Dispatch.materialize":297.412,"Driver.Dispatch.prepared_invocation":346.023,"Driver.Draw":4859.673,"Driver.Draw.device_setup":266.124,"Driver.Draw.draw_enqueued":1215.932,"Driver.Draw.post_compile_prepare":98.062,"Driver.Draw.prepare":572.252,"Driver.Draw.shader_compile_and_link":2591.961,"Driver.EndSubmission":2.079,"Driver.Packet":18926.930,"Driver.Packet.device_lock":232.336,"Driver.Packet.dispatch":7716.039,"Driver.Packet.draw":4930.697,"Driver.Packet.execute":532.317,"Driver.Packet.flip_flush":31.047,"Driver.Packet.flush_between_packets":2352.507,"Driver.Packet.memory_wait":0.096,"Driver.Packet.pipeline_drain":1739.372,"Driver.Packet.pipeline_prepare":339.517,"Driver.Packet.prepare_memory":299.326,"Driver.Packet.rendering_wait":0.923,"Driver.Present":14482.126,"Driver.Present.acquire_image":10704.185,"Driver.Present.device_setup":0.481,"Driver.Present.gpu_mutex_wait":271.614,"Driver.Present.inflight_wait":2.193,"Driver.Present.present_display_buffer":166.783,"Driver.Present.queue_present":154.242,"Driver.Present.release_and_callback":1.414,"Driver.Present.render_fence_wait":3179.069,"Driver.Present.resize":1.259,"Driver.Present.validate":0.316,"Driver.Suspend":0.149,"GpuMutex.wait.dispatch":25.129,"GpuMutex.wait.draw":521.272,"GpuMutex.wait.end":1.152,"GpuMutex.wait.fill":60.930,"GpuMutex.wait.flush":4.382,"GpuMutex.wait.hook":169.108,"GpuMutex.wait.label":67.987,"GpuMutex.wait.other":12.487,"GpuMutex.wait.present":268.682,"GpuMutex.wait.wait":295.892,"Graphics.Draw":4483.865,"Graphics.Draw.draw_and_resource_release":3402.117,"Graphics.Draw.index_upload":388.699,"Graphics.Draw.validate":299.403,"Graphics.Draw.vertex_upload":334.493,"Graphics.DrawWithRecipe":166.180,"Graphics.DrawWithRecipe.draw_and_resource_release":136.338,"Graphics.DrawWithRecipe.index_upload":11.033,"Graphics.DrawWithRecipe.validate":5.750,"Graphics.DrawWithRecipe.vertex_upload":11.246,"Recorder.Reap":1802.208,"Recorder.Submit":1470.728,"Recorder.Sync":11.844,"Recorder.WaitSerial":10948.627,"Resources.Complete":26.544,"Resources.Prepare":37.322,"Shader.DrawStage":1221.169,"Shader.DrawStage.capture_resources":505.777,"Shader.DrawStage.materialize":233.585,"Shader.DrawStage.prepared_invocation":442.863,"VideoOut.Flip":14614.709,"VideoOut.Flip.completion_mutex_wait":0.951,"VideoOut.Flip.config_mutex_wait":0.122,"VideoOut.Flip.frame_limit":0.601,"VideoOut.Flip.notify_game":15.245,"VideoOut.Flip.present":14472.017,"VideoOut.Flip.validate":1.141,"VideoOut.Flip.vblank_wait":118.385,"VideoOut.Flip.window_prepare":1.323,"VideoOut.Flip.window_title":4.045,"VideoOut.Readiness":1.914,"VideoOut.Readiness.locks_validate":0.623,"Vulkan.Acquire":10703.042,"Vulkan.Acquire.acquire_fence_wait":10625.291,"Vulkan.Acquire.acquire_image":72.497,"Vulkan.Acquire.fence_reset":2.196,"Vulkan.Acquire.retired_swapchains":2.516,"Vulkan.Dispatch":2766.985,"Vulkan.Dispatch.command_record":1406.679,"Vulkan.Dispatch.shader_resources":1323.178,"Vulkan.DispatchRecipe":0.093,"Vulkan.DispatchRecipe.command_record":0.092,"Vulkan.DrawFromRecipe":169.301,"Vulkan.Present":80.557,"Vulkan.Present.command_record_scale":36.920,"Vulkan.Present.pixel_upload":23.443,"Vulkan.Present.queue_submit":19.276,"Vulkan.QueuePresent":150.050,"Vulkan.QueuePresent.queue_present":148.259,"Vulkan.Retire":3178.682,"Vulkan.Retire.wait":3165.415},"top_phases_ms_per_frame":{"Driver.Packet":20.028,"VideoOut.Flip":15.465,"Driver.Present":15.325,"VideoOut.Flip.present":15.314,"Recorder.WaitSerial":11.586,"Driver.Present.acquire_image":11.327,"Vulkan.Acquire":11.326,"Vulkan.Acquire.acquire_fence_wait":11.244},"owned_draw_counts":{},"graphics_track":{"Graphics.Barrier.copy":4725,"Graphics.Barrier.dispatch-lead":81553,"Graphics.Barrier.dispatch-trail":318645,"Graphics.Barrier.draw":23529,"Graphics.Barrier.fill":28,"Graphics.Barrier.fill-clear":13230,"Graphics.Barrier.label-run":410831,"Graphics.Barrier.present-blit":1890,"Graphics.Barrier.shadow-publish":945,"Graphics.Barrier.storage-writeback":2835,"Graphics.BarrierMerged.dispatch-lead":237092,"Graphics.BarrierMerged.fill":8,"Graphics.BarrierMerged.shadow-publish":945,"Graphics.RenderPass":8760,"Graphics.RenderPass.Close.command":4710,"Graphics.RenderPass.Close.image":2830,"Graphics.RenderPass.Close.new-batch":1217,"Graphics.RenderPass.Continued":310830},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":11.555,"events_lost":183191,"totals_full":false}},"trace":"aps5-trace-7b6ee9180f23-245520.json.gz"}
{"commit":"7b6ee9180f23","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_PLAYGO_UNLISTED_CHUNKS":"installed","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"290:20"},"gpu":"AMD Radeon RX 6700 XT","driver":"AMD proprietary driver 26.11.2 (AMD proprietary shader compiler)","os":"Windows 10.0.22621","cpu":"AMD Ryzen 9 5950X 16-Core Processor","cpu_threads":32,"memory_mib":65457,"title_id":"PPSA28311","title":"Absolum","content_version":"01.002.000","resolution":"3840x2160","window":{"spec":"seconds 290:20","first_present":13882,"ms":20010.437},"presents":934,"frame_ms":{"p50":20.919,"p90":23.089,"p99":39.535,"max":57.511},"gpu_busy_ms_per_present":14.067,"worker_busy_pct":{"queue worker 0x0":94.126},"phase_totals_ms":{"Driver.Completion":2.995,"Driver.Dispatch":7333.862,"Driver.Dispatch.capture_resources":379.195,"Driver.Dispatch.decode_key_device_setup":1328.615,"Driver.Dispatch.lookup_cache":110.769,"Driver.Dispatch.materialize":287.409,"Driver.Dispatch.prepared_invocation":330.696,"Driver.Draw":4729.462,"Driver.Draw.device_setup":263.695,"Driver.Draw.draw_enqueued":1107.926,"Driver.Draw.post_compile_prepare":97.650,"Driver.Draw.prepare":567.913,"Driver.Draw.shader_compile_and_link":2586.424,"Driver.EndSubmission":2.412,"Driver.Packet":18829.457,"Driver.Packet.device_lock":229.069,"Driver.Packet.dispatch":7470.633,"Driver.Packet.draw":4795.635,"Driver.Packet.execute":529.888,"Driver.Packet.flip_flush":30.576,"Driver.Packet.flush_between_packets":2437.222,"Driver.Packet.memory_wait":0.156,"Driver.Packet.pipeline_drain":1950.475,"Driver.Packet.pipeline_prepare":333.908,"Driver.Packet.prepare_memory":303.616,"Driver.Packet.rendering_wait":1.295,"Driver.Present":14621.108,"Driver.Present.acquire_image":10702.110,"Driver.Present.device_setup":0.455,"Driver.Present.gpu_mutex_wait":305.978,"Driver.Present.inflight_wait":2.126,"Driver.Present.present_display_buffer":165.408,"Driver.Present.queue_present":150.999,"Driver.Present.release_and_callback":1.320,"Driver.Present.render_fence_wait":3290.667,"Driver.Present.resize":1.135,"Driver.Present.validate":0.333,"Driver.Suspend":0.141,"GpuMutex.wait.dispatch":30.564,"GpuMutex.wait.draw":686.282,"GpuMutex.wait.end":0.386,"GpuMutex.wait.fill":52.425,"GpuMutex.wait.flush":5.367,"GpuMutex.wait.hook":159.577,"GpuMutex.wait.label":57.062,"GpuMutex.wait.other":44.819,"GpuMutex.wait.present":303.225,"GpuMutex.wait.wait":407.115,"Graphics.Draw":4532.233,"Graphics.Draw.draw_and_resource_release":3416.146,"Graphics.Draw.index_upload":404.764,"Graphics.Draw.validate":303.334,"Graphics.Draw.vertex_upload":348.151,"Graphics.DrawWithRecipe":184.274,"Graphics.DrawWithRecipe.draw_and_resource_release":150.187,"Graphics.DrawWithRecipe.index_upload":15.316,"Graphics.DrawWithRecipe.validate":6.318,"Graphics.DrawWithRecipe.vertex_upload":10.533,"Recorder.Reap":1758.307,"Recorder.Submit":1460.694,"Recorder.Sync":64.728,"Recorder.WaitSerial":10989.856,"Resources.Complete":26.909,"Resources.Prepare":38.164,"Shader.DrawStage":1188.607,"Shader.DrawStage.capture_resources":485.373,"Shader.DrawStage.materialize":230.298,"Shader.DrawStage.prepared_invocation":434.659,"VideoOut.Flip":14677.546,"VideoOut.Flip.completion_mutex_wait":0.948,"VideoOut.Flip.config_mutex_wait":0.121,"VideoOut.Flip.frame_limit":0.534,"VideoOut.Flip.notify_game":14.887,"VideoOut.Flip.present":14609.305,"VideoOut.Flip.validate":1.109,"VideoOut.Flip.vblank_wait":44.798,"VideoOut.Flip.window_prepare":1.367,"VideoOut.Flip.window_title":3.691,"VideoOut.Readiness":1.932,"VideoOut.Readiness.locks_validate":0.576,"Vulkan.Acquire":10701.041,"Vulkan.Acquire.acquire_fence_wait":10625.729,"Vulkan.Acquire.acquire_image":70.333,"Vulkan.Acquire.fence_reset":2.094,"Vulkan.Acquire.retired_swapchains":2.357,"Vulkan.Dispatch":2732.797,"Vulkan.Dispatch.command_record":1380.961,"Vulkan.Dispatch.shader_resources":1312.151,"Vulkan.DispatchRecipe":0.614,"Vulkan.DispatchRecipe.command_record":0.604,"Vulkan.DrawFromRecipe":187.759,"Vulkan.Present":80.251,"Vulkan.Present.command_record_scale":36.320,"Vulkan.Present.pixel_upload":23.753,"Vulkan.Present.queue_submit":19.316,"Vulkan.QueuePresent":146.767,"Vulkan.QueuePresent.queue_present":144.916,"Vulkan.Retire":3290.293,"Vulkan.Retire.wait":3277.789},"top_phases_ms_per_frame":{"Driver.Packet":20.160,"VideoOut.Flip":15.715,"Driver.Present":15.654,"VideoOut.Flip.present":15.642,"Recorder.WaitSerial":11.766,"Driver.Present.acquire_image":11.458,"Vulkan.Acquire":11.457,"Vulkan.Acquire.acquire_fence_wait":11.377},"owned_draw_counts":{},"graphics_track":{"Graphics.Barrier.copy":4670,"Graphics.Barrier.dispatch-lead":80509,"Graphics.Barrier.dispatch-trail":312788,"Graphics.Barrier.draw":23976,"Graphics.Barrier.fill":42,"Graphics.Barrier.fill-clear":13076,"Graphics.Barrier.label-run":402239,"Graphics.Barrier.present-blit":1868,"Graphics.Barrier.shadow-publish":934,"Graphics.Barrier.storage-writeback":2802,"Graphics.BarrierMerged.dispatch-lead":232279,"Graphics.BarrierMerged.fill":12,"Graphics.BarrierMerged.shadow-publish":934,"Graphics.RenderPass":8695,"Graphics.RenderPass.Close.command":4648,"Graphics.RenderPass.Close.image":2790,"Graphics.RenderPass.Close.new-batch":1254,"Graphics.RenderPass.Continued":305071},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":11.911,"events_lost":178775,"totals_full":false}},"trace":"aps5-trace-7b6ee9180f23-252440.json.gz"}
{"commit":"f784587f30bf","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_PLAYGO_UNLISTED_CHUNKS":"installed","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"290:20"},"gpu":"AMD Radeon RX 6700 XT","driver":"AMD proprietary driver 26.11.2 (AMD proprietary shader compiler)","os":"Windows 10.0.22621","cpu":"AMD Ryzen 9 5950X 16-Core Processor","cpu_threads":32,"memory_mib":65457,"title_id":"PPSA28311","title":"Absolum","content_version":"01.002.000","resolution":"3840x2160","window":{"spec":"seconds 290:20","first_present":10139,"ms":20013.276},"presents":546,"frame_ms":{"p50":36.495,"p90":41.419,"p99":48.278,"max":63.339},"gpu_busy_ms_per_present":23.436,"worker_busy_pct":{"queue worker 0x0":72.566},"phase_totals_ms":{"Driver.Completion":1.094,"Driver.Dispatch":4278.762,"Driver.Dispatch.capture_resources":215.720,"Driver.Dispatch.decode_key_device_setup":849.916,"Driver.Dispatch.lookup_cache":61.195,"Driver.Dispatch.materialize":170.318,"Driver.Dispatch.prepared_invocation":186.044,"Driver.Draw":7255.767,"Driver.Draw.device_setup":151.765,"Driver.Draw.draw_enqueued":5313.002,"Driver.Draw.post_compile_prepare":53.977,"Driver.Draw.prepare":317.849,"Driver.Draw.shader_compile_and_link":1354.377,"Driver.EndSubmission":1.050,"Driver.Packet":14520.501,"Driver.Packet.device_lock":125.038,"Driver.Packet.dispatch":4348.017,"Driver.Packet.draw":7292.102,"Driver.Packet.execute":294.726,"Driver.Packet.flip_flush":16.843,"Driver.Packet.flush_between_packets":1031.607,"Driver.Packet.memory_wait":0.138,"Driver.Packet.pipeline_drain":642.490,"Driver.Packet.pipeline_prepare":180.054,"Driver.Packet.prepare_memory":164.437,"Driver.Packet.rendering_wait":0.556,"Driver.Present":13030.680,"Driver.Present.acquire_image":5796.911,"Driver.Present.device_setup":0.538,"Driver.Present.gpu_mutex_wait":7005.338,"Driver.Present.inflight_wait":1.444,"Driver.Present.present_display_buffer":85.653,"Driver.Present.queue_present":77.228,"Driver.Present.release_and_callback":0.790,"Driver.Present.render_fence_wait":61.311,"Driver.Present.resize":0.922,"Driver.Present.validate":0.198,"Driver.Suspend":0.133,"GpuMutex.wait.dispatch":20.506,"GpuMutex.wait.draw":23.359,"GpuMutex.wait.end":24.551,"GpuMutex.wait.fill":12.639,"GpuMutex.wait.hook":332.293,"GpuMutex.wait.label":27.598,"GpuMutex.wait.other":6.799,"GpuMutex.wait.present":7003.527,"GpuMutex.wait.wait":1051.449,"Graphics.Draw":2371.953,"Graphics.Draw.draw_and_resource_release":1813.642,"Graphics.Draw.index_upload":186.993,"Graphics.Draw.validate":163.022,"Graphics.Draw.vertex_upload":175.439,"Graphics.DrawWithRecipe":92.217,"Graphics.DrawWithRecipe.draw_and_resource_release":79.418,"Graphics.DrawWithRecipe.index_upload":3.797,"Graphics.DrawWithRecipe.validate":3.306,"Graphics.DrawWithRecipe.vertex_upload":4.751,"Recorder.Reap":350.007,"Recorder.Submit":868.277,"Recorder.Sync":9675.629,"Recorder.WaitSerial":6747.012,"Resources.Complete":14.118,"Resources.Prepare":21.498,"Shader.DrawStage":667.438,"Shader.DrawStage.capture_resources":273.236,"Shader.DrawStage.materialize":126.948,"Shader.DrawStage.prepared_invocation":244.508,"VideoOut.Flip":13040.344,"VideoOut.Flip.completion_mutex_wait":0.606,"VideoOut.Flip.config_mutex_wait":0.064,"VideoOut.Flip.frame_limit":0.304,"VideoOut.Flip.notify_game":18.298,"VideoOut.Flip.present":13016.390,"VideoOut.Flip.validate":0.682,"VideoOut.Flip.vblank_wait":0.412,"VideoOut.Flip.window_prepare":0.770,"VideoOut.Flip.window_title":2.293,"VideoOut.Readiness":1.165,"VideoOut.Readiness.locks_validate":0.391,"Vulkan.Acquire":5796.244,"Vulkan.Acquire.acquire_fence_wait":5747.451,"Vulkan.Acquire.acquire_image":46.082,"Vulkan.Acquire.fence_reset":1.227,"Vulkan.Acquire.retired_swapchains":1.188,"Vulkan.Dispatch":1533.771,"Vulkan.Dispatch.command_record":770.594,"Vulkan.Dispatch.shader_resources":736.125,"Vulkan.DispatchRecipe":0.073,"Vulkan.DispatchRecipe.command_record":0.072,"Vulkan.DrawFromRecipe":94.075,"Vulkan.Present":40.770,"Vulkan.Present.command_record_scale":19.738,"Vulkan.Present.pixel_upload":9.403,"Vulkan.Present.queue_submit":11.205,"Vulkan.QueuePresent":75.368,"Vulkan.QueuePresent.queue_present":74.387,"Vulkan.Retire":61.165,"Vulkan.Retire.wait":54.331},"top_phases_ms_per_frame":{"Driver.Packet":26.594,"VideoOut.Flip":23.883,"Driver.Present":23.866,"VideoOut.Flip.present":23.840,"Recorder.Sync":17.721,"Driver.Packet.draw":13.355,"Driver.Draw":13.289,"Driver.Present.gpu_mutex_wait":12.830},"owned_draw_counts":{},"graphics_track":{"Graphics.Barrier.copy":2730,"Graphics.Barrier.dispatch-lead":46830,"Graphics.Barrier.dispatch-trail":181963,"Graphics.Barrier.draw":11508,"Graphics.Barrier.fill":28,"Graphics.Barrier.fill-clear":7644,"Graphics.Barrier.label-run":235022,"Graphics.Barrier.present-blit":1092,"Graphics.Barrier.shadow-publish":546,"Graphics.Barrier.storage-writeback":1638,"Graphics.BarrierMerged.dispatch-lead":135133,"Graphics.BarrierMerged.fill":8,"Graphics.BarrierMerged.shadow-publish":546,"Graphics.RenderPass":4916,"Graphics.RenderPass.Close.command":2730,"Graphics.RenderPass.Close.image":1637,"Graphics.RenderPass.Close.new-batch":549,"Graphics.RenderPass.Continued":177593},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":16.476,"events_lost":56738,"totals_full":false}},"trace":"aps5-trace-f784587f30bf-253228.json.gz"}
tools/trace_digest.py, main (run 4)
**seconds 290:20** from present 10178: 530 presents, frame p50 37.5 / p90 42.5 / p99 48.5 / max 52.4 ms, GPU busy 24.3 ms per present
AMD Radeon RX 6700 XT, AMD proprietary driver 26.11.2 (AMD proprietary shader compiler), Windows 10.0.22621, 3840x2160, commit f784587f30bf, dropped: yes

```json
{"commit":"f784587f30bf","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_PLAYGO_UNLISTED_CHUNKS":"installed","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"290:20"},"gpu":"AMD Radeon RX 6700 XT","driver":"AMD proprietary driver 26.11.2 (AMD proprietary shader compiler)","os":"Windows 10.0.22621","cpu":"AMD Ryzen 9 5950X 16-Core Processor","cpu_threads":32,"memory_mib":65457,"title_id":"PPSA28311","title":"Absolum","content_version":"01.002.000","resolution":"3840x2160","window":{"spec":"seconds 290:20","first_present":10178,"ms":20026.704},"presents":530,"frame_ms":{"p50":37.506,"p90":42.48,"p99":48.51,"max":52.429},"gpu_busy_ms_per_present":24.312,"worker_busy_pct":{"queue worker 0x0":72.529},"phase_totals_ms":{"Driver.Completion":1.169,"Driver.Dispatch":4257.785,"Driver.Dispatch.capture_resources":209.641,"Driver.Dispatch.decode_key_device_setup":850.391,"Driver.Dispatch.lookup_cache":61.298,"Driver.Dispatch.materialize":165.457,"Driver.Dispatch.prepared_invocation":181.042,"Driver.Draw":7277.026,"Driver.Draw.device_setup":149.557,"Driver.Draw.draw_enqueued":5351.901,"Driver.Draw.post_compile_prepare":54.485,"Driver.Draw.prepare":318.89,"Driver.Draw.shader_compile_and_link":1337.47,"Driver.EndSubmission":1.044,"Driver.Packet":14522.904,"Driver.Packet.device_lock":123.097,"Driver.Packet.dispatch":4328.227,"Driver.Packet.draw":7313.975,"Driver.Packet.execute":292.726,"Driver.Packet.flip_flush":17.246,"Driver.Packet.flush_between_packets":1083.053,"Driver.Packet.memory_wait":0.212,"Driver.Packet.pipeline_drain":599.669,"Driver.Packet.pipeline_prepare":174.624,"Driver.Packet.prepare_memory":162.813,"Driver.Packet.rendering_wait":0.56,"Driver.Present":13139.593,"Driver.Present.acquire_image":5830.535,"Driver.Present.device_setup":0.526,"Driver.Present.gpu_mutex_wait":7054.778,"Driver.Present.inflight_wait":1.409,"Driver.Present.present_display_buffer":84.081,"Driver.Present.queue_present":76.503,"Driver.Present.release_and_callback":0.782,"Driver.Present.render_fence_wait":89.546,"Driver.Present.resize":0.896,"Driver.Present.validate":0.192,"Driver.Suspend":0.117,"GpuMutex.wait.dispatch":22.027,"GpuMutex.wait.draw":0.862,"GpuMutex.wait.end":24.178,"GpuMutex.wait.fill":12.799,"GpuMutex.wait.flush":0.363,"GpuMutex.wait.hook":247.071,"GpuMutex.wait.label":25.913,"GpuMutex.wait.other":2.22,"GpuMutex.wait.present":7053.063,"GpuMutex.wait.wait":1032.63,"Graphics.Draw":2315.048,"Graphics.Draw.draw_and_resource_release":1757.926,"Graphics.Draw.index_upload":186.411,"Graphics.Draw.validate":160.928,"Graphics.Draw.vertex_upload":175.339,"Graphics.DrawWithRecipe":91.033,"Graphics.DrawWithRecipe.draw_and_resource_release":77.499,"Graphics.DrawWithRecipe.index_upload":3.286,"Graphics.DrawWithRecipe.validate":3.826,"Graphics.DrawWithRecipe.vertex_upload":5.348,"Recorder.Reap":342.547,"Recorder.Submit":925.851,"Recorder.Sync":9731.097,"Recorder.WaitSerial":6846.82,"Resources.Complete":14.043,"Resources.Prepare":20.333,"Shader.DrawStage":647.402,"Shader.DrawStage.capture_resources":268.549,"Shader.DrawStage.materialize":122.144,"Shader.DrawStage.prepared_invocation":235.114,"VideoOut.Flip":13142.272,"VideoOut.Flip.completion_mutex_wait":0.611,"VideoOut.Flip.config_mutex_wait":0.067,"VideoOut.Flip.frame_limit":0.292,"VideoOut.Flip.notify_game":12.636,"VideoOut.Flip.present":13123.906,"VideoOut.Flip.validate":0.662,"VideoOut.Flip.vblank_wait":0.418,"VideoOut.Flip.window_prepare":0.788,"VideoOut.Flip.window_title":2.346,"VideoOut.Readiness":1.15,"VideoOut.Readiness.locks_validate":0.372,"Vulkan.Acquire":5829.841,"Vulkan.Acquire.acquire_fence_wait":5781.08,"Vulkan.Acquire.acquire_image":46.26,"Vulkan.Acquire.fence_reset":1.215,"Vulkan.Acquire.retired_swapchains":1.016,"Vulkan.Dispatch":1544.179,"Vulkan.Dispatch.command_record":780.942,"Vulkan.Dispatch.shader_resources":736.959,"Vulkan.DispatchRecipe":0.246,"Vulkan.DispatchRecipe.command_record":0.243,"Vulkan.DrawFromRecipe":93.052,"Vulkan.Present":39.743,"Vulkan.Present.command_record_scale":19.521,"Vulkan.Present.pixel_upload":9.035,"Vulkan.Present.queue_submit":10.738,"Vulkan.QueuePresent":74.758,"Vulkan.QueuePresent.queue_present":73.823,"Vulkan.Retire":89.386,"Vulkan.Retire.wait":82.622},"top_phases_ms_per_frame":{"Driver.Packet":27.402,"VideoOut.Flip":24.797,"Driver.Present":24.792,"VideoOut.Flip.present":24.762,"Recorder.Sync":18.361,"Driver.Packet.draw":13.8,"Driver.Draw":13.73,"Driver.Present.gpu_mutex_wait":13.311},"owned_draw_counts":{},"graphics_track":{"Graphics.Barrier.copy":2650,"Graphics.Barrier.dispatch-lead":46581,"Graphics.Barrier.dispatch-trail":178254,"Graphics.Barrier.draw":11172,"Graphics.Barrier.fill":42,"Graphics.Barrier.fill-clear":7420,"Graphics.Barrier.label-run":231095,"Graphics.Barrier.present-blit":1060,"Graphics.Barrier.shadow-publish":530,"Graphics.Barrier.storage-writeback":1590,"Graphics.BarrierMerged.dispatch-lead":131673,"Graphics.BarrierMerged.fill":12,"Graphics.BarrierMerged.shadow-publish":530,"Graphics.RenderPass":4772,"Graphics.RenderPass.Close.command":2650,"Graphics.RenderPass.Close.image":1589,"Graphics.RenderPass.Close.new-batch":533,"Graphics.RenderPass.Continued":174012},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":15.14,"events_lost":81547,"totals_full":false}},"trace":"aps5-trace-f784587f30bf-278592.json.gz"}

Incomplete trace: recorded data was lost. Slice-based timings, waits and batch inventories cover retained events only; missing slices are not idle time. Summary statistics are reported separately.

  • queue worker 0x0: 81547 events lost; buffer full at 15140.1 ms; over the 399 of 530 frames that ended before it: busy 17.0 ms per frame (45 %), wait 0.1, largest Driver.Packet 17.0, Driver.Completion 0.0 (the thread table divides the retained slices by every frame)

Slowest frames (largest slices inside each, inclusive)

  • present 10247: 52.4 ms at 2487 ms: Driver.Packet (queue worker 0x0) 42.1, VideoOut.Flip (presenter) 40.8, VideoOut.Flip.present (presenter) 40.8, Driver.Present (presenter) 40.7
  • present 10529: 51.8 ms at 13182 ms: VideoOut.Flip (presenter) 41.1, VideoOut.Flip.present (presenter) 41.1, Driver.Present (presenter) 41.1, Driver.Packet (queue worker 0x0) 40.3
  • present 10327: 50.6 ms at 5641 ms: VideoOut.Flip (presenter) 43.0, VideoOut.Flip.present (presenter) 43.0, Driver.Present (presenter) 43.0, batch (gpu) 40.8

Persistent spikes (frame time above the fastest frame that separates it from a longer frame; one entry per stall, not per frame)

  • present 10247: 52.4 ms at 2487 ms, persistence 31.7 ms
  • present 10529: 51.8 ms at 13182 ms, persistence 31.1 ms
  • present 10408: 47.2 ms at 8687 ms, persistence 24.7 ms
  • present 10636: 46.3 ms at 17424 ms, persistence 19.6 ms
  • present 10670: 40.5 ms at 18671 ms, persistence 17.3 ms

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
title 0.0 (0 %) 15.3 (41 %) 22.5 0.0 Recorder.Sync 0.0
queue worker 0x0 12.8 (34 %) 0.1 (0 %) 24.9 32.4 Driver.Packet 12.8, Driver.Completion 0.0
draw committer 19.5 (52 %) 0.1 (0 %) 18.2 8.0 Recorder.Sync 18.4, Graphics.Draw 0.9
presenter 0.4 (1 %) 24.4 (65 %) 13.0 0.1 VideoOut.Flip 24.8, Driver.Present 0.0
gpu 24.3 (64 %) 0.0 (0 %) 13.5 0.0 batch 24.3

Largest slices (ms per frame, inclusive, all threads): VideoOut.Flip 24.8, Driver.Present 24.8, VideoOut.Flip.present 24.8, batch 24.3, Recorder.Sync 18.4

Longest waits

  • Recorder.WaitSerial (title) 39.0 ms at 5641 ms, present 10327
  • Recorder.WaitSerial (title) 37.4 ms at 16333 ms, present 10607
  • Recorder.WaitSerial (title) 37.4 ms at 13001 ms, present 10525
  • Recorder.WaitSerial (title) 36.8 ms at 13182 ms, present 10529
  • Recorder.WaitSerial (title) 36.6 ms at 2487 ms, present 10247

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

  • batch 13395: 38.9 ms at 5641 ms, present 10327: GPU no ranges; recorded by Graphics.Draw (draw committer) 1.6, Graphics.Draw.draw_and_resource_release (draw committer) 0.8, Graphics.Draw.index_upload (draw committer) 0.4, Vulkan.DrawFromRecipe (draw committer) 0.2
  • batch 38750: 37.3 ms at 16333 ms, present 10607: GPU no ranges; recorded by Graphics.Draw (draw committer) 1.6, Graphics.Draw.draw_and_resource_release (draw committer) 0.8, Graphics.Draw.index_upload (draw committer) 0.4, Vulkan.DrawFromRecipe (draw committer) 0.2
  • batch 31196: 37.3 ms at 13001 ms, present 10525: GPU no ranges; recorded by Graphics.Draw (draw committer) 1.2, Graphics.Draw.draw_and_resource_release (draw committer) 0.5, Graphics.Draw.index_upload (draw committer) 0.4, Vulkan.DrawFromRecipe (draw committer) 0.1

</details>

<details>
<summary>tools/trace_digest.py, this PR (run 2)</summary>

seconds 290:20 from present 13939: 945 presents, frame p50 20.6 / p90 23.5 / p99 37.6 / max 48.6 ms, GPU busy 13.7 ms per present
AMD Radeon RX 6700 XT, AMD proprietary driver 26.11.2 (AMD proprietary shader compiler), Windows 10.0.22621, 3840x2160, commit 7b6ee9180f23, dropped: yes

{"commit":"7b6ee9180f23","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_PLAYGO_UNLISTED_CHUNKS":"installed","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"290:20"},"gpu":"AMD Radeon RX 6700 XT","driver":"AMD proprietary driver 26.11.2 (AMD proprietary shader compiler)","os":"Windows 10.0.22621","cpu":"AMD Ryzen 9 5950X 16-Core Processor","cpu_threads":32,"memory_mib":65457,"title_id":"PPSA28311","title":"Absolum","content_version":"01.002.000","resolution":"3840x2160","window":{"spec":"seconds 290:20","first_present":13939,"ms":20001.686},"presents":945,"frame_ms":{"p50":20.6,"p90":23.488,"p99":37.603,"max":48.607},"gpu_busy_ms_per_present":13.71,"worker_busy_pct":{"queue worker 0x0":94.65},"phase_totals_ms":{"Driver.Completion":2.466,"Driver.Dispatch":7575.959,"Driver.Dispatch.capture_resources":405.04,"Driver.Dispatch.decode_key_device_setup":1455.221,"Driver.Dispatch.lookup_cache":104.84,"Driver.Dispatch.materialize":297.412,"Driver.Dispatch.prepared_invocation":346.023,"Driver.Draw":4859.673,"Driver.Draw.device_setup":266.124,"Driver.Draw.draw_enqueued":1215.932,"Driver.Draw.post_compile_prepare":98.062,"Driver.Draw.prepare":572.252,"Driver.Draw.shader_compile_and_link":2591.961,"Driver.EndSubmission":2.079,"Driver.Packet":18926.93,"Driver.Packet.device_lock":232.336,"Driver.Packet.dispatch":7716.039,"Driver.Packet.draw":4930.697,"Driver.Packet.execute":532.317,"Driver.Packet.flip_flush":31.047,"Driver.Packet.flush_between_packets":2352.507,"Driver.Packet.memory_wait":0.096,"Driver.Packet.pipeline_drain":1739.372,"Driver.Packet.pipeline_prepare":339.517,"Driver.Packet.prepare_memory":299.326,"Driver.Packet.rendering_wait":0.923,"Driver.Present":14482.126,"Driver.Present.acquire_image":10704.185,"Driver.Present.device_setup":0.481,"Driver.Present.gpu_mutex_wait":271.614,"Driver.Present.inflight_wait":2.193,"Driver.Present.present_display_buffer":166.783,"Driver.Present.queue_present":154.242,"Driver.Present.release_and_callback":1.414,"Driver.Present.render_fence_wait":3179.069,"Driver.Present.resize":1.259,"Driver.Present.validate":0.316,"Driver.Suspend":0.149,"GpuMutex.wait.dispatch":25.129,"GpuMutex.wait.draw":521.272,"GpuMutex.wait.end":1.152,"GpuMutex.wait.fill":60.93,"GpuMutex.wait.flush":4.382,"GpuMutex.wait.hook":169.108,"GpuMutex.wait.label":67.987,"GpuMutex.wait.other":12.487,"GpuMutex.wait.present":268.682,"GpuMutex.wait.wait":295.892,"Graphics.Draw":4483.865,"Graphics.Draw.draw_and_resource_release":3402.117,"Graphics.Draw.index_upload":388.699,"Graphics.Draw.validate":299.403,"Graphics.Draw.vertex_upload":334.493,"Graphics.DrawWithRecipe":166.18,"Graphics.DrawWithRecipe.draw_and_resource_release":136.338,"Graphics.DrawWithRecipe.index_upload":11.033,"Graphics.DrawWithRecipe.validate":5.75,"Graphics.DrawWithRecipe.vertex_upload":11.246,"Recorder.Reap":1802.208,"Recorder.Submit":1470.728,"Recorder.Sync":11.844,"Recorder.WaitSerial":10948.627,"Resources.Complete":26.544,"Resources.Prepare":37.322,"Shader.DrawStage":1221.169,"Shader.DrawStage.capture_resources":505.777,"Shader.DrawStage.materialize":233.585,"Shader.DrawStage.prepared_invocation":442.863,"VideoOut.Flip":14614.709,"VideoOut.Flip.completion_mutex_wait":0.951,"VideoOut.Flip.config_mutex_wait":0.122,"VideoOut.Flip.frame_limit":0.601,"VideoOut.Flip.notify_game":15.245,"VideoOut.Flip.present":14472.017,"VideoOut.Flip.validate":1.141,"VideoOut.Flip.vblank_wait":118.385,"VideoOut.Flip.window_prepare":1.323,"VideoOut.Flip.window_title":4.045,"VideoOut.Readiness":1.914,"VideoOut.Readiness.locks_validate":0.623,"Vulkan.Acquire":10703.042,"Vulkan.Acquire.acquire_fence_wait":10625.291,"Vulkan.Acquire.acquire_image":72.497,"Vulkan.Acquire.fence_reset":2.196,"Vulkan.Acquire.retired_swapchains":2.516,"Vulkan.Dispatch":2766.985,"Vulkan.Dispatch.command_record":1406.679,"Vulkan.Dispatch.shader_resources":1323.178,"Vulkan.DispatchRecipe":0.093,"Vulkan.DispatchRecipe.command_record":0.092,"Vulkan.DrawFromRecipe":169.301,"Vulkan.Present":80.557,"Vulkan.Present.command_record_scale":36.92,"Vulkan.Present.pixel_upload":23.443,"Vulkan.Present.queue_submit":19.276,"Vulkan.QueuePresent":150.05,"Vulkan.QueuePresent.queue_present":148.259,"Vulkan.Retire":3178.682,"Vulkan.Retire.wait":3165.415},"top_phases_ms_per_frame":{"Driver.Packet":20.028,"VideoOut.Flip":15.465,"Driver.Present":15.325,"VideoOut.Flip.present":15.314,"Recorder.WaitSerial":11.586,"Driver.Present.acquire_image":11.327,"Vulkan.Acquire":11.326,"Vulkan.Acquire.acquire_fence_wait":11.244},"owned_draw_counts":{},"graphics_track":{"Graphics.Barrier.copy":4725,"Graphics.Barrier.dispatch-lead":81553,"Graphics.Barrier.dispatch-trail":318645,"Graphics.Barrier.draw":23529,"Graphics.Barrier.fill":28,"Graphics.Barrier.fill-clear":13230,"Graphics.Barrier.label-run":410831,"Graphics.Barrier.present-blit":1890,"Graphics.Barrier.shadow-publish":945,"Graphics.Barrier.storage-writeback":2835,"Graphics.BarrierMerged.dispatch-lead":237092,"Graphics.BarrierMerged.fill":8,"Graphics.BarrierMerged.shadow-publish":945,"Graphics.RenderPass":8760,"Graphics.RenderPass.Close.command":4710,"Graphics.RenderPass.Close.image":2830,"Graphics.RenderPass.Close.new-batch":1217,"Graphics.RenderPass.Continued":310830},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":11.555,"events_lost":183191,"totals_full":false}},"trace":"aps5-trace-7b6ee9180f23-245520.json.gz"}

Incomplete trace: recorded data was lost. Slice-based timings, waits and batch inventories cover retained events only; missing slices are not idle time. Summary statistics are reported separately.

  • queue worker 0x0: 183191 events lost; buffer full at 11554.8 ms; over the 542 of 945 frames that ended before it: busy 8.2 ms per frame (39 %), wait 0.3, largest Driver.Packet 8.3, Driver.Completion 0.0 (the thread table divides the retained slices by every frame)

Slowest frames (largest slices inside each, inclusive)

  • present 14223: 48.6 ms at 6070 ms: VideoOut.Flip (presenter) 48.6, VideoOut.Flip.present (presenter) 48.6, Driver.Present (presenter) 48.6, Recorder.WaitSerial (title) 37.9
  • present 14671: 47.0 ms at 15516 ms: VideoOut.Flip (presenter) 47.0, VideoOut.Flip.present (presenter) 46.8, Driver.Present (presenter) 46.8, batch (gpu) 44.9
  • present 14750: 45.4 ms at 17203 ms: VideoOut.Flip (presenter) 45.4, VideoOut.Flip.present (presenter) 45.3, Driver.Present (presenter) 45.3, batch (gpu) 43.2

Persistent spikes (frame time above the fastest frame that separates it from a longer frame; one entry per stall, not per frame)

  • present 14223: 48.6 ms at 6070 ms, persistence 42.5 ms
  • present 14750: 45.4 ms at 17203 ms, persistence 39.3 ms
  • present 14671: 47.0 ms at 15516 ms, persistence 38.8 ms
  • present 14595: 45.0 ms at 13849 ms, persistence 35.4 ms
  • present 14349: 42.6 ms at 8856 ms, persistence 32.2 ms

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
title 0.0 (0 %) 12.1 (57 %) 9.1 0.0 Recorder.Sync 0.0
queue worker 0x0 4.7 (22 %) 0.2 (1 %) 16.2 26.9 Driver.Packet 4.7, Driver.Completion 0.0
draw committer 2.5 (12 %) 0.7 (3 %) 18.0 7.9 Recorder.Reap 1.2, Graphics.Draw 1.1
presenter 0.5 (2 %) 15.0 (71 %) 5.7 0.1 VideoOut.Flip 15.5, Driver.Present 0.0
gpu 13.7 (65 %) 0.0 (0 %) 7.5 0.0 batch 13.7

Largest slices (ms per frame, inclusive, all threads): VideoOut.Flip 15.5, Driver.Present 15.3, VideoOut.Flip.present 15.3, batch 13.7, Recorder.WaitSerial 11.6

Longest waits

  • Recorder.WaitSerial (title) 27.3 ms at 15516 ms, present 14671
  • Recorder.WaitSerial (title) 25.6 ms at 13850 ms, present 14595
  • Driver.Present.render_fence_wait (presenter) 25.5 ms at 6093 ms, present 14223
  • Recorder.WaitSerial (title) 25.2 ms at 17203 ms, present 14750
  • Driver.Present.render_fence_wait (presenter) 25.0 ms at 15538 ms, present 14671

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

  • batch 65561: 27.2 ms at 15516 ms, present 14671: GPU no ranges; recorded by Graphics.Draw (draw committer) 1.1, Graphics.Draw.draw_and_resource_release (draw committer) 0.5, Graphics.Draw.index_upload (draw committer) 0.4, Vulkan.DrawFromRecipe (draw committer) 0.1
  • batch 25608: 27.0 ms at 6030 ms, present 14222: GPU no ranges; recorded by Graphics.Draw (draw committer) 2.3, Graphics.Draw.draw_and_resource_release (draw committer) 1.0, Graphics.Draw.index_upload (draw committer) 0.3, Vulkan.DrawFromRecipe (draw committer) 0.2
  • batch 58768: 25.5 ms at 13850 ms, present 14595: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.9, Graphics.Draw.draw_and_resource_release (draw committer) 0.4, Graphics.Draw.index_upload (draw committer) 0.3, Vulkan.DrawFromRecipe (draw committer) 0.1

</details>

### Independent validation and composition caveat

[LeandroLP23 reports](https://github.com/boykopovar/AnyPS5/pull/26384#issuecomment-7116234309) a base/change/change/base SuperTuxKart tutorial comparison on an RTX 5060 Ti, driver 621.24, Windows 11, using main `0d8e695ad2` plus #10442/#24445/#24869/#25280 (`b24225548f`) and this PR's `2dd127454a` (`a6aedb16ab`). In the 80:10 trace window, p50 frame times were 40.4/38.8/41.3/41.3 ms; the change engaged 729 label-run barriers in its first run and only 10 in its second. The benefit varied between runs, so this does not establish a repeatable gain for that title. On a Radeon 860M, the combined stack passed 45/48 focused tests versus 48/48 on the base, with no reported VUID lines. All three `agc_driver_unimported_label_order` variants failed an existing #10442 case because this PR's earlier `NoteFlip()` calls settle a shared allocation. **Open composition follow-up:** isolate those fixture allocations or move the settling block, then revalidate the combination. These are contributor-reported results; no combined-stack fix is claimed here.

[LeandroLP23 then confirmed](https://github.com/boykopovar/AnyPS5/pull/26384#issuecomment-7125480564) the head `81f6333f36` on the same #10442 stack. That commit is a pure move: the 23 removed and 23 added lines are identical. Cherry-picked onto `b24225548f` + `2dd127454a` and run on a Radeon 860M (Windows 11 26300) with the validation layer inserted, all three `agc_driver_unimported_label_order` variants pass in each of 3 runs, with 0 `VUID-` lines. So the settled-mapping case runs correctly after #10442's cases whichever of the two merges first.

### 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) and the licence notice of code adapted from upstream (see AGENTS.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; speeds up PPSA28311 #7373 and PPSA28795 #7382 (related: #25912, #7464, #7465)
- [x] GPUs tested: AMD Radeon RX 6700 XT, AMD driver 26.11.2, Windows 11 22621
- [x] AI-assisted: yes





<!-- This is an auto-generated comment: release notes by coderabbit.ai -->

<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **Bug Fixes**
  * GPU labels on newly encountered guest memory mappings are now deferred until the mapping remains stable across three texture flips. Labels on stable mappings are then imported, while labels on new or changed mappings continue to wait. This improves label handling when memory mappings are still changing.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5462018231 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/26384). Originally posted by [JJenkx](https://github.com/JJenkx) on 2026-11-23T22:04:45Z. --- ### What Since #7464 a queue-0 label whose guest memory no host import covers is stored on the CPU after `recorder.Sync()` (`WriteLabelOnGpu` reason 7), instead of importing the memory for the label. #7465 leaves mappings of 64 KiB or less unimported until their first GPU use, and #7464 measured that importing such a block for its label cost SuperTuxKart (PPSA69421) an import per frame, because it maps and unmaps its label block every frame (#25912). A title that keeps its label block mapped pays the sync on every label instead. Absolum (PPSA28311) writes labels into three 64 KiB guest allocations that stay mapped for the whole run and that nothing else imports. Private timers in `Driver::commitLabel` and `VulkanDevice::WriteLabelOnGpu` (diagnostic builds, not part of this PR) in its campfire scene, per 10 s: | `WriteLabelOnGpu` returned | labels | each | total | |---|---|---|---| | 0, recorded on the GPU | 175,000–180,000 | 3 µs | ~0.5 s | | 7, `recorder.Sync()` and a CPU store | 262–341 | 14–19 ms | ~4.9 s | This PR keeps #7464's path for a mapping's first labels and imports a mapping that is clearly long-lived: - `LabelMappingSettled` remembers, per allocation, the backing serial and the flip (`StorageTexture::FlipSerial()`, the count `NoteFlip` already keeps) of the first label it saw. - When a queue-0 label finds no covering import, a mapping labelled before under the same backing serial, three or more flips earlier, falls through to the existing import path (`HostImportFor`) and is recorded on the GPU, as a compute-queue label already is. Every other case takes reason 7 as before. - A new mapping gets a fresh backing serial (`GuestAllocations` assigns one on insert, also at a reused address), so a block mapped and unmapped every frame never reaches three flips and keeps today's behaviour. The table is bounded (cleared at 4,096 allocations) and guarded by its own mutex. `agc_driver_unimported_label_order` gains a case: the first label of a new mapping still takes reason 7 without importing; after three `NoteFlip()` a label of the same mapping returns 0 and imports its memory; the first label of another new mapping still takes reason 7; both labels land. ### Tested Windows 11 Enterprise 22621, Ryzen 9 5950X, Radeon RX 6700 XT (AMD driver 26.11.2), WinLibs GCC 15.2 UCRT r7, Release, Ninja. Built and tested on `main` `f784587f30` (candidate commit `7b6ee9180f23`); the branch was then rebased onto `5ae28f2373`, which changes nothing under `core/libs/prx/libSceAgcDriver`. **GPU tests:** every test of the 44 label, host import, pending producer and sleep wake executables (47 tests, including the three `agc_driver_unimported_label_order` variants), 3 runs: **47/47 each run**. Four skip here in every run: `agc_driver_copied_writer_label_order` and its `_drain` variant (the device reports a `minStorageBufferOffsetAlignment` of 4), `agc_driver_host_import_dma_buf_watch` (the device does not select dma-buf) and `agc_host_import_sparse` (udmabuf is Linux only). **Control:** the same tree with `VulkanDevice.cpp` restored to `main` (the new case and `FlipSerial` kept), 3 runs: all three `agc_driver_unimported_label_order` variants **fail every run** with `a label of a mapping labelled three flips earlier synced instead of importing its memory (reason 7)`. **Absolum (PPSA28311, `01.002.000`), the campfire scene with the character HUD**, same converted title, save and route each arm (Cross every 6 s from 30 s), 3840×2160, each arm copying its build's libraries in (driver hashes in `arm.txt`), `APS5_TRACE_SECONDS=290:20` only. Arms in main, PR, PR, main order; the first main arm crashed in the title's own code at 11 s (`app.exe+0x82612`, a write just above `0x200000000`, the same early crash I have seen once before on plain `main` `bfcd717ebc5` without this change), so one more main arm ran after them. The 300 s screenshots show the same frame in every arm. | Run | Arm | Presents in 20 s | p50 ms | p90 ms | p99 ms | GPU busy ms per present | |---|---|---|---|---|---|---| | 2 | this PR | 945 | 20.6 | 23.5 | 37.6 | 13.7 | | 3 | this PR | 934 | 20.9 | 23.1 | 39.5 | 14.1 | | 4 | main | 530 | 37.5 | 42.5 | 48.5 | 24.3 | | 5 | main | 546 | 36.5 | 41.4 | 48.3 | 23.4 | On average 939.5 against 538 presents (+75%) and p50 20.8 against 37.0 ms. All four summaries are `"dirty":false` with only the four variables above in `env`. **Snoopy and the Great Mystery Club (PPSA28795)**, first backyard scene, same builds and machine, main, PR, PR, main: 223 / 260 / 256 / 223 presents per 20 s, p50 89.9 / 77.2 / 78.2 / 89.9 ms (+16% presents). Summary lines, digests and traces in [this comment](https://github.com/boykopovar/AnyPS5/pull/26384#issuecomment-7115826400). A one-off Double Dragon Gaiden (PPSA16018) run with this PR showed no change. Independent Windows validation reported by [AlfaRojo](https://github.com/boykopovar/AnyPS5/pull/26384#issuecomment-7122734051): Windows 11 Pro 26200, GCC 15.2.0 Release, Khronos layer 1.4.363 inserted in every log, on an NVIDIA GeForce RTX 4070 and an AMD Radeon iGPU (gfx1036). The three `agc_driver_unimported_label_order` tests pass 9 of 9 on each GPU (3 runs). With `VulkanDevice.cpp`, `Texture.hpp` and `Texture.cpp` restored to `main`, all three fail in every run with "a label of a mapping labelled three flips earlier synced instead of importing its memory (reason 7)". 0 `VUID-` in every log. Test results only, no performance measured. **Not tested: SuperTuxKart.** There is no SuperTuxKart dump on this machine. By construction its per-frame label block keeps #7464's path as long as each mapping lives fewer than three flips; a block that lives longer would now be imported once per mapping instead of syncing for every label after its third flip. Linux and macOS, and other GPUs, are also untested. [Traces, summaries, screenshots, test logs, the control, scripts and the diagnostic timer patch](https://github.com/JJenkx/AnyPS5/releases/download/windows-absolum-settled-label-20261123/settled-absolum-20261123.tar.gz), SHA-256 `40694d547d0d43efca6c0b7eb35a8d788b289d00215a447ebcc16760cb86737a`. `tools/check_conventions.py --base origin/main`: passed. ### Performance report Summary lines (`aps5-summary.jsonl`), in run order; traces in the release linked above. <details> <summary>Summary lines</summary> ```json {"commit":"f784587f30bf","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_PLAYGO_UNLISTED_CHUNKS":"installed","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"290:20"},"gpu":"AMD Radeon RX 6700 XT","driver":"AMD proprietary driver 26.11.2 (AMD proprietary shader compiler)","os":"Windows 10.0.22621","cpu":"AMD Ryzen 9 5950X 16-Core Processor","cpu_threads":32,"memory_mib":65457,"title_id":"PPSA28311","title":"Absolum","content_version":"01.002.000","resolution":"3840x2160","window":{"spec":"seconds 290:20","first_present":10178,"ms":20026.704},"presents":530,"frame_ms":{"p50":37.506,"p90":42.480,"p99":48.510,"max":52.429},"gpu_busy_ms_per_present":24.312,"worker_busy_pct":{"queue worker 0x0":72.529},"phase_totals_ms":{"Driver.Completion":1.169,"Driver.Dispatch":4257.785,"Driver.Dispatch.capture_resources":209.641,"Driver.Dispatch.decode_key_device_setup":850.391,"Driver.Dispatch.lookup_cache":61.298,"Driver.Dispatch.materialize":165.457,"Driver.Dispatch.prepared_invocation":181.042,"Driver.Draw":7277.026,"Driver.Draw.device_setup":149.557,"Driver.Draw.draw_enqueued":5351.901,"Driver.Draw.post_compile_prepare":54.485,"Driver.Draw.prepare":318.890,"Driver.Draw.shader_compile_and_link":1337.470,"Driver.EndSubmission":1.044,"Driver.Packet":14522.904,"Driver.Packet.device_lock":123.097,"Driver.Packet.dispatch":4328.227,"Driver.Packet.draw":7313.975,"Driver.Packet.execute":292.726,"Driver.Packet.flip_flush":17.246,"Driver.Packet.flush_between_packets":1083.053,"Driver.Packet.memory_wait":0.212,"Driver.Packet.pipeline_drain":599.669,"Driver.Packet.pipeline_prepare":174.624,"Driver.Packet.prepare_memory":162.813,"Driver.Packet.rendering_wait":0.560,"Driver.Present":13139.593,"Driver.Present.acquire_image":5830.535,"Driver.Present.device_setup":0.526,"Driver.Present.gpu_mutex_wait":7054.778,"Driver.Present.inflight_wait":1.409,"Driver.Present.present_display_buffer":84.081,"Driver.Present.queue_present":76.503,"Driver.Present.release_and_callback":0.782,"Driver.Present.render_fence_wait":89.546,"Driver.Present.resize":0.896,"Driver.Present.validate":0.192,"Driver.Suspend":0.117,"GpuMutex.wait.dispatch":22.027,"GpuMutex.wait.draw":0.862,"GpuMutex.wait.end":24.178,"GpuMutex.wait.fill":12.799,"GpuMutex.wait.flush":0.363,"GpuMutex.wait.hook":247.071,"GpuMutex.wait.label":25.913,"GpuMutex.wait.other":2.220,"GpuMutex.wait.present":7053.063,"GpuMutex.wait.wait":1032.630,"Graphics.Draw":2315.048,"Graphics.Draw.draw_and_resource_release":1757.926,"Graphics.Draw.index_upload":186.411,"Graphics.Draw.validate":160.928,"Graphics.Draw.vertex_upload":175.339,"Graphics.DrawWithRecipe":91.033,"Graphics.DrawWithRecipe.draw_and_resource_release":77.499,"Graphics.DrawWithRecipe.index_upload":3.286,"Graphics.DrawWithRecipe.validate":3.826,"Graphics.DrawWithRecipe.vertex_upload":5.348,"Recorder.Reap":342.547,"Recorder.Submit":925.851,"Recorder.Sync":9731.097,"Recorder.WaitSerial":6846.820,"Resources.Complete":14.043,"Resources.Prepare":20.333,"Shader.DrawStage":647.402,"Shader.DrawStage.capture_resources":268.549,"Shader.DrawStage.materialize":122.144,"Shader.DrawStage.prepared_invocation":235.114,"VideoOut.Flip":13142.272,"VideoOut.Flip.completion_mutex_wait":0.611,"VideoOut.Flip.config_mutex_wait":0.067,"VideoOut.Flip.frame_limit":0.292,"VideoOut.Flip.notify_game":12.636,"VideoOut.Flip.present":13123.906,"VideoOut.Flip.validate":0.662,"VideoOut.Flip.vblank_wait":0.418,"VideoOut.Flip.window_prepare":0.788,"VideoOut.Flip.window_title":2.346,"VideoOut.Readiness":1.150,"VideoOut.Readiness.locks_validate":0.372,"Vulkan.Acquire":5829.841,"Vulkan.Acquire.acquire_fence_wait":5781.080,"Vulkan.Acquire.acquire_image":46.260,"Vulkan.Acquire.fence_reset":1.215,"Vulkan.Acquire.retired_swapchains":1.016,"Vulkan.Dispatch":1544.179,"Vulkan.Dispatch.command_record":780.942,"Vulkan.Dispatch.shader_resources":736.959,"Vulkan.DispatchRecipe":0.246,"Vulkan.DispatchRecipe.command_record":0.243,"Vulkan.DrawFromRecipe":93.052,"Vulkan.Present":39.743,"Vulkan.Present.command_record_scale":19.521,"Vulkan.Present.pixel_upload":9.035,"Vulkan.Present.queue_submit":10.738,"Vulkan.QueuePresent":74.758,"Vulkan.QueuePresent.queue_present":73.823,"Vulkan.Retire":89.386,"Vulkan.Retire.wait":82.622},"top_phases_ms_per_frame":{"Driver.Packet":27.402,"VideoOut.Flip":24.797,"Driver.Present":24.792,"VideoOut.Flip.present":24.762,"Recorder.Sync":18.361,"Driver.Packet.draw":13.800,"Driver.Draw":13.730,"Driver.Present.gpu_mutex_wait":13.311},"owned_draw_counts":{},"graphics_track":{"Graphics.Barrier.copy":2650,"Graphics.Barrier.dispatch-lead":46581,"Graphics.Barrier.dispatch-trail":178254,"Graphics.Barrier.draw":11172,"Graphics.Barrier.fill":42,"Graphics.Barrier.fill-clear":7420,"Graphics.Barrier.label-run":231095,"Graphics.Barrier.present-blit":1060,"Graphics.Barrier.shadow-publish":530,"Graphics.Barrier.storage-writeback":1590,"Graphics.BarrierMerged.dispatch-lead":131673,"Graphics.BarrierMerged.fill":12,"Graphics.BarrierMerged.shadow-publish":530,"Graphics.RenderPass":4772,"Graphics.RenderPass.Close.command":2650,"Graphics.RenderPass.Close.image":1589,"Graphics.RenderPass.Close.new-batch":533,"Graphics.RenderPass.Continued":174012},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":15.140,"events_lost":81547,"totals_full":false}},"trace":"aps5-trace-f784587f30bf-278592.json.gz"} {"commit":"7b6ee9180f23","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_PLAYGO_UNLISTED_CHUNKS":"installed","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"290:20"},"gpu":"AMD Radeon RX 6700 XT","driver":"AMD proprietary driver 26.11.2 (AMD proprietary shader compiler)","os":"Windows 10.0.22621","cpu":"AMD Ryzen 9 5950X 16-Core Processor","cpu_threads":32,"memory_mib":65457,"title_id":"PPSA28311","title":"Absolum","content_version":"01.002.000","resolution":"3840x2160","window":{"spec":"seconds 290:20","first_present":13939,"ms":20001.686},"presents":945,"frame_ms":{"p50":20.600,"p90":23.488,"p99":37.603,"max":48.607},"gpu_busy_ms_per_present":13.710,"worker_busy_pct":{"queue worker 0x0":94.650},"phase_totals_ms":{"Driver.Completion":2.466,"Driver.Dispatch":7575.959,"Driver.Dispatch.capture_resources":405.040,"Driver.Dispatch.decode_key_device_setup":1455.221,"Driver.Dispatch.lookup_cache":104.840,"Driver.Dispatch.materialize":297.412,"Driver.Dispatch.prepared_invocation":346.023,"Driver.Draw":4859.673,"Driver.Draw.device_setup":266.124,"Driver.Draw.draw_enqueued":1215.932,"Driver.Draw.post_compile_prepare":98.062,"Driver.Draw.prepare":572.252,"Driver.Draw.shader_compile_and_link":2591.961,"Driver.EndSubmission":2.079,"Driver.Packet":18926.930,"Driver.Packet.device_lock":232.336,"Driver.Packet.dispatch":7716.039,"Driver.Packet.draw":4930.697,"Driver.Packet.execute":532.317,"Driver.Packet.flip_flush":31.047,"Driver.Packet.flush_between_packets":2352.507,"Driver.Packet.memory_wait":0.096,"Driver.Packet.pipeline_drain":1739.372,"Driver.Packet.pipeline_prepare":339.517,"Driver.Packet.prepare_memory":299.326,"Driver.Packet.rendering_wait":0.923,"Driver.Present":14482.126,"Driver.Present.acquire_image":10704.185,"Driver.Present.device_setup":0.481,"Driver.Present.gpu_mutex_wait":271.614,"Driver.Present.inflight_wait":2.193,"Driver.Present.present_display_buffer":166.783,"Driver.Present.queue_present":154.242,"Driver.Present.release_and_callback":1.414,"Driver.Present.render_fence_wait":3179.069,"Driver.Present.resize":1.259,"Driver.Present.validate":0.316,"Driver.Suspend":0.149,"GpuMutex.wait.dispatch":25.129,"GpuMutex.wait.draw":521.272,"GpuMutex.wait.end":1.152,"GpuMutex.wait.fill":60.930,"GpuMutex.wait.flush":4.382,"GpuMutex.wait.hook":169.108,"GpuMutex.wait.label":67.987,"GpuMutex.wait.other":12.487,"GpuMutex.wait.present":268.682,"GpuMutex.wait.wait":295.892,"Graphics.Draw":4483.865,"Graphics.Draw.draw_and_resource_release":3402.117,"Graphics.Draw.index_upload":388.699,"Graphics.Draw.validate":299.403,"Graphics.Draw.vertex_upload":334.493,"Graphics.DrawWithRecipe":166.180,"Graphics.DrawWithRecipe.draw_and_resource_release":136.338,"Graphics.DrawWithRecipe.index_upload":11.033,"Graphics.DrawWithRecipe.validate":5.750,"Graphics.DrawWithRecipe.vertex_upload":11.246,"Recorder.Reap":1802.208,"Recorder.Submit":1470.728,"Recorder.Sync":11.844,"Recorder.WaitSerial":10948.627,"Resources.Complete":26.544,"Resources.Prepare":37.322,"Shader.DrawStage":1221.169,"Shader.DrawStage.capture_resources":505.777,"Shader.DrawStage.materialize":233.585,"Shader.DrawStage.prepared_invocation":442.863,"VideoOut.Flip":14614.709,"VideoOut.Flip.completion_mutex_wait":0.951,"VideoOut.Flip.config_mutex_wait":0.122,"VideoOut.Flip.frame_limit":0.601,"VideoOut.Flip.notify_game":15.245,"VideoOut.Flip.present":14472.017,"VideoOut.Flip.validate":1.141,"VideoOut.Flip.vblank_wait":118.385,"VideoOut.Flip.window_prepare":1.323,"VideoOut.Flip.window_title":4.045,"VideoOut.Readiness":1.914,"VideoOut.Readiness.locks_validate":0.623,"Vulkan.Acquire":10703.042,"Vulkan.Acquire.acquire_fence_wait":10625.291,"Vulkan.Acquire.acquire_image":72.497,"Vulkan.Acquire.fence_reset":2.196,"Vulkan.Acquire.retired_swapchains":2.516,"Vulkan.Dispatch":2766.985,"Vulkan.Dispatch.command_record":1406.679,"Vulkan.Dispatch.shader_resources":1323.178,"Vulkan.DispatchRecipe":0.093,"Vulkan.DispatchRecipe.command_record":0.092,"Vulkan.DrawFromRecipe":169.301,"Vulkan.Present":80.557,"Vulkan.Present.command_record_scale":36.920,"Vulkan.Present.pixel_upload":23.443,"Vulkan.Present.queue_submit":19.276,"Vulkan.QueuePresent":150.050,"Vulkan.QueuePresent.queue_present":148.259,"Vulkan.Retire":3178.682,"Vulkan.Retire.wait":3165.415},"top_phases_ms_per_frame":{"Driver.Packet":20.028,"VideoOut.Flip":15.465,"Driver.Present":15.325,"VideoOut.Flip.present":15.314,"Recorder.WaitSerial":11.586,"Driver.Present.acquire_image":11.327,"Vulkan.Acquire":11.326,"Vulkan.Acquire.acquire_fence_wait":11.244},"owned_draw_counts":{},"graphics_track":{"Graphics.Barrier.copy":4725,"Graphics.Barrier.dispatch-lead":81553,"Graphics.Barrier.dispatch-trail":318645,"Graphics.Barrier.draw":23529,"Graphics.Barrier.fill":28,"Graphics.Barrier.fill-clear":13230,"Graphics.Barrier.label-run":410831,"Graphics.Barrier.present-blit":1890,"Graphics.Barrier.shadow-publish":945,"Graphics.Barrier.storage-writeback":2835,"Graphics.BarrierMerged.dispatch-lead":237092,"Graphics.BarrierMerged.fill":8,"Graphics.BarrierMerged.shadow-publish":945,"Graphics.RenderPass":8760,"Graphics.RenderPass.Close.command":4710,"Graphics.RenderPass.Close.image":2830,"Graphics.RenderPass.Close.new-batch":1217,"Graphics.RenderPass.Continued":310830},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":11.555,"events_lost":183191,"totals_full":false}},"trace":"aps5-trace-7b6ee9180f23-245520.json.gz"} {"commit":"7b6ee9180f23","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_PLAYGO_UNLISTED_CHUNKS":"installed","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"290:20"},"gpu":"AMD Radeon RX 6700 XT","driver":"AMD proprietary driver 26.11.2 (AMD proprietary shader compiler)","os":"Windows 10.0.22621","cpu":"AMD Ryzen 9 5950X 16-Core Processor","cpu_threads":32,"memory_mib":65457,"title_id":"PPSA28311","title":"Absolum","content_version":"01.002.000","resolution":"3840x2160","window":{"spec":"seconds 290:20","first_present":13882,"ms":20010.437},"presents":934,"frame_ms":{"p50":20.919,"p90":23.089,"p99":39.535,"max":57.511},"gpu_busy_ms_per_present":14.067,"worker_busy_pct":{"queue worker 0x0":94.126},"phase_totals_ms":{"Driver.Completion":2.995,"Driver.Dispatch":7333.862,"Driver.Dispatch.capture_resources":379.195,"Driver.Dispatch.decode_key_device_setup":1328.615,"Driver.Dispatch.lookup_cache":110.769,"Driver.Dispatch.materialize":287.409,"Driver.Dispatch.prepared_invocation":330.696,"Driver.Draw":4729.462,"Driver.Draw.device_setup":263.695,"Driver.Draw.draw_enqueued":1107.926,"Driver.Draw.post_compile_prepare":97.650,"Driver.Draw.prepare":567.913,"Driver.Draw.shader_compile_and_link":2586.424,"Driver.EndSubmission":2.412,"Driver.Packet":18829.457,"Driver.Packet.device_lock":229.069,"Driver.Packet.dispatch":7470.633,"Driver.Packet.draw":4795.635,"Driver.Packet.execute":529.888,"Driver.Packet.flip_flush":30.576,"Driver.Packet.flush_between_packets":2437.222,"Driver.Packet.memory_wait":0.156,"Driver.Packet.pipeline_drain":1950.475,"Driver.Packet.pipeline_prepare":333.908,"Driver.Packet.prepare_memory":303.616,"Driver.Packet.rendering_wait":1.295,"Driver.Present":14621.108,"Driver.Present.acquire_image":10702.110,"Driver.Present.device_setup":0.455,"Driver.Present.gpu_mutex_wait":305.978,"Driver.Present.inflight_wait":2.126,"Driver.Present.present_display_buffer":165.408,"Driver.Present.queue_present":150.999,"Driver.Present.release_and_callback":1.320,"Driver.Present.render_fence_wait":3290.667,"Driver.Present.resize":1.135,"Driver.Present.validate":0.333,"Driver.Suspend":0.141,"GpuMutex.wait.dispatch":30.564,"GpuMutex.wait.draw":686.282,"GpuMutex.wait.end":0.386,"GpuMutex.wait.fill":52.425,"GpuMutex.wait.flush":5.367,"GpuMutex.wait.hook":159.577,"GpuMutex.wait.label":57.062,"GpuMutex.wait.other":44.819,"GpuMutex.wait.present":303.225,"GpuMutex.wait.wait":407.115,"Graphics.Draw":4532.233,"Graphics.Draw.draw_and_resource_release":3416.146,"Graphics.Draw.index_upload":404.764,"Graphics.Draw.validate":303.334,"Graphics.Draw.vertex_upload":348.151,"Graphics.DrawWithRecipe":184.274,"Graphics.DrawWithRecipe.draw_and_resource_release":150.187,"Graphics.DrawWithRecipe.index_upload":15.316,"Graphics.DrawWithRecipe.validate":6.318,"Graphics.DrawWithRecipe.vertex_upload":10.533,"Recorder.Reap":1758.307,"Recorder.Submit":1460.694,"Recorder.Sync":64.728,"Recorder.WaitSerial":10989.856,"Resources.Complete":26.909,"Resources.Prepare":38.164,"Shader.DrawStage":1188.607,"Shader.DrawStage.capture_resources":485.373,"Shader.DrawStage.materialize":230.298,"Shader.DrawStage.prepared_invocation":434.659,"VideoOut.Flip":14677.546,"VideoOut.Flip.completion_mutex_wait":0.948,"VideoOut.Flip.config_mutex_wait":0.121,"VideoOut.Flip.frame_limit":0.534,"VideoOut.Flip.notify_game":14.887,"VideoOut.Flip.present":14609.305,"VideoOut.Flip.validate":1.109,"VideoOut.Flip.vblank_wait":44.798,"VideoOut.Flip.window_prepare":1.367,"VideoOut.Flip.window_title":3.691,"VideoOut.Readiness":1.932,"VideoOut.Readiness.locks_validate":0.576,"Vulkan.Acquire":10701.041,"Vulkan.Acquire.acquire_fence_wait":10625.729,"Vulkan.Acquire.acquire_image":70.333,"Vulkan.Acquire.fence_reset":2.094,"Vulkan.Acquire.retired_swapchains":2.357,"Vulkan.Dispatch":2732.797,"Vulkan.Dispatch.command_record":1380.961,"Vulkan.Dispatch.shader_resources":1312.151,"Vulkan.DispatchRecipe":0.614,"Vulkan.DispatchRecipe.command_record":0.604,"Vulkan.DrawFromRecipe":187.759,"Vulkan.Present":80.251,"Vulkan.Present.command_record_scale":36.320,"Vulkan.Present.pixel_upload":23.753,"Vulkan.Present.queue_submit":19.316,"Vulkan.QueuePresent":146.767,"Vulkan.QueuePresent.queue_present":144.916,"Vulkan.Retire":3290.293,"Vulkan.Retire.wait":3277.789},"top_phases_ms_per_frame":{"Driver.Packet":20.160,"VideoOut.Flip":15.715,"Driver.Present":15.654,"VideoOut.Flip.present":15.642,"Recorder.WaitSerial":11.766,"Driver.Present.acquire_image":11.458,"Vulkan.Acquire":11.457,"Vulkan.Acquire.acquire_fence_wait":11.377},"owned_draw_counts":{},"graphics_track":{"Graphics.Barrier.copy":4670,"Graphics.Barrier.dispatch-lead":80509,"Graphics.Barrier.dispatch-trail":312788,"Graphics.Barrier.draw":23976,"Graphics.Barrier.fill":42,"Graphics.Barrier.fill-clear":13076,"Graphics.Barrier.label-run":402239,"Graphics.Barrier.present-blit":1868,"Graphics.Barrier.shadow-publish":934,"Graphics.Barrier.storage-writeback":2802,"Graphics.BarrierMerged.dispatch-lead":232279,"Graphics.BarrierMerged.fill":12,"Graphics.BarrierMerged.shadow-publish":934,"Graphics.RenderPass":8695,"Graphics.RenderPass.Close.command":4648,"Graphics.RenderPass.Close.image":2790,"Graphics.RenderPass.Close.new-batch":1254,"Graphics.RenderPass.Continued":305071},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":11.911,"events_lost":178775,"totals_full":false}},"trace":"aps5-trace-7b6ee9180f23-252440.json.gz"} {"commit":"f784587f30bf","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_PLAYGO_UNLISTED_CHUNKS":"installed","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"290:20"},"gpu":"AMD Radeon RX 6700 XT","driver":"AMD proprietary driver 26.11.2 (AMD proprietary shader compiler)","os":"Windows 10.0.22621","cpu":"AMD Ryzen 9 5950X 16-Core Processor","cpu_threads":32,"memory_mib":65457,"title_id":"PPSA28311","title":"Absolum","content_version":"01.002.000","resolution":"3840x2160","window":{"spec":"seconds 290:20","first_present":10139,"ms":20013.276},"presents":546,"frame_ms":{"p50":36.495,"p90":41.419,"p99":48.278,"max":63.339},"gpu_busy_ms_per_present":23.436,"worker_busy_pct":{"queue worker 0x0":72.566},"phase_totals_ms":{"Driver.Completion":1.094,"Driver.Dispatch":4278.762,"Driver.Dispatch.capture_resources":215.720,"Driver.Dispatch.decode_key_device_setup":849.916,"Driver.Dispatch.lookup_cache":61.195,"Driver.Dispatch.materialize":170.318,"Driver.Dispatch.prepared_invocation":186.044,"Driver.Draw":7255.767,"Driver.Draw.device_setup":151.765,"Driver.Draw.draw_enqueued":5313.002,"Driver.Draw.post_compile_prepare":53.977,"Driver.Draw.prepare":317.849,"Driver.Draw.shader_compile_and_link":1354.377,"Driver.EndSubmission":1.050,"Driver.Packet":14520.501,"Driver.Packet.device_lock":125.038,"Driver.Packet.dispatch":4348.017,"Driver.Packet.draw":7292.102,"Driver.Packet.execute":294.726,"Driver.Packet.flip_flush":16.843,"Driver.Packet.flush_between_packets":1031.607,"Driver.Packet.memory_wait":0.138,"Driver.Packet.pipeline_drain":642.490,"Driver.Packet.pipeline_prepare":180.054,"Driver.Packet.prepare_memory":164.437,"Driver.Packet.rendering_wait":0.556,"Driver.Present":13030.680,"Driver.Present.acquire_image":5796.911,"Driver.Present.device_setup":0.538,"Driver.Present.gpu_mutex_wait":7005.338,"Driver.Present.inflight_wait":1.444,"Driver.Present.present_display_buffer":85.653,"Driver.Present.queue_present":77.228,"Driver.Present.release_and_callback":0.790,"Driver.Present.render_fence_wait":61.311,"Driver.Present.resize":0.922,"Driver.Present.validate":0.198,"Driver.Suspend":0.133,"GpuMutex.wait.dispatch":20.506,"GpuMutex.wait.draw":23.359,"GpuMutex.wait.end":24.551,"GpuMutex.wait.fill":12.639,"GpuMutex.wait.hook":332.293,"GpuMutex.wait.label":27.598,"GpuMutex.wait.other":6.799,"GpuMutex.wait.present":7003.527,"GpuMutex.wait.wait":1051.449,"Graphics.Draw":2371.953,"Graphics.Draw.draw_and_resource_release":1813.642,"Graphics.Draw.index_upload":186.993,"Graphics.Draw.validate":163.022,"Graphics.Draw.vertex_upload":175.439,"Graphics.DrawWithRecipe":92.217,"Graphics.DrawWithRecipe.draw_and_resource_release":79.418,"Graphics.DrawWithRecipe.index_upload":3.797,"Graphics.DrawWithRecipe.validate":3.306,"Graphics.DrawWithRecipe.vertex_upload":4.751,"Recorder.Reap":350.007,"Recorder.Submit":868.277,"Recorder.Sync":9675.629,"Recorder.WaitSerial":6747.012,"Resources.Complete":14.118,"Resources.Prepare":21.498,"Shader.DrawStage":667.438,"Shader.DrawStage.capture_resources":273.236,"Shader.DrawStage.materialize":126.948,"Shader.DrawStage.prepared_invocation":244.508,"VideoOut.Flip":13040.344,"VideoOut.Flip.completion_mutex_wait":0.606,"VideoOut.Flip.config_mutex_wait":0.064,"VideoOut.Flip.frame_limit":0.304,"VideoOut.Flip.notify_game":18.298,"VideoOut.Flip.present":13016.390,"VideoOut.Flip.validate":0.682,"VideoOut.Flip.vblank_wait":0.412,"VideoOut.Flip.window_prepare":0.770,"VideoOut.Flip.window_title":2.293,"VideoOut.Readiness":1.165,"VideoOut.Readiness.locks_validate":0.391,"Vulkan.Acquire":5796.244,"Vulkan.Acquire.acquire_fence_wait":5747.451,"Vulkan.Acquire.acquire_image":46.082,"Vulkan.Acquire.fence_reset":1.227,"Vulkan.Acquire.retired_swapchains":1.188,"Vulkan.Dispatch":1533.771,"Vulkan.Dispatch.command_record":770.594,"Vulkan.Dispatch.shader_resources":736.125,"Vulkan.DispatchRecipe":0.073,"Vulkan.DispatchRecipe.command_record":0.072,"Vulkan.DrawFromRecipe":94.075,"Vulkan.Present":40.770,"Vulkan.Present.command_record_scale":19.738,"Vulkan.Present.pixel_upload":9.403,"Vulkan.Present.queue_submit":11.205,"Vulkan.QueuePresent":75.368,"Vulkan.QueuePresent.queue_present":74.387,"Vulkan.Retire":61.165,"Vulkan.Retire.wait":54.331},"top_phases_ms_per_frame":{"Driver.Packet":26.594,"VideoOut.Flip":23.883,"Driver.Present":23.866,"VideoOut.Flip.present":23.840,"Recorder.Sync":17.721,"Driver.Packet.draw":13.355,"Driver.Draw":13.289,"Driver.Present.gpu_mutex_wait":12.830},"owned_draw_counts":{},"graphics_track":{"Graphics.Barrier.copy":2730,"Graphics.Barrier.dispatch-lead":46830,"Graphics.Barrier.dispatch-trail":181963,"Graphics.Barrier.draw":11508,"Graphics.Barrier.fill":28,"Graphics.Barrier.fill-clear":7644,"Graphics.Barrier.label-run":235022,"Graphics.Barrier.present-blit":1092,"Graphics.Barrier.shadow-publish":546,"Graphics.Barrier.storage-writeback":1638,"Graphics.BarrierMerged.dispatch-lead":135133,"Graphics.BarrierMerged.fill":8,"Graphics.BarrierMerged.shadow-publish":546,"Graphics.RenderPass":4916,"Graphics.RenderPass.Close.command":2730,"Graphics.RenderPass.Close.image":1637,"Graphics.RenderPass.Close.new-batch":549,"Graphics.RenderPass.Continued":177593},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":16.476,"events_lost":56738,"totals_full":false}},"trace":"aps5-trace-f784587f30bf-253228.json.gz"} ``` </details> <details> <summary>tools/trace_digest.py, main (run 4)</summary> ``` **seconds 290:20** from present 10178: 530 presents, frame p50 37.5 / p90 42.5 / p99 48.5 / max 52.4 ms, GPU busy 24.3 ms per present AMD Radeon RX 6700 XT, AMD proprietary driver 26.11.2 (AMD proprietary shader compiler), Windows 10.0.22621, 3840x2160, commit f784587f30bf, dropped: yes ```json {"commit":"f784587f30bf","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_PLAYGO_UNLISTED_CHUNKS":"installed","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"290:20"},"gpu":"AMD Radeon RX 6700 XT","driver":"AMD proprietary driver 26.11.2 (AMD proprietary shader compiler)","os":"Windows 10.0.22621","cpu":"AMD Ryzen 9 5950X 16-Core Processor","cpu_threads":32,"memory_mib":65457,"title_id":"PPSA28311","title":"Absolum","content_version":"01.002.000","resolution":"3840x2160","window":{"spec":"seconds 290:20","first_present":10178,"ms":20026.704},"presents":530,"frame_ms":{"p50":37.506,"p90":42.48,"p99":48.51,"max":52.429},"gpu_busy_ms_per_present":24.312,"worker_busy_pct":{"queue worker 0x0":72.529},"phase_totals_ms":{"Driver.Completion":1.169,"Driver.Dispatch":4257.785,"Driver.Dispatch.capture_resources":209.641,"Driver.Dispatch.decode_key_device_setup":850.391,"Driver.Dispatch.lookup_cache":61.298,"Driver.Dispatch.materialize":165.457,"Driver.Dispatch.prepared_invocation":181.042,"Driver.Draw":7277.026,"Driver.Draw.device_setup":149.557,"Driver.Draw.draw_enqueued":5351.901,"Driver.Draw.post_compile_prepare":54.485,"Driver.Draw.prepare":318.89,"Driver.Draw.shader_compile_and_link":1337.47,"Driver.EndSubmission":1.044,"Driver.Packet":14522.904,"Driver.Packet.device_lock":123.097,"Driver.Packet.dispatch":4328.227,"Driver.Packet.draw":7313.975,"Driver.Packet.execute":292.726,"Driver.Packet.flip_flush":17.246,"Driver.Packet.flush_between_packets":1083.053,"Driver.Packet.memory_wait":0.212,"Driver.Packet.pipeline_drain":599.669,"Driver.Packet.pipeline_prepare":174.624,"Driver.Packet.prepare_memory":162.813,"Driver.Packet.rendering_wait":0.56,"Driver.Present":13139.593,"Driver.Present.acquire_image":5830.535,"Driver.Present.device_setup":0.526,"Driver.Present.gpu_mutex_wait":7054.778,"Driver.Present.inflight_wait":1.409,"Driver.Present.present_display_buffer":84.081,"Driver.Present.queue_present":76.503,"Driver.Present.release_and_callback":0.782,"Driver.Present.render_fence_wait":89.546,"Driver.Present.resize":0.896,"Driver.Present.validate":0.192,"Driver.Suspend":0.117,"GpuMutex.wait.dispatch":22.027,"GpuMutex.wait.draw":0.862,"GpuMutex.wait.end":24.178,"GpuMutex.wait.fill":12.799,"GpuMutex.wait.flush":0.363,"GpuMutex.wait.hook":247.071,"GpuMutex.wait.label":25.913,"GpuMutex.wait.other":2.22,"GpuMutex.wait.present":7053.063,"GpuMutex.wait.wait":1032.63,"Graphics.Draw":2315.048,"Graphics.Draw.draw_and_resource_release":1757.926,"Graphics.Draw.index_upload":186.411,"Graphics.Draw.validate":160.928,"Graphics.Draw.vertex_upload":175.339,"Graphics.DrawWithRecipe":91.033,"Graphics.DrawWithRecipe.draw_and_resource_release":77.499,"Graphics.DrawWithRecipe.index_upload":3.286,"Graphics.DrawWithRecipe.validate":3.826,"Graphics.DrawWithRecipe.vertex_upload":5.348,"Recorder.Reap":342.547,"Recorder.Submit":925.851,"Recorder.Sync":9731.097,"Recorder.WaitSerial":6846.82,"Resources.Complete":14.043,"Resources.Prepare":20.333,"Shader.DrawStage":647.402,"Shader.DrawStage.capture_resources":268.549,"Shader.DrawStage.materialize":122.144,"Shader.DrawStage.prepared_invocation":235.114,"VideoOut.Flip":13142.272,"VideoOut.Flip.completion_mutex_wait":0.611,"VideoOut.Flip.config_mutex_wait":0.067,"VideoOut.Flip.frame_limit":0.292,"VideoOut.Flip.notify_game":12.636,"VideoOut.Flip.present":13123.906,"VideoOut.Flip.validate":0.662,"VideoOut.Flip.vblank_wait":0.418,"VideoOut.Flip.window_prepare":0.788,"VideoOut.Flip.window_title":2.346,"VideoOut.Readiness":1.15,"VideoOut.Readiness.locks_validate":0.372,"Vulkan.Acquire":5829.841,"Vulkan.Acquire.acquire_fence_wait":5781.08,"Vulkan.Acquire.acquire_image":46.26,"Vulkan.Acquire.fence_reset":1.215,"Vulkan.Acquire.retired_swapchains":1.016,"Vulkan.Dispatch":1544.179,"Vulkan.Dispatch.command_record":780.942,"Vulkan.Dispatch.shader_resources":736.959,"Vulkan.DispatchRecipe":0.246,"Vulkan.DispatchRecipe.command_record":0.243,"Vulkan.DrawFromRecipe":93.052,"Vulkan.Present":39.743,"Vulkan.Present.command_record_scale":19.521,"Vulkan.Present.pixel_upload":9.035,"Vulkan.Present.queue_submit":10.738,"Vulkan.QueuePresent":74.758,"Vulkan.QueuePresent.queue_present":73.823,"Vulkan.Retire":89.386,"Vulkan.Retire.wait":82.622},"top_phases_ms_per_frame":{"Driver.Packet":27.402,"VideoOut.Flip":24.797,"Driver.Present":24.792,"VideoOut.Flip.present":24.762,"Recorder.Sync":18.361,"Driver.Packet.draw":13.8,"Driver.Draw":13.73,"Driver.Present.gpu_mutex_wait":13.311},"owned_draw_counts":{},"graphics_track":{"Graphics.Barrier.copy":2650,"Graphics.Barrier.dispatch-lead":46581,"Graphics.Barrier.dispatch-trail":178254,"Graphics.Barrier.draw":11172,"Graphics.Barrier.fill":42,"Graphics.Barrier.fill-clear":7420,"Graphics.Barrier.label-run":231095,"Graphics.Barrier.present-blit":1060,"Graphics.Barrier.shadow-publish":530,"Graphics.Barrier.storage-writeback":1590,"Graphics.BarrierMerged.dispatch-lead":131673,"Graphics.BarrierMerged.fill":12,"Graphics.BarrierMerged.shadow-publish":530,"Graphics.RenderPass":4772,"Graphics.RenderPass.Close.command":2650,"Graphics.RenderPass.Close.image":1589,"Graphics.RenderPass.Close.new-batch":533,"Graphics.RenderPass.Continued":174012},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":15.14,"events_lost":81547,"totals_full":false}},"trace":"aps5-trace-f784587f30bf-278592.json.gz"} ``` **Incomplete trace:** recorded data was lost. Slice-based timings, waits and batch inventories cover retained events only; missing slices are not idle time. Summary statistics are reported separately. - queue worker 0x0: 81547 events lost; buffer full at 15140.1 ms; over the 399 of 530 frames that ended before it: busy 17.0 ms per frame (45 %), wait 0.1, largest Driver.Packet 17.0, Driver.Completion 0.0 (the thread table divides the retained slices by every frame) **Slowest frames** (largest slices inside each, inclusive) - present 10247: 52.4 ms at 2487 ms: Driver.Packet (queue worker 0x0) 42.1, VideoOut.Flip (presenter) 40.8, VideoOut.Flip.present (presenter) 40.8, Driver.Present (presenter) 40.7 - present 10529: 51.8 ms at 13182 ms: VideoOut.Flip (presenter) 41.1, VideoOut.Flip.present (presenter) 41.1, Driver.Present (presenter) 41.1, Driver.Packet (queue worker 0x0) 40.3 - present 10327: 50.6 ms at 5641 ms: VideoOut.Flip (presenter) 43.0, VideoOut.Flip.present (presenter) 43.0, Driver.Present (presenter) 43.0, batch (gpu) 40.8 **Persistent spikes** (frame time above the fastest frame that separates it from a longer frame; one entry per stall, not per frame) - present 10247: 52.4 ms at 2487 ms, persistence 31.7 ms - present 10529: 51.8 ms at 13182 ms, persistence 31.1 ms - present 10408: 47.2 ms at 8687 ms, persistence 24.7 ms - present 10636: 46.3 ms at 17424 ms, persistence 19.6 ms - present 10670: 40.5 ms at 18671 ms, persistence 17.3 ms **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | title | 0.0 (0 %) | 15.3 (41 %) | 22.5 | 0.0 | Recorder.Sync 0.0 | | queue worker 0x0 | 12.8 (34 %) | 0.1 (0 %) | 24.9 | 32.4 | Driver.Packet 12.8, Driver.Completion 0.0 | | draw committer | 19.5 (52 %) | 0.1 (0 %) | 18.2 | 8.0 | Recorder.Sync 18.4, Graphics.Draw 0.9 | | presenter | 0.4 (1 %) | 24.4 (65 %) | 13.0 | 0.1 | VideoOut.Flip 24.8, Driver.Present 0.0 | | gpu | 24.3 (64 %) | 0.0 (0 %) | 13.5 | 0.0 | batch 24.3 | **Largest slices** (ms per frame, inclusive, all threads): VideoOut.Flip 24.8, Driver.Present 24.8, VideoOut.Flip.present 24.8, batch 24.3, Recorder.Sync 18.4 **Longest waits** - Recorder.WaitSerial (title) 39.0 ms at 5641 ms, present 10327 - Recorder.WaitSerial (title) 37.4 ms at 16333 ms, present 10607 - Recorder.WaitSerial (title) 37.4 ms at 13001 ms, present 10525 - Recorder.WaitSerial (title) 36.8 ms at 13182 ms, present 10529 - Recorder.WaitSerial (title) 36.6 ms at 2487 ms, present 10247 **Largest GPU batches** (GPU ranges inside, and the CPU slices that recorded each, inclusive) - batch 13395: 38.9 ms at 5641 ms, present 10327: GPU no ranges; recorded by Graphics.Draw (draw committer) 1.6, Graphics.Draw.draw_and_resource_release (draw committer) 0.8, Graphics.Draw.index_upload (draw committer) 0.4, Vulkan.DrawFromRecipe (draw committer) 0.2 - batch 38750: 37.3 ms at 16333 ms, present 10607: GPU no ranges; recorded by Graphics.Draw (draw committer) 1.6, Graphics.Draw.draw_and_resource_release (draw committer) 0.8, Graphics.Draw.index_upload (draw committer) 0.4, Vulkan.DrawFromRecipe (draw committer) 0.2 - batch 31196: 37.3 ms at 13001 ms, present 10525: GPU no ranges; recorded by Graphics.Draw (draw committer) 1.2, Graphics.Draw.draw_and_resource_release (draw committer) 0.5, Graphics.Draw.index_upload (draw committer) 0.4, Vulkan.DrawFromRecipe (draw committer) 0.1 ``` </details> <details> <summary>tools/trace_digest.py, this PR (run 2)</summary> ``` **seconds 290:20** from present 13939: 945 presents, frame p50 20.6 / p90 23.5 / p99 37.6 / max 48.6 ms, GPU busy 13.7 ms per present AMD Radeon RX 6700 XT, AMD proprietary driver 26.11.2 (AMD proprietary shader compiler), Windows 10.0.22621, 3840x2160, commit 7b6ee9180f23, dropped: yes ```json {"commit":"7b6ee9180f23","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_PLAYGO_UNLISTED_CHUNKS":"installed","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"290:20"},"gpu":"AMD Radeon RX 6700 XT","driver":"AMD proprietary driver 26.11.2 (AMD proprietary shader compiler)","os":"Windows 10.0.22621","cpu":"AMD Ryzen 9 5950X 16-Core Processor","cpu_threads":32,"memory_mib":65457,"title_id":"PPSA28311","title":"Absolum","content_version":"01.002.000","resolution":"3840x2160","window":{"spec":"seconds 290:20","first_present":13939,"ms":20001.686},"presents":945,"frame_ms":{"p50":20.6,"p90":23.488,"p99":37.603,"max":48.607},"gpu_busy_ms_per_present":13.71,"worker_busy_pct":{"queue worker 0x0":94.65},"phase_totals_ms":{"Driver.Completion":2.466,"Driver.Dispatch":7575.959,"Driver.Dispatch.capture_resources":405.04,"Driver.Dispatch.decode_key_device_setup":1455.221,"Driver.Dispatch.lookup_cache":104.84,"Driver.Dispatch.materialize":297.412,"Driver.Dispatch.prepared_invocation":346.023,"Driver.Draw":4859.673,"Driver.Draw.device_setup":266.124,"Driver.Draw.draw_enqueued":1215.932,"Driver.Draw.post_compile_prepare":98.062,"Driver.Draw.prepare":572.252,"Driver.Draw.shader_compile_and_link":2591.961,"Driver.EndSubmission":2.079,"Driver.Packet":18926.93,"Driver.Packet.device_lock":232.336,"Driver.Packet.dispatch":7716.039,"Driver.Packet.draw":4930.697,"Driver.Packet.execute":532.317,"Driver.Packet.flip_flush":31.047,"Driver.Packet.flush_between_packets":2352.507,"Driver.Packet.memory_wait":0.096,"Driver.Packet.pipeline_drain":1739.372,"Driver.Packet.pipeline_prepare":339.517,"Driver.Packet.prepare_memory":299.326,"Driver.Packet.rendering_wait":0.923,"Driver.Present":14482.126,"Driver.Present.acquire_image":10704.185,"Driver.Present.device_setup":0.481,"Driver.Present.gpu_mutex_wait":271.614,"Driver.Present.inflight_wait":2.193,"Driver.Present.present_display_buffer":166.783,"Driver.Present.queue_present":154.242,"Driver.Present.release_and_callback":1.414,"Driver.Present.render_fence_wait":3179.069,"Driver.Present.resize":1.259,"Driver.Present.validate":0.316,"Driver.Suspend":0.149,"GpuMutex.wait.dispatch":25.129,"GpuMutex.wait.draw":521.272,"GpuMutex.wait.end":1.152,"GpuMutex.wait.fill":60.93,"GpuMutex.wait.flush":4.382,"GpuMutex.wait.hook":169.108,"GpuMutex.wait.label":67.987,"GpuMutex.wait.other":12.487,"GpuMutex.wait.present":268.682,"GpuMutex.wait.wait":295.892,"Graphics.Draw":4483.865,"Graphics.Draw.draw_and_resource_release":3402.117,"Graphics.Draw.index_upload":388.699,"Graphics.Draw.validate":299.403,"Graphics.Draw.vertex_upload":334.493,"Graphics.DrawWithRecipe":166.18,"Graphics.DrawWithRecipe.draw_and_resource_release":136.338,"Graphics.DrawWithRecipe.index_upload":11.033,"Graphics.DrawWithRecipe.validate":5.75,"Graphics.DrawWithRecipe.vertex_upload":11.246,"Recorder.Reap":1802.208,"Recorder.Submit":1470.728,"Recorder.Sync":11.844,"Recorder.WaitSerial":10948.627,"Resources.Complete":26.544,"Resources.Prepare":37.322,"Shader.DrawStage":1221.169,"Shader.DrawStage.capture_resources":505.777,"Shader.DrawStage.materialize":233.585,"Shader.DrawStage.prepared_invocation":442.863,"VideoOut.Flip":14614.709,"VideoOut.Flip.completion_mutex_wait":0.951,"VideoOut.Flip.config_mutex_wait":0.122,"VideoOut.Flip.frame_limit":0.601,"VideoOut.Flip.notify_game":15.245,"VideoOut.Flip.present":14472.017,"VideoOut.Flip.validate":1.141,"VideoOut.Flip.vblank_wait":118.385,"VideoOut.Flip.window_prepare":1.323,"VideoOut.Flip.window_title":4.045,"VideoOut.Readiness":1.914,"VideoOut.Readiness.locks_validate":0.623,"Vulkan.Acquire":10703.042,"Vulkan.Acquire.acquire_fence_wait":10625.291,"Vulkan.Acquire.acquire_image":72.497,"Vulkan.Acquire.fence_reset":2.196,"Vulkan.Acquire.retired_swapchains":2.516,"Vulkan.Dispatch":2766.985,"Vulkan.Dispatch.command_record":1406.679,"Vulkan.Dispatch.shader_resources":1323.178,"Vulkan.DispatchRecipe":0.093,"Vulkan.DispatchRecipe.command_record":0.092,"Vulkan.DrawFromRecipe":169.301,"Vulkan.Present":80.557,"Vulkan.Present.command_record_scale":36.92,"Vulkan.Present.pixel_upload":23.443,"Vulkan.Present.queue_submit":19.276,"Vulkan.QueuePresent":150.05,"Vulkan.QueuePresent.queue_present":148.259,"Vulkan.Retire":3178.682,"Vulkan.Retire.wait":3165.415},"top_phases_ms_per_frame":{"Driver.Packet":20.028,"VideoOut.Flip":15.465,"Driver.Present":15.325,"VideoOut.Flip.present":15.314,"Recorder.WaitSerial":11.586,"Driver.Present.acquire_image":11.327,"Vulkan.Acquire":11.326,"Vulkan.Acquire.acquire_fence_wait":11.244},"owned_draw_counts":{},"graphics_track":{"Graphics.Barrier.copy":4725,"Graphics.Barrier.dispatch-lead":81553,"Graphics.Barrier.dispatch-trail":318645,"Graphics.Barrier.draw":23529,"Graphics.Barrier.fill":28,"Graphics.Barrier.fill-clear":13230,"Graphics.Barrier.label-run":410831,"Graphics.Barrier.present-blit":1890,"Graphics.Barrier.shadow-publish":945,"Graphics.Barrier.storage-writeback":2835,"Graphics.BarrierMerged.dispatch-lead":237092,"Graphics.BarrierMerged.fill":8,"Graphics.BarrierMerged.shadow-publish":945,"Graphics.RenderPass":8760,"Graphics.RenderPass.Close.command":4710,"Graphics.RenderPass.Close.image":2830,"Graphics.RenderPass.Close.new-batch":1217,"Graphics.RenderPass.Continued":310830},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":11.555,"events_lost":183191,"totals_full":false}},"trace":"aps5-trace-7b6ee9180f23-245520.json.gz"} ``` **Incomplete trace:** recorded data was lost. Slice-based timings, waits and batch inventories cover retained events only; missing slices are not idle time. Summary statistics are reported separately. - queue worker 0x0: 183191 events lost; buffer full at 11554.8 ms; over the 542 of 945 frames that ended before it: busy 8.2 ms per frame (39 %), wait 0.3, largest Driver.Packet 8.3, Driver.Completion 0.0 (the thread table divides the retained slices by every frame) **Slowest frames** (largest slices inside each, inclusive) - present 14223: 48.6 ms at 6070 ms: VideoOut.Flip (presenter) 48.6, VideoOut.Flip.present (presenter) 48.6, Driver.Present (presenter) 48.6, Recorder.WaitSerial (title) 37.9 - present 14671: 47.0 ms at 15516 ms: VideoOut.Flip (presenter) 47.0, VideoOut.Flip.present (presenter) 46.8, Driver.Present (presenter) 46.8, batch (gpu) 44.9 - present 14750: 45.4 ms at 17203 ms: VideoOut.Flip (presenter) 45.4, VideoOut.Flip.present (presenter) 45.3, Driver.Present (presenter) 45.3, batch (gpu) 43.2 **Persistent spikes** (frame time above the fastest frame that separates it from a longer frame; one entry per stall, not per frame) - present 14223: 48.6 ms at 6070 ms, persistence 42.5 ms - present 14750: 45.4 ms at 17203 ms, persistence 39.3 ms - present 14671: 47.0 ms at 15516 ms, persistence 38.8 ms - present 14595: 45.0 ms at 13849 ms, persistence 35.4 ms - present 14349: 42.6 ms at 8856 ms, persistence 32.2 ms **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | title | 0.0 (0 %) | 12.1 (57 %) | 9.1 | 0.0 | Recorder.Sync 0.0 | | queue worker 0x0 | 4.7 (22 %) | 0.2 (1 %) | 16.2 | 26.9 | Driver.Packet 4.7, Driver.Completion 0.0 | | draw committer | 2.5 (12 %) | 0.7 (3 %) | 18.0 | 7.9 | Recorder.Reap 1.2, Graphics.Draw 1.1 | | presenter | 0.5 (2 %) | 15.0 (71 %) | 5.7 | 0.1 | VideoOut.Flip 15.5, Driver.Present 0.0 | | gpu | 13.7 (65 %) | 0.0 (0 %) | 7.5 | 0.0 | batch 13.7 | **Largest slices** (ms per frame, inclusive, all threads): VideoOut.Flip 15.5, Driver.Present 15.3, VideoOut.Flip.present 15.3, batch 13.7, Recorder.WaitSerial 11.6 **Longest waits** - Recorder.WaitSerial (title) 27.3 ms at 15516 ms, present 14671 - Recorder.WaitSerial (title) 25.6 ms at 13850 ms, present 14595 - Driver.Present.render_fence_wait (presenter) 25.5 ms at 6093 ms, present 14223 - Recorder.WaitSerial (title) 25.2 ms at 17203 ms, present 14750 - Driver.Present.render_fence_wait (presenter) 25.0 ms at 15538 ms, present 14671 **Largest GPU batches** (GPU ranges inside, and the CPU slices that recorded each, inclusive) - batch 65561: 27.2 ms at 15516 ms, present 14671: GPU no ranges; recorded by Graphics.Draw (draw committer) 1.1, Graphics.Draw.draw_and_resource_release (draw committer) 0.5, Graphics.Draw.index_upload (draw committer) 0.4, Vulkan.DrawFromRecipe (draw committer) 0.1 - batch 25608: 27.0 ms at 6030 ms, present 14222: GPU no ranges; recorded by Graphics.Draw (draw committer) 2.3, Graphics.Draw.draw_and_resource_release (draw committer) 1.0, Graphics.Draw.index_upload (draw committer) 0.3, Vulkan.DrawFromRecipe (draw committer) 0.2 - batch 58768: 25.5 ms at 13850 ms, present 14595: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.9, Graphics.Draw.draw_and_resource_release (draw committer) 0.4, Graphics.Draw.index_upload (draw committer) 0.3, Vulkan.DrawFromRecipe (draw committer) 0.1 ``` </details> ### Independent validation and composition caveat [LeandroLP23 reports](https://github.com/boykopovar/AnyPS5/pull/26384#issuecomment-7116234309) a base/change/change/base SuperTuxKart tutorial comparison on an RTX 5060 Ti, driver 621.24, Windows 11, using main `0d8e695ad2` plus #10442/#24445/#24869/#25280 (`b24225548f`) and this PR's `2dd127454a` (`a6aedb16ab`). In the 80:10 trace window, p50 frame times were 40.4/38.8/41.3/41.3 ms; the change engaged 729 label-run barriers in its first run and only 10 in its second. The benefit varied between runs, so this does not establish a repeatable gain for that title. On a Radeon 860M, the combined stack passed 45/48 focused tests versus 48/48 on the base, with no reported VUID lines. All three `agc_driver_unimported_label_order` variants failed an existing #10442 case because this PR's earlier `NoteFlip()` calls settle a shared allocation. **Open composition follow-up:** isolate those fixture allocations or move the settling block, then revalidate the combination. These are contributor-reported results; no combined-stack fix is claimed here. [LeandroLP23 then confirmed](https://github.com/boykopovar/AnyPS5/pull/26384#issuecomment-7125480564) the head `81f6333f36` on the same #10442 stack. That commit is a pure move: the 23 removed and 23 added lines are identical. Cherry-picked onto `b24225548f` + `2dd127454a` and run on a Radeon 860M (Windows 11 26300) with the validation layer inserted, all three `agc_driver_unimported_label_order` variants pass in each of 3 runs, with 0 `VUID-` lines. So the settled-mapping case runs correctly after #10442's cases whichever of the two merges first. ### 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) and the licence notice of code adapted from upstream (see AGENTS.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; speeds up PPSA28311 #7373 and PPSA28795 #7382 (related: #25912, #7464, #7465) - [x] GPUs tested: AMD Radeon RX 6700 XT, AMD driver 26.11.2, Windows 11 22621 - [x] AI-assisted: yes <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Bug Fixes** * GPU labels on newly encountered guest memory mappings are now deferred until the mapping remains stable across three texture flips. Labels on stable mappings are then imported, while labels on new or changed mappings continue to wait. This improves label handling when memory mappings are still changing. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
MarcZX10 commented 2026-11-25 07:58:11 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-25T07:58:11Z.

Review: APPROVED


Reviewed — looks good

Nothing blocks this change; the code I inspected supports the intended settled mapping behavior, and the reported focused test results cover its new path.

What I ran

Reviewed head 81f6333f36e30cbb494ae63f234341d93b9d500c. Read the prepared diff, manifest, description, commit list, and targeted source ranges through repo_read.py. I did not run commands or tests.

Results

Check Result Note
Changed-line review passed All added lines were read
Test execution not run Results in the description are author reported
Focused context passed Allocation serial and flip counter use inspected

Findings

Blocking

None.

Non-blocking

None.

Not verified

No tests were run independently. I read the changed lines in all four changed files: VulkanDevice.cpp, Texture.hpp, Texture.cpp, and UnimportedLabelOrder.cpp. The full text of VulkanDevice.cpp and Texture.cpp was excluded from the review folder; only targeted ranges were read through the repository reader. I did not read other changed-file lines or independently validate the reported performance results, hardware behavior, or operating systems.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6053783841 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/26384#pullrequestreview-6053783841). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-25T07:58:11Z. **Review:** APPROVED --- # Reviewed — looks good Nothing blocks this change; the code I inspected supports the intended settled mapping behavior, and the reported focused test results cover its new path. ## What I ran Reviewed head `81f6333f36e30cbb494ae63f234341d93b9d500c`. Read the prepared diff, manifest, description, commit list, and targeted source ranges through `repo_read.py`. I did not run commands or tests. ## Results | Check | Result | Note | |---|---|---| | Changed-line review | passed | All added lines were read | | Test execution | not run | Results in the description are author reported | | Focused context | passed | Allocation serial and flip counter use inspected | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified No tests were run independently. I read the changed lines in all four changed files: `VulkanDevice.cpp`, `Texture.hpp`, `Texture.cpp`, and `UnimportedLabelOrder.cpp`. The full text of `VulkanDevice.cpp` and `Texture.cpp` was excluded from the review folder; only targeted ranges were read through the repository reader. I did not read other changed-file lines or independently validate the reported performance results, hardware behavior, or operating systems. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-26 12:09:36 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-26T12:09:36Z.

Review: COMMENTED


Reviewed — no blocking findings

The change adds a bounded settled-mapping check for queue-0 labels; I inspected the changed logic and test additions, but did not run checks, so a formal approval is not justified.

What I ran

No commands or tests were run. Reviewed head ec27bdd63d2ee3063cde36c3db71be6120020837; base is main per the manifest. I read the prepared description, commits, manifest, diff, and the changed source ranges listed below. VulkanDevice.cpp and Texture.cpp were excluded from the review folder due to size and were read through repo_read.py.

Results

Check Result Note
Changed-code inspection passed Core logic and test ranges inspected
Tests and build not run No execution environment available
Author-reported checks not run Description reports test and performance results

Negative control

Not run by me. The description reports that restoring VulkanDevice.cpp to main made the new settled-mapping case fail on tested configurations.

Findings

Blocking

None identified in the inspected code.

Non-blocking

None.

Sources

  • core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp:3166-3183 — bounded mapping/flip tracking; :3300-3306 — settled mapping path in label handling.
  • core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp:374 and core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp:4857-4863 — flip serial declaration and implementation.
  • core/libs/prx/libSceAgcDriver/tests/execution/UnimportedLabelOrder.cpp:248-269 — new settled and fresh mapping cases.
  • core/libs/prx/libc/include/GuestAllocations.hpp:14-28 — range identity fields used by the check.

Not verified

I did not run builds, tests, performance checks, or console behavior. I read the changed lines in all four changed files; the full texts of VulkanDevice.cpp and Texture.cpp were excluded from the review folder, and only relevant ranges were read. The prepared description's reported results were not independently verified.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6073887381 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/26384#pullrequestreview-6073887381). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-26T12:09:36Z. **Review:** COMMENTED --- # Reviewed — no blocking findings The change adds a bounded settled-mapping check for queue-0 labels; I inspected the changed logic and test additions, but did not run checks, so a formal approval is not justified. ## What I ran No commands or tests were run. Reviewed head `ec27bdd63d2ee3063cde36c3db71be6120020837`; base is `main` per the manifest. I read the prepared description, commits, manifest, diff, and the changed source ranges listed below. `VulkanDevice.cpp` and `Texture.cpp` were excluded from the review folder due to size and were read through `repo_read.py`. ## Results | Check | Result | Note | |---|---|---| | Changed-code inspection | passed | Core logic and test ranges inspected | | Tests and build | not run | No execution environment available | | Author-reported checks | not run | Description reports test and performance results | ## Negative control Not run by me. The description reports that restoring `VulkanDevice.cpp` to `main` made the new settled-mapping case fail on tested configurations. ## Findings ### Blocking None identified in the inspected code. ### Non-blocking None. ## Sources - `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp:3166-3183` — bounded mapping/flip tracking; `:3300-3306` — settled mapping path in label handling. - `core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp:374` and `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp:4857-4863` — flip serial declaration and implementation. - `core/libs/prx/libSceAgcDriver/tests/execution/UnimportedLabelOrder.cpp:248-269` — new settled and fresh mapping cases. - `core/libs/prx/libc/include/GuestAllocations.hpp:14-28` — range identity fields used by the check. ## Not verified I did not run builds, tests, performance checks, or console behavior. I read the changed lines in all four changed files; the full texts of `VulkanDevice.cpp` and `Texture.cpp` were excluded from the review folder, and only relevant ranges were read. The prepared description's reported results were not independently verified. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-27 17:07:53 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T17:07:53Z.

Review: COMMENTED


Reviewed — no blocking findings

The changed code and focused test case support the settled mapping behavior; I did not run the reported tests or performance checks.

What I ran

Reviewed head 3dad12e1abf8ea7be0850152a1d13124018cf88e using repo_read.py. No commands or tests were run; no merged preview was checked.

Results

Check Result Note
Changed code review passed Four changed files read
Tests and performance checks not run Results in the description are author reported

Findings

Blocking

None.

Non-blocking

None.

Sources

  • VulkanDevice.cpp tracks the first label by allocation address and backing serial, and applies the three flip threshold before using the label import path.
  • UnimportedLabelOrder.cpp covers the first label, the settled mapping, and a fresh mapping.

Not verified

I read all changed files listed in the manifest: VulkanDevice.cpp, Texture.hpp, Texture.cpp, and UnimportedLabelOrder.cpp. No changed files were excluded. Tests, control runs, performance captures, and platform behavior were not independently verified; the description reports Windows validation and notes SuperTuxKart, Linux, macOS, and other GPUs were not tested.

To get this to a good state

Nothing is required. The reported test and performance results are optional context and were not run during this review.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6091372597 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/26384#pullrequestreview-6091372597). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-27T17:07:53Z. **Review:** COMMENTED --- # Reviewed — no blocking findings The changed code and focused test case support the settled mapping behavior; I did not run the reported tests or performance checks. ## What I ran Reviewed head `3dad12e1abf8ea7be0850152a1d13124018cf88e` using `repo_read.py`. No commands or tests were run; no merged preview was checked. ## Results | Check | Result | Note | |---|---|---| | Changed code review | passed | Four changed files read | | Tests and performance checks | not run | Results in the description are author reported | ## Findings ### Blocking None. ### Non-blocking None. ## Sources - [VulkanDevice.cpp](https://github.com/boykopovar/AnyPS5/blob/3dad12e1abf8ea7be0850152a1d13124018cf88e/core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp#L3199-L3217) tracks the first label by allocation address and backing serial, and applies the three flip threshold before using the label import path. - [UnimportedLabelOrder.cpp](https://github.com/boykopovar/AnyPS5/blob/3dad12e1abf8ea7be0850152a1d13124018cf88e/core/libs/prx/libSceAgcDriver/tests/execution/UnimportedLabelOrder.cpp#L248-L269) covers the first label, the settled mapping, and a fresh mapping. ## Not verified I read all changed files listed in the manifest: `VulkanDevice.cpp`, `Texture.hpp`, `Texture.cpp`, and `UnimportedLabelOrder.cpp`. No changed files were excluded. Tests, control runs, performance captures, and platform behavior were not independently verified; the description reports Windows validation and notes SuperTuxKart, Linux, macOS, and other GPUs were not tested. ## To get this to a good state Nothing is required. The reported test and performance results are optional context and were not run during this review.
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!26384
No description provided.