Skip to content

perf(agc): watch a vertex decode's queued writes without copying them - #22079

Merged
oneandonlydean merged 1 commit into
boykopovar:mainfrom
Meh7an:perf/agc-decode-watch-counts
Nov 17, 2026
Merged

oneandonlydean merged 1 commit into
boykopovar:mainfrom
Meh7an:perf/agc-decode-watch-counts

Conversation

@Meh7an

@Meh7an Meh7an commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

What

The vertex stage decode on the queue worker (DecodeOrderedVertexStageInfo, from #7691) reads the vertex attribute and buffer tables from guest memory while earlier draws may still be queued on the draw pipeline's committer, and redoes the decode behind a drain when a queued or just-retired write touches what it read. Its watch cost, on every decode, three things that do not depend on whether anything overlaps:

  • WatchWrites copied every queued item's write ranges into a new vector under the queue mutex;
  • WrittenSince took the mutex again and compared every read range with every copied write range;
  • the caller built a third vector of ranges from the reads.

On the S3K menu page a profiled run (main 9f284c930e6) showed about 310,000 decodes per 10 s and no decode drain. The watch is now bookkeeping: WatchWrites records the number of retired items and the queue length, and WrittenSince looks at the items that retired since, which the queue still holds.

  • WatchWrites takes the lock only while the pipeline is busy (as before) and copies nothing. It pins the retired list for the length of the watch.
  • WrittenSince is still one lock. It checks the queued items (as before), then, if more items retired than were queued at the watch, reports a write (as before), else compares the reads with the retired items [watch.retired, retiredNow) only. A range hull of the reads skips writes that cannot overlap any read (exact: a read inside the hull that overlaps a write makes the hull overlap it).
  • The pin. DrawPipeline::enqueue reclaims the retired items on the enqueuing thread. It now skips the reclaim while a watch is open (watchers), so a decode never loses the writes of an item that retired during it, also when another producer enqueues in that window (the draw finisher thread). A watch releases its pin when WrittenSince returns, or when it is destroyed (a decode that throws). The reclaim runs at the next enqueue, a decode later at most.
  • The caller reuses a per-thread vector for the read ranges.
  • APS5_NO_DECODE_WATCH_COUNTS=1 restores the copy of the queued writes at the watch and the comparison with it (new ENVIRONMENT.md row). The hull stays, being exact.

Same answer as main. The old result was: some queued item overlaps a read, or items retired since the watch and either more retired than were queued at the watch, or a write queued at the watch overlaps a read. The queue is FIFO, so the items queued at the watch are those with sequence [watch.retired, watch.retired + watch.items). Those that have retired since, when no more than watch.items did, are exactly [watch.retired, retiredNow), and the pin keeps them in retired for the length of the watch; those that are still queued are covered by the first check. So the two results are equal in every case. The only way to get an answer other than main's is an item already reclaimed at the check, which the pin rules out; the code returns "written" there (one extra drain and redecode, the same final decode).

Memory: no new cache. Retired items are released at the first enqueue after a watch closes instead of the first after they retire; a watch lasts one decode.

Overlap: no open PR changes DecodeOrderedVertexStageInfo, DecodeVertexStageInfo, WatchWrites or WrittenSince. This comes from a diff scan of the open PRs touching the decode, pipeline and draw files (133 candidates among 1,595 open PRs, run on 2026-11-16 and again on 2026-11-17).

Tested

Windows 11 (10.0.26300), NVIDIA GeForce RTX 2080 Ti (driver 617.14), Sonic Origins (PPSA05324) menu on the S3K page, 3840x2160, default environment. Measured commits: main 2a8a0d1fc338 and this change on top of it (4b7d5805d3ba), built in the same build directory.

Sampler (APS5_SAMPLE_WORKER and APS5_SAMPLE_COMMITTER, one 60 s window per arm on the S3K page, worker, 3,843 samples each):

main this PR
DecodeOrderedVertexStageInfo 197 (5.13%) 179 (4.66%)
of it WatchWrites 32 (0.83%) 14 (0.36%)
of it WrittenSince 39 (1.01%) 21 (0.55%)
of it DecodeVertexStageInfo (the reads, unchanged) 114 (2.97%) 127 (3.30%)
worker blocked in DrawPipeline::Enqueue + Drain 19.1% 17.0%
committer Driver::commitDraw 69.7% 67.3%

The two functions this changes fall from 71 to 35 samples. In four earlier windows on other mains the same two functions were 57 to 83 samples. The unchanged reads vary by more than the whole difference between the windows, which is why the decode total falls by 18 and not 36. S3K's frame is bound by the worker and the committer together (each waits about 20% for the other), and the saving is about 0.6 ms of a 53 ms frame, so it is not expected to show in the frame.

Traced runs (APS5_TRACE_SECONDS=200:15, order main, change, change, main; frame p50 per run): main 54.2 and 52.8 ms, change 52.9 and 53.6 ms; GPU busy 27.8 to 27.9 ms per present; queue worker busy 10.4 to 10.5 ms per frame in all four. The spread between runs of the same build is larger than the difference: the frame is flat. Both arms' summary lines are in the digests below, and the four traces are attached as two zips.

New tests, in agc_driver_vertex_table_read_order (and agc_driver_vertex_table_read_order_counts_off, the same binary with APS5_NO_DECODE_WATCH_COUNTS=1):

  • a store that retires while the decode runs, and an enqueue on the same thread that tries to reclaim during it: the overlapping store is drained for (and the decode redone), an unrelated one is not;
  • WrittenSince against the pairwise overlap of the queued writes and the reads, 300 random cases of queued writes and reads, empty reads included;
  • items that retired while the watch was open: one that overlaps is seen, one still queued is seen, one that overlaps nothing is not, and the lookup counter shows the retired list was used exactly when the switch is on;
  • more items retired than were queued at the watch: reported as written;
  • a decode that throws releases its pin (the retired items are released at the next enqueue).

Broken copies of the change, each run against these tests, are all caught (6 of 6): reclaim ignoring open watches, no retired lookup, a watch that never unpins, a hull that never grows, no more-retired-than-queued rule, and a retired window starting at the wrong item. Four fail in the switch-on run only, as they should; the hull and the more-retired rule are shared, so those two fail in both runs.

The 58 focused tests (vertex table, draw pipeline, pipelined, queued read order, draw cache, draw data hit, prepared graphics) pass on this change with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1 and VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation (ctest -R ... -V); on main the same 57 pass. Neither log has a VUID- line or "was not found but was requested by env var VK_INSTANCE_LAYERS". tools/check_conventions.py --base upstream/main and tools/env_reference.py --check pass. The full ctest suite was not run.

Digest: main, run 1 (commit 2a8a0d1)

seconds 200:15 from present 5520: 276 presents, frame p50 54.2 / p90 56.3 / p99 58.9 / max 61.6 ms, GPU busy 27.8 ms per present
NVIDIA GeForce RTX 2080 Ti, NVIDIA 617.14, Windows 10.0.26300, 3840x2160, commit 2a8a0d1, dropped: yes

{"commit":"2a8a0d1fc338","dirty":false,"env":{"APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"200:15"},"gpu":"NVIDIA GeForce RTX 2080 Ti","driver":"NVIDIA 617.14","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz","cpu_threads":16,"memory_mib":65468,"title_id":"PPSA05324","title":"Sonic Origins","content_version":"02.002.000","resolution":"3840x2160","window":{"spec":"seconds 200:15","first_present":5520,"ms":15032.817},"presents":276,"frame_ms":{"p50":54.203,"p90":56.328,"p99":58.861,"max":61.592},"gpu_busy_ms_per_present":27.785,"worker_busy_pct":{"queue worker 0x0":96.585},"phase_totals_ms":{"Driver.Completion":1.535,"Driver.Dispatch":1062.471,"Driver.Dispatch.capture_resources":16.477,"Driver.Dispatch.decode_key_device_setup":619.286,"Driver.Dispatch.lookup_cache":13.3,"Driver.Dispatch.materialize":2.719,"Driver.Dispatch.prepared_invocation":2.501,"Driver.Draw":10929.237,"Driver.Draw.device_setup":857.435,"Driver.Draw.draw_enqueued":2302.809,"Driver.Draw.post_compile_prepare":109.78,"Driver.Draw.prepare":1307.642,"Driver.Draw.shader_compile_and_link":6086.998,"Driver.EndSubmission":9.388,"Driver.Packet":14508.384,"Driver.Packet.device_lock":178.258,"Driver.Packet.dispatch":1066.249,"Driver.Packet.draw":11168.817,"Driver.Packet.execute":401.163,"Driver.Packet.flip_flush":9.303,"Driver.Packet.flush_between_packets":504.179,"Driver.Packet.memory_wait":0.008,"Driver.Packet.pipeline_drain":332.502,"Driver.Packet.pipeline_prepare":252.149,"Driver.Packet.prepare_memory":259.354,"Driver.Packet.rendering_wait":0.356,"Driver.Present":3777.315,"Driver.Present.acquire_image":3.59,"Driver.Present.device_setup":0.18,"Driver.Present.gpu_mutex_wait":84.492,"Driver.Present.inflight_wait":0.643,"Driver.Present.present_display_buffer":45.457,"Driver.Present.queue_present":118.846,"Driver.Present.release_and_callback":0.872,"Driver.Present.render_fence_wait":3522.168,"Driver.Present.resize":0.522,"Driver.Present.validate":0.207,"Driver.Suspend":0.113,"GpuMutex.wait.dispatch":0.136,"GpuMutex.wait.draw":60.477,"GpuMutex.wait.end":0.058,"GpuMutex.wait.fill":1.29,"GpuMutex.wait.flush":5.124,"GpuMutex.wait.label":3.07,"GpuMutex.wait.other":26.909,"GpuMutex.wait.present":83.446,"GpuMutex.wait.wait":4.198,"Graphics.Draw":9322.04,"Graphics.Draw.draw_and_resource_release":7142.768,"Graphics.Draw.index_upload":491.279,"Graphics.Draw.validate":765.508,"Graphics.Draw.vertex_upload":743.785,"Graphics.DrawWithRecipe":355.567,"Graphics.DrawWithRecipe.draw_and_resource_release":344.272,"Graphics.DrawWithRecipe.index_upload":1.261,"Graphics.DrawWithRecipe.validate":4.223,"Graphics.DrawWithRecipe.vertex_upload":3.448,"Recorder.Reap":119.222,"Recorder.Submit":323.538,"Recorder.WaitSerial":3738.489,"Resources.Complete":64.848,"Resources.Prepare":82.886,"Shader.DrawStage":4012.643,"Shader.DrawStage.capture_resources":1792.07,"Shader.DrawStage.materialize":1042.306,"Shader.DrawStage.prepared_invocation":1079.934,"Shader.ResolveAbi":147.323,"Shader.ResolveGraphicsAbi":41.904,"Shader.ResolveGraphicsStagesAbi":151.445,"VideoOut.Flip":3805.947,"VideoOut.Flip.completion_mutex_wait":0.701,"VideoOut.Flip.config_mutex_wait":0.031,"VideoOut.Flip.frame_limit":0.156,"VideoOut.Flip.notify_game":15.074,"VideoOut.Flip.present":3766.02,"VideoOut.Flip.validate":0.285,"VideoOut.Flip.vblank_wait":0.229,"VideoOut.Flip.window_prepare":0.447,"VideoOut.Flip.window_title":22.703,"VideoOut.Readiness":0.913,"VideoOut.Readiness.locks_validate":0.384,"Vulkan.Acquire":3.182,"Vulkan.Acquire.acquire_fence_wait":0.691,"Vulkan.Acquire.acquire_image":1.607,"Vulkan.Acquire.fence_reset":0.666,"Vulkan.Acquire.retired_swapchains":0.116,"Vulkan.Dispatch":183.747,"Vulkan.Dispatch.command_record":58.333,"Vulkan.Dispatch.shader_resources":124.092,"Vulkan.DispatchRecipe":0.849,"Vulkan.DispatchRecipe.command_record":0.848,"Vulkan.DrawFromRecipe":360.203,"Vulkan.Present":24.816,"Vulkan.Present.command_record_scale":8.783,"Vulkan.Present.pixel_upload":6.516,"Vulkan.Present.queue_submit":9.23,"Vulkan.QueuePresent":117.37,"Vulkan.QueuePresent.queue_present":116.59,"Vulkan.Retire":3521.859,"Vulkan.Retire.wait":3517.0},"top_phases_ms_per_frame":{"Driver.Packet":52.567,"Driver.Packet.draw":40.467,"Driver.Draw":39.599,"Graphics.Draw":33.776,"Graphics.Draw.draw_and_resource_release":25.88,"Driver.Draw.shader_compile_and_link":22.054,"Shader.DrawStage":14.539,"VideoOut.Flip":13.79},"owned_draw_counts":{"OwnedDraw.evicted_other":25720},"graphics_track":{"Graphics.Barrier.copy":1104,"Graphics.Barrier.dispatch-lead":1474,"Graphics.Barrier.dispatch-trail":3039,"Graphics.Barrier.draw":41542,"Graphics.Barrier.fill-clear":2760,"Graphics.Barrier.label-run":38146,"Graphics.Barrier.present-blit":552,"Graphics.Barrier.shadow-publish":2,"Graphics.Barrier.staging-in":2812,"Graphics.Barrier.staging-out":552,"Graphics.Barrier.storage-upload":31474,"Graphics.Barrier.storage-writeback":2548,"Graphics.BarrierMerged.dispatch-lead":1565,"Graphics.BarrierMerged.label-run":14,"Graphics.BarrierMerged.shadow-publish":2,"Graphics.BarrierMerged.staging-in":504,"Graphics.BarrierMerged.staging-out":552,"Graphics.BarrierMerged.storage-writeback":777,"Graphics.Copy":1934,"Graphics.Copy.bytes":17712672,"Graphics.RenderPass":20885,"Graphics.RenderPass.Close.command":13319,"Graphics.RenderPass.Close.image":520,"Graphics.RenderPass.Close.key":1654,"Graphics.RenderPass.Close.label":14,"Graphics.RenderPass.Close.new-batch":5378,"Graphics.RenderPass.Continued":520352},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":5.805,"events_lost":414473,"totals_full":false}},"trace":"aps5-trace-2a8a0d1fc338-4632.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: 414473 events lost; buffer full at 5804.7 ms

Slowest frames (largest slices inside each, inclusive)

  • present 5704: 61.6 ms at 10041 ms: batch (gpu) 27.1, Graphics.Draw (draw committer) 19.1, VideoOut.Flip (presenter) 13.4, VideoOut.Flip.present (presenter) 13.3
  • present 5576: 61.1 ms at 3055 ms: Driver.Packet (queue worker 0x0) 35.2, batch (gpu) 28.6, Driver.Packet.draw (queue worker 0x0) 28.4, Driver.Draw (queue worker 0x0) 27.4
  • present 5759: 58.9 ms at 13022 ms: batch (gpu) 30.0, Graphics.Draw (draw committer) 23.0, VideoOut.Flip (presenter) 14.1, VideoOut.Flip.present (presenter) 14.0
  • present 5605: 58.8 ms at 4643 ms: Driver.Packet (queue worker 0x0) 31.9, batch (gpu) 27.5, Driver.Packet.draw (queue worker 0x0) 26.3, Driver.Draw (queue worker 0x0) 25.5
  • present 5535: 58.8 ms at 816 ms: Driver.Packet (queue worker 0x0) 34.7, Driver.Packet.draw (queue worker 0x0) 28.8, batch (gpu) 28.7, Driver.Draw (queue worker 0x0) 27.8

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

  • present 5704: 61.6 ms at 10041 ms, persistence 9.9 ms
  • present 5576: 61.1 ms at 3055 ms, persistence 8.9 ms
  • present 5759: 58.9 ms at 13022 ms, persistence 6.8 ms
  • present 5605: 58.8 ms at 4643 ms, persistence 6.6 ms
  • present 5535: 58.8 ms at 816 ms, persistence 6.2 ms
  • present 5771: 58.8 ms at 13675 ms, persistence 6.0 ms
  • present 5660: 58.3 ms at 7641 ms, persistence 5.8 ms
  • present 5752: 57.8 ms at 12640 ms, persistence 5.7 ms
  • present 5715: 57.7 ms at 10639 ms, persistence 5.4 ms
  • present 5734: 57.7 ms at 11668 ms, persistence 5.2 ms

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
title 0.0 (0 %) 13.6 (25 %) 40.9 0.5 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
queue worker 0x0 10.5 (19 %) 0.0 (0 %) 43.9 49.4 Driver.Packet 10.5, Driver.EndSubmission 0.0
draw committer 21.6 (40 %) 0.3 (1 %) 32.6 38.5 Graphics.Draw 19.2, Vulkan.DrawFromRecipe 1.2
title 0.0 (0 %) 0.0 (0 %) 54.5 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 54.5 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 54.5 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 54.5 0.1 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
presenter 0.8 (1 %) 13.1 (24 %) 40.6 0.0 VideoOut.Flip 13.8, Driver.Present 0.0
title 0.0 (0 %) 0.0 (0 %) 54.5 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 54.5 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 54.5 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 54.5 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 54.5 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 54.5 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 54.5 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 54.5 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
gpu 27.8 (51 %) 0.0 (0 %) 26.7 0.0 batch 27.8

Largest slices (ms per frame, inclusive, all threads): batch 27.8, Graphics.Draw 19.2, VideoOut.Flip 13.8, Driver.Present 13.7, VideoOut.Flip.present 13.6, Recorder.WaitSerial 13.5, Driver.Present.render_fence_wait 12.8, Vulkan.Retire 12.8, Vulkan.Retire.wait 12.7, Driver.Packet 10.5

Longest waits

  • Recorder.WaitSerial (title) 14.9 ms at 11668 ms, present 5733
  • Recorder.WaitSerial (title) 14.8 ms at 9121 ms, present 5686
  • Recorder.WaitSerial (title) 14.7 ms at 9337 ms, present 5690
  • Recorder.WaitSerial (title) 14.7 ms at 12969 ms, present 5757
  • Recorder.WaitSerial (title) 14.7 ms at 8354 ms, present 5672
  • Recorder.WaitSerial (title) 14.6 ms at 11834 ms, present 5736
  • Recorder.WaitSerial (title) 14.6 ms at 12371 ms, present 5746
  • Recorder.WaitSerial (title) 14.6 ms at 10968 ms, present 5721
  • Recorder.WaitSerial (title) 14.5 ms at 13188 ms, present 5761
  • Recorder.WaitSerial (title) 14.5 ms at 14874 ms, present 5792

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

  • batch 8243: 9.6 ms at 13073 ms, present 5759: GPU no ranges; recorded by no CPU slices
  • batch 8106: 9.4 ms at 12855 ms, present 5755: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.draw_and_resource_release (draw committer) 0.5, Resources.Complete (draw committer) 0.1
  • batch 6974: 9.4 ms at 11070 ms, present 5722: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.4, Graphics.Draw.draw_and_resource_release (draw committer) 0.4, Resources.Complete (draw committer) 0.1, Resources.Prepare (draw committer) 0.0
  • batch 8037: 9.2 ms at 12748 ms, present 5753: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.3, Graphics.Draw.draw_and_resource_release (draw committer) 0.3, Vulkan.DrawFromRecipe (draw committer) 0.1, Graphics.DrawWithRecipe (draw committer) 0.1
  • batch 6316: 9.1 ms at 10034 ms, present 5703: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.draw_and_resource_release (draw committer) 0.5, Resources.Complete (draw committer) 0.1
Digest: main, run 2 (commit 2a8a0d1)

seconds 200:15 from present 5578: 283 presents, frame p50 52.8 / p90 54.4 / p99 56.7 / max 58.9 ms, GPU busy 27.8 ms per present
NVIDIA GeForce RTX 2080 Ti, NVIDIA 617.14, Windows 10.0.26300, 3840x2160, commit 2a8a0d1, dropped: yes

{"commit":"2a8a0d1fc338","dirty":false,"env":{"APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"200:15"},"gpu":"NVIDIA GeForce RTX 2080 Ti","driver":"NVIDIA 617.14","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz","cpu_threads":16,"memory_mib":65468,"title_id":"PPSA05324","title":"Sonic Origins","content_version":"02.002.000","resolution":"3840x2160","window":{"spec":"seconds 200:15","first_present":5578,"ms":15005.447},"presents":283,"frame_ms":{"p50":52.848,"p90":54.416,"p99":56.739,"max":58.865},"gpu_busy_ms_per_present":27.823,"worker_busy_pct":{"queue worker 0x0":96.564},"phase_totals_ms":{"Driver.Completion":1.465,"Driver.Dispatch":1112.671,"Driver.Dispatch.capture_resources":18.314,"Driver.Dispatch.decode_key_device_setup":656.504,"Driver.Dispatch.lookup_cache":13.847,"Driver.Dispatch.materialize":3.097,"Driver.Dispatch.prepared_invocation":2.73,"Driver.Draw":10774.936,"Driver.Draw.device_setup":848.091,"Driver.Draw.draw_enqueued":2270.955,"Driver.Draw.post_compile_prepare":112.871,"Driver.Draw.prepare":1281.736,"Driver.Draw.shader_compile_and_link":6003.322,"Driver.EndSubmission":13.47,"Driver.Packet":14474.826,"Driver.Packet.device_lock":181.82,"Driver.Packet.dispatch":1116.614,"Driver.Packet.draw":11009.777,"Driver.Packet.execute":409.962,"Driver.Packet.flip_flush":9.357,"Driver.Packet.flush_between_packets":507.345,"Driver.Packet.memory_wait":0.018,"Driver.Packet.pipeline_drain":343.296,"Driver.Packet.pipeline_prepare":256.873,"Driver.Packet.prepare_memory":268.152,"Driver.Packet.rendering_wait":0.349,"Driver.Present":3911.317,"Driver.Present.acquire_image":3.474,"Driver.Present.device_setup":0.268,"Driver.Present.gpu_mutex_wait":73.572,"Driver.Present.inflight_wait":0.692,"Driver.Present.present_display_buffer":49.497,"Driver.Present.queue_present":119.886,"Driver.Present.release_and_callback":0.723,"Driver.Present.render_fence_wait":3662.268,"Driver.Present.resize":0.59,"Driver.Present.validate":0.135,"Driver.Suspend":0.063,"GpuMutex.wait.dispatch":0.024,"GpuMutex.wait.draw":34.6,"GpuMutex.wait.end":0.644,"GpuMutex.wait.fill":1.034,"GpuMutex.wait.flush":4.259,"GpuMutex.wait.label":3.536,"GpuMutex.wait.other":31.841,"GpuMutex.wait.present":72.763,"GpuMutex.wait.wait":4.254,"Graphics.Draw":9361.971,"Graphics.Draw.draw_and_resource_release":7140.837,"Graphics.Draw.index_upload":534.407,"Graphics.Draw.validate":740.192,"Graphics.Draw.vertex_upload":767.163,"Graphics.DrawWithRecipe":556.508,"Graphics.DrawWithRecipe.draw_and_resource_release":540.396,"Graphics.DrawWithRecipe.index_upload":1.563,"Graphics.DrawWithRecipe.validate":6.246,"Graphics.DrawWithRecipe.vertex_upload":4.538,"Recorder.Reap":113.737,"Recorder.Submit":326.248,"Recorder.WaitSerial":3872.019,"Resources.Complete":61.963,"Resources.Prepare":84.215,"Shader.DrawStage":3918.936,"Shader.DrawStage.capture_resources":1787.018,"Shader.DrawStage.materialize":970.409,"Shader.DrawStage.prepared_invocation":1061.987,"Shader.ResolveAbi":150.852,"Shader.ResolveGraphicsAbi":42.595,"Shader.ResolveGraphicsStagesAbi":153.679,"VideoOut.Flip":3955.16,"VideoOut.Flip.completion_mutex_wait":0.637,"VideoOut.Flip.config_mutex_wait":0.056,"VideoOut.Flip.frame_limit":0.173,"VideoOut.Flip.notify_game":31.588,"VideoOut.Flip.present":3898.979,"VideoOut.Flip.validate":0.49,"VideoOut.Flip.vblank_wait":0.28,"VideoOut.Flip.window_prepare":0.765,"VideoOut.Flip.window_title":21.819,"VideoOut.Readiness":1.107,"VideoOut.Readiness.locks_validate":0.537,"Vulkan.Acquire":3.156,"Vulkan.Acquire.acquire_fence_wait":0.559,"Vulkan.Acquire.acquire_image":1.765,"Vulkan.Acquire.fence_reset":0.6,"Vulkan.Acquire.retired_swapchains":0.129,"Vulkan.Dispatch":186.937,"Vulkan.Dispatch.command_record":59.011,"Vulkan.Dispatch.shader_resources":126.651,"Vulkan.DispatchRecipe":0.243,"Vulkan.DispatchRecipe.command_record":0.242,"Vulkan.DrawFromRecipe":563.059,"Vulkan.Present":28.093,"Vulkan.Present.command_record_scale":8.844,"Vulkan.Present.pixel_upload":7.018,"Vulkan.Present.queue_submit":11.888,"Vulkan.QueuePresent":117.962,"Vulkan.QueuePresent.queue_present":117.111,"Vulkan.Retire":3661.716,"Vulkan.Retire.wait":3656.176},"top_phases_ms_per_frame":{"Driver.Packet":51.148,"Driver.Packet.draw":38.904,"Driver.Draw":38.074,"Graphics.Draw":33.081,"Graphics.Draw.draw_and_resource_release":25.233,"Driver.Draw.shader_compile_and_link":21.213,"VideoOut.Flip":13.976,"Shader.DrawStage":13.848},"owned_draw_counts":{"OwnedDraw.evicted_other":25307},"graphics_track":{"Graphics.Barrier.copy":1132,"Graphics.Barrier.dispatch-lead":1529,"Graphics.Barrier.dispatch-trail":3116,"Graphics.Barrier.draw":42347,"Graphics.Barrier.fill-clear":2830,"Graphics.Barrier.label-run":39099,"Graphics.Barrier.present-blit":566,"Graphics.Barrier.shadow-publish":2,"Graphics.Barrier.staging-in":2871,"Graphics.Barrier.staging-out":566,"Graphics.Barrier.storage-upload":32272,"Graphics.Barrier.storage-writeback":2628,"Graphics.BarrierMerged.dispatch-lead":1587,"Graphics.BarrierMerged.label-run":12,"Graphics.BarrierMerged.shadow-publish":2,"Graphics.BarrierMerged.staging-in":529,"Graphics.BarrierMerged.staging-out":566,"Graphics.BarrierMerged.storage-writeback":781,"Graphics.Copy":1983,"Graphics.Copy.bytes":18161904,"Graphics.RenderPass":21300,"Graphics.RenderPass.Close.command":13647,"Graphics.RenderPass.Close.image":544,"Graphics.RenderPass.Close.key":1692,"Graphics.RenderPass.Close.label":12,"Graphics.RenderPass.Close.new-batch":5406,"Graphics.RenderPass.Continued":533663},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":6.172,"events_lost":375942,"totals_full":false},"draw committer":{"events_full_after_s":14.728,"events_lost":5014,"totals_full":false}},"trace":"aps5-trace-2a8a0d1fc338-4748.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: 375942 events lost; buffer full at 6172.1 ms
  • draw committer: 5014 events lost; buffer full at 14728.0 ms

Slowest frames (largest slices inside each, inclusive)

  • present 5701: 58.9 ms at 6502 ms: batch (gpu) 30.1, Graphics.Draw (draw committer) 23.4, Graphics.Draw.draw_and_resource_release (draw committer) 15.3, VideoOut.Flip (presenter) 14.6
  • present 5834: 56.8 ms at 13575 ms: batch (gpu) 28.4, Graphics.Draw (draw committer) 22.0, VideoOut.Flip (presenter) 14.2, VideoOut.Flip.present (presenter) 14.0
  • present 5763: 56.7 ms at 9791 ms: batch (gpu) 28.9, Graphics.Draw (draw committer) 20.4, Graphics.Draw.draw_and_resource_release (draw committer) 14.0, VideoOut.Flip (presenter) 13.9
  • present 5782: 56.5 ms at 10804 ms: batch (gpu) 28.4, Graphics.Draw (draw committer) 19.5, VideoOut.Flip (presenter) 14.9, VideoOut.Flip.present (presenter) 14.7
  • present 5631: 56.3 ms at 2797 ms: Driver.Packet (queue worker 0x0) 27.9, batch (gpu) 27.2, Graphics.Draw (draw committer) 22.4, Driver.Packet.draw (queue worker 0x0) 22.0

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

  • present 5701: 58.9 ms at 6502 ms, persistence 7.7 ms
  • present 5834: 56.8 ms at 13575 ms, persistence 5.5 ms
  • present 5631: 56.3 ms at 2797 ms, persistence 5.1 ms
  • present 5763: 56.7 ms at 9791 ms, persistence 4.9 ms
  • present 5669: 56.0 ms at 4800 ms, persistence 4.7 ms
  • present 5612: 55.8 ms at 1797 ms, persistence 4.6 ms
  • present 5650: 55.9 ms at 3799 ms, persistence 4.5 ms
  • present 5782: 56.5 ms at 10804 ms, persistence 4.4 ms
  • present 5721: 55.8 ms at 7564 ms, persistence 4.4 ms
  • present 5593: 55.7 ms at 789 ms, persistence 4.2 ms

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
title 0.0 (0 %) 13.7 (26 %) 39.3 0.5 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
queue worker 0x0 10.5 (20 %) 0.0 (0 %) 42.5 51.4 Driver.Packet 10.5, Driver.EndSubmission 0.0
draw committer 21.3 (40 %) 0.3 (0 %) 31.5 37.4 Graphics.Draw 18.3, Vulkan.DrawFromRecipe 1.9
title 0.0 (0 %) 0.0 (0 %) 53.0 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 53.0 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 53.0 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 53.0 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
presenter 0.8 (2 %) 13.2 (25 %) 39.0 0.0 VideoOut.Flip 14.0, Driver.Present 0.0
title 0.0 (0 %) 0.0 (0 %) 53.0 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 53.0 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 53.0 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 53.0 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 53.0 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 53.0 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 53.0 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 53.0 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
gpu 27.8 (52 %) 0.0 (0 %) 25.2 0.0 batch 27.8

Largest slices (ms per frame, inclusive, all threads): batch 27.8, Graphics.Draw 18.3, VideoOut.Flip 14.0, Driver.Present 13.8, VideoOut.Flip.present 13.8, Recorder.WaitSerial 13.7, Driver.Present.render_fence_wait 12.9, Vulkan.Retire 12.9, Vulkan.Retire.wait 12.9, Driver.Packet 10.5

Longest waits

  • Recorder.WaitSerial (title) 15.0 ms at 10753 ms, present 5781
  • Recorder.WaitSerial (title) 15.0 ms at 9738 ms, present 5762
  • Recorder.WaitSerial (title) 14.9 ms at 5923 ms, present 5690
  • Recorder.WaitSerial (title) 14.9 ms at 8624 ms, present 5740
  • Recorder.WaitSerial (title) 14.8 ms at 10646 ms, present 5778
  • Recorder.WaitSerial (title) 14.8 ms at 10861 ms, present 5783
  • Recorder.WaitSerial (title) 14.7 ms at 1586 ms, present 5607
  • Driver.Present.render_fence_wait (presenter) 14.7 ms at 9738 ms, present 5762
  • Recorder.WaitSerial (title) 14.7 ms at 8729 ms, present 5743
  • Recorder.WaitSerial (title) 14.7 ms at 9578 ms, present 5758

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

  • batch 4915: 9.2 ms at 7613 ms, present 5721: GPU no ranges; recorded by Vulkan.DrawFromRecipe (draw committer) 0.3, Graphics.DrawWithRecipe (draw committer) 0.3, Graphics.DrawWithRecipe.draw_and_resource_release (draw committer) 0.3, Graphics.Draw (draw committer) 0.1
  • batch 1536: 9.2 ms at 2369 ms, present 5622: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.4, Graphics.Draw.draw_and_resource_release (draw committer) 0.4, Resources.Complete (draw committer) 0.0, Vulkan.DrawFromRecipe (draw committer) 0.0
  • batch 1093: 9.1 ms at 1686 ms, present 5609: GPU no ranges; recorded by Vulkan.DrawFromRecipe (draw committer) 0.2, Graphics.DrawWithRecipe (draw committer) 0.2, Graphics.DrawWithRecipe.draw_and_resource_release (draw committer) 0.2, Graphics.Draw (draw committer) 0.1
  • batch 6183: 9.1 ms at 9572 ms, present 5758: GPU no ranges; recorded by no CPU slices
  • batch 6459: 9.1 ms at 10001 ms, present 5766: GPU no ranges; recorded by no CPU slices
Digest: this PR, run 1 (commit 4b7d580)

seconds 200:15 from present 5545: 282 presents, frame p50 52.9 / p90 54.8 / p99 58.3 / max 58.8 ms, GPU busy 27.8 ms per present
NVIDIA GeForce RTX 2080 Ti, NVIDIA 617.14, Windows 10.0.26300, 3840x2160, commit 4b7d580, dropped: yes

{"commit":"4b7d5805d3ba","dirty":false,"env":{"APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"200:15"},"gpu":"NVIDIA GeForce RTX 2080 Ti","driver":"NVIDIA 617.14","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz","cpu_threads":16,"memory_mib":65468,"title_id":"PPSA05324","title":"Sonic Origins","content_version":"02.002.000","resolution":"3840x2160","window":{"spec":"seconds 200:15","first_present":5545,"ms":15000.999},"presents":282,"frame_ms":{"p50":52.888,"p90":54.844,"p99":58.295,"max":58.762},"gpu_busy_ms_per_present":27.788,"worker_busy_pct":{"queue worker 0x0":96.45},"phase_totals_ms":{"Driver.Completion":1.502,"Driver.Dispatch":1076.3,"Driver.Dispatch.capture_resources":16.893,"Driver.Dispatch.decode_key_device_setup":622.053,"Driver.Dispatch.lookup_cache":13.534,"Driver.Dispatch.materialize":3.028,"Driver.Dispatch.prepared_invocation":2.578,"Driver.Draw":10822.143,"Driver.Draw.device_setup":893.675,"Driver.Draw.draw_enqueued":2330.169,"Driver.Draw.post_compile_prepare":125.029,"Driver.Draw.prepare":1263.319,"Driver.Draw.shader_compile_and_link":5942.513,"Driver.EndSubmission":12.028,"Driver.Packet":14454.801,"Driver.Packet.device_lock":183.984,"Driver.Packet.dispatch":1080.041,"Driver.Packet.draw":11043.753,"Driver.Packet.execute":407.545,"Driver.Packet.flip_flush":9.167,"Driver.Packet.flush_between_packets":507.561,"Driver.Packet.memory_wait":0.003,"Driver.Packet.pipeline_drain":333.928,"Driver.Packet.pipeline_prepare":259.822,"Driver.Packet.prepare_memory":276.102,"Driver.Packet.rendering_wait":0.358,"Driver.Present":3910.954,"Driver.Present.acquire_image":3.574,"Driver.Present.device_setup":0.163,"Driver.Present.gpu_mutex_wait":58.483,"Driver.Present.inflight_wait":0.698,"Driver.Present.present_display_buffer":50.023,"Driver.Present.queue_present":119.943,"Driver.Present.release_and_callback":0.781,"Driver.Present.render_fence_wait":3676.287,"Driver.Present.resize":0.528,"Driver.Present.validate":0.098,"Driver.Suspend":0.082,"GpuMutex.wait.dispatch":0.082,"GpuMutex.wait.draw":36.75,"GpuMutex.wait.end":0.017,"GpuMutex.wait.fill":1.343,"GpuMutex.wait.flush":6.305,"GpuMutex.wait.label":0.437,"GpuMutex.wait.other":34.157,"GpuMutex.wait.present":57.658,"GpuMutex.wait.wait":2.363,"Graphics.Draw":9139.03,"Graphics.Draw.draw_and_resource_release":6984.434,"Graphics.Draw.index_upload":502.978,"Graphics.Draw.validate":727.072,"Graphics.Draw.vertex_upload":759.214,"Graphics.DrawWithRecipe":554.479,"Graphics.DrawWithRecipe.draw_and_resource_release":538.696,"Graphics.DrawWithRecipe.index_upload":1.446,"Graphics.DrawWithRecipe.validate":5.959,"Graphics.DrawWithRecipe.vertex_upload":4.533,"Recorder.Reap":116.122,"Recorder.Submit":322.108,"Recorder.WaitSerial":3878.053,"Resources.Complete":66.38,"Resources.Prepare":84.369,"Shader.DrawStage":3993.975,"Shader.DrawStage.capture_resources":1846.198,"Shader.DrawStage.materialize":1019.385,"Shader.DrawStage.prepared_invocation":1030.352,"Shader.ResolveAbi":152.139,"Shader.ResolveGraphicsAbi":43.287,"Shader.ResolveGraphicsStagesAbi":154.968,"VideoOut.Flip":3952.949,"VideoOut.Flip.completion_mutex_wait":0.753,"VideoOut.Flip.config_mutex_wait":0.055,"VideoOut.Flip.frame_limit":0.159,"VideoOut.Flip.notify_game":29.422,"VideoOut.Flip.present":3900.205,"VideoOut.Flip.validate":0.302,"VideoOut.Flip.vblank_wait":0.219,"VideoOut.Flip.window_prepare":0.559,"VideoOut.Flip.window_title":20.808,"VideoOut.Readiness":1.097,"VideoOut.Readiness.locks_validate":0.454,"Vulkan.Acquire":3.267,"Vulkan.Acquire.acquire_fence_wait":0.558,"Vulkan.Acquire.acquire_image":1.726,"Vulkan.Acquire.fence_reset":0.684,"Vulkan.Acquire.retired_swapchains":0.157,"Vulkan.Dispatch":187.519,"Vulkan.Dispatch.command_record":58.702,"Vulkan.Dispatch.shader_resources":127.589,"Vulkan.DrawFromRecipe":561.144,"Vulkan.Present":29.127,"Vulkan.Present.command_record_scale":8.87,"Vulkan.Present.pixel_upload":7.157,"Vulkan.Present.queue_submit":12.754,"Vulkan.QueuePresent":118.059,"Vulkan.QueuePresent.queue_present":117.355,"Vulkan.Retire":3675.822,"Vulkan.Retire.wait":3670.112},"top_phases_ms_per_frame":{"Driver.Packet":51.258,"Driver.Packet.draw":39.162,"Driver.Draw":38.376,"Graphics.Draw":32.408,"Graphics.Draw.draw_and_resource_release":24.767,"Driver.Draw.shader_compile_and_link":21.073,"Shader.DrawStage":14.163,"VideoOut.Flip":14.018},"owned_draw_counts":{"OwnedDraw.evicted_other":25932},"graphics_track":{"Graphics.Barrier.copy":1128,"Graphics.Barrier.dispatch-lead":1484,"Graphics.Barrier.dispatch-trail":3105,"Graphics.Barrier.draw":42399,"Graphics.Barrier.fill-clear":2820,"Graphics.Barrier.label-run":38922,"Graphics.Barrier.present-blit":564,"Graphics.Barrier.shadow-publish":2,"Graphics.Barrier.staging-in":2862,"Graphics.Barrier.staging-out":564,"Graphics.Barrier.storage-upload":32158,"Graphics.Barrier.storage-writeback":2600,"Graphics.BarrierMerged.dispatch-lead":1621,"Graphics.BarrierMerged.label-run":10,"Graphics.BarrierMerged.shadow-publish":2,"Graphics.BarrierMerged.staging-in":526,"Graphics.BarrierMerged.staging-out":564,"Graphics.BarrierMerged.storage-writeback":798,"Graphics.Copy":1976,"Graphics.Copy.bytes":18097728,"Graphics.RenderPass":21317,"Graphics.RenderPass.Close.command":13609,"Graphics.RenderPass.Close.image":544,"Graphics.RenderPass.Close.key":1689,"Graphics.RenderPass.Close.label":10,"Graphics.RenderPass.Close.new-batch":5466,"Graphics.RenderPass.Continued":531685},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":6.16,"events_lost":379452,"totals_full":false}},"trace":"aps5-trace-4b7d5805d3ba-20648.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: 379452 events lost; buffer full at 6160.3 ms

Slowest frames (largest slices inside each, inclusive)

  • present 5615: 58.8 ms at 3717 ms: Driver.Packet (queue worker 0x0) 30.7, batch (gpu) 28.8, Driver.Packet.draw (queue worker 0x0) 24.5, Driver.Draw (queue worker 0x0) 24.0
  • present 5580: 58.4 ms at 1858 ms: Driver.Packet (queue worker 0x0) 30.1, batch (gpu) 29.4, Driver.Packet.draw (queue worker 0x0) 23.3, Driver.Draw (queue worker 0x0) 22.8
  • present 5768: 58.3 ms at 11862 ms: batch (gpu) 29.3, Graphics.Draw (draw committer) 21.5, VideoOut.Flip (presenter) 14.5, VideoOut.Flip.present (presenter) 14.3
  • present 5561: 58.1 ms at 848 ms: batch (gpu) 31.1, Driver.Packet (queue worker 0x0) 30.4, Driver.Packet.draw (queue worker 0x0) 22.7, Driver.Draw (queue worker 0x0) 21.7
  • present 5655: 57.2 ms at 5846 ms: batch (gpu) 30.4, Driver.Packet (queue worker 0x0) 29.7, Driver.Packet.draw (queue worker 0x0) 22.4, Driver.Draw (queue worker 0x0) 21.7

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

  • present 5615: 58.8 ms at 3717 ms, persistence 7.3 ms
  • present 5768: 58.3 ms at 11862 ms, persistence 6.8 ms
  • present 5580: 58.4 ms at 1858 ms, persistence 6.8 ms
  • present 5561: 58.1 ms at 848 ms, persistence 6.2 ms
  • present 5655: 57.2 ms at 5846 ms, persistence 5.6 ms
  • present 5599: 57.1 ms at 2869 ms, persistence 5.5 ms
  • present 5806: 56.8 ms at 13881 ms, persistence 5.0 ms
  • present 5673: 56.9 ms at 6807 ms, persistence 5.0 ms
  • present 5734: 56.9 ms at 10052 ms, persistence 5.0 ms
  • present 5693: 56.8 ms at 7874 ms, persistence 5.0 ms

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
title 0.1 (0 %) 13.8 (26 %) 39.4 0.5 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
queue worker 0x0 10.4 (20 %) 0.0 (0 %) 42.8 52.1 Driver.Packet 10.4, Driver.EndSubmission 0.0
draw committer 21.2 (40 %) 0.3 (1 %) 31.7 37.8 Graphics.Draw 18.2, Vulkan.DrawFromRecipe 1.9
title 0.0 (0 %) 0.0 (0 %) 53.2 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 53.2 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 53.2 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 53.2 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
presenter 0.8 (2 %) 13.2 (25 %) 39.1 0.0 VideoOut.Flip 14.0, Driver.Present 0.0
title 0.0 (0 %) 0.0 (0 %) 53.2 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 53.2 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 53.2 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 53.2 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 53.2 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 53.2 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 53.2 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 53.2 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
gpu 27.8 (52 %) 0.0 (0 %) 25.4 0.0 batch 27.8

Largest slices (ms per frame, inclusive, all threads): batch 27.8, Graphics.Draw 18.2, VideoOut.Flip 14.0, Driver.Present 13.9, VideoOut.Flip.present 13.8, Recorder.WaitSerial 13.8, Driver.Present.render_fence_wait 13.0, Vulkan.Retire 13.0, Vulkan.Retire.wait 13.0, Driver.Packet 10.4

Longest waits

  • Recorder.WaitSerial (title) 15.4 ms at 8198 ms, present 5698
  • Recorder.WaitSerial (title) 15.1 ms at 7556 ms, present 5686
  • Recorder.WaitSerial (title) 15.1 ms at 2288 ms, present 5587
  • Recorder.WaitSerial (title) 15.0 ms at 6225 ms, present 5661
  • Recorder.WaitSerial (title) 15.0 ms at 8460 ms, present 5703
  • Recorder.WaitSerial (title) 15.0 ms at 9888 ms, present 5730
  • Recorder.WaitSerial (title) 14.9 ms at 6807 ms, present 5672
  • Recorder.WaitSerial (title) 14.8 ms at 6011 ms, present 5658
  • Recorder.WaitSerial (title) 14.8 ms at 10109 ms, present 5734
  • Recorder.WaitSerial (title) 14.8 ms at 8408 ms, present 5702

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

  • batch 6503: 9.2 ms at 10104 ms, present 5734: GPU no ranges; recorded by Vulkan.DrawFromRecipe (draw committer) 0.2, Graphics.DrawWithRecipe (draw committer) 0.1, Graphics.DrawWithRecipe.draw_and_resource_release (draw committer) 0.1, Graphics.Draw (draw committer) 0.1
  • batch 2776: 9.1 ms at 4307 ms, present 5625: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.6, Graphics.Draw.draw_and_resource_release (draw committer) 0.5, Vulkan.DrawFromRecipe (draw committer) 0.1, Graphics.DrawWithRecipe (draw committer) 0.1
  • batch 2262: 9.1 ms at 3503 ms, present 5610: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.3, Graphics.Draw.draw_and_resource_release (draw committer) 0.3, Resources.Complete (draw committer) 0.1
  • batch 3802: 9.1 ms at 5895 ms, present 5655: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.3, Graphics.Draw.draw_and_resource_release (draw committer) 0.3, Vulkan.DrawFromRecipe (draw committer) 0.2, Graphics.DrawWithRecipe (draw committer) 0.2
  • batch 1331: 9.0 ms at 2070 ms, present 5583: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 7.1, Driver.Packet.dispatch (queue worker 0x0) 3.2, Driver.Dispatch (queue worker 0x0) 3.2, Driver.Packet.draw (queue worker 0x0) 3.1
Digest: this PR, run 2 (commit 4b7d580)

seconds 200:15 from present 5509: 279 presents, frame p50 53.6 / p90 55.4 / p99 57.6 / max 59.0 ms, GPU busy 27.9 ms per present
NVIDIA GeForce RTX 2080 Ti, NVIDIA 617.14, Windows 10.0.26300, 3840x2160, commit 4b7d580, dropped: yes

{"commit":"4b7d5805d3ba","dirty":false,"env":{"APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"200:15"},"gpu":"NVIDIA GeForce RTX 2080 Ti","driver":"NVIDIA 617.14","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz","cpu_threads":16,"memory_mib":65468,"title_id":"PPSA05324","title":"Sonic Origins","content_version":"02.002.000","resolution":"3840x2160","window":{"spec":"seconds 200:15","first_present":5509,"ms":15019.121},"presents":279,"frame_ms":{"p50":53.596,"p90":55.426,"p99":57.562,"max":59.038},"gpu_busy_ms_per_present":27.947,"worker_busy_pct":{"queue worker 0x0":96.467},"phase_totals_ms":{"Driver.Completion":1.461,"Driver.Dispatch":1085.214,"Driver.Dispatch.capture_resources":18.475,"Driver.Dispatch.decode_key_device_setup":632.81,"Driver.Dispatch.lookup_cache":13.538,"Driver.Dispatch.materialize":2.826,"Driver.Dispatch.prepared_invocation":2.567,"Driver.Draw":10855.246,"Driver.Draw.device_setup":892.434,"Driver.Draw.draw_enqueued":2335.286,"Driver.Draw.post_compile_prepare":122.43,"Driver.Draw.prepare":1254.306,"Driver.Draw.shader_compile_and_link":5983.712,"Driver.EndSubmission":12.467,"Driver.Packet":14474.449,"Driver.Packet.device_lock":184.479,"Driver.Packet.dispatch":1088.905,"Driver.Packet.draw":11071.69,"Driver.Packet.execute":403.416,"Driver.Packet.flip_flush":9.106,"Driver.Packet.flush_between_packets":489.214,"Driver.Packet.memory_wait":0.011,"Driver.Packet.pipeline_drain":349.606,"Driver.Packet.pipeline_prepare":257.142,"Driver.Packet.prepare_memory":265.006,"Driver.Packet.rendering_wait":0.365,"Driver.Present":3894.815,"Driver.Present.acquire_image":3.43,"Driver.Present.device_setup":0.196,"Driver.Present.gpu_mutex_wait":66.991,"Driver.Present.inflight_wait":0.693,"Driver.Present.present_display_buffer":49.42,"Driver.Present.queue_present":121.335,"Driver.Present.release_and_callback":0.678,"Driver.Present.render_fence_wait":3651.102,"Driver.Present.resize":0.589,"Driver.Present.validate":0.082,"Driver.Suspend":0.057,"GpuMutex.wait.dispatch":0.056,"GpuMutex.wait.draw":36.789,"GpuMutex.wait.end":0.256,"GpuMutex.wait.fill":1.677,"GpuMutex.wait.flush":3.4,"GpuMutex.wait.label":2.048,"GpuMutex.wait.other":35.598,"GpuMutex.wait.present":65.977,"GpuMutex.wait.wait":2.337,"Graphics.Draw":9216.163,"Graphics.Draw.draw_and_resource_release":7003.702,"Graphics.Draw.index_upload":504.945,"Graphics.Draw.validate":776.205,"Graphics.Draw.vertex_upload":766.815,"Graphics.DrawWithRecipe":554.976,"Graphics.DrawWithRecipe.draw_and_resource_release":538.558,"Graphics.DrawWithRecipe.index_upload":1.736,"Graphics.DrawWithRecipe.validate":5.97,"Graphics.DrawWithRecipe.vertex_upload":4.74,"Recorder.Reap":111.056,"Recorder.Submit":318.29,"Recorder.WaitSerial":3858.141,"Resources.Complete":60.141,"Resources.Prepare":84.022,"Shader.DrawStage":4094.787,"Shader.DrawStage.capture_resources":1848.455,"Shader.DrawStage.materialize":1109.708,"Shader.DrawStage.prepared_invocation":1040.341,"Shader.ResolveAbi":151.519,"Shader.ResolveGraphicsAbi":43.399,"Shader.ResolveGraphicsStagesAbi":154.275,"VideoOut.Flip":3924.274,"VideoOut.Flip.completion_mutex_wait":0.554,"VideoOut.Flip.config_mutex_wait":0.071,"VideoOut.Flip.frame_limit":0.15,"VideoOut.Flip.notify_game":17.329,"VideoOut.Flip.present":3883.502,"VideoOut.Flip.validate":0.3,"VideoOut.Flip.vblank_wait":0.216,"VideoOut.Flip.window_prepare":0.742,"VideoOut.Flip.window_title":21.068,"VideoOut.Readiness":0.806,"VideoOut.Readiness.locks_validate":0.407,"Vulkan.Acquire":3.117,"Vulkan.Acquire.acquire_fence_wait":0.561,"Vulkan.Acquire.acquire_image":1.627,"Vulkan.Acquire.fence_reset":0.606,"Vulkan.Acquire.retired_swapchains":0.215,"Vulkan.Dispatch":185.638,"Vulkan.Dispatch.command_record":57.877,"Vulkan.Dispatch.shader_resources":126.451,"Vulkan.DispatchRecipe":0.479,"Vulkan.DispatchRecipe.command_record":0.477,"Vulkan.DrawFromRecipe":561.74,"Vulkan.Present":28.075,"Vulkan.Present.command_record_scale":8.609,"Vulkan.Present.pixel_upload":7.34,"Vulkan.Present.queue_submit":11.799,"Vulkan.QueuePresent":119.525,"Vulkan.QueuePresent.queue_present":118.642,"Vulkan.Retire":3650.75,"Vulkan.Retire.wait":3643.927},"top_phases_ms_per_frame":{"Driver.Packet":51.88,"Driver.Packet.draw":39.683,"Driver.Draw":38.908,"Graphics.Draw":33.033,"Graphics.Draw.draw_and_resource_release":25.103,"Driver.Draw.shader_compile_and_link":21.447,"Shader.DrawStage":14.677,"VideoOut.Flip":14.065},"owned_draw_counts":{"OwnedDraw.evicted_other":25637},"graphics_track":{"Graphics.Barrier.copy":1116,"Graphics.Barrier.dispatch-lead":1506,"Graphics.Barrier.dispatch-trail":3072,"Graphics.Barrier.draw":42273,"Graphics.Barrier.fill-clear":2790,"Graphics.Barrier.input-mirror":140,"Graphics.Barrier.label-run":38518,"Graphics.Barrier.present-blit":558,"Graphics.Barrier.shadow-publish":2,"Graphics.Barrier.staging-in":2829,"Graphics.Barrier.staging-out":558,"Graphics.Barrier.storage-upload":31816,"Graphics.Barrier.storage-writeback":2562,"Graphics.BarrierMerged.dispatch-lead":1566,"Graphics.BarrierMerged.label-run":20,"Graphics.BarrierMerged.shadow-publish":2,"Graphics.BarrierMerged.staging-in":523,"Graphics.BarrierMerged.staging-out":558,"Graphics.BarrierMerged.storage-writeback":800,"Graphics.Copy":2095,"Graphics.Copy.bytes":17906880,"Graphics.RenderPass":21252,"Graphics.RenderPass.Close.command":13619,"Graphics.RenderPass.Close.image":538,"Graphics.RenderPass.Close.key":1672,"Graphics.RenderPass.Close.label":20,"Graphics.RenderPass.Close.new-batch":5404,"Graphics.RenderPass.Continued":525867},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":6.059,"events_lost":390059,"totals_full":false},"draw committer":{"events_full_after_s":14.974,"events_lost":864,"totals_full":false}},"trace":"aps5-trace-4b7d5805d3ba-22480.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: 390059 events lost; buffer full at 6059.3 ms
  • draw committer: 864 events lost; buffer full at 14974.5 ms

Slowest frames (largest slices inside each, inclusive)

  • present 5770: 59.0 ms at 14045 ms: batch (gpu) 30.4, Graphics.Draw (draw committer) 22.0, VideoOut.Flip (presenter) 13.8, Recorder.WaitSerial (title) 13.6
  • present 5591: 57.6 ms at 4413 ms: Driver.Packet (queue worker 0x0) 30.1, batch (gpu) 29.5, Driver.Packet.draw (queue worker 0x0) 23.2, Driver.Draw (queue worker 0x0) 22.6
  • present 5510: 57.6 ms at 54 ms: Driver.Packet (queue worker 0x0) 30.1, batch (gpu) 29.3, Driver.Packet.draw (queue worker 0x0) 22.6, Driver.Draw (queue worker 0x0) 22.1
  • present 5696: 57.4 ms at 10064 ms: batch (gpu) 28.5, Graphics.Draw (draw committer) 21.6, VideoOut.Flip (presenter) 14.5, VideoOut.Flip.present (presenter) 14.4
  • present 5603: 57.3 ms at 5063 ms: batch (gpu) 29.5, Driver.Packet (queue worker 0x0) 29.0, Driver.Packet.draw (queue worker 0x0) 22.1, Driver.Draw (queue worker 0x0) 21.5

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

  • present 5770: 59.0 ms at 14045 ms, persistence 7.1 ms
  • present 5591: 57.6 ms at 4413 ms, persistence 5.6 ms
  • present 5510: 57.6 ms at 54 ms, persistence 5.4 ms
  • present 5696: 57.4 ms at 10064 ms, persistence 5.4 ms
  • present 5603: 57.3 ms at 5063 ms, persistence 4.9 ms
  • present 5657: 57.2 ms at 7968 ms, persistence 4.8 ms
  • present 5726: 57.1 ms at 11675 ms, persistence 4.8 ms
  • present 5566: 57.1 ms at 3066 ms, persistence 4.8 ms
  • present 5640: 56.8 ms at 7057 ms, persistence 4.2 ms
  • present 5752: 56.5 ms at 13075 ms, persistence 4.1 ms

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
title 0.1 (0 %) 13.8 (26 %) 39.9 0.5 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
queue worker 0x0 10.5 (20 %) 0.0 (0 %) 43.3 51.9 Driver.Packet 10.5, Driver.EndSubmission 0.0
draw committer 21.6 (40 %) 0.3 (1 %) 32.0 38.2 Graphics.Draw 18.6, Vulkan.DrawFromRecipe 1.9
title 0.0 (0 %) 0.0 (0 %) 53.8 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 53.8 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 53.8 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
presenter 0.8 (1 %) 13.3 (25 %) 39.7 0.0 VideoOut.Flip 14.1, Driver.Present 0.0
title 0.0 (0 %) 0.0 (0 %) 53.8 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 53.8 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 53.8 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 53.8 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 53.8 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 53.8 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 53.8 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 53.8 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 53.8 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
gpu 27.9 (52 %) 0.0 (0 %) 25.9 0.0 batch 27.9

Largest slices (ms per frame, inclusive, all threads): batch 27.9, Graphics.Draw 18.6, VideoOut.Flip 14.1, Driver.Present 14.0, VideoOut.Flip.present 13.9, Recorder.WaitSerial 13.8, Driver.Present.render_fence_wait 13.1, Vulkan.Retire 13.1, Vulkan.Retire.wait 13.1, Driver.Packet 10.5

Longest waits

  • Recorder.WaitSerial (title) 15.3 ms at 9582 ms, present 5686
  • Recorder.WaitSerial (title) 15.0 ms at 5600 ms, present 5612
  • Recorder.WaitSerial (title) 15.0 ms at 14268 ms, present 5774
  • Recorder.WaitSerial (title) 15.0 ms at 1456 ms, present 5535
  • Recorder.WaitSerial (title) 14.9 ms at 11352 ms, present 5719
  • Recorder.WaitSerial (title) 14.9 ms at 10816 ms, present 5709
  • Recorder.WaitSerial (title) 14.9 ms at 12862 ms, present 5747
  • Recorder.WaitSerial (title) 14.9 ms at 13075 ms, present 5751
  • Recorder.WaitSerial (title) 14.8 ms at 7382 ms, present 5645
  • Recorder.WaitSerial (title) 14.8 ms at 648 ms, present 5520

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

  • batch 4448: 9.3 ms at 6998 ms, present 5638: GPU no ranges; recorded by no CPU slices
  • batch 4005: 9.2 ms at 6301 ms, present 5625: GPU no ranges; recorded by Vulkan.DrawFromRecipe (draw committer) 0.3, Graphics.DrawWithRecipe (draw committer) 0.3, Graphics.DrawWithRecipe.draw_and_resource_release (draw committer) 0.3, Graphics.Draw (draw committer) 0.1
  • batch 6430: 9.2 ms at 10116 ms, present 5696: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.3, Graphics.Draw.draw_and_resource_release (draw committer) 0.3, Vulkan.DrawFromRecipe (draw committer) 0.0, Resources.Complete (draw committer) 0.0
  • batch 606: 9.1 ms at 966 ms, present 5526: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 6.8, Driver.Packet.draw (queue worker 0x0) 3.0, Driver.Packet.dispatch (queue worker 0x0) 3.0, Driver.Draw (queue worker 0x0) 3.0
  • batch 3554: 9.1 ms at 5595 ms, present 5612: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 6.5, Driver.Packet.draw (queue worker 0x0) 3.1, Driver.Draw (queue worker 0x0) 3.0, Driver.Packet.dispatch (queue worker 0x0) 2.8

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt and the licence notice of code adapted from upstream (see AGENTS.md)
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: NVIDIA GeForce RTX 2080 Ti, driver 617.14, Windows 11 (10.0.26300)
  • AI-assisted: yes

Traces

Main, commit 2a8a0d1 (two runs):
m343_traces_main_2a8a0d1fc338.zip

This PR, commit 4b7d580 (two runs):
m343_traces_change_4b7d5805d3ba.zip

@github-actions github-actions Bot added perf Performance change build docs agc libSceAgc* labels Nov 17, 2026
@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
PR 22217 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawDecode.cpp L46-48

Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 1896 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawPipeline.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPipeline.cpp
docs/dev/ENVIRONMENT.md
PR 4472 docs/dev/ENVIRONMENT.md
PR 6186 docs/dev/ENVIRONMENT.md
PR 6188 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawPipeline.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawDecode.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPipeline.cpp
PR 6235 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawDecode.cpp
PR 6924 docs/dev/ENVIRONMENT.md
PR 7275 docs/dev/ENVIRONMENT.md
PR 7642 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPipeline.cpp
docs/dev/ENVIRONMENT.md
PR 7643 docs/dev/ENVIRONMENT.md
PR 8246 docs/dev/ENVIRONMENT.md
PR 9345 docs/dev/ENVIRONMENT.md
PR 9356 docs/dev/ENVIRONMENT.md
PR 9387 docs/dev/ENVIRONMENT.md
PR 9508 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawPipeline.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPipeline.cpp
docs/dev/ENVIRONMENT.md
PR 9712 docs/dev/ENVIRONMENT.md
PR 9852 docs/dev/ENVIRONMENT.md
PR 10193 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPipeline.cpp
docs/dev/ENVIRONMENT.md
PR 10442 docs/dev/ENVIRONMENT.md
PR 10443 docs/dev/ENVIRONMENT.md
PR 11435 docs/dev/ENVIRONMENT.md
PR 11436 docs/dev/ENVIRONMENT.md
PR 12746 docs/dev/ENVIRONMENT.md
PR 12849 docs/dev/ENVIRONMENT.md
PR 13809 docs/dev/ENVIRONMENT.md
PR 13863 docs/dev/ENVIRONMENT.md
PR 13920 docs/dev/ENVIRONMENT.md
PR 13928 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPipeline.cpp
docs/dev/ENVIRONMENT.md
PR 13929 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPipeline.cpp
docs/dev/ENVIRONMENT.md
PR 14262 docs/dev/ENVIRONMENT.md
PR 15136 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawPipeline.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPipeline.cpp
PR 15529 docs/dev/ENVIRONMENT.md
PR 15548 docs/dev/ENVIRONMENT.md
PR 15570 docs/dev/ENVIRONMENT.md
PR 16793 docs/dev/ENVIRONMENT.md
PR 16831 docs/dev/ENVIRONMENT.md
PR 17259 docs/dev/ENVIRONMENT.md
PR 17557 docs/dev/ENVIRONMENT.md
PR 17558 docs/dev/ENVIRONMENT.md
PR 17611 docs/dev/ENVIRONMENT.md
PR 17729 docs/dev/ENVIRONMENT.md
PR 18173 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPipeline.cpp
docs/dev/ENVIRONMENT.md
PR 18226 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawPipeline.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPipeline.cpp
docs/dev/ENVIRONMENT.md
PR 19181 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPipeline.cpp
PR 19445 docs/dev/ENVIRONMENT.md
PR 20187 docs/dev/ENVIRONMENT.md
PR 20315 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawPipeline.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPipeline.cpp
docs/dev/ENVIRONMENT.md

@kurexw kurexw left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested on macOS 27.2 on an Apple M4. This is an x86-64 build under Rosetta with Apple clang 21.0.0, on MoltenVK 1.4.2 from the LunarG Vulkan SDK 1.4.363.1.

Method. The base was main at a72186d plus #22056 and #22074, which fix the macOS build of two other targets; both have since merged. I built the base and this PR merged onto it (a clean merge) in two separate build directories. I ran them alternately, base then PR, three times each, with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1, VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation and VK_LOADER_DEBUG=layer:

ctest --test-dir build -R '^agc_driver_vertex_table_read_order' -V
Test base (3 runs) This PR (3 runs)
agc_driver_vertex_table_read_order Passed Passed
agc_driver_vertex_table_read_order_counts_off (absent) Passed

All runs gave the same results. These tests open no Vulkan device, so no log has a layer insert and there is nothing for validation to check. There were 0 VUID- lines.

Not tested: the speed claim. I have no title or capture to run here, so I can't compare WatchWrites or WrittenSince sample counts on macOS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agc libSceAgc* build docs perf Performance change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants