perf: SuperTuxKart (PPSA69421) race at ~10 FPS on macOS: one GPU round trip per draw, and Rosetta's cost of re-protecting watched memory #24728

Open
opened 2026-11-21 00:23:52 +00:00 by Jazeupoi · 0 comments
Jazeupoi commented 2026-11-21 00:23:52 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by Jazeupoi on 2026-11-21T00:23:52Z.


Title and scene

PPSA69421 (SuperTuxKart 00.001.000), single race on Subsea (default kart, 1920x1080), seconds 40 to 60 after launch, accelerating from the start line.

What is slow or what changed

On macOS the race runs at about 10 FPS: frame p50 100 to 106 ms with the GPU busy about 20 ms per present. Measured on main 0a025bd3c6 with #17425 and #11049 merged (needed for the macOS build, local merge 367abdb9aee2). MacBook Air M4, macOS 27.0.1, MoltenVK 1.4.2, x86-64 Release under Rosetta 2.

The frame is two costs in series on the title's one render thread. The title's own logic is about 2 % of its samples.

1. One GPU round trip per draw, about 55 per frame (about 50 ms). Queue 0x0 takes about 55 submissions per frame, and the title polls a label until each one completes before it builds the next (sceKernelUsleep(1000) in a loop; it is asleep 54 % of the time). Of about 5,400 GPU batches in 20 s, 3,004 hold a single draw (GPU p50 0.19 ms). Every draw is full-scissor, so each batch is its own 1920x1080 render pass. One round trip takes about 1 ms: submit to GPU start p50 0.19 ms, GPU 0.25 ms, GPU end to the title's next packet 0.33 ms. Queue worker 0x0 waits 18.4 s of 20 s.

The labels are not the issue. With the recorder idle, WriteLabelOnGpu already writes them on the CPU (VulkanDevice.cpp:3149). Here a batch is always in flight. None of these changed the frame time (alternated runs, within the ±10 ms noise of this race):

  • APS5_NO_LABEL_BATCHING, APS5_LABEL_TRY_EACH_PACKET, APS5_LABEL_FLUSH_US=0;
  • the queue worker's 1 ms completion poll set to 200 us as on Windows (QueueWorker.cpp:219);
  • sceKernelUsleep capped at 200 us;
  • MVK_CONFIG_SYNCHRONOUS_QUEUE_SUBMITS=0 (slower) and MVK_CONFIG_VK_SEMAPHORE_SUPPORT_STYLE=2 (slower) or 3;
  • MVK_CONFIG_PREFILL_METAL_COMMAND_BUFFERS=1 (black window).

2. Writing watched memory is slow under Rosetta (about 21 ms per frame). The title fills about 43 MiB of write-watched memory per frame (a vmovntdq loop at stk+0x52210 and a rep stosl at stk+0x31fe4), which took 7,151 write-watch faults per second. A standalone x86-64 test shows that most of the cost is Rosetta's, not the faults':

48 MiB fill, shared memory mapped as direct memory is x86-64 under Rosetta arm64 native
unprotected 1.1 to 3.1 ms 0.8 ms
protected, opened by a fault handler in 64 KiB blocks (768 faults) 23 to 25 ms 3.7 ms
protected, opened in 1 MiB blocks (48 faults) 10 to 12 ms 2.1 ms
protected and unprotected whole, no fault 10.4 ms 2.1 ms

So under Rosetta each protect and unprotect cycle costs about 0.2 ms for every MiB written afterwards (five times native), and each fault about 18 us more.

What helped (local builds, alternated with the unchanged build in one series):

Change frame p50 (ms) GPU busy per present (ms)
none 106.4 / 100.2 19.5 / 22.4
FaultAheadBlock 64 KiB → 1 MiB, APS5_WRITE_WATCH_FAULT_AHEAD=256 95.4 / 95.1 18.8 / 23.2
the same, plus the GPU progress watcher polling the timeline every 20 us 88.7 / 91.4 19.8 / 15.2

The larger block cut the faults from 7,151 to 1,785 per second. I did not open a pull request for it because it touches the same fault-ahead as #20126. The polling watcher replaces vkWaitSemaphoresKHR in Recorder::ProgressWatcher with vkGetSemaphoreCounterValueKHR and a 20 us sleep. MoltenVK's host wait goes through an MTLSharedEventListener callback and then a condition variable. On its own the change gave 103.3 against 106.6 ms over 9 alternated pairs, which is within the noise. Merging adjacent pages in Watch::untrap (one mprotect per page now) cut mprotect calls by 69 % but did not change the frame time.

What remains looks like a design question, not a setting. The cost left in part 2 comes from re-protecting buffers that the title rewrites in full every frame. Buffers like these could be left unwatched and uploaded each time, but I have not tried that.

Summary lines

6 lines: none, 1 MiB block, 1 MiB block + polling watcher, alternated
{"commit":"367abdb9aee2","dirty":true,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"40:20","APS5_WATCH_POLL_US":"20","APS5_WRITE_WATCH_FAULT_AHEAD":"256"},"gpu":"Apple M4","driver":"MoltenVK 1.4.2","os":"Darwin 27.0.0","cpu":"VirtualApple @ 2.50GHz","cpu_threads":10,"memory_mib":16384,"title_id":"PPSA69421","title":"SuperTuxKart","content_version":"00.001.000","resolution":"1920x1080","window":{"spec":"seconds 40:20","first_present":455,"ms":20039.674},"presents":225,"frame_ms":{"p50":88.731,"p90":95.433,"p99":106.328,"max":109.047},"gpu_busy_ms_per_present":19.77,"worker_busy_pct":{"queue worker 0x0":8.367},"phase_totals_ms":{"Driver.Completion":1.549,"Driver.Draw":774.803,"Driver.Draw.device_setup":29.935,"Driver.Draw.draw_enqueued":215.249,"Driver.Draw.post_compile_prepare":23.739,"Driver.Draw.prepare":54.403,"Driver.Draw.shader_compile_and_link":436.952,"Driver.EndSubmission":5.89,"Driver.Packet":1669.18,"Driver.Packet.device_lock":11.041,"Driver.Packet.draw":780.102,"Driver.Packet.execute":102.905,"Driver.Packet.flip_flush":680.969,"Driver.Packet.flush_between_packets":16.459,"Driver.Packet.pipeline_drain":14.33,"Driver.Packet.pipeline_prepare":16.727,"Driver.Packet.prepare_memory":14.601,"Driver.Present":440.036,"Driver.Present.acquire_image":4.61,"Driver.Present.device_setup":0.108,"Driver.Present.gpu_mutex_wait":0.255,"Driver.Present.inflight_wait":0.466,"Driver.Present.present_display_buffer":24.528,"Driver.Present.queue_present":2.643,"Driver.Present.release_and_callback":0.175,"Driver.Present.render_fence_wait":403.289,"Driver.Present.resize":3.837,"Driver.Present.validate":0.043,"Driver.Suspend":0.035,"Graphics.Draw":1054.654,"Graphics.Draw.draw_and_resource_release":953.46,"Graphics.Draw.index_upload":60.348,"Graphics.Draw.validate":28.879,"Graphics.Draw.vertex_upload":3.301,"Graphics.DrawWithRecipe":383.336,"Graphics.DrawWithRecipe.draw_and_resource_release":356.09,"Graphics.DrawWithRecipe.index_upload":19.723,"Graphics.DrawWithRecipe.validate":3.775,"Graphics.DrawWithRecipe.vertex_upload":1.546,"Recorder.Reap":30.475,"Recorder.Submit":1608.354,"Recorder.Sync":27.872,"Resources.Complete":4.71,"Resources.Prepare":5.972,"Shader.DrawStage":249.6,"Shader.DrawStage.capture_resources":167.216,"Shader.DrawStage.materialize":44.813,"Shader.DrawStage.prepared_invocation":35.401,"Shader.PrepareArtifact":2.001,"Shader.Register":0.113,"Shader.ResolveAbi":0.011,"Shader.ResolveGraphicsAbi":0.001,"Shader.ResolveGraphicsStagesAbi":0.022,"VideoOut.Flip":458.154,"VideoOut.Flip.completion_mutex_wait":0.259,"VideoOut.Flip.config_mutex_wait":0.014,"VideoOut.Flip.frame_limit":0.093,"VideoOut.Flip.notify_game":2.094,"VideoOut.Flip.present":439.0,"VideoOut.Flip.validate":0.141,"VideoOut.Flip.vblank_wait":0.239,"VideoOut.Flip.window_prepare":4.655,"VideoOut.Flip.window_title":11.587,"VideoOut.Readiness":0.422,"VideoOut.Readiness.locks_validate":0.229,"Vulkan.Acquire":4.456,"Vulkan.Acquire.acquire_fence_wait":0.276,"Vulkan.Acquire.acquire_image":3.724,"Vulkan.Acquire.fence_reset":0.307,"Vulkan.Acquire.retired_swapchains":0.091,"Vulkan.DrawFromRecipe":386.203,"Vulkan.Present":22.869,"Vulkan.Present.command_record_scale":6.258,"Vulkan.Present.pixel_upload":0.441,"Vulkan.Present.queue_submit":16.013,"Vulkan.QueuePresent":2.454,"Vulkan.QueuePresent.queue_present":2.331,"Vulkan.Retire":403.258,"Vulkan.Retire.wait":399.755},"top_phases_ms_per_frame":{"Driver.Packet":7.419,"Recorder.Submit":7.148,"Graphics.Draw":4.687,"Graphics.Draw.draw_and_resource_release":4.238,"Driver.Packet.draw":3.467,"Driver.Draw":3.444,"Driver.Packet.flip_flush":3.027,"VideoOut.Flip":2.036},"owned_draw_counts":{},"graphics_track":{"Graphics.Barrier.draw":23552,"Graphics.Barrier.label-run":29892,"Graphics.Barrier.present-blit":450,"Graphics.Barrier.storage-upload":2702,"Graphics.Barrier.storage-writeback":1350,"Graphics.Copy":2,"Graphics.Copy.bytes":458240,"Graphics.RenderPass":12001,"Graphics.RenderPass.Close.image":675,"Graphics.RenderPass.Close.new-batch":11326,"Graphics.RenderPass.Continued":18160},"trace_dropped":false}
{"commit":"367abdb9aee2","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"40:20"},"gpu":"Apple M4","driver":"MoltenVK 1.4.2","os":"Darwin 27.0.0","cpu":"VirtualApple @ 2.50GHz","cpu_threads":10,"memory_mib":16384,"title_id":"PPSA69421","title":"SuperTuxKart","content_version":"00.001.000","resolution":"1920x1080","window":{"spec":"seconds 40:20","first_present":431,"ms":20071.213},"presents":184,"frame_ms":{"p50":106.415,"p90":124.704,"p99":136.742,"max":137.949},"gpu_busy_ms_per_present":19.491,"worker_busy_pct":{"queue worker 0x0":7.233},"phase_totals_ms":{"Driver.Completion":1.245,"Driver.Draw":702.528,"Driver.Draw.device_setup":26.18,"Driver.Draw.draw_enqueued":193.054,"Driver.Draw.post_compile_prepare":20.195,"Driver.Draw.prepare":44.163,"Driver.Draw.shader_compile_and_link":406.579,"Driver.EndSubmission":5.149,"Driver.Packet":1445.252,"Driver.Packet.device_lock":9.492,"Driver.Packet.draw":707.216,"Driver.Packet.execute":87.686,"Driver.Packet.flip_flush":559.699,"Driver.Packet.flush_between_packets":14.134,"Driver.Packet.pipeline_drain":12.366,"Driver.Packet.pipeline_prepare":14.102,"Driver.Packet.prepare_memory":12.498,"Driver.Present":355.169,"Driver.Present.acquire_image":2.902,"Driver.Present.device_setup":0.098,"Driver.Present.gpu_mutex_wait":0.205,"Driver.Present.inflight_wait":0.353,"Driver.Present.present_display_buffer":19.541,"Driver.Present.queue_present":2.129,"Driver.Present.release_and_callback":0.141,"Driver.Present.render_fence_wait":326.637,"Driver.Present.resize":3.052,"Driver.Present.validate":0.034,"Driver.Suspend":0.034,"Graphics.Draw":1021.751,"Graphics.Draw.draw_and_resource_release":930.694,"Graphics.Draw.index_upload":51.345,"Graphics.Draw.validate":28.163,"Graphics.Draw.vertex_upload":2.916,"Graphics.DrawWithRecipe":273.262,"Graphics.DrawWithRecipe.draw_and_resource_release":246.7,"Graphics.DrawWithRecipe.index_upload":21.522,"Graphics.DrawWithRecipe.validate":2.604,"Graphics.DrawWithRecipe.vertex_upload":1.063,"Recorder.Reap":26.627,"Recorder.Submit":1414.443,"Recorder.Sync":22.781,"Resources.Complete":4.168,"Resources.Prepare":5.159,"Shader.DrawStage":243.907,"Shader.DrawStage.capture_resources":161.004,"Shader.DrawStage.materialize":43.845,"Shader.DrawStage.prepared_invocation":36.835,"Shader.PrepareArtifact":2.48,"Shader.Register":0.113,"Shader.ResolveAbi":0.011,"Shader.ResolveGraphicsAbi":0.001,"Shader.ResolveGraphicsStagesAbi":0.023,"VideoOut.Flip":370.712,"VideoOut.Flip.completion_mutex_wait":0.194,"VideoOut.Flip.config_mutex_wait":0.011,"VideoOut.Flip.frame_limit":0.097,"VideoOut.Flip.notify_game":1.575,"VideoOut.Flip.present":353.939,"VideoOut.Flip.validate":0.112,"VideoOut.Flip.vblank_wait":0.161,"VideoOut.Flip.window_prepare":4.103,"VideoOut.Flip.window_title":10.465,"VideoOut.Readiness":0.326,"VideoOut.Readiness.locks_validate":0.169,"Vulkan.Acquire":2.78,"Vulkan.Acquire.acquire_fence_wait":0.146,"Vulkan.Acquire.acquire_image":2.287,"Vulkan.Acquire.fence_reset":0.226,"Vulkan.Acquire.retired_swapchains":0.07,"Vulkan.DrawFromRecipe":275.231,"Vulkan.Present":18.262,"Vulkan.Present.command_record_scale":4.862,"Vulkan.Present.pixel_upload":0.343,"Vulkan.Present.queue_submit":12.916,"Vulkan.QueuePresent":1.96,"Vulkan.QueuePresent.queue_present":1.856,"Vulkan.Retire":326.613,"Vulkan.Retire.wait":323.935},"top_phases_ms_per_frame":{"Driver.Packet":7.855,"Recorder.Submit":7.687,"Graphics.Draw":5.553,"Graphics.Draw.draw_and_resource_release":5.058,"Driver.Packet.draw":3.844,"Driver.Draw":3.818,"Driver.Packet.flip_flush":3.042,"Driver.Draw.shader_compile_and_link":2.21},"owned_draw_counts":{},"graphics_track":{"Graphics.Barrier.draw":21042,"Graphics.Barrier.label-run":27172,"Graphics.Barrier.present-blit":368,"Graphics.Barrier.storage-upload":2216,"Graphics.Barrier.storage-writeback":1104,"Graphics.Copy":2,"Graphics.Copy.bytes":458240,"Graphics.RenderPass":10705,"Graphics.RenderPass.Close.command":2,"Graphics.RenderPass.Close.image":552,"Graphics.RenderPass.Close.new-batch":10151,"Graphics.RenderPass.Continued":15631},"trace_dropped":false}
{"commit":"367abdb9aee2","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"40:20","APS5_WRITE_WATCH_FAULT_AHEAD":"256"},"gpu":"Apple M4","driver":"MoltenVK 1.4.2","os":"Darwin 27.0.0","cpu":"VirtualApple @ 2.50GHz","cpu_threads":10,"memory_mib":16384,"title_id":"PPSA69421","title":"SuperTuxKart","content_version":"00.001.000","resolution":"1920x1080","window":{"spec":"seconds 40:20","first_present":438,"ms":20001.083},"presents":209,"frame_ms":{"p50":95.366,"p90":111.478,"p99":120.001,"max":127.14},"gpu_busy_ms_per_present":18.79,"worker_busy_pct":{"queue worker 0x0":8.146},"phase_totals_ms":{"Driver.Completion":1.422,"Driver.Draw":788.769,"Driver.Draw.device_setup":28.629,"Driver.Draw.draw_enqueued":220.173,"Driver.Draw.post_compile_prepare":23.147,"Driver.Draw.prepare":54.702,"Driver.Draw.shader_compile_and_link":448.575,"Driver.EndSubmission":5.531,"Driver.Packet":1622.361,"Driver.Packet.device_lock":10.85,"Driver.Packet.draw":794.186,"Driver.Packet.execute":100.101,"Driver.Packet.flip_flush":625.103,"Driver.Packet.flush_between_packets":16.053,"Driver.Packet.pipeline_drain":14.135,"Driver.Packet.pipeline_prepare":16.277,"Driver.Packet.prepare_memory":14.264,"Driver.Present":393.991,"Driver.Present.acquire_image":3.27,"Driver.Present.device_setup":0.107,"Driver.Present.gpu_mutex_wait":0.228,"Driver.Present.inflight_wait":0.423,"Driver.Present.present_display_buffer":22.122,"Driver.Present.queue_present":2.414,"Driver.Present.release_and_callback":0.159,"Driver.Present.render_fence_wait":361.751,"Driver.Present.resize":3.397,"Driver.Present.validate":0.037,"Driver.Suspend":0.037,"Graphics.Draw":960.768,"Graphics.Draw.draw_and_resource_release":871.128,"Graphics.Draw.index_upload":47.314,"Graphics.Draw.validate":30.068,"Graphics.Draw.vertex_upload":3.032,"Graphics.DrawWithRecipe":499.46,"Graphics.DrawWithRecipe.draw_and_resource_release":467.597,"Graphics.DrawWithRecipe.index_upload":24.168,"Graphics.DrawWithRecipe.validate":3.675,"Graphics.DrawWithRecipe.vertex_upload":1.628,"Recorder.Reap":28.382,"Recorder.Submit":1535.68,"Recorder.Sync":25.921,"Resources.Complete":4.571,"Resources.Prepare":5.777,"Shader.DrawStage":263.786,"Shader.DrawStage.capture_resources":175.054,"Shader.DrawStage.materialize":46.912,"Shader.DrawStage.prepared_invocation":39.531,"Shader.PrepareArtifact":3.556,"Shader.Register":0.103,"Shader.ResolveAbi":0.011,"Shader.ResolveGraphicsAbi":0.001,"Shader.ResolveGraphicsStagesAbi":0.023,"VideoOut.Flip":410.758,"VideoOut.Flip.completion_mutex_wait":0.208,"VideoOut.Flip.config_mutex_wait":0.013,"VideoOut.Flip.frame_limit":0.086,"VideoOut.Flip.notify_game":1.71,"VideoOut.Flip.present":392.974,"VideoOut.Flip.validate":0.167,"VideoOut.Flip.vblank_wait":0.18,"VideoOut.Flip.window_prepare":4.695,"VideoOut.Flip.window_title":10.662,"VideoOut.Readiness":0.364,"VideoOut.Readiness.locks_validate":0.188,"Vulkan.Acquire":3.134,"Vulkan.Acquire.acquire_fence_wait":0.167,"Vulkan.Acquire.acquire_image":2.562,"Vulkan.Acquire.fence_reset":0.26,"Vulkan.Acquire.retired_swapchains":0.09,"Vulkan.DrawFromRecipe":502.297,"Vulkan.Present":20.649,"Vulkan.Present.command_record_scale":5.441,"Vulkan.Present.pixel_upload":0.388,"Vulkan.Present.queue_submit":14.657,"Vulkan.QueuePresent":2.215,"Vulkan.QueuePresent.queue_present":2.099,"Vulkan.Retire":361.727,"Vulkan.Retire.wait":358.702},"top_phases_ms_per_frame":{"Driver.Packet":7.762,"Recorder.Submit":7.348,"Graphics.Draw":4.597,"Graphics.Draw.draw_and_resource_release":4.168,"Driver.Packet.draw":3.8,"Driver.Draw":3.774,"Driver.Packet.flip_flush":2.991,"Vulkan.DrawFromRecipe":2.403},"owned_draw_counts":{},"graphics_track":{"Graphics.Barrier.draw":23796,"Graphics.Barrier.label-run":30578,"Graphics.Barrier.present-blit":418,"Graphics.Barrier.storage-upload":2512,"Graphics.Barrier.storage-writeback":1254,"Graphics.Copy":4,"Graphics.Copy.bytes":916480,"Graphics.RenderPass":12107,"Graphics.RenderPass.Close.command":1,"Graphics.RenderPass.Close.image":627,"Graphics.RenderPass.Close.new-batch":11479,"Graphics.RenderPass.Continued":18356},"trace_dropped":false}
{"commit":"367abdb9aee2","dirty":true,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"40:20","APS5_WATCH_POLL_US":"20","APS5_WRITE_WATCH_FAULT_AHEAD":"256"},"gpu":"Apple M4","driver":"MoltenVK 1.4.2","os":"Darwin 27.0.0","cpu":"VirtualApple @ 2.50GHz","cpu_threads":10,"memory_mib":16384,"title_id":"PPSA69421","title":"SuperTuxKart","content_version":"00.001.000","resolution":"1920x1080","window":{"spec":"seconds 40:20","first_present":458,"ms":20069.067},"presents":214,"frame_ms":{"p50":91.36,"p90":113.634,"p99":117.148,"max":121.198},"gpu_busy_ms_per_present":15.232,"worker_busy_pct":{"queue worker 0x0":8.033},"phase_totals_ms":{"Driver.Completion":1.366,"Driver.Draw":763.191,"Driver.Draw.device_setup":28.292,"Driver.Draw.draw_enqueued":213.877,"Driver.Draw.post_compile_prepare":22.76,"Driver.Draw.prepare":53.274,"Driver.Draw.shader_compile_and_link":430.813,"Driver.EndSubmission":5.599,"Driver.Packet":1605.16,"Driver.Packet.device_lock":10.883,"Driver.Packet.draw":768.612,"Driver.Packet.execute":100.463,"Driver.Packet.flip_flush":631.309,"Driver.Packet.flush_between_packets":16.157,"Driver.Packet.pipeline_drain":14.049,"Driver.Packet.pipeline_prepare":16.315,"Driver.Packet.prepare_memory":14.314,"Driver.Present":404.157,"Driver.Present.acquire_image":3.674,"Driver.Present.device_setup":0.098,"Driver.Present.gpu_mutex_wait":0.235,"Driver.Present.inflight_wait":0.423,"Driver.Present.present_display_buffer":22.406,"Driver.Present.queue_present":2.422,"Driver.Present.release_and_callback":0.161,"Driver.Present.render_fence_wait":370.895,"Driver.Present.resize":3.726,"Driver.Present.validate":0.043,"Driver.Suspend":0.034,"Graphics.Draw":1029.843,"Graphics.Draw.draw_and_resource_release":929.326,"Graphics.Draw.index_upload":58.192,"Graphics.Draw.validate":29.92,"Graphics.Draw.vertex_upload":2.879,"Graphics.DrawWithRecipe":373.19,"Graphics.DrawWithRecipe.draw_and_resource_release":347.044,"Graphics.DrawWithRecipe.index_upload":19.212,"Graphics.DrawWithRecipe.validate":3.411,"Graphics.DrawWithRecipe.vertex_upload":1.559,"Recorder.Reap":29.494,"Recorder.Submit":1597.318,"Recorder.Sync":25.171,"Resources.Complete":4.553,"Resources.Prepare":5.705,"Shader.DrawStage":252.64,"Shader.DrawStage.capture_resources":168.475,"Shader.DrawStage.materialize":45.147,"Shader.DrawStage.prepared_invocation":36.813,"Shader.PrepareArtifact":2.424,"Shader.Register":0.108,"Shader.ResolveAbi":0.011,"Shader.ResolveGraphicsAbi":0.001,"Shader.ResolveGraphicsStagesAbi":0.022,"VideoOut.Flip":420.872,"VideoOut.Flip.completion_mutex_wait":0.211,"VideoOut.Flip.config_mutex_wait":0.022,"VideoOut.Flip.frame_limit":0.09,"VideoOut.Flip.notify_game":2.021,"VideoOut.Flip.present":402.478,"VideoOut.Flip.validate":0.131,"VideoOut.Flip.vblank_wait":0.272,"VideoOut.Flip.window_prepare":4.773,"VideoOut.Flip.window_title":10.82,"VideoOut.Readiness":0.374,"VideoOut.Readiness.locks_validate":0.184,"Vulkan.Acquire":3.533,"Vulkan.Acquire.acquire_fence_wait":0.247,"Vulkan.Acquire.acquire_image":2.872,"Vulkan.Acquire.fence_reset":0.259,"Vulkan.Acquire.retired_swapchains":0.08,"Vulkan.DrawFromRecipe":375.859,"Vulkan.Present":20.893,"Vulkan.Present.command_record_scale":5.836,"Vulkan.Present.pixel_upload":0.401,"Vulkan.Present.queue_submit":14.512,"Vulkan.QueuePresent":2.248,"Vulkan.QueuePresent.queue_present":2.133,"Vulkan.Retire":370.878,"Vulkan.Retire.wait":367.741},"top_phases_ms_per_frame":{"Driver.Packet":7.501,"Recorder.Submit":7.464,"Graphics.Draw":4.812,"Graphics.Draw.draw_and_resource_release":4.343,"Driver.Packet.draw":3.592,"Driver.Draw":3.566,"Driver.Packet.flip_flush":2.95,"Driver.Draw.shader_compile_and_link":2.013},"owned_draw_counts":{},"graphics_track":{"Graphics.Barrier.draw":24970,"Graphics.Barrier.label-run":32334,"Graphics.Barrier.present-blit":428,"Graphics.Barrier.storage-upload":2576,"Graphics.Barrier.storage-writeback":1284,"Graphics.Copy":1,"Graphics.Copy.bytes":360192,"Graphics.RenderPass":12699,"Graphics.RenderPass.Close.command":1,"Graphics.RenderPass.Close.image":642,"Graphics.RenderPass.Close.new-batch":12056,"Graphics.RenderPass.Continued":16793},"trace_dropped":false}
{"commit":"367abdb9aee2","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"40:20","APS5_WRITE_WATCH_FAULT_AHEAD":"256"},"gpu":"Apple M4","driver":"MoltenVK 1.4.2","os":"Darwin 27.0.0","cpu":"VirtualApple @ 2.50GHz","cpu_threads":10,"memory_mib":16384,"title_id":"PPSA69421","title":"SuperTuxKart","content_version":"00.001.000","resolution":"1920x1080","window":{"spec":"seconds 40:20","first_present":428,"ms":20034.019},"presents":208,"frame_ms":{"p50":95.078,"p90":115.023,"p99":127.388,"max":167.199},"gpu_busy_ms_per_present":23.19,"worker_busy_pct":{"queue worker 0x0":8.727},"phase_totals_ms":{"Driver.Completion":1.646,"Driver.Draw":900.223,"Driver.Draw.device_setup":32.458,"Driver.Draw.draw_enqueued":246.668,"Driver.Draw.post_compile_prepare":23.701,"Driver.Draw.prepare":52.286,"Driver.Draw.shader_compile_and_link":530.495,"Driver.EndSubmission":6.124,"Driver.Packet":1740.509,"Driver.Packet.device_lock":10.459,"Driver.Packet.draw":906.245,"Driver.Packet.execute":102.482,"Driver.Packet.flip_flush":627.171,"Driver.Packet.flush_between_packets":16.37,"Driver.Packet.memory_wait":0.011,"Driver.Packet.pipeline_drain":13.636,"Driver.Packet.pipeline_prepare":16.172,"Driver.Packet.prepare_memory":14.398,"Driver.Present":402.012,"Driver.Present.acquire_image":4.198,"Driver.Present.device_setup":0.117,"Driver.Present.gpu_mutex_wait":0.251,"Driver.Present.inflight_wait":0.452,"Driver.Present.present_display_buffer":25.103,"Driver.Present.queue_present":2.686,"Driver.Present.release_and_callback":0.242,"Driver.Present.render_fence_wait":365.25,"Driver.Present.resize":3.581,"Driver.Present.validate":0.045,"Driver.Suspend":0.041,"Graphics.Draw":1219.816,"Graphics.Draw.draw_and_resource_release":1102.127,"Graphics.Draw.index_upload":64.462,"Graphics.Draw.validate":37.279,"Graphics.Draw.vertex_upload":4.149,"Graphics.DrawWithRecipe":338.463,"Graphics.DrawWithRecipe.draw_and_resource_release":318.279,"Graphics.DrawWithRecipe.index_upload":15.019,"Graphics.DrawWithRecipe.validate":2.618,"Graphics.DrawWithRecipe.vertex_upload":1.299,"Recorder.Reap":36.15,"Recorder.Submit":1685.338,"Recorder.Sync":30.934,"Resources.Complete":4.669,"Resources.Prepare":5.896,"Shader.DrawStage":316.9,"Shader.DrawStage.capture_resources":210.963,"Shader.DrawStage.materialize":56.391,"Shader.DrawStage.prepared_invocation":46.755,"Shader.PrepareArtifact":2.443,"Shader.Register":0.104,"Shader.ResolveAbi":0.01,"Shader.ResolveGraphicsAbi":0.001,"Shader.ResolveGraphicsStagesAbi":0.024,"VideoOut.Flip":419.856,"VideoOut.Flip.completion_mutex_wait":0.247,"VideoOut.Flip.config_mutex_wait":0.013,"VideoOut.Flip.frame_limit":0.117,"VideoOut.Flip.notify_game":1.977,"VideoOut.Flip.present":401.128,"VideoOut.Flip.validate":0.158,"VideoOut.Flip.vblank_wait":0.196,"VideoOut.Flip.window_prepare":4.432,"VideoOut.Flip.window_title":11.465,"VideoOut.Readiness":0.437,"VideoOut.Readiness.locks_validate":0.245,"Vulkan.Acquire":4.03,"Vulkan.Acquire.acquire_fence_wait":0.187,"Vulkan.Acquire.acquire_image":3.393,"Vulkan.Acquire.fence_reset":0.3,"Vulkan.Acquire.retired_swapchains":0.09,"Vulkan.DrawFromRecipe":340.291,"Vulkan.Present":23.355,"Vulkan.Present.command_record_scale":6.164,"Vulkan.Present.pixel_upload":0.436,"Vulkan.Present.queue_submit":16.587,"Vulkan.QueuePresent":2.48,"Vulkan.QueuePresent.queue_present":2.354,"Vulkan.Retire":365.191,"Vulkan.Retire.wait":361.58},"top_phases_ms_per_frame":{"Driver.Packet":8.368,"Recorder.Submit":8.103,"Graphics.Draw":5.864,"Graphics.Draw.draw_and_resource_release":5.299,"Driver.Packet.draw":4.357,"Driver.Draw":4.328,"Driver.Packet.flip_flush":3.015,"Driver.Draw.shader_compile_and_link":2.55},"owned_draw_counts":{},"graphics_track":{"Graphics.Barrier.draw":23448,"Graphics.Barrier.label-run":30144,"Graphics.Barrier.present-blit":416,"Graphics.Barrier.storage-upload":2498,"Graphics.Barrier.storage-writeback":1248,"Graphics.Copy":2,"Graphics.Copy.bytes":458240,"Graphics.RenderPass":11932,"Graphics.RenderPass.Close.image":624,"Graphics.RenderPass.Close.new-batch":11308,"Graphics.RenderPass.Continued":16515},"trace_dropped":false}
{"commit":"367abdb9aee2","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"40:20"},"gpu":"Apple M4","driver":"MoltenVK 1.4.2","os":"Darwin 27.0.0","cpu":"VirtualApple @ 2.50GHz","cpu_threads":10,"memory_mib":16384,"title_id":"PPSA69421","title":"SuperTuxKart","content_version":"00.001.000","resolution":"1920x1080","window":{"spec":"seconds 40:20","first_present":378,"ms":20067.244},"presents":196,"frame_ms":{"p50":100.204,"p90":115.32,"p99":131.224,"max":142.076},"gpu_busy_ms_per_present":22.439,"worker_busy_pct":{"queue worker 0x0":8.003},"phase_totals_ms":{"Driver.Completion":1.473,"Driver.Draw":797.565,"Driver.Draw.device_setup":31.256,"Driver.Draw.draw_enqueued":218.805,"Driver.Draw.post_compile_prepare":22.474,"Driver.Draw.prepare":48.629,"Driver.Draw.shader_compile_and_link":462.314,"Driver.EndSubmission":6.134,"Driver.Packet":1598.322,"Driver.Packet.device_lock":10.05,"Driver.Packet.draw":803.202,"Driver.Packet.execute":95.423,"Driver.Packet.flip_flush":599.872,"Driver.Packet.flush_between_packets":15.559,"Driver.Packet.pipeline_drain":13.304,"Driver.Packet.pipeline_prepare":15.71,"Driver.Packet.prepare_memory":13.715,"Driver.Present":372.33,"Driver.Present.acquire_image":3.865,"Driver.Present.device_setup":0.109,"Driver.Present.gpu_mutex_wait":0.237,"Driver.Present.inflight_wait":0.441,"Driver.Present.present_display_buffer":23.194,"Driver.Present.queue_present":2.544,"Driver.Present.release_and_callback":0.164,"Driver.Present.render_fence_wait":338.439,"Driver.Present.resize":3.202,"Driver.Present.validate":0.053,"Driver.Suspend":0.037,"Graphics.Draw":1086.574,"Graphics.Draw.draw_and_resource_release":980.175,"Graphics.Draw.index_upload":59.84,"Graphics.Draw.validate":32.319,"Graphics.Draw.vertex_upload":3.91,"Graphics.DrawWithRecipe":290.151,"Graphics.DrawWithRecipe.draw_and_resource_release":267.613,"Graphics.DrawWithRecipe.index_upload":16.297,"Graphics.DrawWithRecipe.validate":3.073,"Graphics.DrawWithRecipe.vertex_upload":1.353,"Recorder.Reap":31.51,"Recorder.Submit":1539.776,"Recorder.Sync":30.903,"Resources.Complete":4.589,"Resources.Prepare":11.147,"Shader.DrawStage":276.702,"Shader.DrawStage.capture_resources":187.287,"Shader.DrawStage.materialize":47.851,"Shader.DrawStage.prepared_invocation":39.093,"Shader.PrepareArtifact":2.186,"Shader.Register":0.103,"Shader.ResolveAbi":0.011,"Shader.ResolveGraphicsAbi":0.001,"Shader.ResolveGraphicsStagesAbi":0.023,"VideoOut.Flip":389.242,"VideoOut.Flip.completion_mutex_wait":0.296,"VideoOut.Flip.config_mutex_wait":0.013,"VideoOut.Flip.frame_limit":0.083,"VideoOut.Flip.notify_game":1.709,"VideoOut.Flip.present":371.188,"VideoOut.Flip.validate":0.138,"VideoOut.Flip.vblank_wait":0.186,"VideoOut.Flip.window_prepare":4.305,"VideoOut.Flip.window_title":11.278,"VideoOut.Readiness":0.37,"VideoOut.Readiness.locks_validate":0.185,"Vulkan.Acquire":3.721,"Vulkan.Acquire.acquire_fence_wait":0.176,"Vulkan.Acquire.acquire_image":3.141,"Vulkan.Acquire.fence_reset":0.275,"Vulkan.Acquire.retired_swapchains":0.075,"Vulkan.DrawFromRecipe":292.395,"Vulkan.Present":21.704,"Vulkan.Present.command_record_scale":5.771,"Vulkan.Present.pixel_upload":0.402,"Vulkan.Present.queue_submit":15.352,"Vulkan.QueuePresent":2.34,"Vulkan.QueuePresent.queue_present":2.222,"Vulkan.Retire":338.415,"Vulkan.Retire.wait":335.29},"top_phases_ms_per_frame":{"Driver.Packet":8.155,"Recorder.Submit":7.856,"Graphics.Draw":5.544,"Graphics.Draw.draw_and_resource_release":5.001,"Driver.Packet.draw":4.098,"Driver.Draw":4.069,"Driver.Packet.flip_flush":3.061,"Driver.Draw.shader_compile_and_link":2.359},"owned_draw_counts":{},"graphics_track":{"Graphics.Barrier.draw":21918,"Graphics.Barrier.label-run":28134,"Graphics.Barrier.present-blit":392,"Graphics.Barrier.storage-upload":2354,"Graphics.Barrier.storage-writeback":1176,"Graphics.Copy":3,"Graphics.Copy.bytes":818432,"Graphics.RenderPass":11155,"Graphics.RenderPass.Close.command":1,"Graphics.RenderPass.Close.image":588,"Graphics.RenderPass.Close.new-batch":10566,"Graphics.RenderPass.Continued":16456},"trace_dropped":false}

dirty is true because those builds carry the local changes above.

Traces

Capture

  • The caches were warm (the scene ran once and the title was restarted)
  • No other APS5_TRACE_* or APS5_PROFILE_* switch was set and the log was not redirected: no other switch was set, but the run script redirected stdout to a file.
  • Captures compared here come from the same machine, scene and settings

Input came from APS5_PAD_INPUT_FILE. The fault, mprotect and sleep counts come from separate runs of the same scene with a small DYLD_INSERT_LIBRARIES library.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:6522106585 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/24728). Originally posted by [Jazeupoi](https://github.com/Jazeupoi) on 2026-11-21T00:23:52Z. --- ### Title and scene PPSA69421 (SuperTuxKart 00.001.000), single race on Subsea (default kart, 1920x1080), seconds 40 to 60 after launch, accelerating from the start line. ### What is slow or what changed On macOS the race runs at about 10 FPS: frame p50 100 to 106 ms with the GPU busy about 20 ms per present. Measured on `main` `0a025bd3c6` with #17425 and #11049 merged (needed for the macOS build, local merge `367abdb9aee2`). MacBook Air M4, macOS 27.0.1, MoltenVK 1.4.2, x86-64 Release under Rosetta 2. The frame is two costs in series on the title's one render thread. The title's own logic is about 2 % of its samples. **1. One GPU round trip per draw, about 55 per frame (about 50 ms).** Queue 0x0 takes about 55 submissions per frame, and the title polls a label until each one completes before it builds the next (`sceKernelUsleep(1000)` in a loop; it is asleep 54 % of the time). Of about 5,400 GPU batches in 20 s, 3,004 hold a single draw (GPU p50 0.19 ms). Every draw is full-scissor, so each batch is its own 1920x1080 render pass. One round trip takes about 1 ms: submit to GPU start p50 0.19 ms, GPU 0.25 ms, GPU end to the title's next packet 0.33 ms. Queue worker 0x0 waits 18.4 s of 20 s. The labels are not the issue. With the recorder idle, `WriteLabelOnGpu` already writes them on the CPU (`VulkanDevice.cpp:3149`). Here a batch is always in flight. None of these changed the frame time (alternated runs, within the ±10 ms noise of this race): - `APS5_NO_LABEL_BATCHING`, `APS5_LABEL_TRY_EACH_PACKET`, `APS5_LABEL_FLUSH_US=0`; - the queue worker's 1 ms completion poll set to 200 us as on Windows (`QueueWorker.cpp:219`); - `sceKernelUsleep` capped at 200 us; - `MVK_CONFIG_SYNCHRONOUS_QUEUE_SUBMITS=0` (slower) and `MVK_CONFIG_VK_SEMAPHORE_SUPPORT_STYLE=2` (slower) or `3`; - `MVK_CONFIG_PREFILL_METAL_COMMAND_BUFFERS=1` (black window). **2. Writing watched memory is slow under Rosetta (about 21 ms per frame).** The title fills about 43 MiB of write-watched memory per frame (a `vmovntdq` loop at `stk+0x52210` and a `rep stosl` at `stk+0x31fe4`), which took 7,151 write-watch faults per second. A standalone x86-64 test shows that most of the cost is Rosetta's, not the faults': | 48 MiB fill, shared memory mapped as direct memory is | x86-64 under Rosetta | arm64 native | |---|---|---| | unprotected | 1.1 to 3.1 ms | 0.8 ms | | protected, opened by a fault handler in 64 KiB blocks (768 faults) | 23 to 25 ms | 3.7 ms | | protected, opened in 1 MiB blocks (48 faults) | 10 to 12 ms | 2.1 ms | | protected and unprotected whole, no fault | 10.4 ms | 2.1 ms | So under Rosetta each protect and unprotect cycle costs about 0.2 ms for every MiB written afterwards (five times native), and each fault about 18 us more. **What helped (local builds, alternated with the unchanged build in one series):** | Change | frame p50 (ms) | GPU busy per present (ms) | |---|---|---| | none | 106.4 / 100.2 | 19.5 / 22.4 | | `FaultAheadBlock` 64 KiB → 1 MiB, `APS5_WRITE_WATCH_FAULT_AHEAD=256` | 95.4 / 95.1 | 18.8 / 23.2 | | the same, plus the GPU progress watcher polling the timeline every 20 us | **88.7 / 91.4** | 19.8 / 15.2 | The larger block cut the faults from 7,151 to 1,785 per second. I did not open a pull request for it because it touches the same fault-ahead as #20126. The polling watcher replaces `vkWaitSemaphoresKHR` in `Recorder::ProgressWatcher` with `vkGetSemaphoreCounterValueKHR` and a 20 us sleep. MoltenVK's host wait goes through an `MTLSharedEventListener` callback and then a condition variable. On its own the change gave 103.3 against 106.6 ms over 9 alternated pairs, which is within the noise. Merging adjacent pages in `Watch::untrap` (one `mprotect` per page now) cut `mprotect` calls by 69 % but did not change the frame time. What remains looks like a design question, not a setting. The cost left in part 2 comes from re-protecting buffers that the title rewrites in full every frame. Buffers like these could be left unwatched and uploaded each time, but I have not tried that. ### Summary lines <details><summary>6 lines: none, 1 MiB block, 1 MiB block + polling watcher, alternated</summary> ``` {"commit":"367abdb9aee2","dirty":true,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"40:20","APS5_WATCH_POLL_US":"20","APS5_WRITE_WATCH_FAULT_AHEAD":"256"},"gpu":"Apple M4","driver":"MoltenVK 1.4.2","os":"Darwin 27.0.0","cpu":"VirtualApple @ 2.50GHz","cpu_threads":10,"memory_mib":16384,"title_id":"PPSA69421","title":"SuperTuxKart","content_version":"00.001.000","resolution":"1920x1080","window":{"spec":"seconds 40:20","first_present":455,"ms":20039.674},"presents":225,"frame_ms":{"p50":88.731,"p90":95.433,"p99":106.328,"max":109.047},"gpu_busy_ms_per_present":19.77,"worker_busy_pct":{"queue worker 0x0":8.367},"phase_totals_ms":{"Driver.Completion":1.549,"Driver.Draw":774.803,"Driver.Draw.device_setup":29.935,"Driver.Draw.draw_enqueued":215.249,"Driver.Draw.post_compile_prepare":23.739,"Driver.Draw.prepare":54.403,"Driver.Draw.shader_compile_and_link":436.952,"Driver.EndSubmission":5.89,"Driver.Packet":1669.18,"Driver.Packet.device_lock":11.041,"Driver.Packet.draw":780.102,"Driver.Packet.execute":102.905,"Driver.Packet.flip_flush":680.969,"Driver.Packet.flush_between_packets":16.459,"Driver.Packet.pipeline_drain":14.33,"Driver.Packet.pipeline_prepare":16.727,"Driver.Packet.prepare_memory":14.601,"Driver.Present":440.036,"Driver.Present.acquire_image":4.61,"Driver.Present.device_setup":0.108,"Driver.Present.gpu_mutex_wait":0.255,"Driver.Present.inflight_wait":0.466,"Driver.Present.present_display_buffer":24.528,"Driver.Present.queue_present":2.643,"Driver.Present.release_and_callback":0.175,"Driver.Present.render_fence_wait":403.289,"Driver.Present.resize":3.837,"Driver.Present.validate":0.043,"Driver.Suspend":0.035,"Graphics.Draw":1054.654,"Graphics.Draw.draw_and_resource_release":953.46,"Graphics.Draw.index_upload":60.348,"Graphics.Draw.validate":28.879,"Graphics.Draw.vertex_upload":3.301,"Graphics.DrawWithRecipe":383.336,"Graphics.DrawWithRecipe.draw_and_resource_release":356.09,"Graphics.DrawWithRecipe.index_upload":19.723,"Graphics.DrawWithRecipe.validate":3.775,"Graphics.DrawWithRecipe.vertex_upload":1.546,"Recorder.Reap":30.475,"Recorder.Submit":1608.354,"Recorder.Sync":27.872,"Resources.Complete":4.71,"Resources.Prepare":5.972,"Shader.DrawStage":249.6,"Shader.DrawStage.capture_resources":167.216,"Shader.DrawStage.materialize":44.813,"Shader.DrawStage.prepared_invocation":35.401,"Shader.PrepareArtifact":2.001,"Shader.Register":0.113,"Shader.ResolveAbi":0.011,"Shader.ResolveGraphicsAbi":0.001,"Shader.ResolveGraphicsStagesAbi":0.022,"VideoOut.Flip":458.154,"VideoOut.Flip.completion_mutex_wait":0.259,"VideoOut.Flip.config_mutex_wait":0.014,"VideoOut.Flip.frame_limit":0.093,"VideoOut.Flip.notify_game":2.094,"VideoOut.Flip.present":439.0,"VideoOut.Flip.validate":0.141,"VideoOut.Flip.vblank_wait":0.239,"VideoOut.Flip.window_prepare":4.655,"VideoOut.Flip.window_title":11.587,"VideoOut.Readiness":0.422,"VideoOut.Readiness.locks_validate":0.229,"Vulkan.Acquire":4.456,"Vulkan.Acquire.acquire_fence_wait":0.276,"Vulkan.Acquire.acquire_image":3.724,"Vulkan.Acquire.fence_reset":0.307,"Vulkan.Acquire.retired_swapchains":0.091,"Vulkan.DrawFromRecipe":386.203,"Vulkan.Present":22.869,"Vulkan.Present.command_record_scale":6.258,"Vulkan.Present.pixel_upload":0.441,"Vulkan.Present.queue_submit":16.013,"Vulkan.QueuePresent":2.454,"Vulkan.QueuePresent.queue_present":2.331,"Vulkan.Retire":403.258,"Vulkan.Retire.wait":399.755},"top_phases_ms_per_frame":{"Driver.Packet":7.419,"Recorder.Submit":7.148,"Graphics.Draw":4.687,"Graphics.Draw.draw_and_resource_release":4.238,"Driver.Packet.draw":3.467,"Driver.Draw":3.444,"Driver.Packet.flip_flush":3.027,"VideoOut.Flip":2.036},"owned_draw_counts":{},"graphics_track":{"Graphics.Barrier.draw":23552,"Graphics.Barrier.label-run":29892,"Graphics.Barrier.present-blit":450,"Graphics.Barrier.storage-upload":2702,"Graphics.Barrier.storage-writeback":1350,"Graphics.Copy":2,"Graphics.Copy.bytes":458240,"Graphics.RenderPass":12001,"Graphics.RenderPass.Close.image":675,"Graphics.RenderPass.Close.new-batch":11326,"Graphics.RenderPass.Continued":18160},"trace_dropped":false} {"commit":"367abdb9aee2","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"40:20"},"gpu":"Apple M4","driver":"MoltenVK 1.4.2","os":"Darwin 27.0.0","cpu":"VirtualApple @ 2.50GHz","cpu_threads":10,"memory_mib":16384,"title_id":"PPSA69421","title":"SuperTuxKart","content_version":"00.001.000","resolution":"1920x1080","window":{"spec":"seconds 40:20","first_present":431,"ms":20071.213},"presents":184,"frame_ms":{"p50":106.415,"p90":124.704,"p99":136.742,"max":137.949},"gpu_busy_ms_per_present":19.491,"worker_busy_pct":{"queue worker 0x0":7.233},"phase_totals_ms":{"Driver.Completion":1.245,"Driver.Draw":702.528,"Driver.Draw.device_setup":26.18,"Driver.Draw.draw_enqueued":193.054,"Driver.Draw.post_compile_prepare":20.195,"Driver.Draw.prepare":44.163,"Driver.Draw.shader_compile_and_link":406.579,"Driver.EndSubmission":5.149,"Driver.Packet":1445.252,"Driver.Packet.device_lock":9.492,"Driver.Packet.draw":707.216,"Driver.Packet.execute":87.686,"Driver.Packet.flip_flush":559.699,"Driver.Packet.flush_between_packets":14.134,"Driver.Packet.pipeline_drain":12.366,"Driver.Packet.pipeline_prepare":14.102,"Driver.Packet.prepare_memory":12.498,"Driver.Present":355.169,"Driver.Present.acquire_image":2.902,"Driver.Present.device_setup":0.098,"Driver.Present.gpu_mutex_wait":0.205,"Driver.Present.inflight_wait":0.353,"Driver.Present.present_display_buffer":19.541,"Driver.Present.queue_present":2.129,"Driver.Present.release_and_callback":0.141,"Driver.Present.render_fence_wait":326.637,"Driver.Present.resize":3.052,"Driver.Present.validate":0.034,"Driver.Suspend":0.034,"Graphics.Draw":1021.751,"Graphics.Draw.draw_and_resource_release":930.694,"Graphics.Draw.index_upload":51.345,"Graphics.Draw.validate":28.163,"Graphics.Draw.vertex_upload":2.916,"Graphics.DrawWithRecipe":273.262,"Graphics.DrawWithRecipe.draw_and_resource_release":246.7,"Graphics.DrawWithRecipe.index_upload":21.522,"Graphics.DrawWithRecipe.validate":2.604,"Graphics.DrawWithRecipe.vertex_upload":1.063,"Recorder.Reap":26.627,"Recorder.Submit":1414.443,"Recorder.Sync":22.781,"Resources.Complete":4.168,"Resources.Prepare":5.159,"Shader.DrawStage":243.907,"Shader.DrawStage.capture_resources":161.004,"Shader.DrawStage.materialize":43.845,"Shader.DrawStage.prepared_invocation":36.835,"Shader.PrepareArtifact":2.48,"Shader.Register":0.113,"Shader.ResolveAbi":0.011,"Shader.ResolveGraphicsAbi":0.001,"Shader.ResolveGraphicsStagesAbi":0.023,"VideoOut.Flip":370.712,"VideoOut.Flip.completion_mutex_wait":0.194,"VideoOut.Flip.config_mutex_wait":0.011,"VideoOut.Flip.frame_limit":0.097,"VideoOut.Flip.notify_game":1.575,"VideoOut.Flip.present":353.939,"VideoOut.Flip.validate":0.112,"VideoOut.Flip.vblank_wait":0.161,"VideoOut.Flip.window_prepare":4.103,"VideoOut.Flip.window_title":10.465,"VideoOut.Readiness":0.326,"VideoOut.Readiness.locks_validate":0.169,"Vulkan.Acquire":2.78,"Vulkan.Acquire.acquire_fence_wait":0.146,"Vulkan.Acquire.acquire_image":2.287,"Vulkan.Acquire.fence_reset":0.226,"Vulkan.Acquire.retired_swapchains":0.07,"Vulkan.DrawFromRecipe":275.231,"Vulkan.Present":18.262,"Vulkan.Present.command_record_scale":4.862,"Vulkan.Present.pixel_upload":0.343,"Vulkan.Present.queue_submit":12.916,"Vulkan.QueuePresent":1.96,"Vulkan.QueuePresent.queue_present":1.856,"Vulkan.Retire":326.613,"Vulkan.Retire.wait":323.935},"top_phases_ms_per_frame":{"Driver.Packet":7.855,"Recorder.Submit":7.687,"Graphics.Draw":5.553,"Graphics.Draw.draw_and_resource_release":5.058,"Driver.Packet.draw":3.844,"Driver.Draw":3.818,"Driver.Packet.flip_flush":3.042,"Driver.Draw.shader_compile_and_link":2.21},"owned_draw_counts":{},"graphics_track":{"Graphics.Barrier.draw":21042,"Graphics.Barrier.label-run":27172,"Graphics.Barrier.present-blit":368,"Graphics.Barrier.storage-upload":2216,"Graphics.Barrier.storage-writeback":1104,"Graphics.Copy":2,"Graphics.Copy.bytes":458240,"Graphics.RenderPass":10705,"Graphics.RenderPass.Close.command":2,"Graphics.RenderPass.Close.image":552,"Graphics.RenderPass.Close.new-batch":10151,"Graphics.RenderPass.Continued":15631},"trace_dropped":false} {"commit":"367abdb9aee2","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"40:20","APS5_WRITE_WATCH_FAULT_AHEAD":"256"},"gpu":"Apple M4","driver":"MoltenVK 1.4.2","os":"Darwin 27.0.0","cpu":"VirtualApple @ 2.50GHz","cpu_threads":10,"memory_mib":16384,"title_id":"PPSA69421","title":"SuperTuxKart","content_version":"00.001.000","resolution":"1920x1080","window":{"spec":"seconds 40:20","first_present":438,"ms":20001.083},"presents":209,"frame_ms":{"p50":95.366,"p90":111.478,"p99":120.001,"max":127.14},"gpu_busy_ms_per_present":18.79,"worker_busy_pct":{"queue worker 0x0":8.146},"phase_totals_ms":{"Driver.Completion":1.422,"Driver.Draw":788.769,"Driver.Draw.device_setup":28.629,"Driver.Draw.draw_enqueued":220.173,"Driver.Draw.post_compile_prepare":23.147,"Driver.Draw.prepare":54.702,"Driver.Draw.shader_compile_and_link":448.575,"Driver.EndSubmission":5.531,"Driver.Packet":1622.361,"Driver.Packet.device_lock":10.85,"Driver.Packet.draw":794.186,"Driver.Packet.execute":100.101,"Driver.Packet.flip_flush":625.103,"Driver.Packet.flush_between_packets":16.053,"Driver.Packet.pipeline_drain":14.135,"Driver.Packet.pipeline_prepare":16.277,"Driver.Packet.prepare_memory":14.264,"Driver.Present":393.991,"Driver.Present.acquire_image":3.27,"Driver.Present.device_setup":0.107,"Driver.Present.gpu_mutex_wait":0.228,"Driver.Present.inflight_wait":0.423,"Driver.Present.present_display_buffer":22.122,"Driver.Present.queue_present":2.414,"Driver.Present.release_and_callback":0.159,"Driver.Present.render_fence_wait":361.751,"Driver.Present.resize":3.397,"Driver.Present.validate":0.037,"Driver.Suspend":0.037,"Graphics.Draw":960.768,"Graphics.Draw.draw_and_resource_release":871.128,"Graphics.Draw.index_upload":47.314,"Graphics.Draw.validate":30.068,"Graphics.Draw.vertex_upload":3.032,"Graphics.DrawWithRecipe":499.46,"Graphics.DrawWithRecipe.draw_and_resource_release":467.597,"Graphics.DrawWithRecipe.index_upload":24.168,"Graphics.DrawWithRecipe.validate":3.675,"Graphics.DrawWithRecipe.vertex_upload":1.628,"Recorder.Reap":28.382,"Recorder.Submit":1535.68,"Recorder.Sync":25.921,"Resources.Complete":4.571,"Resources.Prepare":5.777,"Shader.DrawStage":263.786,"Shader.DrawStage.capture_resources":175.054,"Shader.DrawStage.materialize":46.912,"Shader.DrawStage.prepared_invocation":39.531,"Shader.PrepareArtifact":3.556,"Shader.Register":0.103,"Shader.ResolveAbi":0.011,"Shader.ResolveGraphicsAbi":0.001,"Shader.ResolveGraphicsStagesAbi":0.023,"VideoOut.Flip":410.758,"VideoOut.Flip.completion_mutex_wait":0.208,"VideoOut.Flip.config_mutex_wait":0.013,"VideoOut.Flip.frame_limit":0.086,"VideoOut.Flip.notify_game":1.71,"VideoOut.Flip.present":392.974,"VideoOut.Flip.validate":0.167,"VideoOut.Flip.vblank_wait":0.18,"VideoOut.Flip.window_prepare":4.695,"VideoOut.Flip.window_title":10.662,"VideoOut.Readiness":0.364,"VideoOut.Readiness.locks_validate":0.188,"Vulkan.Acquire":3.134,"Vulkan.Acquire.acquire_fence_wait":0.167,"Vulkan.Acquire.acquire_image":2.562,"Vulkan.Acquire.fence_reset":0.26,"Vulkan.Acquire.retired_swapchains":0.09,"Vulkan.DrawFromRecipe":502.297,"Vulkan.Present":20.649,"Vulkan.Present.command_record_scale":5.441,"Vulkan.Present.pixel_upload":0.388,"Vulkan.Present.queue_submit":14.657,"Vulkan.QueuePresent":2.215,"Vulkan.QueuePresent.queue_present":2.099,"Vulkan.Retire":361.727,"Vulkan.Retire.wait":358.702},"top_phases_ms_per_frame":{"Driver.Packet":7.762,"Recorder.Submit":7.348,"Graphics.Draw":4.597,"Graphics.Draw.draw_and_resource_release":4.168,"Driver.Packet.draw":3.8,"Driver.Draw":3.774,"Driver.Packet.flip_flush":2.991,"Vulkan.DrawFromRecipe":2.403},"owned_draw_counts":{},"graphics_track":{"Graphics.Barrier.draw":23796,"Graphics.Barrier.label-run":30578,"Graphics.Barrier.present-blit":418,"Graphics.Barrier.storage-upload":2512,"Graphics.Barrier.storage-writeback":1254,"Graphics.Copy":4,"Graphics.Copy.bytes":916480,"Graphics.RenderPass":12107,"Graphics.RenderPass.Close.command":1,"Graphics.RenderPass.Close.image":627,"Graphics.RenderPass.Close.new-batch":11479,"Graphics.RenderPass.Continued":18356},"trace_dropped":false} {"commit":"367abdb9aee2","dirty":true,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"40:20","APS5_WATCH_POLL_US":"20","APS5_WRITE_WATCH_FAULT_AHEAD":"256"},"gpu":"Apple M4","driver":"MoltenVK 1.4.2","os":"Darwin 27.0.0","cpu":"VirtualApple @ 2.50GHz","cpu_threads":10,"memory_mib":16384,"title_id":"PPSA69421","title":"SuperTuxKart","content_version":"00.001.000","resolution":"1920x1080","window":{"spec":"seconds 40:20","first_present":458,"ms":20069.067},"presents":214,"frame_ms":{"p50":91.36,"p90":113.634,"p99":117.148,"max":121.198},"gpu_busy_ms_per_present":15.232,"worker_busy_pct":{"queue worker 0x0":8.033},"phase_totals_ms":{"Driver.Completion":1.366,"Driver.Draw":763.191,"Driver.Draw.device_setup":28.292,"Driver.Draw.draw_enqueued":213.877,"Driver.Draw.post_compile_prepare":22.76,"Driver.Draw.prepare":53.274,"Driver.Draw.shader_compile_and_link":430.813,"Driver.EndSubmission":5.599,"Driver.Packet":1605.16,"Driver.Packet.device_lock":10.883,"Driver.Packet.draw":768.612,"Driver.Packet.execute":100.463,"Driver.Packet.flip_flush":631.309,"Driver.Packet.flush_between_packets":16.157,"Driver.Packet.pipeline_drain":14.049,"Driver.Packet.pipeline_prepare":16.315,"Driver.Packet.prepare_memory":14.314,"Driver.Present":404.157,"Driver.Present.acquire_image":3.674,"Driver.Present.device_setup":0.098,"Driver.Present.gpu_mutex_wait":0.235,"Driver.Present.inflight_wait":0.423,"Driver.Present.present_display_buffer":22.406,"Driver.Present.queue_present":2.422,"Driver.Present.release_and_callback":0.161,"Driver.Present.render_fence_wait":370.895,"Driver.Present.resize":3.726,"Driver.Present.validate":0.043,"Driver.Suspend":0.034,"Graphics.Draw":1029.843,"Graphics.Draw.draw_and_resource_release":929.326,"Graphics.Draw.index_upload":58.192,"Graphics.Draw.validate":29.92,"Graphics.Draw.vertex_upload":2.879,"Graphics.DrawWithRecipe":373.19,"Graphics.DrawWithRecipe.draw_and_resource_release":347.044,"Graphics.DrawWithRecipe.index_upload":19.212,"Graphics.DrawWithRecipe.validate":3.411,"Graphics.DrawWithRecipe.vertex_upload":1.559,"Recorder.Reap":29.494,"Recorder.Submit":1597.318,"Recorder.Sync":25.171,"Resources.Complete":4.553,"Resources.Prepare":5.705,"Shader.DrawStage":252.64,"Shader.DrawStage.capture_resources":168.475,"Shader.DrawStage.materialize":45.147,"Shader.DrawStage.prepared_invocation":36.813,"Shader.PrepareArtifact":2.424,"Shader.Register":0.108,"Shader.ResolveAbi":0.011,"Shader.ResolveGraphicsAbi":0.001,"Shader.ResolveGraphicsStagesAbi":0.022,"VideoOut.Flip":420.872,"VideoOut.Flip.completion_mutex_wait":0.211,"VideoOut.Flip.config_mutex_wait":0.022,"VideoOut.Flip.frame_limit":0.09,"VideoOut.Flip.notify_game":2.021,"VideoOut.Flip.present":402.478,"VideoOut.Flip.validate":0.131,"VideoOut.Flip.vblank_wait":0.272,"VideoOut.Flip.window_prepare":4.773,"VideoOut.Flip.window_title":10.82,"VideoOut.Readiness":0.374,"VideoOut.Readiness.locks_validate":0.184,"Vulkan.Acquire":3.533,"Vulkan.Acquire.acquire_fence_wait":0.247,"Vulkan.Acquire.acquire_image":2.872,"Vulkan.Acquire.fence_reset":0.259,"Vulkan.Acquire.retired_swapchains":0.08,"Vulkan.DrawFromRecipe":375.859,"Vulkan.Present":20.893,"Vulkan.Present.command_record_scale":5.836,"Vulkan.Present.pixel_upload":0.401,"Vulkan.Present.queue_submit":14.512,"Vulkan.QueuePresent":2.248,"Vulkan.QueuePresent.queue_present":2.133,"Vulkan.Retire":370.878,"Vulkan.Retire.wait":367.741},"top_phases_ms_per_frame":{"Driver.Packet":7.501,"Recorder.Submit":7.464,"Graphics.Draw":4.812,"Graphics.Draw.draw_and_resource_release":4.343,"Driver.Packet.draw":3.592,"Driver.Draw":3.566,"Driver.Packet.flip_flush":2.95,"Driver.Draw.shader_compile_and_link":2.013},"owned_draw_counts":{},"graphics_track":{"Graphics.Barrier.draw":24970,"Graphics.Barrier.label-run":32334,"Graphics.Barrier.present-blit":428,"Graphics.Barrier.storage-upload":2576,"Graphics.Barrier.storage-writeback":1284,"Graphics.Copy":1,"Graphics.Copy.bytes":360192,"Graphics.RenderPass":12699,"Graphics.RenderPass.Close.command":1,"Graphics.RenderPass.Close.image":642,"Graphics.RenderPass.Close.new-batch":12056,"Graphics.RenderPass.Continued":16793},"trace_dropped":false} {"commit":"367abdb9aee2","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"40:20","APS5_WRITE_WATCH_FAULT_AHEAD":"256"},"gpu":"Apple M4","driver":"MoltenVK 1.4.2","os":"Darwin 27.0.0","cpu":"VirtualApple @ 2.50GHz","cpu_threads":10,"memory_mib":16384,"title_id":"PPSA69421","title":"SuperTuxKart","content_version":"00.001.000","resolution":"1920x1080","window":{"spec":"seconds 40:20","first_present":428,"ms":20034.019},"presents":208,"frame_ms":{"p50":95.078,"p90":115.023,"p99":127.388,"max":167.199},"gpu_busy_ms_per_present":23.19,"worker_busy_pct":{"queue worker 0x0":8.727},"phase_totals_ms":{"Driver.Completion":1.646,"Driver.Draw":900.223,"Driver.Draw.device_setup":32.458,"Driver.Draw.draw_enqueued":246.668,"Driver.Draw.post_compile_prepare":23.701,"Driver.Draw.prepare":52.286,"Driver.Draw.shader_compile_and_link":530.495,"Driver.EndSubmission":6.124,"Driver.Packet":1740.509,"Driver.Packet.device_lock":10.459,"Driver.Packet.draw":906.245,"Driver.Packet.execute":102.482,"Driver.Packet.flip_flush":627.171,"Driver.Packet.flush_between_packets":16.37,"Driver.Packet.memory_wait":0.011,"Driver.Packet.pipeline_drain":13.636,"Driver.Packet.pipeline_prepare":16.172,"Driver.Packet.prepare_memory":14.398,"Driver.Present":402.012,"Driver.Present.acquire_image":4.198,"Driver.Present.device_setup":0.117,"Driver.Present.gpu_mutex_wait":0.251,"Driver.Present.inflight_wait":0.452,"Driver.Present.present_display_buffer":25.103,"Driver.Present.queue_present":2.686,"Driver.Present.release_and_callback":0.242,"Driver.Present.render_fence_wait":365.25,"Driver.Present.resize":3.581,"Driver.Present.validate":0.045,"Driver.Suspend":0.041,"Graphics.Draw":1219.816,"Graphics.Draw.draw_and_resource_release":1102.127,"Graphics.Draw.index_upload":64.462,"Graphics.Draw.validate":37.279,"Graphics.Draw.vertex_upload":4.149,"Graphics.DrawWithRecipe":338.463,"Graphics.DrawWithRecipe.draw_and_resource_release":318.279,"Graphics.DrawWithRecipe.index_upload":15.019,"Graphics.DrawWithRecipe.validate":2.618,"Graphics.DrawWithRecipe.vertex_upload":1.299,"Recorder.Reap":36.15,"Recorder.Submit":1685.338,"Recorder.Sync":30.934,"Resources.Complete":4.669,"Resources.Prepare":5.896,"Shader.DrawStage":316.9,"Shader.DrawStage.capture_resources":210.963,"Shader.DrawStage.materialize":56.391,"Shader.DrawStage.prepared_invocation":46.755,"Shader.PrepareArtifact":2.443,"Shader.Register":0.104,"Shader.ResolveAbi":0.01,"Shader.ResolveGraphicsAbi":0.001,"Shader.ResolveGraphicsStagesAbi":0.024,"VideoOut.Flip":419.856,"VideoOut.Flip.completion_mutex_wait":0.247,"VideoOut.Flip.config_mutex_wait":0.013,"VideoOut.Flip.frame_limit":0.117,"VideoOut.Flip.notify_game":1.977,"VideoOut.Flip.present":401.128,"VideoOut.Flip.validate":0.158,"VideoOut.Flip.vblank_wait":0.196,"VideoOut.Flip.window_prepare":4.432,"VideoOut.Flip.window_title":11.465,"VideoOut.Readiness":0.437,"VideoOut.Readiness.locks_validate":0.245,"Vulkan.Acquire":4.03,"Vulkan.Acquire.acquire_fence_wait":0.187,"Vulkan.Acquire.acquire_image":3.393,"Vulkan.Acquire.fence_reset":0.3,"Vulkan.Acquire.retired_swapchains":0.09,"Vulkan.DrawFromRecipe":340.291,"Vulkan.Present":23.355,"Vulkan.Present.command_record_scale":6.164,"Vulkan.Present.pixel_upload":0.436,"Vulkan.Present.queue_submit":16.587,"Vulkan.QueuePresent":2.48,"Vulkan.QueuePresent.queue_present":2.354,"Vulkan.Retire":365.191,"Vulkan.Retire.wait":361.58},"top_phases_ms_per_frame":{"Driver.Packet":8.368,"Recorder.Submit":8.103,"Graphics.Draw":5.864,"Graphics.Draw.draw_and_resource_release":5.299,"Driver.Packet.draw":4.357,"Driver.Draw":4.328,"Driver.Packet.flip_flush":3.015,"Driver.Draw.shader_compile_and_link":2.55},"owned_draw_counts":{},"graphics_track":{"Graphics.Barrier.draw":23448,"Graphics.Barrier.label-run":30144,"Graphics.Barrier.present-blit":416,"Graphics.Barrier.storage-upload":2498,"Graphics.Barrier.storage-writeback":1248,"Graphics.Copy":2,"Graphics.Copy.bytes":458240,"Graphics.RenderPass":11932,"Graphics.RenderPass.Close.image":624,"Graphics.RenderPass.Close.new-batch":11308,"Graphics.RenderPass.Continued":16515},"trace_dropped":false} {"commit":"367abdb9aee2","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"40:20"},"gpu":"Apple M4","driver":"MoltenVK 1.4.2","os":"Darwin 27.0.0","cpu":"VirtualApple @ 2.50GHz","cpu_threads":10,"memory_mib":16384,"title_id":"PPSA69421","title":"SuperTuxKart","content_version":"00.001.000","resolution":"1920x1080","window":{"spec":"seconds 40:20","first_present":378,"ms":20067.244},"presents":196,"frame_ms":{"p50":100.204,"p90":115.32,"p99":131.224,"max":142.076},"gpu_busy_ms_per_present":22.439,"worker_busy_pct":{"queue worker 0x0":8.003},"phase_totals_ms":{"Driver.Completion":1.473,"Driver.Draw":797.565,"Driver.Draw.device_setup":31.256,"Driver.Draw.draw_enqueued":218.805,"Driver.Draw.post_compile_prepare":22.474,"Driver.Draw.prepare":48.629,"Driver.Draw.shader_compile_and_link":462.314,"Driver.EndSubmission":6.134,"Driver.Packet":1598.322,"Driver.Packet.device_lock":10.05,"Driver.Packet.draw":803.202,"Driver.Packet.execute":95.423,"Driver.Packet.flip_flush":599.872,"Driver.Packet.flush_between_packets":15.559,"Driver.Packet.pipeline_drain":13.304,"Driver.Packet.pipeline_prepare":15.71,"Driver.Packet.prepare_memory":13.715,"Driver.Present":372.33,"Driver.Present.acquire_image":3.865,"Driver.Present.device_setup":0.109,"Driver.Present.gpu_mutex_wait":0.237,"Driver.Present.inflight_wait":0.441,"Driver.Present.present_display_buffer":23.194,"Driver.Present.queue_present":2.544,"Driver.Present.release_and_callback":0.164,"Driver.Present.render_fence_wait":338.439,"Driver.Present.resize":3.202,"Driver.Present.validate":0.053,"Driver.Suspend":0.037,"Graphics.Draw":1086.574,"Graphics.Draw.draw_and_resource_release":980.175,"Graphics.Draw.index_upload":59.84,"Graphics.Draw.validate":32.319,"Graphics.Draw.vertex_upload":3.91,"Graphics.DrawWithRecipe":290.151,"Graphics.DrawWithRecipe.draw_and_resource_release":267.613,"Graphics.DrawWithRecipe.index_upload":16.297,"Graphics.DrawWithRecipe.validate":3.073,"Graphics.DrawWithRecipe.vertex_upload":1.353,"Recorder.Reap":31.51,"Recorder.Submit":1539.776,"Recorder.Sync":30.903,"Resources.Complete":4.589,"Resources.Prepare":11.147,"Shader.DrawStage":276.702,"Shader.DrawStage.capture_resources":187.287,"Shader.DrawStage.materialize":47.851,"Shader.DrawStage.prepared_invocation":39.093,"Shader.PrepareArtifact":2.186,"Shader.Register":0.103,"Shader.ResolveAbi":0.011,"Shader.ResolveGraphicsAbi":0.001,"Shader.ResolveGraphicsStagesAbi":0.023,"VideoOut.Flip":389.242,"VideoOut.Flip.completion_mutex_wait":0.296,"VideoOut.Flip.config_mutex_wait":0.013,"VideoOut.Flip.frame_limit":0.083,"VideoOut.Flip.notify_game":1.709,"VideoOut.Flip.present":371.188,"VideoOut.Flip.validate":0.138,"VideoOut.Flip.vblank_wait":0.186,"VideoOut.Flip.window_prepare":4.305,"VideoOut.Flip.window_title":11.278,"VideoOut.Readiness":0.37,"VideoOut.Readiness.locks_validate":0.185,"Vulkan.Acquire":3.721,"Vulkan.Acquire.acquire_fence_wait":0.176,"Vulkan.Acquire.acquire_image":3.141,"Vulkan.Acquire.fence_reset":0.275,"Vulkan.Acquire.retired_swapchains":0.075,"Vulkan.DrawFromRecipe":292.395,"Vulkan.Present":21.704,"Vulkan.Present.command_record_scale":5.771,"Vulkan.Present.pixel_upload":0.402,"Vulkan.Present.queue_submit":15.352,"Vulkan.QueuePresent":2.34,"Vulkan.QueuePresent.queue_present":2.222,"Vulkan.Retire":338.415,"Vulkan.Retire.wait":335.29},"top_phases_ms_per_frame":{"Driver.Packet":8.155,"Recorder.Submit":7.856,"Graphics.Draw":5.544,"Graphics.Draw.draw_and_resource_release":5.001,"Driver.Packet.draw":4.098,"Driver.Draw":4.069,"Driver.Packet.flip_flush":3.061,"Driver.Draw.shader_compile_and_link":2.359},"owned_draw_counts":{},"graphics_track":{"Graphics.Barrier.draw":21918,"Graphics.Barrier.label-run":28134,"Graphics.Barrier.present-blit":392,"Graphics.Barrier.storage-upload":2354,"Graphics.Barrier.storage-writeback":1176,"Graphics.Copy":3,"Graphics.Copy.bytes":818432,"Graphics.RenderPass":11155,"Graphics.RenderPass.Close.command":1,"Graphics.RenderPass.Close.image":588,"Graphics.RenderPass.Close.new-batch":10566,"Graphics.RenderPass.Continued":16456},"trace_dropped":false} ``` `dirty` is true because those builds carry the local changes above. </details> ### Traces - none: [`aps5-trace-367abdb9aee2-85838.json.gz`](https://github.com/user-attachments/files/35190528/aps5-trace-367abdb9aee2-85838.json.gz), [`aps5-trace-367abdb9aee2-87537.json.gz`](https://github.com/user-attachments/files/35190525/aps5-trace-367abdb9aee2-87537.json.gz) - 1 MiB block: [`aps5-trace-367abdb9aee2-86248.json.gz`](https://github.com/user-attachments/files/35190530/aps5-trace-367abdb9aee2-86248.json.gz), [`aps5-trace-367abdb9aee2-87046.json.gz`](https://github.com/user-attachments/files/35190526/aps5-trace-367abdb9aee2-87046.json.gz) - 1 MiB block + polling watcher: [`aps5-trace-367abdb9aee2-85355.json.gz`](https://github.com/user-attachments/files/35190529/aps5-trace-367abdb9aee2-85355.json.gz), [`aps5-trace-367abdb9aee2-86649.json.gz`](https://github.com/user-attachments/files/35190527/aps5-trace-367abdb9aee2-86649.json.gz) ### Capture - [x] The caches were warm (the scene ran once and the title was restarted) - [ ] No other APS5_TRACE_* or APS5_PROFILE_* switch was set and the log was not redirected: no other switch was set, but the run script redirected stdout to a file. - [x] Captures compared here come from the same machine, scene and settings Input came from `APS5_PAD_INPUT_FILE`. The fault, `mprotect` and sleep counts come from separate runs of the same scene with a small `DYLD_INSERT_LIBRARIES` library. AI-assisted: yes (Claude Code)
Sign in to join this conversation.
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#24728
No description provided.