perf(agc): do not drain for a stencil-only expand without a clear #26360

Merged
JJenkx merged 1 commit from upstream-pr/26360 into main 2026-11-24 18:16:50 +00:00
JJenkx commented 2026-11-23 20:04:29 +00:00 (Migrated from github.com)

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


What

DepthRenderControlDrains decides whether a draw's DB_RENDER_CONTROL drains the pipelined draw queue before NoteDepthRenderControl runs. Since #16168 a single-sample control, or a clear-only control on any other surface, no longer drains, but every multisampled control with DEPTH_COMPRESS_DISABLE or STENCIL_COMPRESS_DISABLE (0x60) still does, so a surface that a queued draw has not registered yet is found.

NoteDepthRenderControl only changes a surface's expanded state for a depth expand (0x40, with the stencil expand or no stencil plane) or a clear (0x3). A control with only STENCIL_COMPRESS_DISABLE (0x20) and no clear bit sets nothing but renderControl, which only the "sampled through a descriptor without metadata" diagnostic prints. Such a control no longer drains:

if ((draw.control & 0x40u) != 0u) return true;
if ((draw.control & 3u) == 0u) return false;

Depth expands drain as before, and clears keep the surface lookup of #16168. As before, a control that does not drain is not passed to NoteDepthRenderControl, so the diagnostic's "last DB_RENDER_CONTROL" now shows the last control that could change a surface.

agc_driver_native_depth_expand_gate checks that a 0x20 control over the native target does not drain, that 0x21 (with a depth clear) does, and that a 0x40 expand at an address without a registered surface does; it then notes a 0x20 control on the surface and requires that sampling without metadata is still refused, i.e. the surface did not become expanded.

Where it matters: Snoopy and the Great Mystery Club (PPSA28795) issues DB_RENDER_CONTROL 0x20 over an 8-sample depth target for about a quarter of its draws. A gdb count on Windows saw 2,669 NoteDepthRenderControl calls in the first 37 s, all 0x20 on the same surface. In the first backyard scene that drained the pipeline about 58,000–60,000 times per 10 s (all DRAW_INDEX_2, opcode 0x27), 3.4–3.7 s of every 10 s of the packet thread waiting for the committer.

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. Candidate 5701d91506a (this branch on main bfcd717ebc5); main control bfcd717ebc5.

GPU tests: every test of agc_driver_native_multisample_depth_tests (33), 3 runs: 33/33 each run. agc_driver_native_depth_driver_queued_fill skips on this machine in each run (host imports are compared here, not write-watched). agc_driver_native_depth_expand_gate ran all 6 cases (4 and 8 samples, with and without a stencil plane). Control: main bfcd717ebc5 with only the new test lines, 3 runs: agc_driver_native_depth_expand_gate fails every run with a stencil-only expand without a clear over the native target drains.

Snoopy (PPSA28795, 01.000.002), first backyard scene, the same converted title and runtime, each arm copying its build's libraries in (driver hashes in arm.txt), Cross every 15 s from 30 s, 1920×1080. Both arms carry the uncommitted MultisampleTarget.cpp change of #26338 (as pr26338-src.patch), because without it one of the first two runs of this branch aborted at 9.5 s with that PR's import gate message; the summaries therefore say "dirty":true. The difference between the arms is this PR's commit only.

APS5_TRACE_SECONDS=100:20 only, arms in main, PR, PR, main order; all four 105 s screenshots show the same frame (gameplay HUD, "Search the backyard for clues."):

Run Arm Presents in 20 s p50 ms p90 ms p99 ms GPU busy ms per present
1 main 219 91.7 96.3 107.3 41.8
2 this PR 226 89.2 95.4 98.7 59.3
3 this PR 241 82.4 94.0 97.8 48.1
4 main 224 90.0 93.4 101.2 38.7

Every PR run has more presents and a lower p50 than every main run: on average 233.5 against 221.5 presents (+5.4%) and p50 85.8 against 90.8 ms. The gain is modest and the spread is wide (run 2 is close to run 4), so I read it as about 5%, not more. The traces dropped events, so the frame figures come from present timestamps.

APS5_PROFILE_DRAW=1 (diagnostic, separate runs, same setup), the backyard 10 s window:

main this PR
packet drains 57,950 (3,398 ms) 709 (2,126 ms), none for 0x27
presents 100 118
GPU idle gaps per present 47.0 ms 32.9 ms

Linux, in my run of this head: RX 6650 XT, RADV Mesa 26.3.1, Khronos layer 1.4.363. ^agc_driver_native_(multisample_depth|depth_.*)$|^agc_driver_stencil_plane_memory$ (35 tests) passed 35 of 35 in each of 3 runs, with 0 VUID- and 0 SYNC-HAZARD. agc_driver_native_depth_driver_queued_fill, which skips on the Windows host above, runs and passes there.

Independent Windows AMD validation reported by AlfaRojo: AMD Radeon iGPU (gfx1036), Windows 11 Pro 26200, GCC 15.2.0 Release, Khronos layer 1.4.363. ^agc_driver_native_(multisample_depth|depth_.*)$: 32 of 32 pass in each of 3 runs on the merge and on main. agc_driver_native_depth_bda_clear is a separate target that run did not build, so it shows Not Run on both sides. With DepthSurface.cpp restored to main, agc_driver_native_depth_expand_gate fails all 3 runs with "a stencil-only expand without a clear over the native target drains". 0 VUID-.

Not tested: other titles, macOS, and the Snoopy drain count on Linux.

Traces, summaries, screenshots, profile lines, test logs, the control and scripts, SHA-256 7aa243c6c5b11fc885c60e8e182ae2f1b57d35877a38099b66df5f5dad102908.

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":"bfcd717ebc57","dirty":true,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_PLAYGO_UNLISTED_CHUNKS":"installed","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"100: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":"PPSA28795","title":"Snoopy & The Great Mystery Club","content_version":"01.000.002","resolution":"1920x1080","window":{"spec":"seconds 100:20","first_present":2088,"ms":20080.004},"presents":219,"frame_ms":{"p50":91.686,"p90":96.264,"p99":107.250,"max":109.141},"gpu_busy_ms_per_present":41.832,"worker_busy_pct":{"queue worker 0x0":98.732},"phase_totals_ms":{"Driver.Completion":0.305,"Driver.Dispatch":168.090,"Driver.Dispatch.capture_resources":0.117,"Driver.Dispatch.decode_key_device_setup":27.466,"Driver.Dispatch.lookup_cache":2.856,"Driver.Dispatch.materialize":0.025,"Driver.Dispatch.prepared_invocation":0.018,"Driver.Draw":15470.626,"Driver.Draw.device_setup":4789.988,"Driver.Draw.draw_enqueued":1293.063,"Driver.Draw.post_compile_prepare":155.249,"Driver.Draw.prepare":998.314,"Driver.Draw.shader_compile_and_link":7596.940,"Driver.EndSubmission":0.195,"Driver.Packet":19824.870,"Driver.Packet.device_lock":65.550,"Driver.Packet.dispatch":170.223,"Driver.Packet.draw":15603.173,"Driver.Packet.execute":258.079,"Driver.Packet.flip_flush":0.338,"Driver.Packet.flush_between_packets":141.148,"Driver.Packet.memory_wait":0.006,"Driver.Packet.pipeline_drain":3308.980,"Driver.Packet.pipeline_prepare":98.357,"Driver.Packet.prepare_memory":96.638,"Driver.Packet.rendering_wait":0.268,"Driver.Present":116.132,"Driver.Present.acquire_image":56.406,"Driver.Present.device_setup":0.106,"Driver.Present.gpu_mutex_wait":4.520,"Driver.Present.inflight_wait":0.564,"Driver.Present.present_display_buffer":21.664,"Driver.Present.queue_present":29.029,"Driver.Present.release_and_callback":0.223,"Driver.Present.render_fence_wait":2.981,"Driver.Present.resize":0.401,"Driver.Present.validate":0.110,"Driver.Suspend":0.036,"GpuMutex.wait.dispatch":0.968,"GpuMutex.wait.draw":2.020,"GpuMutex.wait.end":0.406,"GpuMutex.wait.fill":90.460,"GpuMutex.wait.flush":0.580,"GpuMutex.wait.label":11.046,"GpuMutex.wait.present":3.846,"GpuMutex.wait.wait":12.902,"Graphics.Draw":9795.318,"Graphics.Draw.draw_and_resource_release":8111.659,"Graphics.Draw.index_upload":355.743,"Graphics.Draw.validate":738.288,"Graphics.Draw.vertex_upload":486.185,"Graphics.DrawWithRecipe":78.199,"Graphics.DrawWithRecipe.draw_and_resource_release":62.577,"Graphics.DrawWithRecipe.index_upload":4.442,"Graphics.DrawWithRecipe.validate":4.347,"Graphics.DrawWithRecipe.vertex_upload":5.741,"Recorder.Reap":33.537,"Recorder.Submit":115.820,"Recorder.Sync":3219.751,"Recorder.WaitSerial":2.432,"Resources.Complete":14.710,"Resources.Prepare":1.702,"Shader.DrawStage":3955.458,"Shader.DrawStage.capture_resources":2192.255,"Shader.DrawStage.materialize":1022.172,"Shader.DrawStage.prepared_invocation":687.884,"Shader.ResolveAbi":116.649,"Shader.ResolveGraphicsAbi":47.691,"Shader.ResolveGraphicsStagesAbi":103.694,"VideoOut.Flip":121.158,"VideoOut.Flip.completion_mutex_wait":0.235,"VideoOut.Flip.config_mutex_wait":0.033,"VideoOut.Flip.frame_limit":0.142,"VideoOut.Flip.notify_game":5.801,"VideoOut.Flip.present":112.465,"VideoOut.Flip.validate":0.334,"VideoOut.Flip.vblank_wait":0.222,"VideoOut.Flip.window_prepare":0.416,"VideoOut.Flip.window_title":1.314,"VideoOut.Readiness":0.614,"VideoOut.Readiness.locks_validate":0.236,"Vulkan.Acquire":56.131,"Vulkan.Acquire.acquire_fence_wait":29.700,"Vulkan.Acquire.acquire_image":25.341,"Vulkan.Acquire.fence_reset":0.611,"Vulkan.Acquire.retired_swapchains":0.369,"Vulkan.Dispatch":19.456,"Vulkan.Dispatch.command_record":6.825,"Vulkan.Dispatch.shader_resources":12.439,"Vulkan.DispatchRecipe":6.902,"Vulkan.DispatchRecipe.command_record":6.806,"Vulkan.DrawFromRecipe":80.474,"Vulkan.Present":12.240,"Vulkan.Present.command_record_scale":6.736,"Vulkan.Present.pixel_upload":0.553,"Vulkan.Present.queue_submit":4.782,"Vulkan.QueuePresent":28.624,"Vulkan.QueuePresent.queue_present":28.216,"Vulkan.Retire":2.924,"Vulkan.Retire.wait":1.886},"top_phases_ms_per_frame":{"Driver.Packet":90.525,"Driver.Packet.draw":71.247,"Driver.Draw":70.642,"Graphics.Draw":44.727,"Graphics.Draw.draw_and_resource_release":37.040,"Driver.Draw.shader_compile_and_link":34.689,"Driver.Draw.device_setup":21.872,"Shader.DrawStage":18.061},"owned_draw_counts":{},"graphics_track":{"Graphics.Barrier.dcc-clear":3504,"Graphics.Barrier.dcc-keys":2508,"Graphics.Barrier.dispatch-lead":657,"Graphics.Barrier.dispatch-trail":876,"Graphics.Barrier.draw":24001,"Graphics.Barrier.fill":3504,"Graphics.Barrier.label-run":12075,"Graphics.Barrier.present-blit":876,"Graphics.Barrier.staging-in":1533,"Graphics.Barrier.staging-out":657,"Graphics.Barrier.storage-writeback":5819,"Graphics.BarrierMerged.dispatch-lead":219,"Graphics.BarrierMerged.fill":1752,"Graphics.BarrierMerged.staging-in":438,"Graphics.BarrierMerged.staging-out":657,"Graphics.BarrierMerged.storage-writeback":1189,"Graphics.Copy":1752,"Graphics.Copy.bytes":365638896,"Graphics.RenderPass":9167,"Graphics.RenderPass.Close.command":3840,"Graphics.RenderPass.Close.image":1936,"Graphics.RenderPass.Close.key":407,"Graphics.RenderPass.Close.new-batch":2984,"Graphics.RenderPass.Continued":463347},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":5.690,"events_lost":668118,"totals_full":false}},"trace":"aps5-trace-bfcd717ebc57-302804.json.gz"}
{"commit":"5701d91506a0","dirty":true,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_PLAYGO_UNLISTED_CHUNKS":"installed","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"100: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":"PPSA28795","title":"Snoopy & The Great Mystery Club","content_version":"01.000.002","resolution":"1920x1080","window":{"spec":"seconds 100:20","first_present":2145,"ms":20071.003},"presents":226,"frame_ms":{"p50":89.226,"p90":95.428,"p99":98.738,"max":99.452},"gpu_busy_ms_per_present":59.274,"worker_busy_pct":{"queue worker 0x0":98.678},"phase_totals_ms":{"Driver.Completion":0.490,"Driver.Dispatch":165.003,"Driver.Dispatch.capture_resources":0.435,"Driver.Dispatch.decode_key_device_setup":26.308,"Driver.Dispatch.lookup_cache":3.081,"Driver.Dispatch.materialize":0.095,"Driver.Dispatch.prepared_invocation":0.072,"Driver.Draw":12531.875,"Driver.Draw.device_setup":516.463,"Driver.Draw.draw_enqueued":2140.234,"Driver.Draw.post_compile_prepare":159.920,"Driver.Draw.prepare":1039.980,"Driver.Draw.shader_compile_and_link":7896.753,"Driver.EndSubmission":0.209,"Driver.Packet":19804.993,"Driver.Packet.device_lock":69.697,"Driver.Packet.dispatch":167.303,"Driver.Packet.draw":12669.778,"Driver.Packet.execute":269.593,"Driver.Packet.flip_flush":0.399,"Driver.Packet.flush_between_packets":159.635,"Driver.Packet.memory_wait":0.004,"Driver.Packet.pipeline_drain":6167.455,"Driver.Packet.pipeline_prepare":103.737,"Driver.Packet.prepare_memory":107.928,"Driver.Packet.rendering_wait":0.319,"Driver.Present":119.790,"Driver.Present.acquire_image":57.941,"Driver.Present.device_setup":0.118,"Driver.Present.gpu_mutex_wait":4.440,"Driver.Present.inflight_wait":0.638,"Driver.Present.present_display_buffer":22.761,"Driver.Present.queue_present":29.289,"Driver.Present.release_and_callback":0.250,"Driver.Present.render_fence_wait":3.688,"Driver.Present.resize":0.405,"Driver.Present.validate":0.129,"Driver.Suspend":0.036,"GpuMutex.wait.dispatch":0.345,"GpuMutex.wait.draw":2.037,"GpuMutex.wait.end":0.473,"GpuMutex.wait.fill":85.613,"GpuMutex.wait.flush":0.577,"GpuMutex.wait.label":10.786,"GpuMutex.wait.present":3.733,"Graphics.Draw":10112.554,"Graphics.Draw.draw_and_resource_release":8368.398,"Graphics.Draw.index_upload":370.159,"Graphics.Draw.validate":781.148,"Graphics.Draw.vertex_upload":480.366,"Graphics.DrawWithRecipe":116.758,"Graphics.DrawWithRecipe.draw_and_resource_release":94.231,"Graphics.DrawWithRecipe.index_upload":6.777,"Graphics.DrawWithRecipe.validate":5.715,"Graphics.DrawWithRecipe.vertex_upload":8.306,"Recorder.Reap":31.548,"Recorder.Submit":120.094,"Recorder.Sync":6071.455,"Resources.Complete":15.554,"Resources.Prepare":1.827,"Shader.DrawStage":4114.429,"Shader.DrawStage.capture_resources":2339.726,"Shader.DrawStage.materialize":1033.326,"Shader.DrawStage.prepared_invocation":682.835,"Shader.ResolveAbi":122.917,"Shader.ResolveGraphicsAbi":53.655,"Shader.ResolveGraphicsStagesAbi":110.232,"VideoOut.Flip":124.045,"VideoOut.Flip.completion_mutex_wait":0.241,"VideoOut.Flip.config_mutex_wait":0.030,"VideoOut.Flip.frame_limit":0.164,"VideoOut.Flip.notify_game":5.385,"VideoOut.Flip.present":115.663,"VideoOut.Flip.validate":0.374,"VideoOut.Flip.vblank_wait":0.236,"VideoOut.Flip.window_prepare":0.448,"VideoOut.Flip.window_title":1.304,"VideoOut.Readiness":0.660,"VideoOut.Readiness.locks_validate":0.227,"Vulkan.Acquire":57.648,"Vulkan.Acquire.acquire_fence_wait":30.180,"Vulkan.Acquire.acquire_image":26.372,"Vulkan.Acquire.fence_reset":0.622,"Vulkan.Acquire.retired_swapchains":0.361,"Vulkan.Dispatch":21.154,"Vulkan.Dispatch.command_record":7.330,"Vulkan.Dispatch.shader_resources":13.616,"Vulkan.DispatchRecipe":7.032,"Vulkan.DispatchRecipe.command_record":6.923,"Vulkan.DrawFromRecipe":119.714,"Vulkan.Present":13.077,"Vulkan.Present.command_record_scale":7.408,"Vulkan.Present.pixel_upload":0.553,"Vulkan.Present.queue_submit":4.948,"Vulkan.QueuePresent":28.869,"Vulkan.QueuePresent.queue_present":28.367,"Vulkan.Retire":3.646,"Vulkan.Retire.wait":2.513},"top_phases_ms_per_frame":{"Driver.Packet":87.633,"Driver.Packet.draw":56.061,"Driver.Draw":55.451,"Graphics.Draw":44.746,"Graphics.Draw.draw_and_resource_release":37.028,"Driver.Draw.shader_compile_and_link":34.941,"Driver.Packet.pipeline_drain":27.290,"Recorder.Sync":26.865},"owned_draw_counts":{},"graphics_track":{"Graphics.Barrier.dcc-clear":3616,"Graphics.Barrier.dcc-keys":2642,"Graphics.Barrier.dispatch-lead":678,"Graphics.Barrier.dispatch-trail":904,"Graphics.Barrier.draw":23733,"Graphics.Barrier.fill":3616,"Graphics.Barrier.label-run":12520,"Graphics.Barrier.present-blit":904,"Graphics.Barrier.staging-in":1582,"Graphics.Barrier.staging-out":678,"Graphics.Barrier.storage-writeback":5934,"Graphics.BarrierMerged.dispatch-lead":226,"Graphics.BarrierMerged.fill":1808,"Graphics.BarrierMerged.staging-in":452,"Graphics.BarrierMerged.staging-out":678,"Graphics.BarrierMerged.storage-writeback":1298,"Graphics.Copy":1808,"Graphics.Copy.bytes":377325984,"Graphics.RenderPass":9263,"Graphics.RenderPass.Close.command":4026,"Graphics.RenderPass.Close.image":2019,"Graphics.RenderPass.Close.key":449,"Graphics.RenderPass.Close.new-batch":2769,"Graphics.RenderPass.Continued":478378},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":5.869,"events_lost":601394,"totals_full":false}},"trace":"aps5-trace-5701d91506a0-267696.json.gz"}
{"commit":"5701d91506a0","dirty":true,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_PLAYGO_UNLISTED_CHUNKS":"installed","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"100: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":"PPSA28795","title":"Snoopy & The Great Mystery Club","content_version":"01.000.002","resolution":"1920x1080","window":{"spec":"seconds 100:20","first_present":2105,"ms":20062.339},"presents":241,"frame_ms":{"p50":82.411,"p90":93.990,"p99":97.842,"max":104.795},"gpu_busy_ms_per_present":48.149,"worker_busy_pct":{"queue worker 0x0":98.603},"phase_totals_ms":{"Driver.Completion":0.503,"Driver.Dispatch":176.481,"Driver.Dispatch.capture_resources":0.585,"Driver.Dispatch.decode_key_device_setup":26.457,"Driver.Dispatch.lookup_cache":3.360,"Driver.Dispatch.materialize":0.127,"Driver.Dispatch.prepared_invocation":0.093,"Driver.Draw":13485.928,"Driver.Draw.device_setup":552.665,"Driver.Draw.draw_enqueued":2298.753,"Driver.Draw.post_compile_prepare":172.805,"Driver.Draw.prepare":1122.683,"Driver.Draw.shader_compile_and_link":8484.976,"Driver.EndSubmission":0.225,"Driver.Packet":19781.228,"Driver.Packet.device_lock":73.897,"Driver.Packet.dispatch":178.958,"Driver.Packet.draw":13628.128,"Driver.Packet.execute":283.047,"Driver.Packet.flip_flush":0.437,"Driver.Packet.flush_between_packets":161.074,"Driver.Packet.memory_wait":0.006,"Driver.Packet.pipeline_drain":5143.596,"Driver.Packet.pipeline_prepare":110.526,"Driver.Packet.prepare_memory":107.496,"Driver.Packet.rendering_wait":0.315,"Driver.Present":128.848,"Driver.Present.acquire_image":62.013,"Driver.Present.device_setup":0.122,"Driver.Present.gpu_mutex_wait":4.018,"Driver.Present.inflight_wait":0.641,"Driver.Present.present_display_buffer":24.918,"Driver.Present.queue_present":32.370,"Driver.Present.release_and_callback":0.265,"Driver.Present.render_fence_wait":3.786,"Driver.Present.resize":0.442,"Driver.Present.validate":0.132,"Driver.Suspend":0.037,"GpuMutex.wait.dispatch":0.609,"GpuMutex.wait.draw":1.823,"GpuMutex.wait.end":0.469,"GpuMutex.wait.fill":92.330,"GpuMutex.wait.flush":0.605,"GpuMutex.wait.label":10.748,"GpuMutex.wait.present":3.263,"GpuMutex.wait.wait":13.530,"Graphics.Draw":10940.453,"Graphics.Draw.draw_and_resource_release":9057.941,"Graphics.Draw.index_upload":394.758,"Graphics.Draw.validate":836.438,"Graphics.Draw.vertex_upload":532.091,"Graphics.DrawWithRecipe":63.316,"Graphics.DrawWithRecipe.draw_and_resource_release":50.872,"Graphics.DrawWithRecipe.index_upload":3.802,"Graphics.DrawWithRecipe.validate":3.005,"Graphics.DrawWithRecipe.vertex_upload":4.720,"Recorder.Reap":33.682,"Recorder.Submit":129.802,"Recorder.Sync":5044.036,"Recorder.WaitSerial":2.675,"Resources.Complete":16.090,"Resources.Prepare":1.909,"Shader.DrawStage":4466.622,"Shader.DrawStage.capture_resources":2535.441,"Shader.DrawStage.materialize":1121.375,"Shader.DrawStage.prepared_invocation":751.332,"Shader.ResolveAbi":136.140,"Shader.ResolveGraphicsAbi":61.763,"Shader.ResolveGraphicsStagesAbi":122.404,"VideoOut.Flip":133.861,"VideoOut.Flip.completion_mutex_wait":0.261,"VideoOut.Flip.config_mutex_wait":0.032,"VideoOut.Flip.frame_limit":0.165,"VideoOut.Flip.notify_game":5.161,"VideoOut.Flip.present":125.459,"VideoOut.Flip.validate":0.399,"VideoOut.Flip.vblank_wait":0.246,"VideoOut.Flip.window_prepare":0.515,"VideoOut.Flip.window_title":1.423,"VideoOut.Readiness":0.678,"VideoOut.Readiness.locks_validate":0.240,"Vulkan.Acquire":61.710,"Vulkan.Acquire.acquire_fence_wait":32.236,"Vulkan.Acquire.acquire_image":28.323,"Vulkan.Acquire.fence_reset":0.669,"Vulkan.Acquire.retired_swapchains":0.364,"Vulkan.Dispatch":23.128,"Vulkan.Dispatch.command_record":7.885,"Vulkan.Dispatch.shader_resources":15.023,"Vulkan.DispatchRecipe":7.519,"Vulkan.DispatchRecipe.command_record":7.420,"Vulkan.DrawFromRecipe":64.905,"Vulkan.Present":14.256,"Vulkan.Present.command_record_scale":8.132,"Vulkan.Present.pixel_upload":0.594,"Vulkan.Present.queue_submit":5.351,"Vulkan.QueuePresent":31.907,"Vulkan.QueuePresent.queue_present":31.412,"Vulkan.Retire":3.715,"Vulkan.Retire.wait":2.474},"top_phases_ms_per_frame":{"Driver.Packet":82.080,"Driver.Packet.draw":56.548,"Driver.Draw":55.958,"Graphics.Draw":45.396,"Graphics.Draw.draw_and_resource_release":37.585,"Driver.Draw.shader_compile_and_link":35.207,"Driver.Packet.pipeline_drain":21.343,"Recorder.Sync":20.930},"owned_draw_counts":{},"graphics_track":{"Graphics.Barrier.dcc-clear":3856,"Graphics.Barrier.dcc-keys":2798,"Graphics.Barrier.dispatch-lead":723,"Graphics.Barrier.dispatch-trail":964,"Graphics.Barrier.draw":25316,"Graphics.Barrier.fill":3856,"Graphics.Barrier.label-run":13277,"Graphics.Barrier.present-blit":964,"Graphics.Barrier.staging-in":1687,"Graphics.Barrier.staging-out":723,"Graphics.Barrier.storage-writeback":6460,"Graphics.BarrierMerged.dispatch-lead":241,"Graphics.BarrierMerged.fill":1928,"Graphics.BarrierMerged.staging-in":482,"Graphics.BarrierMerged.staging-out":723,"Graphics.BarrierMerged.storage-writeback":1252,"Graphics.Copy":1928,"Graphics.Copy.bytes":402369744,"Graphics.RenderPass":9877,"Graphics.RenderPass.Close.command":4163,"Graphics.RenderPass.Close.image":2142,"Graphics.RenderPass.Close.key":478,"Graphics.RenderPass.Close.new-batch":3094,"Graphics.RenderPass.Continued":510133},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":5.918,"events_lost":670205,"totals_full":false}},"trace":"aps5-trace-5701d91506a0-309252.json.gz"}
{"commit":"bfcd717ebc57","dirty":true,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_PLAYGO_UNLISTED_CHUNKS":"installed","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"100: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":"PPSA28795","title":"Snoopy & The Great Mystery Club","content_version":"01.000.002","resolution":"1920x1080","window":{"spec":"seconds 100:20","first_present":2096,"ms":20066.195},"presents":224,"frame_ms":{"p50":89.981,"p90":93.362,"p99":101.165,"max":107.234},"gpu_busy_ms_per_present":38.713,"worker_busy_pct":{"queue worker 0x0":98.710},"phase_totals_ms":{"Driver.Completion":0.461,"Driver.Dispatch":158.985,"Driver.Dispatch.capture_resources":0.146,"Driver.Dispatch.decode_key_device_setup":25.097,"Driver.Dispatch.lookup_cache":2.816,"Driver.Dispatch.materialize":0.034,"Driver.Dispatch.prepared_invocation":0.025,"Driver.Draw":15555.281,"Driver.Draw.device_setup":4986.362,"Driver.Draw.draw_enqueued":1318.894,"Driver.Draw.post_compile_prepare":148.627,"Driver.Draw.prepare":997.752,"Driver.Draw.shader_compile_and_link":7457.546,"Driver.EndSubmission":0.186,"Driver.Packet":19806.745,"Driver.Packet.device_lock":68.569,"Driver.Packet.dispatch":161.173,"Driver.Packet.draw":15691.605,"Driver.Packet.execute":253.936,"Driver.Packet.flip_flush":0.341,"Driver.Packet.flush_between_packets":147.142,"Driver.Packet.memory_wait":0.006,"Driver.Packet.pipeline_drain":3198.841,"Driver.Packet.pipeline_prepare":101.297,"Driver.Packet.prepare_memory":99.424,"Driver.Packet.rendering_wait":0.281,"Driver.Present":112.872,"Driver.Present.acquire_image":55.695,"Driver.Present.device_setup":0.106,"Driver.Present.gpu_mutex_wait":3.433,"Driver.Present.inflight_wait":0.578,"Driver.Present.present_display_buffer":21.031,"Driver.Present.queue_present":27.936,"Driver.Present.release_and_callback":0.218,"Driver.Present.render_fence_wait":3.231,"Driver.Present.resize":0.400,"Driver.Present.validate":0.109,"Driver.Suspend":0.044,"GpuMutex.wait.dispatch":0.509,"GpuMutex.wait.draw":1.865,"GpuMutex.wait.end":0.400,"GpuMutex.wait.fill":84.565,"GpuMutex.wait.flush":0.574,"GpuMutex.wait.label":9.819,"GpuMutex.wait.present":2.764,"GpuMutex.wait.wait":11.247,"Graphics.Draw":9774.888,"Graphics.Draw.draw_and_resource_release":8116.039,"Graphics.Draw.index_upload":358.526,"Graphics.Draw.validate":721.372,"Graphics.Draw.vertex_upload":478.389,"Graphics.DrawWithRecipe":232.866,"Graphics.DrawWithRecipe.draw_and_resource_release":186.408,"Graphics.DrawWithRecipe.index_upload":13.946,"Graphics.DrawWithRecipe.validate":11.502,"Graphics.DrawWithRecipe.vertex_upload":17.566,"Recorder.Reap":35.988,"Recorder.Submit":124.347,"Recorder.Sync":3107.121,"Recorder.WaitSerial":2.477,"Resources.Complete":15.816,"Resources.Prepare":1.798,"Shader.DrawStage":3905.025,"Shader.DrawStage.capture_resources":2216.843,"Shader.DrawStage.materialize":969.377,"Shader.DrawStage.prepared_invocation":666.219,"Shader.ResolveAbi":124.025,"Shader.ResolveGraphicsAbi":55.148,"Shader.ResolveGraphicsStagesAbi":112.144,"VideoOut.Flip":117.860,"VideoOut.Flip.completion_mutex_wait":0.220,"VideoOut.Flip.config_mutex_wait":0.030,"VideoOut.Flip.frame_limit":0.154,"VideoOut.Flip.notify_game":5.275,"VideoOut.Flip.present":109.662,"VideoOut.Flip.validate":0.363,"VideoOut.Flip.vblank_wait":0.221,"VideoOut.Flip.window_prepare":0.440,"VideoOut.Flip.window_title":1.292,"VideoOut.Readiness":0.632,"VideoOut.Readiness.locks_validate":0.217,"Vulkan.Acquire":55.422,"Vulkan.Acquire.acquire_fence_wait":29.389,"Vulkan.Acquire.acquire_image":24.939,"Vulkan.Acquire.fence_reset":0.630,"Vulkan.Acquire.retired_swapchains":0.355,"Vulkan.Dispatch":19.088,"Vulkan.Dispatch.command_record":6.865,"Vulkan.Dispatch.shader_resources":12.037,"Vulkan.DispatchRecipe":7.088,"Vulkan.DispatchRecipe.command_record":6.993,"Vulkan.DrawFromRecipe":238.415,"Vulkan.Present":12.188,"Vulkan.Present.command_record_scale":6.744,"Vulkan.Present.pixel_upload":0.505,"Vulkan.Present.queue_submit":4.767,"Vulkan.QueuePresent":27.533,"Vulkan.QueuePresent.queue_present":27.141,"Vulkan.Retire":3.190,"Vulkan.Retire.wait":2.147},"top_phases_ms_per_frame":{"Driver.Packet":88.423,"Driver.Packet.draw":70.052,"Driver.Draw":69.443,"Graphics.Draw":43.638,"Graphics.Draw.draw_and_resource_release":36.232,"Driver.Draw.shader_compile_and_link":33.293,"Driver.Draw.device_setup":22.261,"Shader.DrawStage":17.433},"owned_draw_counts":{},"graphics_track":{"Graphics.Barrier.dcc-clear":3584,"Graphics.Barrier.dcc-keys":2580,"Graphics.Barrier.dispatch-lead":672,"Graphics.Barrier.dispatch-trail":896,"Graphics.Barrier.draw":24576,"Graphics.Barrier.fill":3584,"Graphics.Barrier.label-run":12458,"Graphics.Barrier.present-blit":896,"Graphics.Barrier.staging-in":1568,"Graphics.Barrier.staging-out":672,"Graphics.Barrier.storage-writeback":5847,"Graphics.BarrierMerged.dispatch-lead":224,"Graphics.BarrierMerged.fill":1792,"Graphics.BarrierMerged.staging-in":448,"Graphics.BarrierMerged.staging-out":672,"Graphics.BarrierMerged.storage-writeback":1321,"Graphics.Copy":1792,"Graphics.Copy.bytes":373986816,"Graphics.RenderPass":9383,"Graphics.RenderPass.Close.command":4040,"Graphics.RenderPass.Close.image":1980,"Graphics.RenderPass.Close.key":423,"Graphics.RenderPass.Close.new-batch":2940,"Graphics.RenderPass.Continued":473943},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":5.928,"events_lost":634610,"totals_full":false}},"trace":"aps5-trace-bfcd717ebc57-275612.json.gz"}
tools/trace_digest.py, main (run 1)
**seconds 100:20** from present 2088: 219 presents, frame p50 91.7 / p90 96.3 / p99 107.2 / max 109.1 ms, GPU busy 41.8 ms per present
AMD Radeon RX 6700 XT, AMD proprietary driver 26.11.2 (AMD proprietary shader compiler), Windows 10.0.22621, 1920x1080, commit bfcd717ebc57 (dirty), dropped: yes

```json
{"commit":"bfcd717ebc57","dirty":true,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_PLAYGO_UNLISTED_CHUNKS":"installed","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"100: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":"PPSA28795","title":"Snoopy & The Great Mystery Club","content_version":"01.000.002","resolution":"1920x1080","window":{"spec":"seconds 100:20","first_present":2088,"ms":20080.004},"presents":219,"frame_ms":{"p50":91.686,"p90":96.264,"p99":107.25,"max":109.141},"gpu_busy_ms_per_present":41.832,"worker_busy_pct":{"queue worker 0x0":98.732},"phase_totals_ms":{"Driver.Completion":0.305,"Driver.Dispatch":168.09,"Driver.Dispatch.capture_resources":0.117,"Driver.Dispatch.decode_key_device_setup":27.466,"Driver.Dispatch.lookup_cache":2.856,"Driver.Dispatch.materialize":0.025,"Driver.Dispatch.prepared_invocation":0.018,"Driver.Draw":15470.626,"Driver.Draw.device_setup":4789.988,"Driver.Draw.draw_enqueued":1293.063,"Driver.Draw.post_compile_prepare":155.249,"Driver.Draw.prepare":998.314,"Driver.Draw.shader_compile_and_link":7596.94,"Driver.EndSubmission":0.195,"Driver.Packet":19824.87,"Driver.Packet.device_lock":65.55,"Driver.Packet.dispatch":170.223,"Driver.Packet.draw":15603.173,"Driver.Packet.execute":258.079,"Driver.Packet.flip_flush":0.338,"Driver.Packet.flush_between_packets":141.148,"Driver.Packet.memory_wait":0.006,"Driver.Packet.pipeline_drain":3308.98,"Driver.Packet.pipeline_prepare":98.357,"Driver.Packet.prepare_memory":96.638,"Driver.Packet.rendering_wait":0.268,"Driver.Present":116.132,"Driver.Present.acquire_image":56.406,"Driver.Present.device_setup":0.106,"Driver.Present.gpu_mutex_wait":4.52,"Driver.Present.inflight_wait":0.564,"Driver.Present.present_display_buffer":21.664,"Driver.Present.queue_present":29.029,"Driver.Present.release_and_callback":0.223,"Driver.Present.render_fence_wait":2.981,"Driver.Present.resize":0.401,"Driver.Present.validate":0.11,"Driver.Suspend":0.036,"GpuMutex.wait.dispatch":0.968,"GpuMutex.wait.draw":2.02,"GpuMutex.wait.end":0.406,"GpuMutex.wait.fill":90.46,"GpuMutex.wait.flush":0.58,"GpuMutex.wait.label":11.046,"GpuMutex.wait.present":3.846,"GpuMutex.wait.wait":12.902,"Graphics.Draw":9795.318,"Graphics.Draw.draw_and_resource_release":8111.659,"Graphics.Draw.index_upload":355.743,"Graphics.Draw.validate":738.288,"Graphics.Draw.vertex_upload":486.185,"Graphics.DrawWithRecipe":78.199,"Graphics.DrawWithRecipe.draw_and_resource_release":62.577,"Graphics.DrawWithRecipe.index_upload":4.442,"Graphics.DrawWithRecipe.validate":4.347,"Graphics.DrawWithRecipe.vertex_upload":5.741,"Recorder.Reap":33.537,"Recorder.Submit":115.82,"Recorder.Sync":3219.751,"Recorder.WaitSerial":2.432,"Resources.Complete":14.71,"Resources.Prepare":1.702,"Shader.DrawStage":3955.458,"Shader.DrawStage.capture_resources":2192.255,"Shader.DrawStage.materialize":1022.172,"Shader.DrawStage.prepared_invocation":687.884,"Shader.ResolveAbi":116.649,"Shader.ResolveGraphicsAbi":47.691,"Shader.ResolveGraphicsStagesAbi":103.694,"VideoOut.Flip":121.158,"VideoOut.Flip.completion_mutex_wait":0.235,"VideoOut.Flip.config_mutex_wait":0.033,"VideoOut.Flip.frame_limit":0.142,"VideoOut.Flip.notify_game":5.801,"VideoOut.Flip.present":112.465,"VideoOut.Flip.validate":0.334,"VideoOut.Flip.vblank_wait":0.222,"VideoOut.Flip.window_prepare":0.416,"VideoOut.Flip.window_title":1.314,"VideoOut.Readiness":0.614,"VideoOut.Readiness.locks_validate":0.236,"Vulkan.Acquire":56.131,"Vulkan.Acquire.acquire_fence_wait":29.7,"Vulkan.Acquire.acquire_image":25.341,"Vulkan.Acquire.fence_reset":0.611,"Vulkan.Acquire.retired_swapchains":0.369,"Vulkan.Dispatch":19.456,"Vulkan.Dispatch.command_record":6.825,"Vulkan.Dispatch.shader_resources":12.439,"Vulkan.DispatchRecipe":6.902,"Vulkan.DispatchRecipe.command_record":6.806,"Vulkan.DrawFromRecipe":80.474,"Vulkan.Present":12.24,"Vulkan.Present.command_record_scale":6.736,"Vulkan.Present.pixel_upload":0.553,"Vulkan.Present.queue_submit":4.782,"Vulkan.QueuePresent":28.624,"Vulkan.QueuePresent.queue_present":28.216,"Vulkan.Retire":2.924,"Vulkan.Retire.wait":1.886},"top_phases_ms_per_frame":{"Driver.Packet":90.525,"Driver.Packet.draw":71.247,"Driver.Draw":70.642,"Graphics.Draw":44.727,"Graphics.Draw.draw_and_resource_release":37.04,"Driver.Draw.shader_compile_and_link":34.689,"Driver.Draw.device_setup":21.872,"Shader.DrawStage":18.061},"owned_draw_counts":{},"graphics_track":{"Graphics.Barrier.dcc-clear":3504,"Graphics.Barrier.dcc-keys":2508,"Graphics.Barrier.dispatch-lead":657,"Graphics.Barrier.dispatch-trail":876,"Graphics.Barrier.draw":24001,"Graphics.Barrier.fill":3504,"Graphics.Barrier.label-run":12075,"Graphics.Barrier.present-blit":876,"Graphics.Barrier.staging-in":1533,"Graphics.Barrier.staging-out":657,"Graphics.Barrier.storage-writeback":5819,"Graphics.BarrierMerged.dispatch-lead":219,"Graphics.BarrierMerged.fill":1752,"Graphics.BarrierMerged.staging-in":438,"Graphics.BarrierMerged.staging-out":657,"Graphics.BarrierMerged.storage-writeback":1189,"Graphics.Copy":1752,"Graphics.Copy.bytes":365638896,"Graphics.RenderPass":9167,"Graphics.RenderPass.Close.command":3840,"Graphics.RenderPass.Close.image":1936,"Graphics.RenderPass.Close.key":407,"Graphics.RenderPass.Close.new-batch":2984,"Graphics.RenderPass.Continued":463347},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":5.69,"events_lost":668118,"totals_full":false}},"trace":"aps5-trace-bfcd717ebc57-302804.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: 668118 events lost; buffer full at 5690.1 ms; over the 61 of 219 frames that ended before it: busy 72.0 ms per frame (78 %), wait 0.5, largest Driver.Packet 72.4, Driver.Completion 0.0 (the thread table divides the retained slices by every frame)

Slowest frames (largest slices inside each, inclusive)

  • present 2218: 109.1 ms at 11827 ms: batch (gpu) 62.6, Recorder.Sync (draw committer) 29.8, Graphics.Draw (draw committer) 22.1, Graphics.Draw.draw_and_resource_release (draw committer) 16.6
  • present 2181: 108.2 ms at 8430 ms: batch (gpu) 63.0, Recorder.Sync (draw committer) 31.2, Graphics.Draw (draw committer) 23.5, Graphics.Draw.draw_and_resource_release (draw committer) 16.7
  • present 2252: 107.3 ms at 15014 ms: batch (gpu) 61.7, Recorder.Sync (draw committer) 30.0, Graphics.Draw (draw committer) 23.8, Graphics.Draw.draw_and_resource_release (draw committer) 16.9

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

  • present 2218: 109.1 ms at 11827 ms, persistence 36.2 ms
  • present 2110: 106.5 ms at 2035 ms, persistence 27.3 ms
  • present 2299: 99.1 ms at 19339 ms, persistence 26.1 ms
  • present 2181: 108.2 ms at 8430 ms, persistence 23.0 ms
  • present 2144: 104.5 ms at 5160 ms, persistence 20.9 ms

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
queue worker 0x0 20.3 (22 %) 0.1 (0 %) 71.3 35.3 Driver.Packet 20.4, Driver.Completion 0.0
draw committer 38.2 (42 %) 0.1 (0 %) 53.4 49.9 Graphics.Draw 23.0, Recorder.Sync 14.7
presenter 0.4 (0 %) 0.2 (0 %) 91.1 0.1 VideoOut.Flip 0.6, Driver.Present 0.0
title 0.0 (0 %) 0.0 (0 %) 91.6 0.2 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 91.7 0.1 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 91.7 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 91.7 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 91.7 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 91.7 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 91.7 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 91.7 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 91.7 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 91.7 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 91.7 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 91.7 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 91.7 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 91.7 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.1 (0 %) 91.6 0.0
gpu 41.8 (46 %) 0.0 (0 %) 49.9 0.0 batch 41.8

Largest slices (ms per frame, inclusive, all threads): batch 41.8, Graphics.Draw 23.0, Driver.Packet 20.4, Graphics.Draw.draw_and_resource_release 16.9, Driver.Packet.draw 15.8

Longest waits

  • Driver.Present.gpu_mutex_wait (presenter) 3.0 ms at 1 ms, present 2088
  • Driver.Present.render_fence_wait (presenter) 1.1 ms at 4 ms, present 2088
  • Vulkan.Acquire.acquire_fence_wait (presenter) 0.2 ms at 13522 ms, present 2236
  • Vulkan.Acquire.acquire_fence_wait (presenter) 0.2 ms at 15394 ms, present 2256
  • GpuMutex.wait.fill (queue worker 0x0) 0.2 ms at 4341 ms, present 2134

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

  • batch 2958: 33.2 ms at 11898 ms, present 2218: GPU no ranges; recorded by Graphics.Draw (draw committer) 5.3, Graphics.Draw.draw_and_resource_release (draw committer) 3.2, Recorder.Reap (draw committer) 0.1, Recorder.Submit (draw committer) 0.0
  • batch 2121: 33.2 ms at 8500 ms, present 2181: GPU no ranges; recorded by Graphics.Draw (draw committer) 4.3, Graphics.Draw.draw_and_resource_release (draw committer) 2.9, Recorder.Reap (draw committer) 0.1, Recorder.Submit (draw committer) 0.0
  • batch 3736: 32.6 ms at 15084 ms, present 2252: GPU no ranges; recorded by Graphics.Draw (draw committer) 4.5, Graphics.Draw.draw_and_resource_release (draw committer) 2.9, Recorder.Reap (draw committer) 0.1, Recorder.Submit (draw committer) 0.0

</details>

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

seconds 100:20 from present 2105: 241 presents, frame p50 82.4 / p90 94.0 / p99 97.8 / max 104.8 ms, GPU busy 48.1 ms per present
AMD Radeon RX 6700 XT, AMD proprietary driver 26.11.2 (AMD proprietary shader compiler), Windows 10.0.22621, 1920x1080, commit 5701d91506 (dirty), dropped: yes

{"commit":"5701d91506a0","dirty":true,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_PLAYGO_UNLISTED_CHUNKS":"installed","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"100: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":"PPSA28795","title":"Snoopy & The Great Mystery Club","content_version":"01.000.002","resolution":"1920x1080","window":{"spec":"seconds 100:20","first_present":2105,"ms":20062.339},"presents":241,"frame_ms":{"p50":82.411,"p90":93.99,"p99":97.842,"max":104.795},"gpu_busy_ms_per_present":48.149,"worker_busy_pct":{"queue worker 0x0":98.603},"phase_totals_ms":{"Driver.Completion":0.503,"Driver.Dispatch":176.481,"Driver.Dispatch.capture_resources":0.585,"Driver.Dispatch.decode_key_device_setup":26.457,"Driver.Dispatch.lookup_cache":3.36,"Driver.Dispatch.materialize":0.127,"Driver.Dispatch.prepared_invocation":0.093,"Driver.Draw":13485.928,"Driver.Draw.device_setup":552.665,"Driver.Draw.draw_enqueued":2298.753,"Driver.Draw.post_compile_prepare":172.805,"Driver.Draw.prepare":1122.683,"Driver.Draw.shader_compile_and_link":8484.976,"Driver.EndSubmission":0.225,"Driver.Packet":19781.228,"Driver.Packet.device_lock":73.897,"Driver.Packet.dispatch":178.958,"Driver.Packet.draw":13628.128,"Driver.Packet.execute":283.047,"Driver.Packet.flip_flush":0.437,"Driver.Packet.flush_between_packets":161.074,"Driver.Packet.memory_wait":0.006,"Driver.Packet.pipeline_drain":5143.596,"Driver.Packet.pipeline_prepare":110.526,"Driver.Packet.prepare_memory":107.496,"Driver.Packet.rendering_wait":0.315,"Driver.Present":128.848,"Driver.Present.acquire_image":62.013,"Driver.Present.device_setup":0.122,"Driver.Present.gpu_mutex_wait":4.018,"Driver.Present.inflight_wait":0.641,"Driver.Present.present_display_buffer":24.918,"Driver.Present.queue_present":32.37,"Driver.Present.release_and_callback":0.265,"Driver.Present.render_fence_wait":3.786,"Driver.Present.resize":0.442,"Driver.Present.validate":0.132,"Driver.Suspend":0.037,"GpuMutex.wait.dispatch":0.609,"GpuMutex.wait.draw":1.823,"GpuMutex.wait.end":0.469,"GpuMutex.wait.fill":92.33,"GpuMutex.wait.flush":0.605,"GpuMutex.wait.label":10.748,"GpuMutex.wait.present":3.263,"GpuMutex.wait.wait":13.53,"Graphics.Draw":10940.453,"Graphics.Draw.draw_and_resource_release":9057.941,"Graphics.Draw.index_upload":394.758,"Graphics.Draw.validate":836.438,"Graphics.Draw.vertex_upload":532.091,"Graphics.DrawWithRecipe":63.316,"Graphics.DrawWithRecipe.draw_and_resource_release":50.872,"Graphics.DrawWithRecipe.index_upload":3.802,"Graphics.DrawWithRecipe.validate":3.005,"Graphics.DrawWithRecipe.vertex_upload":4.72,"Recorder.Reap":33.682,"Recorder.Submit":129.802,"Recorder.Sync":5044.036,"Recorder.WaitSerial":2.675,"Resources.Complete":16.09,"Resources.Prepare":1.909,"Shader.DrawStage":4466.622,"Shader.DrawStage.capture_resources":2535.441,"Shader.DrawStage.materialize":1121.375,"Shader.DrawStage.prepared_invocation":751.332,"Shader.ResolveAbi":136.14,"Shader.ResolveGraphicsAbi":61.763,"Shader.ResolveGraphicsStagesAbi":122.404,"VideoOut.Flip":133.861,"VideoOut.Flip.completion_mutex_wait":0.261,"VideoOut.Flip.config_mutex_wait":0.032,"VideoOut.Flip.frame_limit":0.165,"VideoOut.Flip.notify_game":5.161,"VideoOut.Flip.present":125.459,"VideoOut.Flip.validate":0.399,"VideoOut.Flip.vblank_wait":0.246,"VideoOut.Flip.window_prepare":0.515,"VideoOut.Flip.window_title":1.423,"VideoOut.Readiness":0.678,"VideoOut.Readiness.locks_validate":0.24,"Vulkan.Acquire":61.71,"Vulkan.Acquire.acquire_fence_wait":32.236,"Vulkan.Acquire.acquire_image":28.323,"Vulkan.Acquire.fence_reset":0.669,"Vulkan.Acquire.retired_swapchains":0.364,"Vulkan.Dispatch":23.128,"Vulkan.Dispatch.command_record":7.885,"Vulkan.Dispatch.shader_resources":15.023,"Vulkan.DispatchRecipe":7.519,"Vulkan.DispatchRecipe.command_record":7.42,"Vulkan.DrawFromRecipe":64.905,"Vulkan.Present":14.256,"Vulkan.Present.command_record_scale":8.132,"Vulkan.Present.pixel_upload":0.594,"Vulkan.Present.queue_submit":5.351,"Vulkan.QueuePresent":31.907,"Vulkan.QueuePresent.queue_present":31.412,"Vulkan.Retire":3.715,"Vulkan.Retire.wait":2.474},"top_phases_ms_per_frame":{"Driver.Packet":82.08,"Driver.Packet.draw":56.548,"Driver.Draw":55.958,"Graphics.Draw":45.396,"Graphics.Draw.draw_and_resource_release":37.585,"Driver.Draw.shader_compile_and_link":35.207,"Driver.Packet.pipeline_drain":21.343,"Recorder.Sync":20.93},"owned_draw_counts":{},"graphics_track":{"Graphics.Barrier.dcc-clear":3856,"Graphics.Barrier.dcc-keys":2798,"Graphics.Barrier.dispatch-lead":723,"Graphics.Barrier.dispatch-trail":964,"Graphics.Barrier.draw":25316,"Graphics.Barrier.fill":3856,"Graphics.Barrier.label-run":13277,"Graphics.Barrier.present-blit":964,"Graphics.Barrier.staging-in":1687,"Graphics.Barrier.staging-out":723,"Graphics.Barrier.storage-writeback":6460,"Graphics.BarrierMerged.dispatch-lead":241,"Graphics.BarrierMerged.fill":1928,"Graphics.BarrierMerged.staging-in":482,"Graphics.BarrierMerged.staging-out":723,"Graphics.BarrierMerged.storage-writeback":1252,"Graphics.Copy":1928,"Graphics.Copy.bytes":402369744,"Graphics.RenderPass":9877,"Graphics.RenderPass.Close.command":4163,"Graphics.RenderPass.Close.image":2142,"Graphics.RenderPass.Close.key":478,"Graphics.RenderPass.Close.new-batch":3094,"Graphics.RenderPass.Continued":510133},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":5.918,"events_lost":670205,"totals_full":false}},"trace":"aps5-trace-5701d91506a0-309252.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: 670205 events lost; buffer full at 5918.2 ms; over the 70 of 241 frames that ended before it: busy 62.4 ms per frame (74 %), wait 0.4, largest Driver.Packet 62.8, Driver.Completion 0.0 (the thread table divides the retained slices by every frame)

Slowest frames (largest slices inside each, inclusive)

  • present 2217: 104.8 ms at 9455 ms: batch (gpu) 66.3, Recorder.Sync (draw committer) 30.5, Graphics.Draw (draw committer) 23.3, Graphics.Draw.draw_and_resource_release (draw committer) 17.1
  • present 2308: 101.0 ms at 16855 ms: batch (gpu) 64.4, Recorder.Sync (draw committer) 32.0, Graphics.Draw (draw committer) 26.8, Graphics.Draw.draw_and_resource_release (draw committer) 17.8
  • present 2146: 97.8 ms at 3451 ms: Driver.Packet (queue worker 0x0) 78.2, batch (gpu) 63.1, Driver.Packet.draw (queue worker 0x0) 45.8, Driver.Draw (queue worker 0x0) 45.1

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

  • present 2217: 104.8 ms at 9455 ms, persistence 38.8 ms
  • present 2146: 97.8 ms at 3451 ms, persistence 29.5 ms
  • present 2105: 95.2 ms at 0 ms, persistence 29.2 ms
  • present 2308: 101.0 ms at 16855 ms, persistence 28.3 ms
  • present 2335: 95.9 ms at 19136 ms, persistence 24.2 ms

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
queue worker 0x0 18.2 (22 %) 0.1 (0 %) 65.0 35.4 Driver.Packet 18.3, Driver.Completion 0.0
draw committer 46.1 (55 %) 0.0 (0 %) 37.1 49.1 Graphics.Draw 24.7, Recorder.Sync 20.9
presenter 0.4 (1 %) 0.2 (0 %) 82.7 0.1 VideoOut.Flip 0.6, Driver.Present 0.0
title 0.0 (0 %) 0.0 (0 %) 83.2 0.2 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 83.2 0.1 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 83.2 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 83.2 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 83.2 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 83.2 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 83.2 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 83.2 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 83.2 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 83.2 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 83.2 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 83.2 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 83.2 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsAbi 0.0
title 0.0 (0 %) 0.1 (0 %) 83.2 0.0
title 0.0 (0 %) 0.0 (0 %) 83.2 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
gpu 48.1 (58 %) 0.0 (0 %) 35.1 0.0 batch 48.1

Largest slices (ms per frame, inclusive, all threads): batch 48.1, Graphics.Draw 24.7, Recorder.Sync 20.9, Driver.Packet 18.3, Graphics.Draw.draw_and_resource_release 17.2

Longest waits

  • Driver.Present.gpu_mutex_wait (presenter) 2.2 ms at 1 ms, present 2105
  • Driver.Present.render_fence_wait (presenter) 1.5 ms at 4 ms, present 2105
  • Driver.WorkerWait (queue worker 0x0) 0.2 ms at 3114 ms, present 2142
  • Vulkan.Acquire.acquire_fence_wait (presenter) 0.2 ms at 9203 ms, present 2214
  • Vulkan.Acquire.acquire_fence_wait (presenter) 0.2 ms at 11123 ms, present 2237

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

  • batch 4450: 32.7 ms at 16919 ms, present 2308: GPU no ranges; recorded by Graphics.Draw (draw committer) 8.3, Graphics.Draw.draw_and_resource_release (draw committer) 4.2, Recorder.Reap (draw committer) 0.1, Recorder.Submit (draw committer) 0.0
  • batch 482: 32.5 ms at 1852 ms, present 2127: GPU no ranges; recorded by Graphics.Draw (draw committer) 7.2, Graphics.Draw.draw_and_resource_release (draw committer) 3.9, Recorder.Reap (draw committer) 0.1, Recorder.Submit (draw committer) 0.0
  • batch 2670: 31.8 ms at 10339 ms, present 2227: GPU no ranges; recorded by Graphics.Draw (draw committer) 7.5, Graphics.Draw.draw_and_resource_release (draw committer) 4.0, Recorder.Reap (draw committer) 0.1, Recorder.Submit (draw committer) 0.0

</details>

### 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 (the speed runs stacked #26338 only to avoid its abort)
- [x] Fixes: none
- [x] Unblocks: none; speeds up PPSA28795 #7382
- [x] GPUs tested: AMD Radeon RX 6700 XT, AMD driver 26.11.2, Windows 11 22621; NVIDIA GeForce RTX 4070, driver 610.88, Windows 11 26300, in [a reviewer's run with the validation layer](https://github.com/boykopovar/AnyPS5/pull/26360#issuecomment-7113734336)
- [x] AI-assisted: yes




<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5460310779 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/26360). Originally posted by [JJenkx](https://github.com/JJenkx) on 2026-11-23T20:04:29Z. --- ### What `DepthRenderControlDrains` decides whether a draw's `DB_RENDER_CONTROL` drains the pipelined draw queue before `NoteDepthRenderControl` runs. Since #16168 a single-sample control, or a clear-only control on any other surface, no longer drains, but **every** multisampled control with `DEPTH_COMPRESS_DISABLE` or `STENCIL_COMPRESS_DISABLE` (`0x60`) still does, so a surface that a queued draw has not registered yet is found. `NoteDepthRenderControl` only changes a surface's `expanded` state for a depth expand (`0x40`, with the stencil expand or no stencil plane) or a clear (`0x3`). A control with only `STENCIL_COMPRESS_DISABLE` (`0x20`) and no clear bit sets nothing but `renderControl`, which only the "sampled through a descriptor without metadata" diagnostic prints. Such a control no longer drains: ```cpp if ((draw.control & 0x40u) != 0u) return true; if ((draw.control & 3u) == 0u) return false; ``` Depth expands drain as before, and clears keep the surface lookup of #16168. As before, a control that does not drain is not passed to `NoteDepthRenderControl`, so the diagnostic's "last DB_RENDER_CONTROL" now shows the last control that could change a surface. `agc_driver_native_depth_expand_gate` checks that a `0x20` control over the native target does not drain, that `0x21` (with a depth clear) does, and that a `0x40` expand at an address without a registered surface does; it then notes a `0x20` control on the surface and requires that sampling without metadata is still refused, i.e. the surface did not become expanded. **Where it matters:** Snoopy and the Great Mystery Club (PPSA28795) issues `DB_RENDER_CONTROL` `0x20` over an 8-sample depth target for about a quarter of its draws. A gdb count on Windows saw 2,669 `NoteDepthRenderControl` calls in the first 37 s, all `0x20` on the same surface. In the first backyard scene that drained the pipeline about 58,000–60,000 times per 10 s (all `DRAW_INDEX_2`, opcode `0x27`), 3.4–3.7 s of every 10 s of the packet thread waiting for the committer. ### 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. Candidate `5701d91506a` (this branch on `main` `bfcd717ebc5`); main control `bfcd717ebc5`. **GPU tests:** every test of `agc_driver_native_multisample_depth_tests` (33), 3 runs: **33/33 each run**. `agc_driver_native_depth_driver_queued_fill` skips on this machine in each run (`host imports are compared here, not write-watched`). `agc_driver_native_depth_expand_gate` ran all 6 cases (4 and 8 samples, with and without a stencil plane). **Control:** `main` `bfcd717ebc5` with only the new test lines, 3 runs: `agc_driver_native_depth_expand_gate` **fails every run** with `a stencil-only expand without a clear over the native target drains`. **Snoopy (PPSA28795, `01.000.002`), first backyard scene,** the same converted title and runtime, each arm copying its build's libraries in (driver hashes in `arm.txt`), Cross every 15 s from 30 s, 1920×1080. **Both arms carry the uncommitted `MultisampleTarget.cpp` change of #26338** (as `pr26338-src.patch`), because without it one of the first two runs of this branch aborted at 9.5 s with that PR's import gate message; the summaries therefore say `"dirty":true`. The difference between the arms is this PR's commit only. `APS5_TRACE_SECONDS=100:20` only, arms in main, PR, PR, main order; all four 105 s screenshots show the same frame (gameplay HUD, "Search the backyard for clues."): | Run | Arm | Presents in 20 s | p50 ms | p90 ms | p99 ms | GPU busy ms per present | |---|---|---|---|---|---|---| | 1 | main | 219 | 91.7 | 96.3 | 107.3 | 41.8 | | 2 | this PR | 226 | 89.2 | 95.4 | 98.7 | 59.3 | | 3 | this PR | 241 | 82.4 | 94.0 | 97.8 | 48.1 | | 4 | main | 224 | 90.0 | 93.4 | 101.2 | 38.7 | Every PR run has more presents and a lower p50 than every main run: on average 233.5 against 221.5 presents (+5.4%) and p50 85.8 against 90.8 ms. The gain is modest and the spread is wide (run 2 is close to run 4), so I read it as about 5%, not more. The traces dropped events, so the frame figures come from present timestamps. `APS5_PROFILE_DRAW=1` (diagnostic, separate runs, same setup), the backyard 10 s window: | | main | this PR | |---|---|---| | packet drains | 57,950 (3,398 ms) | 709 (2,126 ms), none for `0x27` | | presents | 100 | 118 | | GPU idle gaps per present | 47.0 ms | 32.9 ms | Linux, in [my run](https://github.com/boykopovar/AnyPS5/pull/26360#issuecomment-7114627522) of this head: RX 6650 XT, RADV Mesa 26.3.1, Khronos layer 1.4.363. `^agc_driver_native_(multisample_depth|depth_.*)$|^agc_driver_stencil_plane_memory$` (35 tests) passed 35 of 35 in each of 3 runs, with 0 `VUID-` and 0 `SYNC-HAZARD`. `agc_driver_native_depth_driver_queued_fill`, which skips on the Windows host above, runs and passes there. Independent Windows AMD validation reported by [AlfaRojo](https://github.com/boykopovar/AnyPS5/pull/26360#issuecomment-7122734991): AMD Radeon iGPU (gfx1036), Windows 11 Pro 26200, GCC 15.2.0 Release, Khronos layer 1.4.363. `^agc_driver_native_(multisample_depth|depth_.*)$`: 32 of 32 pass in each of 3 runs on the merge and on `main`. `agc_driver_native_depth_bda_clear` is a separate target that run did not build, so it shows Not Run on both sides. With `DepthSurface.cpp` restored to `main`, `agc_driver_native_depth_expand_gate` fails all 3 runs with "a stencil-only expand without a clear over the native target drains". 0 `VUID-`. Not tested: other titles, macOS, and the Snoopy drain count on Linux. [Traces, summaries, screenshots, profile lines, test logs, the control and scripts](https://github.com/JJenkx/AnyPS5/releases/download/windows-snoopy-stencil-drain-20261123/rcdrain-snoopy-20261123.tar.gz), SHA-256 `7aa243c6c5b11fc885c60e8e182ae2f1b57d35877a38099b66df5f5dad102908`. `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":"bfcd717ebc57","dirty":true,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_PLAYGO_UNLISTED_CHUNKS":"installed","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"100: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":"PPSA28795","title":"Snoopy & The Great Mystery Club","content_version":"01.000.002","resolution":"1920x1080","window":{"spec":"seconds 100:20","first_present":2088,"ms":20080.004},"presents":219,"frame_ms":{"p50":91.686,"p90":96.264,"p99":107.250,"max":109.141},"gpu_busy_ms_per_present":41.832,"worker_busy_pct":{"queue worker 0x0":98.732},"phase_totals_ms":{"Driver.Completion":0.305,"Driver.Dispatch":168.090,"Driver.Dispatch.capture_resources":0.117,"Driver.Dispatch.decode_key_device_setup":27.466,"Driver.Dispatch.lookup_cache":2.856,"Driver.Dispatch.materialize":0.025,"Driver.Dispatch.prepared_invocation":0.018,"Driver.Draw":15470.626,"Driver.Draw.device_setup":4789.988,"Driver.Draw.draw_enqueued":1293.063,"Driver.Draw.post_compile_prepare":155.249,"Driver.Draw.prepare":998.314,"Driver.Draw.shader_compile_and_link":7596.940,"Driver.EndSubmission":0.195,"Driver.Packet":19824.870,"Driver.Packet.device_lock":65.550,"Driver.Packet.dispatch":170.223,"Driver.Packet.draw":15603.173,"Driver.Packet.execute":258.079,"Driver.Packet.flip_flush":0.338,"Driver.Packet.flush_between_packets":141.148,"Driver.Packet.memory_wait":0.006,"Driver.Packet.pipeline_drain":3308.980,"Driver.Packet.pipeline_prepare":98.357,"Driver.Packet.prepare_memory":96.638,"Driver.Packet.rendering_wait":0.268,"Driver.Present":116.132,"Driver.Present.acquire_image":56.406,"Driver.Present.device_setup":0.106,"Driver.Present.gpu_mutex_wait":4.520,"Driver.Present.inflight_wait":0.564,"Driver.Present.present_display_buffer":21.664,"Driver.Present.queue_present":29.029,"Driver.Present.release_and_callback":0.223,"Driver.Present.render_fence_wait":2.981,"Driver.Present.resize":0.401,"Driver.Present.validate":0.110,"Driver.Suspend":0.036,"GpuMutex.wait.dispatch":0.968,"GpuMutex.wait.draw":2.020,"GpuMutex.wait.end":0.406,"GpuMutex.wait.fill":90.460,"GpuMutex.wait.flush":0.580,"GpuMutex.wait.label":11.046,"GpuMutex.wait.present":3.846,"GpuMutex.wait.wait":12.902,"Graphics.Draw":9795.318,"Graphics.Draw.draw_and_resource_release":8111.659,"Graphics.Draw.index_upload":355.743,"Graphics.Draw.validate":738.288,"Graphics.Draw.vertex_upload":486.185,"Graphics.DrawWithRecipe":78.199,"Graphics.DrawWithRecipe.draw_and_resource_release":62.577,"Graphics.DrawWithRecipe.index_upload":4.442,"Graphics.DrawWithRecipe.validate":4.347,"Graphics.DrawWithRecipe.vertex_upload":5.741,"Recorder.Reap":33.537,"Recorder.Submit":115.820,"Recorder.Sync":3219.751,"Recorder.WaitSerial":2.432,"Resources.Complete":14.710,"Resources.Prepare":1.702,"Shader.DrawStage":3955.458,"Shader.DrawStage.capture_resources":2192.255,"Shader.DrawStage.materialize":1022.172,"Shader.DrawStage.prepared_invocation":687.884,"Shader.ResolveAbi":116.649,"Shader.ResolveGraphicsAbi":47.691,"Shader.ResolveGraphicsStagesAbi":103.694,"VideoOut.Flip":121.158,"VideoOut.Flip.completion_mutex_wait":0.235,"VideoOut.Flip.config_mutex_wait":0.033,"VideoOut.Flip.frame_limit":0.142,"VideoOut.Flip.notify_game":5.801,"VideoOut.Flip.present":112.465,"VideoOut.Flip.validate":0.334,"VideoOut.Flip.vblank_wait":0.222,"VideoOut.Flip.window_prepare":0.416,"VideoOut.Flip.window_title":1.314,"VideoOut.Readiness":0.614,"VideoOut.Readiness.locks_validate":0.236,"Vulkan.Acquire":56.131,"Vulkan.Acquire.acquire_fence_wait":29.700,"Vulkan.Acquire.acquire_image":25.341,"Vulkan.Acquire.fence_reset":0.611,"Vulkan.Acquire.retired_swapchains":0.369,"Vulkan.Dispatch":19.456,"Vulkan.Dispatch.command_record":6.825,"Vulkan.Dispatch.shader_resources":12.439,"Vulkan.DispatchRecipe":6.902,"Vulkan.DispatchRecipe.command_record":6.806,"Vulkan.DrawFromRecipe":80.474,"Vulkan.Present":12.240,"Vulkan.Present.command_record_scale":6.736,"Vulkan.Present.pixel_upload":0.553,"Vulkan.Present.queue_submit":4.782,"Vulkan.QueuePresent":28.624,"Vulkan.QueuePresent.queue_present":28.216,"Vulkan.Retire":2.924,"Vulkan.Retire.wait":1.886},"top_phases_ms_per_frame":{"Driver.Packet":90.525,"Driver.Packet.draw":71.247,"Driver.Draw":70.642,"Graphics.Draw":44.727,"Graphics.Draw.draw_and_resource_release":37.040,"Driver.Draw.shader_compile_and_link":34.689,"Driver.Draw.device_setup":21.872,"Shader.DrawStage":18.061},"owned_draw_counts":{},"graphics_track":{"Graphics.Barrier.dcc-clear":3504,"Graphics.Barrier.dcc-keys":2508,"Graphics.Barrier.dispatch-lead":657,"Graphics.Barrier.dispatch-trail":876,"Graphics.Barrier.draw":24001,"Graphics.Barrier.fill":3504,"Graphics.Barrier.label-run":12075,"Graphics.Barrier.present-blit":876,"Graphics.Barrier.staging-in":1533,"Graphics.Barrier.staging-out":657,"Graphics.Barrier.storage-writeback":5819,"Graphics.BarrierMerged.dispatch-lead":219,"Graphics.BarrierMerged.fill":1752,"Graphics.BarrierMerged.staging-in":438,"Graphics.BarrierMerged.staging-out":657,"Graphics.BarrierMerged.storage-writeback":1189,"Graphics.Copy":1752,"Graphics.Copy.bytes":365638896,"Graphics.RenderPass":9167,"Graphics.RenderPass.Close.command":3840,"Graphics.RenderPass.Close.image":1936,"Graphics.RenderPass.Close.key":407,"Graphics.RenderPass.Close.new-batch":2984,"Graphics.RenderPass.Continued":463347},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":5.690,"events_lost":668118,"totals_full":false}},"trace":"aps5-trace-bfcd717ebc57-302804.json.gz"} {"commit":"5701d91506a0","dirty":true,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_PLAYGO_UNLISTED_CHUNKS":"installed","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"100: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":"PPSA28795","title":"Snoopy & The Great Mystery Club","content_version":"01.000.002","resolution":"1920x1080","window":{"spec":"seconds 100:20","first_present":2145,"ms":20071.003},"presents":226,"frame_ms":{"p50":89.226,"p90":95.428,"p99":98.738,"max":99.452},"gpu_busy_ms_per_present":59.274,"worker_busy_pct":{"queue worker 0x0":98.678},"phase_totals_ms":{"Driver.Completion":0.490,"Driver.Dispatch":165.003,"Driver.Dispatch.capture_resources":0.435,"Driver.Dispatch.decode_key_device_setup":26.308,"Driver.Dispatch.lookup_cache":3.081,"Driver.Dispatch.materialize":0.095,"Driver.Dispatch.prepared_invocation":0.072,"Driver.Draw":12531.875,"Driver.Draw.device_setup":516.463,"Driver.Draw.draw_enqueued":2140.234,"Driver.Draw.post_compile_prepare":159.920,"Driver.Draw.prepare":1039.980,"Driver.Draw.shader_compile_and_link":7896.753,"Driver.EndSubmission":0.209,"Driver.Packet":19804.993,"Driver.Packet.device_lock":69.697,"Driver.Packet.dispatch":167.303,"Driver.Packet.draw":12669.778,"Driver.Packet.execute":269.593,"Driver.Packet.flip_flush":0.399,"Driver.Packet.flush_between_packets":159.635,"Driver.Packet.memory_wait":0.004,"Driver.Packet.pipeline_drain":6167.455,"Driver.Packet.pipeline_prepare":103.737,"Driver.Packet.prepare_memory":107.928,"Driver.Packet.rendering_wait":0.319,"Driver.Present":119.790,"Driver.Present.acquire_image":57.941,"Driver.Present.device_setup":0.118,"Driver.Present.gpu_mutex_wait":4.440,"Driver.Present.inflight_wait":0.638,"Driver.Present.present_display_buffer":22.761,"Driver.Present.queue_present":29.289,"Driver.Present.release_and_callback":0.250,"Driver.Present.render_fence_wait":3.688,"Driver.Present.resize":0.405,"Driver.Present.validate":0.129,"Driver.Suspend":0.036,"GpuMutex.wait.dispatch":0.345,"GpuMutex.wait.draw":2.037,"GpuMutex.wait.end":0.473,"GpuMutex.wait.fill":85.613,"GpuMutex.wait.flush":0.577,"GpuMutex.wait.label":10.786,"GpuMutex.wait.present":3.733,"Graphics.Draw":10112.554,"Graphics.Draw.draw_and_resource_release":8368.398,"Graphics.Draw.index_upload":370.159,"Graphics.Draw.validate":781.148,"Graphics.Draw.vertex_upload":480.366,"Graphics.DrawWithRecipe":116.758,"Graphics.DrawWithRecipe.draw_and_resource_release":94.231,"Graphics.DrawWithRecipe.index_upload":6.777,"Graphics.DrawWithRecipe.validate":5.715,"Graphics.DrawWithRecipe.vertex_upload":8.306,"Recorder.Reap":31.548,"Recorder.Submit":120.094,"Recorder.Sync":6071.455,"Resources.Complete":15.554,"Resources.Prepare":1.827,"Shader.DrawStage":4114.429,"Shader.DrawStage.capture_resources":2339.726,"Shader.DrawStage.materialize":1033.326,"Shader.DrawStage.prepared_invocation":682.835,"Shader.ResolveAbi":122.917,"Shader.ResolveGraphicsAbi":53.655,"Shader.ResolveGraphicsStagesAbi":110.232,"VideoOut.Flip":124.045,"VideoOut.Flip.completion_mutex_wait":0.241,"VideoOut.Flip.config_mutex_wait":0.030,"VideoOut.Flip.frame_limit":0.164,"VideoOut.Flip.notify_game":5.385,"VideoOut.Flip.present":115.663,"VideoOut.Flip.validate":0.374,"VideoOut.Flip.vblank_wait":0.236,"VideoOut.Flip.window_prepare":0.448,"VideoOut.Flip.window_title":1.304,"VideoOut.Readiness":0.660,"VideoOut.Readiness.locks_validate":0.227,"Vulkan.Acquire":57.648,"Vulkan.Acquire.acquire_fence_wait":30.180,"Vulkan.Acquire.acquire_image":26.372,"Vulkan.Acquire.fence_reset":0.622,"Vulkan.Acquire.retired_swapchains":0.361,"Vulkan.Dispatch":21.154,"Vulkan.Dispatch.command_record":7.330,"Vulkan.Dispatch.shader_resources":13.616,"Vulkan.DispatchRecipe":7.032,"Vulkan.DispatchRecipe.command_record":6.923,"Vulkan.DrawFromRecipe":119.714,"Vulkan.Present":13.077,"Vulkan.Present.command_record_scale":7.408,"Vulkan.Present.pixel_upload":0.553,"Vulkan.Present.queue_submit":4.948,"Vulkan.QueuePresent":28.869,"Vulkan.QueuePresent.queue_present":28.367,"Vulkan.Retire":3.646,"Vulkan.Retire.wait":2.513},"top_phases_ms_per_frame":{"Driver.Packet":87.633,"Driver.Packet.draw":56.061,"Driver.Draw":55.451,"Graphics.Draw":44.746,"Graphics.Draw.draw_and_resource_release":37.028,"Driver.Draw.shader_compile_and_link":34.941,"Driver.Packet.pipeline_drain":27.290,"Recorder.Sync":26.865},"owned_draw_counts":{},"graphics_track":{"Graphics.Barrier.dcc-clear":3616,"Graphics.Barrier.dcc-keys":2642,"Graphics.Barrier.dispatch-lead":678,"Graphics.Barrier.dispatch-trail":904,"Graphics.Barrier.draw":23733,"Graphics.Barrier.fill":3616,"Graphics.Barrier.label-run":12520,"Graphics.Barrier.present-blit":904,"Graphics.Barrier.staging-in":1582,"Graphics.Barrier.staging-out":678,"Graphics.Barrier.storage-writeback":5934,"Graphics.BarrierMerged.dispatch-lead":226,"Graphics.BarrierMerged.fill":1808,"Graphics.BarrierMerged.staging-in":452,"Graphics.BarrierMerged.staging-out":678,"Graphics.BarrierMerged.storage-writeback":1298,"Graphics.Copy":1808,"Graphics.Copy.bytes":377325984,"Graphics.RenderPass":9263,"Graphics.RenderPass.Close.command":4026,"Graphics.RenderPass.Close.image":2019,"Graphics.RenderPass.Close.key":449,"Graphics.RenderPass.Close.new-batch":2769,"Graphics.RenderPass.Continued":478378},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":5.869,"events_lost":601394,"totals_full":false}},"trace":"aps5-trace-5701d91506a0-267696.json.gz"} {"commit":"5701d91506a0","dirty":true,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_PLAYGO_UNLISTED_CHUNKS":"installed","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"100: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":"PPSA28795","title":"Snoopy & The Great Mystery Club","content_version":"01.000.002","resolution":"1920x1080","window":{"spec":"seconds 100:20","first_present":2105,"ms":20062.339},"presents":241,"frame_ms":{"p50":82.411,"p90":93.990,"p99":97.842,"max":104.795},"gpu_busy_ms_per_present":48.149,"worker_busy_pct":{"queue worker 0x0":98.603},"phase_totals_ms":{"Driver.Completion":0.503,"Driver.Dispatch":176.481,"Driver.Dispatch.capture_resources":0.585,"Driver.Dispatch.decode_key_device_setup":26.457,"Driver.Dispatch.lookup_cache":3.360,"Driver.Dispatch.materialize":0.127,"Driver.Dispatch.prepared_invocation":0.093,"Driver.Draw":13485.928,"Driver.Draw.device_setup":552.665,"Driver.Draw.draw_enqueued":2298.753,"Driver.Draw.post_compile_prepare":172.805,"Driver.Draw.prepare":1122.683,"Driver.Draw.shader_compile_and_link":8484.976,"Driver.EndSubmission":0.225,"Driver.Packet":19781.228,"Driver.Packet.device_lock":73.897,"Driver.Packet.dispatch":178.958,"Driver.Packet.draw":13628.128,"Driver.Packet.execute":283.047,"Driver.Packet.flip_flush":0.437,"Driver.Packet.flush_between_packets":161.074,"Driver.Packet.memory_wait":0.006,"Driver.Packet.pipeline_drain":5143.596,"Driver.Packet.pipeline_prepare":110.526,"Driver.Packet.prepare_memory":107.496,"Driver.Packet.rendering_wait":0.315,"Driver.Present":128.848,"Driver.Present.acquire_image":62.013,"Driver.Present.device_setup":0.122,"Driver.Present.gpu_mutex_wait":4.018,"Driver.Present.inflight_wait":0.641,"Driver.Present.present_display_buffer":24.918,"Driver.Present.queue_present":32.370,"Driver.Present.release_and_callback":0.265,"Driver.Present.render_fence_wait":3.786,"Driver.Present.resize":0.442,"Driver.Present.validate":0.132,"Driver.Suspend":0.037,"GpuMutex.wait.dispatch":0.609,"GpuMutex.wait.draw":1.823,"GpuMutex.wait.end":0.469,"GpuMutex.wait.fill":92.330,"GpuMutex.wait.flush":0.605,"GpuMutex.wait.label":10.748,"GpuMutex.wait.present":3.263,"GpuMutex.wait.wait":13.530,"Graphics.Draw":10940.453,"Graphics.Draw.draw_and_resource_release":9057.941,"Graphics.Draw.index_upload":394.758,"Graphics.Draw.validate":836.438,"Graphics.Draw.vertex_upload":532.091,"Graphics.DrawWithRecipe":63.316,"Graphics.DrawWithRecipe.draw_and_resource_release":50.872,"Graphics.DrawWithRecipe.index_upload":3.802,"Graphics.DrawWithRecipe.validate":3.005,"Graphics.DrawWithRecipe.vertex_upload":4.720,"Recorder.Reap":33.682,"Recorder.Submit":129.802,"Recorder.Sync":5044.036,"Recorder.WaitSerial":2.675,"Resources.Complete":16.090,"Resources.Prepare":1.909,"Shader.DrawStage":4466.622,"Shader.DrawStage.capture_resources":2535.441,"Shader.DrawStage.materialize":1121.375,"Shader.DrawStage.prepared_invocation":751.332,"Shader.ResolveAbi":136.140,"Shader.ResolveGraphicsAbi":61.763,"Shader.ResolveGraphicsStagesAbi":122.404,"VideoOut.Flip":133.861,"VideoOut.Flip.completion_mutex_wait":0.261,"VideoOut.Flip.config_mutex_wait":0.032,"VideoOut.Flip.frame_limit":0.165,"VideoOut.Flip.notify_game":5.161,"VideoOut.Flip.present":125.459,"VideoOut.Flip.validate":0.399,"VideoOut.Flip.vblank_wait":0.246,"VideoOut.Flip.window_prepare":0.515,"VideoOut.Flip.window_title":1.423,"VideoOut.Readiness":0.678,"VideoOut.Readiness.locks_validate":0.240,"Vulkan.Acquire":61.710,"Vulkan.Acquire.acquire_fence_wait":32.236,"Vulkan.Acquire.acquire_image":28.323,"Vulkan.Acquire.fence_reset":0.669,"Vulkan.Acquire.retired_swapchains":0.364,"Vulkan.Dispatch":23.128,"Vulkan.Dispatch.command_record":7.885,"Vulkan.Dispatch.shader_resources":15.023,"Vulkan.DispatchRecipe":7.519,"Vulkan.DispatchRecipe.command_record":7.420,"Vulkan.DrawFromRecipe":64.905,"Vulkan.Present":14.256,"Vulkan.Present.command_record_scale":8.132,"Vulkan.Present.pixel_upload":0.594,"Vulkan.Present.queue_submit":5.351,"Vulkan.QueuePresent":31.907,"Vulkan.QueuePresent.queue_present":31.412,"Vulkan.Retire":3.715,"Vulkan.Retire.wait":2.474},"top_phases_ms_per_frame":{"Driver.Packet":82.080,"Driver.Packet.draw":56.548,"Driver.Draw":55.958,"Graphics.Draw":45.396,"Graphics.Draw.draw_and_resource_release":37.585,"Driver.Draw.shader_compile_and_link":35.207,"Driver.Packet.pipeline_drain":21.343,"Recorder.Sync":20.930},"owned_draw_counts":{},"graphics_track":{"Graphics.Barrier.dcc-clear":3856,"Graphics.Barrier.dcc-keys":2798,"Graphics.Barrier.dispatch-lead":723,"Graphics.Barrier.dispatch-trail":964,"Graphics.Barrier.draw":25316,"Graphics.Barrier.fill":3856,"Graphics.Barrier.label-run":13277,"Graphics.Barrier.present-blit":964,"Graphics.Barrier.staging-in":1687,"Graphics.Barrier.staging-out":723,"Graphics.Barrier.storage-writeback":6460,"Graphics.BarrierMerged.dispatch-lead":241,"Graphics.BarrierMerged.fill":1928,"Graphics.BarrierMerged.staging-in":482,"Graphics.BarrierMerged.staging-out":723,"Graphics.BarrierMerged.storage-writeback":1252,"Graphics.Copy":1928,"Graphics.Copy.bytes":402369744,"Graphics.RenderPass":9877,"Graphics.RenderPass.Close.command":4163,"Graphics.RenderPass.Close.image":2142,"Graphics.RenderPass.Close.key":478,"Graphics.RenderPass.Close.new-batch":3094,"Graphics.RenderPass.Continued":510133},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":5.918,"events_lost":670205,"totals_full":false}},"trace":"aps5-trace-5701d91506a0-309252.json.gz"} {"commit":"bfcd717ebc57","dirty":true,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_PLAYGO_UNLISTED_CHUNKS":"installed","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"100: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":"PPSA28795","title":"Snoopy & The Great Mystery Club","content_version":"01.000.002","resolution":"1920x1080","window":{"spec":"seconds 100:20","first_present":2096,"ms":20066.195},"presents":224,"frame_ms":{"p50":89.981,"p90":93.362,"p99":101.165,"max":107.234},"gpu_busy_ms_per_present":38.713,"worker_busy_pct":{"queue worker 0x0":98.710},"phase_totals_ms":{"Driver.Completion":0.461,"Driver.Dispatch":158.985,"Driver.Dispatch.capture_resources":0.146,"Driver.Dispatch.decode_key_device_setup":25.097,"Driver.Dispatch.lookup_cache":2.816,"Driver.Dispatch.materialize":0.034,"Driver.Dispatch.prepared_invocation":0.025,"Driver.Draw":15555.281,"Driver.Draw.device_setup":4986.362,"Driver.Draw.draw_enqueued":1318.894,"Driver.Draw.post_compile_prepare":148.627,"Driver.Draw.prepare":997.752,"Driver.Draw.shader_compile_and_link":7457.546,"Driver.EndSubmission":0.186,"Driver.Packet":19806.745,"Driver.Packet.device_lock":68.569,"Driver.Packet.dispatch":161.173,"Driver.Packet.draw":15691.605,"Driver.Packet.execute":253.936,"Driver.Packet.flip_flush":0.341,"Driver.Packet.flush_between_packets":147.142,"Driver.Packet.memory_wait":0.006,"Driver.Packet.pipeline_drain":3198.841,"Driver.Packet.pipeline_prepare":101.297,"Driver.Packet.prepare_memory":99.424,"Driver.Packet.rendering_wait":0.281,"Driver.Present":112.872,"Driver.Present.acquire_image":55.695,"Driver.Present.device_setup":0.106,"Driver.Present.gpu_mutex_wait":3.433,"Driver.Present.inflight_wait":0.578,"Driver.Present.present_display_buffer":21.031,"Driver.Present.queue_present":27.936,"Driver.Present.release_and_callback":0.218,"Driver.Present.render_fence_wait":3.231,"Driver.Present.resize":0.400,"Driver.Present.validate":0.109,"Driver.Suspend":0.044,"GpuMutex.wait.dispatch":0.509,"GpuMutex.wait.draw":1.865,"GpuMutex.wait.end":0.400,"GpuMutex.wait.fill":84.565,"GpuMutex.wait.flush":0.574,"GpuMutex.wait.label":9.819,"GpuMutex.wait.present":2.764,"GpuMutex.wait.wait":11.247,"Graphics.Draw":9774.888,"Graphics.Draw.draw_and_resource_release":8116.039,"Graphics.Draw.index_upload":358.526,"Graphics.Draw.validate":721.372,"Graphics.Draw.vertex_upload":478.389,"Graphics.DrawWithRecipe":232.866,"Graphics.DrawWithRecipe.draw_and_resource_release":186.408,"Graphics.DrawWithRecipe.index_upload":13.946,"Graphics.DrawWithRecipe.validate":11.502,"Graphics.DrawWithRecipe.vertex_upload":17.566,"Recorder.Reap":35.988,"Recorder.Submit":124.347,"Recorder.Sync":3107.121,"Recorder.WaitSerial":2.477,"Resources.Complete":15.816,"Resources.Prepare":1.798,"Shader.DrawStage":3905.025,"Shader.DrawStage.capture_resources":2216.843,"Shader.DrawStage.materialize":969.377,"Shader.DrawStage.prepared_invocation":666.219,"Shader.ResolveAbi":124.025,"Shader.ResolveGraphicsAbi":55.148,"Shader.ResolveGraphicsStagesAbi":112.144,"VideoOut.Flip":117.860,"VideoOut.Flip.completion_mutex_wait":0.220,"VideoOut.Flip.config_mutex_wait":0.030,"VideoOut.Flip.frame_limit":0.154,"VideoOut.Flip.notify_game":5.275,"VideoOut.Flip.present":109.662,"VideoOut.Flip.validate":0.363,"VideoOut.Flip.vblank_wait":0.221,"VideoOut.Flip.window_prepare":0.440,"VideoOut.Flip.window_title":1.292,"VideoOut.Readiness":0.632,"VideoOut.Readiness.locks_validate":0.217,"Vulkan.Acquire":55.422,"Vulkan.Acquire.acquire_fence_wait":29.389,"Vulkan.Acquire.acquire_image":24.939,"Vulkan.Acquire.fence_reset":0.630,"Vulkan.Acquire.retired_swapchains":0.355,"Vulkan.Dispatch":19.088,"Vulkan.Dispatch.command_record":6.865,"Vulkan.Dispatch.shader_resources":12.037,"Vulkan.DispatchRecipe":7.088,"Vulkan.DispatchRecipe.command_record":6.993,"Vulkan.DrawFromRecipe":238.415,"Vulkan.Present":12.188,"Vulkan.Present.command_record_scale":6.744,"Vulkan.Present.pixel_upload":0.505,"Vulkan.Present.queue_submit":4.767,"Vulkan.QueuePresent":27.533,"Vulkan.QueuePresent.queue_present":27.141,"Vulkan.Retire":3.190,"Vulkan.Retire.wait":2.147},"top_phases_ms_per_frame":{"Driver.Packet":88.423,"Driver.Packet.draw":70.052,"Driver.Draw":69.443,"Graphics.Draw":43.638,"Graphics.Draw.draw_and_resource_release":36.232,"Driver.Draw.shader_compile_and_link":33.293,"Driver.Draw.device_setup":22.261,"Shader.DrawStage":17.433},"owned_draw_counts":{},"graphics_track":{"Graphics.Barrier.dcc-clear":3584,"Graphics.Barrier.dcc-keys":2580,"Graphics.Barrier.dispatch-lead":672,"Graphics.Barrier.dispatch-trail":896,"Graphics.Barrier.draw":24576,"Graphics.Barrier.fill":3584,"Graphics.Barrier.label-run":12458,"Graphics.Barrier.present-blit":896,"Graphics.Barrier.staging-in":1568,"Graphics.Barrier.staging-out":672,"Graphics.Barrier.storage-writeback":5847,"Graphics.BarrierMerged.dispatch-lead":224,"Graphics.BarrierMerged.fill":1792,"Graphics.BarrierMerged.staging-in":448,"Graphics.BarrierMerged.staging-out":672,"Graphics.BarrierMerged.storage-writeback":1321,"Graphics.Copy":1792,"Graphics.Copy.bytes":373986816,"Graphics.RenderPass":9383,"Graphics.RenderPass.Close.command":4040,"Graphics.RenderPass.Close.image":1980,"Graphics.RenderPass.Close.key":423,"Graphics.RenderPass.Close.new-batch":2940,"Graphics.RenderPass.Continued":473943},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":5.928,"events_lost":634610,"totals_full":false}},"trace":"aps5-trace-bfcd717ebc57-275612.json.gz"} ``` </details> <details> <summary>tools/trace_digest.py, main (run 1)</summary> ``` **seconds 100:20** from present 2088: 219 presents, frame p50 91.7 / p90 96.3 / p99 107.2 / max 109.1 ms, GPU busy 41.8 ms per present AMD Radeon RX 6700 XT, AMD proprietary driver 26.11.2 (AMD proprietary shader compiler), Windows 10.0.22621, 1920x1080, commit bfcd717ebc57 (dirty), dropped: yes ```json {"commit":"bfcd717ebc57","dirty":true,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_PLAYGO_UNLISTED_CHUNKS":"installed","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"100: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":"PPSA28795","title":"Snoopy & The Great Mystery Club","content_version":"01.000.002","resolution":"1920x1080","window":{"spec":"seconds 100:20","first_present":2088,"ms":20080.004},"presents":219,"frame_ms":{"p50":91.686,"p90":96.264,"p99":107.25,"max":109.141},"gpu_busy_ms_per_present":41.832,"worker_busy_pct":{"queue worker 0x0":98.732},"phase_totals_ms":{"Driver.Completion":0.305,"Driver.Dispatch":168.09,"Driver.Dispatch.capture_resources":0.117,"Driver.Dispatch.decode_key_device_setup":27.466,"Driver.Dispatch.lookup_cache":2.856,"Driver.Dispatch.materialize":0.025,"Driver.Dispatch.prepared_invocation":0.018,"Driver.Draw":15470.626,"Driver.Draw.device_setup":4789.988,"Driver.Draw.draw_enqueued":1293.063,"Driver.Draw.post_compile_prepare":155.249,"Driver.Draw.prepare":998.314,"Driver.Draw.shader_compile_and_link":7596.94,"Driver.EndSubmission":0.195,"Driver.Packet":19824.87,"Driver.Packet.device_lock":65.55,"Driver.Packet.dispatch":170.223,"Driver.Packet.draw":15603.173,"Driver.Packet.execute":258.079,"Driver.Packet.flip_flush":0.338,"Driver.Packet.flush_between_packets":141.148,"Driver.Packet.memory_wait":0.006,"Driver.Packet.pipeline_drain":3308.98,"Driver.Packet.pipeline_prepare":98.357,"Driver.Packet.prepare_memory":96.638,"Driver.Packet.rendering_wait":0.268,"Driver.Present":116.132,"Driver.Present.acquire_image":56.406,"Driver.Present.device_setup":0.106,"Driver.Present.gpu_mutex_wait":4.52,"Driver.Present.inflight_wait":0.564,"Driver.Present.present_display_buffer":21.664,"Driver.Present.queue_present":29.029,"Driver.Present.release_and_callback":0.223,"Driver.Present.render_fence_wait":2.981,"Driver.Present.resize":0.401,"Driver.Present.validate":0.11,"Driver.Suspend":0.036,"GpuMutex.wait.dispatch":0.968,"GpuMutex.wait.draw":2.02,"GpuMutex.wait.end":0.406,"GpuMutex.wait.fill":90.46,"GpuMutex.wait.flush":0.58,"GpuMutex.wait.label":11.046,"GpuMutex.wait.present":3.846,"GpuMutex.wait.wait":12.902,"Graphics.Draw":9795.318,"Graphics.Draw.draw_and_resource_release":8111.659,"Graphics.Draw.index_upload":355.743,"Graphics.Draw.validate":738.288,"Graphics.Draw.vertex_upload":486.185,"Graphics.DrawWithRecipe":78.199,"Graphics.DrawWithRecipe.draw_and_resource_release":62.577,"Graphics.DrawWithRecipe.index_upload":4.442,"Graphics.DrawWithRecipe.validate":4.347,"Graphics.DrawWithRecipe.vertex_upload":5.741,"Recorder.Reap":33.537,"Recorder.Submit":115.82,"Recorder.Sync":3219.751,"Recorder.WaitSerial":2.432,"Resources.Complete":14.71,"Resources.Prepare":1.702,"Shader.DrawStage":3955.458,"Shader.DrawStage.capture_resources":2192.255,"Shader.DrawStage.materialize":1022.172,"Shader.DrawStage.prepared_invocation":687.884,"Shader.ResolveAbi":116.649,"Shader.ResolveGraphicsAbi":47.691,"Shader.ResolveGraphicsStagesAbi":103.694,"VideoOut.Flip":121.158,"VideoOut.Flip.completion_mutex_wait":0.235,"VideoOut.Flip.config_mutex_wait":0.033,"VideoOut.Flip.frame_limit":0.142,"VideoOut.Flip.notify_game":5.801,"VideoOut.Flip.present":112.465,"VideoOut.Flip.validate":0.334,"VideoOut.Flip.vblank_wait":0.222,"VideoOut.Flip.window_prepare":0.416,"VideoOut.Flip.window_title":1.314,"VideoOut.Readiness":0.614,"VideoOut.Readiness.locks_validate":0.236,"Vulkan.Acquire":56.131,"Vulkan.Acquire.acquire_fence_wait":29.7,"Vulkan.Acquire.acquire_image":25.341,"Vulkan.Acquire.fence_reset":0.611,"Vulkan.Acquire.retired_swapchains":0.369,"Vulkan.Dispatch":19.456,"Vulkan.Dispatch.command_record":6.825,"Vulkan.Dispatch.shader_resources":12.439,"Vulkan.DispatchRecipe":6.902,"Vulkan.DispatchRecipe.command_record":6.806,"Vulkan.DrawFromRecipe":80.474,"Vulkan.Present":12.24,"Vulkan.Present.command_record_scale":6.736,"Vulkan.Present.pixel_upload":0.553,"Vulkan.Present.queue_submit":4.782,"Vulkan.QueuePresent":28.624,"Vulkan.QueuePresent.queue_present":28.216,"Vulkan.Retire":2.924,"Vulkan.Retire.wait":1.886},"top_phases_ms_per_frame":{"Driver.Packet":90.525,"Driver.Packet.draw":71.247,"Driver.Draw":70.642,"Graphics.Draw":44.727,"Graphics.Draw.draw_and_resource_release":37.04,"Driver.Draw.shader_compile_and_link":34.689,"Driver.Draw.device_setup":21.872,"Shader.DrawStage":18.061},"owned_draw_counts":{},"graphics_track":{"Graphics.Barrier.dcc-clear":3504,"Graphics.Barrier.dcc-keys":2508,"Graphics.Barrier.dispatch-lead":657,"Graphics.Barrier.dispatch-trail":876,"Graphics.Barrier.draw":24001,"Graphics.Barrier.fill":3504,"Graphics.Barrier.label-run":12075,"Graphics.Barrier.present-blit":876,"Graphics.Barrier.staging-in":1533,"Graphics.Barrier.staging-out":657,"Graphics.Barrier.storage-writeback":5819,"Graphics.BarrierMerged.dispatch-lead":219,"Graphics.BarrierMerged.fill":1752,"Graphics.BarrierMerged.staging-in":438,"Graphics.BarrierMerged.staging-out":657,"Graphics.BarrierMerged.storage-writeback":1189,"Graphics.Copy":1752,"Graphics.Copy.bytes":365638896,"Graphics.RenderPass":9167,"Graphics.RenderPass.Close.command":3840,"Graphics.RenderPass.Close.image":1936,"Graphics.RenderPass.Close.key":407,"Graphics.RenderPass.Close.new-batch":2984,"Graphics.RenderPass.Continued":463347},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":5.69,"events_lost":668118,"totals_full":false}},"trace":"aps5-trace-bfcd717ebc57-302804.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: 668118 events lost; buffer full at 5690.1 ms; over the 61 of 219 frames that ended before it: busy 72.0 ms per frame (78 %), wait 0.5, largest Driver.Packet 72.4, Driver.Completion 0.0 (the thread table divides the retained slices by every frame) **Slowest frames** (largest slices inside each, inclusive) - present 2218: 109.1 ms at 11827 ms: batch (gpu) 62.6, Recorder.Sync (draw committer) 29.8, Graphics.Draw (draw committer) 22.1, Graphics.Draw.draw_and_resource_release (draw committer) 16.6 - present 2181: 108.2 ms at 8430 ms: batch (gpu) 63.0, Recorder.Sync (draw committer) 31.2, Graphics.Draw (draw committer) 23.5, Graphics.Draw.draw_and_resource_release (draw committer) 16.7 - present 2252: 107.3 ms at 15014 ms: batch (gpu) 61.7, Recorder.Sync (draw committer) 30.0, Graphics.Draw (draw committer) 23.8, Graphics.Draw.draw_and_resource_release (draw committer) 16.9 **Persistent spikes** (frame time above the fastest frame that separates it from a longer frame; one entry per stall, not per frame) - present 2218: 109.1 ms at 11827 ms, persistence 36.2 ms - present 2110: 106.5 ms at 2035 ms, persistence 27.3 ms - present 2299: 99.1 ms at 19339 ms, persistence 26.1 ms - present 2181: 108.2 ms at 8430 ms, persistence 23.0 ms - present 2144: 104.5 ms at 5160 ms, persistence 20.9 ms **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | queue worker 0x0 | 20.3 (22 %) | 0.1 (0 %) | 71.3 | 35.3 | Driver.Packet 20.4, Driver.Completion 0.0 | | draw committer | 38.2 (42 %) | 0.1 (0 %) | 53.4 | 49.9 | Graphics.Draw 23.0, Recorder.Sync 14.7 | | presenter | 0.4 (0 %) | 0.2 (0 %) | 91.1 | 0.1 | VideoOut.Flip 0.6, Driver.Present 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 91.6 | 0.2 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 91.7 | 0.1 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 91.7 | 0.1 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 91.7 | 0.1 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 91.7 | 0.1 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 91.7 | 0.1 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 91.7 | 0.1 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 91.7 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 91.7 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 91.7 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 91.7 | 0.1 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 91.7 | 0.1 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 91.7 | 0.1 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 91.7 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.1 (0 %) | 91.6 | 0.0 | | | gpu | 41.8 (46 %) | 0.0 (0 %) | 49.9 | 0.0 | batch 41.8 | **Largest slices** (ms per frame, inclusive, all threads): batch 41.8, Graphics.Draw 23.0, Driver.Packet 20.4, Graphics.Draw.draw_and_resource_release 16.9, Driver.Packet.draw 15.8 **Longest waits** - Driver.Present.gpu_mutex_wait (presenter) 3.0 ms at 1 ms, present 2088 - Driver.Present.render_fence_wait (presenter) 1.1 ms at 4 ms, present 2088 - Vulkan.Acquire.acquire_fence_wait (presenter) 0.2 ms at 13522 ms, present 2236 - Vulkan.Acquire.acquire_fence_wait (presenter) 0.2 ms at 15394 ms, present 2256 - GpuMutex.wait.fill (queue worker 0x0) 0.2 ms at 4341 ms, present 2134 **Largest GPU batches** (GPU ranges inside, and the CPU slices that recorded each, inclusive) - batch 2958: 33.2 ms at 11898 ms, present 2218: GPU no ranges; recorded by Graphics.Draw (draw committer) 5.3, Graphics.Draw.draw_and_resource_release (draw committer) 3.2, Recorder.Reap (draw committer) 0.1, Recorder.Submit (draw committer) 0.0 - batch 2121: 33.2 ms at 8500 ms, present 2181: GPU no ranges; recorded by Graphics.Draw (draw committer) 4.3, Graphics.Draw.draw_and_resource_release (draw committer) 2.9, Recorder.Reap (draw committer) 0.1, Recorder.Submit (draw committer) 0.0 - batch 3736: 32.6 ms at 15084 ms, present 2252: GPU no ranges; recorded by Graphics.Draw (draw committer) 4.5, Graphics.Draw.draw_and_resource_release (draw committer) 2.9, Recorder.Reap (draw committer) 0.1, Recorder.Submit (draw committer) 0.0 ``` </details> <details> <summary>tools/trace_digest.py, this PR (run 3)</summary> ``` **seconds 100:20** from present 2105: 241 presents, frame p50 82.4 / p90 94.0 / p99 97.8 / max 104.8 ms, GPU busy 48.1 ms per present AMD Radeon RX 6700 XT, AMD proprietary driver 26.11.2 (AMD proprietary shader compiler), Windows 10.0.22621, 1920x1080, commit 5701d91506a0 (dirty), dropped: yes ```json {"commit":"5701d91506a0","dirty":true,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_PLAYGO_UNLISTED_CHUNKS":"installed","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"100: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":"PPSA28795","title":"Snoopy & The Great Mystery Club","content_version":"01.000.002","resolution":"1920x1080","window":{"spec":"seconds 100:20","first_present":2105,"ms":20062.339},"presents":241,"frame_ms":{"p50":82.411,"p90":93.99,"p99":97.842,"max":104.795},"gpu_busy_ms_per_present":48.149,"worker_busy_pct":{"queue worker 0x0":98.603},"phase_totals_ms":{"Driver.Completion":0.503,"Driver.Dispatch":176.481,"Driver.Dispatch.capture_resources":0.585,"Driver.Dispatch.decode_key_device_setup":26.457,"Driver.Dispatch.lookup_cache":3.36,"Driver.Dispatch.materialize":0.127,"Driver.Dispatch.prepared_invocation":0.093,"Driver.Draw":13485.928,"Driver.Draw.device_setup":552.665,"Driver.Draw.draw_enqueued":2298.753,"Driver.Draw.post_compile_prepare":172.805,"Driver.Draw.prepare":1122.683,"Driver.Draw.shader_compile_and_link":8484.976,"Driver.EndSubmission":0.225,"Driver.Packet":19781.228,"Driver.Packet.device_lock":73.897,"Driver.Packet.dispatch":178.958,"Driver.Packet.draw":13628.128,"Driver.Packet.execute":283.047,"Driver.Packet.flip_flush":0.437,"Driver.Packet.flush_between_packets":161.074,"Driver.Packet.memory_wait":0.006,"Driver.Packet.pipeline_drain":5143.596,"Driver.Packet.pipeline_prepare":110.526,"Driver.Packet.prepare_memory":107.496,"Driver.Packet.rendering_wait":0.315,"Driver.Present":128.848,"Driver.Present.acquire_image":62.013,"Driver.Present.device_setup":0.122,"Driver.Present.gpu_mutex_wait":4.018,"Driver.Present.inflight_wait":0.641,"Driver.Present.present_display_buffer":24.918,"Driver.Present.queue_present":32.37,"Driver.Present.release_and_callback":0.265,"Driver.Present.render_fence_wait":3.786,"Driver.Present.resize":0.442,"Driver.Present.validate":0.132,"Driver.Suspend":0.037,"GpuMutex.wait.dispatch":0.609,"GpuMutex.wait.draw":1.823,"GpuMutex.wait.end":0.469,"GpuMutex.wait.fill":92.33,"GpuMutex.wait.flush":0.605,"GpuMutex.wait.label":10.748,"GpuMutex.wait.present":3.263,"GpuMutex.wait.wait":13.53,"Graphics.Draw":10940.453,"Graphics.Draw.draw_and_resource_release":9057.941,"Graphics.Draw.index_upload":394.758,"Graphics.Draw.validate":836.438,"Graphics.Draw.vertex_upload":532.091,"Graphics.DrawWithRecipe":63.316,"Graphics.DrawWithRecipe.draw_and_resource_release":50.872,"Graphics.DrawWithRecipe.index_upload":3.802,"Graphics.DrawWithRecipe.validate":3.005,"Graphics.DrawWithRecipe.vertex_upload":4.72,"Recorder.Reap":33.682,"Recorder.Submit":129.802,"Recorder.Sync":5044.036,"Recorder.WaitSerial":2.675,"Resources.Complete":16.09,"Resources.Prepare":1.909,"Shader.DrawStage":4466.622,"Shader.DrawStage.capture_resources":2535.441,"Shader.DrawStage.materialize":1121.375,"Shader.DrawStage.prepared_invocation":751.332,"Shader.ResolveAbi":136.14,"Shader.ResolveGraphicsAbi":61.763,"Shader.ResolveGraphicsStagesAbi":122.404,"VideoOut.Flip":133.861,"VideoOut.Flip.completion_mutex_wait":0.261,"VideoOut.Flip.config_mutex_wait":0.032,"VideoOut.Flip.frame_limit":0.165,"VideoOut.Flip.notify_game":5.161,"VideoOut.Flip.present":125.459,"VideoOut.Flip.validate":0.399,"VideoOut.Flip.vblank_wait":0.246,"VideoOut.Flip.window_prepare":0.515,"VideoOut.Flip.window_title":1.423,"VideoOut.Readiness":0.678,"VideoOut.Readiness.locks_validate":0.24,"Vulkan.Acquire":61.71,"Vulkan.Acquire.acquire_fence_wait":32.236,"Vulkan.Acquire.acquire_image":28.323,"Vulkan.Acquire.fence_reset":0.669,"Vulkan.Acquire.retired_swapchains":0.364,"Vulkan.Dispatch":23.128,"Vulkan.Dispatch.command_record":7.885,"Vulkan.Dispatch.shader_resources":15.023,"Vulkan.DispatchRecipe":7.519,"Vulkan.DispatchRecipe.command_record":7.42,"Vulkan.DrawFromRecipe":64.905,"Vulkan.Present":14.256,"Vulkan.Present.command_record_scale":8.132,"Vulkan.Present.pixel_upload":0.594,"Vulkan.Present.queue_submit":5.351,"Vulkan.QueuePresent":31.907,"Vulkan.QueuePresent.queue_present":31.412,"Vulkan.Retire":3.715,"Vulkan.Retire.wait":2.474},"top_phases_ms_per_frame":{"Driver.Packet":82.08,"Driver.Packet.draw":56.548,"Driver.Draw":55.958,"Graphics.Draw":45.396,"Graphics.Draw.draw_and_resource_release":37.585,"Driver.Draw.shader_compile_and_link":35.207,"Driver.Packet.pipeline_drain":21.343,"Recorder.Sync":20.93},"owned_draw_counts":{},"graphics_track":{"Graphics.Barrier.dcc-clear":3856,"Graphics.Barrier.dcc-keys":2798,"Graphics.Barrier.dispatch-lead":723,"Graphics.Barrier.dispatch-trail":964,"Graphics.Barrier.draw":25316,"Graphics.Barrier.fill":3856,"Graphics.Barrier.label-run":13277,"Graphics.Barrier.present-blit":964,"Graphics.Barrier.staging-in":1687,"Graphics.Barrier.staging-out":723,"Graphics.Barrier.storage-writeback":6460,"Graphics.BarrierMerged.dispatch-lead":241,"Graphics.BarrierMerged.fill":1928,"Graphics.BarrierMerged.staging-in":482,"Graphics.BarrierMerged.staging-out":723,"Graphics.BarrierMerged.storage-writeback":1252,"Graphics.Copy":1928,"Graphics.Copy.bytes":402369744,"Graphics.RenderPass":9877,"Graphics.RenderPass.Close.command":4163,"Graphics.RenderPass.Close.image":2142,"Graphics.RenderPass.Close.key":478,"Graphics.RenderPass.Close.new-batch":3094,"Graphics.RenderPass.Continued":510133},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":5.918,"events_lost":670205,"totals_full":false}},"trace":"aps5-trace-5701d91506a0-309252.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: 670205 events lost; buffer full at 5918.2 ms; over the 70 of 241 frames that ended before it: busy 62.4 ms per frame (74 %), wait 0.4, largest Driver.Packet 62.8, Driver.Completion 0.0 (the thread table divides the retained slices by every frame) **Slowest frames** (largest slices inside each, inclusive) - present 2217: 104.8 ms at 9455 ms: batch (gpu) 66.3, Recorder.Sync (draw committer) 30.5, Graphics.Draw (draw committer) 23.3, Graphics.Draw.draw_and_resource_release (draw committer) 17.1 - present 2308: 101.0 ms at 16855 ms: batch (gpu) 64.4, Recorder.Sync (draw committer) 32.0, Graphics.Draw (draw committer) 26.8, Graphics.Draw.draw_and_resource_release (draw committer) 17.8 - present 2146: 97.8 ms at 3451 ms: Driver.Packet (queue worker 0x0) 78.2, batch (gpu) 63.1, Driver.Packet.draw (queue worker 0x0) 45.8, Driver.Draw (queue worker 0x0) 45.1 **Persistent spikes** (frame time above the fastest frame that separates it from a longer frame; one entry per stall, not per frame) - present 2217: 104.8 ms at 9455 ms, persistence 38.8 ms - present 2146: 97.8 ms at 3451 ms, persistence 29.5 ms - present 2105: 95.2 ms at 0 ms, persistence 29.2 ms - present 2308: 101.0 ms at 16855 ms, persistence 28.3 ms - present 2335: 95.9 ms at 19136 ms, persistence 24.2 ms **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | queue worker 0x0 | 18.2 (22 %) | 0.1 (0 %) | 65.0 | 35.4 | Driver.Packet 18.3, Driver.Completion 0.0 | | draw committer | 46.1 (55 %) | 0.0 (0 %) | 37.1 | 49.1 | Graphics.Draw 24.7, Recorder.Sync 20.9 | | presenter | 0.4 (1 %) | 0.2 (0 %) | 82.7 | 0.1 | VideoOut.Flip 0.6, Driver.Present 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 83.2 | 0.2 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 83.2 | 0.1 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 83.2 | 0.1 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 83.2 | 0.1 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 83.2 | 0.1 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 83.2 | 0.1 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 83.2 | 0.1 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 83.2 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 83.2 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 83.2 | 0.1 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 83.2 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 83.2 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 83.2 | 0.1 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsAbi 0.0 | | title | 0.0 (0 %) | 0.1 (0 %) | 83.2 | 0.0 | | | title | 0.0 (0 %) | 0.0 (0 %) | 83.2 | 0.1 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | gpu | 48.1 (58 %) | 0.0 (0 %) | 35.1 | 0.0 | batch 48.1 | **Largest slices** (ms per frame, inclusive, all threads): batch 48.1, Graphics.Draw 24.7, Recorder.Sync 20.9, Driver.Packet 18.3, Graphics.Draw.draw_and_resource_release 17.2 **Longest waits** - Driver.Present.gpu_mutex_wait (presenter) 2.2 ms at 1 ms, present 2105 - Driver.Present.render_fence_wait (presenter) 1.5 ms at 4 ms, present 2105 - Driver.WorkerWait (queue worker 0x0) 0.2 ms at 3114 ms, present 2142 - Vulkan.Acquire.acquire_fence_wait (presenter) 0.2 ms at 9203 ms, present 2214 - Vulkan.Acquire.acquire_fence_wait (presenter) 0.2 ms at 11123 ms, present 2237 **Largest GPU batches** (GPU ranges inside, and the CPU slices that recorded each, inclusive) - batch 4450: 32.7 ms at 16919 ms, present 2308: GPU no ranges; recorded by Graphics.Draw (draw committer) 8.3, Graphics.Draw.draw_and_resource_release (draw committer) 4.2, Recorder.Reap (draw committer) 0.1, Recorder.Submit (draw committer) 0.0 - batch 482: 32.5 ms at 1852 ms, present 2127: GPU no ranges; recorded by Graphics.Draw (draw committer) 7.2, Graphics.Draw.draw_and_resource_release (draw committer) 3.9, Recorder.Reap (draw committer) 0.1, Recorder.Submit (draw committer) 0.0 - batch 2670: 31.8 ms at 10339 ms, present 2227: GPU no ranges; recorded by Graphics.Draw (draw committer) 7.5, Graphics.Draw.draw_and_resource_release (draw committer) 4.0, Recorder.Reap (draw committer) 0.1, Recorder.Submit (draw committer) 0.0 ``` </details> ### 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 (the speed runs stacked #26338 only to avoid its abort) - [x] Fixes: none - [x] Unblocks: none; speeds up PPSA28795 #7382 - [x] GPUs tested: AMD Radeon RX 6700 XT, AMD driver 26.11.2, Windows 11 22621; NVIDIA GeForce RTX 4070, driver 610.88, Windows 11 26300, in [a reviewer's run with the validation layer](https://github.com/boykopovar/AnyPS5/pull/26360#issuecomment-7113734336) - [x] AI-assisted: yes
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!26360
No description provided.