perf(agc): reserve a physical core each for the draw committer and the draw finisher on Windows #17697

Merged
Nesyth merged 4 commits from upstream-pr/17697 into main 2026-11-12 19:36:20 +00:00
Nesyth commented 2026-11-09 10:28:28 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Nesyth on 2026-11-09T10:28:28Z.


What

Windows can leave another busy thread on the SMT sibling of the draw committer's core for a whole run. The committer then stays slower until the process exits, and boots of the same scene fall into fast and slow modes. This PR gives the committer, and the draw finisher when it runs, a physical core of their own through CPU sets.

  • When its thread starts, the committer takes the highest-numbered core of the highest efficiency class (the performance cores on hybrid parts) among those sharing the last-level cache of the first unparked one, if that cache holds at least six; the finisher takes the next one. The core's logical processors leave the process default CPU sets and those of the threads already running, and the thread selects its lowest-numbered one, so the sibling stays idle. Threads with their own affinity mask keep it.
  • Nothing is reserved with fewer than six such cores, with the queue workers pinned (APS5_WORKER_AFFINITY, APS5_WORKER_AFFINITY_MASK), with inline recording (APS5_PIPELINED_DRAWS=0), or outside Windows. On parts with two last-level caches the cores come from the cache of the first unparked performance core; this was not run on such a part.
  • APS5_NO_COMMITTER_CORE turns both off, APS5_NO_FINISHER_CORE only the finisher's, and APS5_COMMITTER_CPU=<logical processor> names the committer's processor on any host. Each reservation prints one [affinity] line.
  • The choice is a pure function in CpuTopology.hpp, tested in cpu_topology_tests: SMT on and off, hybrid parts, parked cores, two caches, two processor groups, a requested processor and too few cores.
  • The finisher's core applies only while the finisher runs, with APS5_DRAW_PIPELINE or by default with #15456.

Tested

Windows 11 Pro 26300, Radeon RX 7900 XTX (AMD Software 26.10.1), Ryzen 7 7800X3D, Release, MinGW-w64 GCC 15.2.

PPSA04264 on main 095ff72367, the same save. Each boot had a 30 s warm-up and was measured for 150 s. Boots alternated the reservation on and off (APS5_NO_COMMITTER_CORE=1). Committer time is the mean of the last 8 [draw] pipelined reports.

mode reservation boots FPS committer us per commit
default off 3 7.22, 7.21, 7.21 32.9
default on 3 9.46, 9.10, 9.42 24.4
APS5_DRAW_PIPELINE=1 off 2 8.03, 7.83 29.8
APS5_DRAW_PIPELINE=1 on 2 9.93, 9.94 23.2

FPS is +29% in the default mode and +25% with the draw finisher. No boot had a fatal error or a lost device. Four trace captures in the default mode, alternating, with APS5_TRACE_SECONDS=240:60, give the same picture. With the reservation off: 428 and 430 presents in 60 s, frame p50 140.4 and 139.3 ms. With it on: 552 and 543 presents, p50 108.3 and 110.0 ms. GPU busy is 34.0-35.0 ms per present in all four. After the rebase onto 9d2e737432, the build passes, agc_thread_priority passes, and cpu_topology_tests passes under WSL Ubuntu with GCC 12.

Captures

Four trace captures in the default mode, alternating main at this PR's base (9d2e737432, no reservation) and the PR head (9d8e4f7b97), the same save: APS5_TRACE_SECONDS=240:60, APS5_TRACE_SUMMARY_EVERY=10, APS5_TRACE_EVENTS=4194304 (no thread buffer filled, so no events were dropped). Title fields in the summary lines are redacted.

capture commit presents in 60 s frame p50 / p90 / p99 GPU busy per present trace
main 1 9d2e737432 306 138.1 / 195.3 / 1636.1 ms 34.1 ms aps5-trace-9d2e737432db-77744.json.gz
PR 1 9d8e4f7b97 534 110.3 / 118.9 / 132.1 ms 33.4 ms aps5-trace-9d8e4f7b9797-70852.json.gz
main 2 9d2e737432 425 140.5 / 151.4 / 166.9 ms 34.2 ms aps5-trace-9d2e737432db-89208.json.gz
PR 2 9d8e4f7b97 485 109.6 / 121.0 / 484.3 ms 33.9 ms aps5-trace-9d8e4f7b9797-30964.json.gz

The seconds 240:60 summary lines:

{"commit":"9d2e737432db","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_PIPELINE_STATS":"2","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"240:60","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"AMD Radeon RX 7900 XTX","driver":"AMD proprietary driver 26.10.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31860,"title_id":"<redacted>","title":"<redacted>","content_version":"01.011.001","resolution":"3840x2160","window":{"spec":"seconds 240:60","first_present":2805,"ms":60001.233},"presents":306,"frame_ms":{"p50":138.1,"p90":195.335,"p99":1636.101,"max":2225.752},"gpu_busy_ms_per_present":34.15,"worker_busy_pct":{"queue worker 0x0":98.204},"top_phases_ms_per_frame":{"Driver.Packet":185.752,"Graphics.Draw":154.491,"Driver.Packet.draw":144.721,"Driver.Draw":143.555,"Graphics.Draw.draw_and_resource_release":138.729,"Driver.Draw.draw_enqueued":76.676,"Vulkan.GraphicsPipeline":51.664,"Driver.Draw.shader_compile_and_link":50.623},"owned_draw_counts":{},"trace_dropped":false,"trace":"aps5-trace-9d2e737432db-77744.json.gz"}
{"commit":"9d8e4f7b9797","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_PIPELINE_STATS":"2","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"240:60","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"AMD Radeon RX 7900 XTX","driver":"AMD proprietary driver 26.10.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31860,"title_id":"<redacted>","title":"<redacted>","content_version":"01.011.001","resolution":"3840x2160","window":{"spec":"seconds 240:60","first_present":3838,"ms":60093.53},"presents":534,"frame_ms":{"p50":110.34,"p90":118.853,"p99":132.081,"max":485.987},"gpu_busy_ms_per_present":33.396,"worker_busy_pct":{"queue worker 0x0":97.013},"top_phases_ms_per_frame":{"Driver.Packet":103.259,"Graphics.Draw":75.867,"Driver.Packet.draw":74.299,"Driver.Draw":73.408,"Graphics.Draw.draw_and_resource_release":65.29,"Driver.Draw.shader_compile_and_link":40.297,"Shader.DrawStage":29.477,"Driver.Draw.draw_enqueued":20.594},"owned_draw_counts":{},"trace_dropped":false,"trace":"aps5-trace-9d8e4f7b9797-70852.json.gz"}
{"commit":"9d2e737432db","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_PIPELINE_STATS":"2","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"240:60","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"AMD Radeon RX 7900 XTX","driver":"AMD proprietary driver 26.10.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31860,"title_id":"<redacted>","title":"<redacted>","content_version":"01.011.001","resolution":"3840x2160","window":{"spec":"seconds 240:60","first_present":3560,"ms":60070.846},"presents":425,"frame_ms":{"p50":140.549,"p90":151.389,"p99":166.926,"max":175.441},"gpu_busy_ms_per_present":34.204,"worker_busy_pct":{"queue worker 0x0":97.454},"top_phases_ms_per_frame":{"Driver.Packet":131.055,"Graphics.Draw":102.013,"Driver.Packet.draw":96.651,"Driver.Draw":95.511,"Graphics.Draw.draw_and_resource_release":86.519,"Driver.Draw.shader_compile_and_link":48.151,"Shader.DrawStage":35.048,"Driver.Draw.draw_enqueued":30.823},"owned_draw_counts":{},"trace_dropped":false,"trace":"aps5-trace-9d2e737432db-89208.json.gz"}
{"commit":"9d8e4f7b9797","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_PIPELINE_STATS":"2","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"240:60","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"AMD Radeon RX 7900 XTX","driver":"AMD proprietary driver 26.10.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31860,"title_id":"<redacted>","title":"<redacted>","content_version":"01.011.001","resolution":"3840x2160","window":{"spec":"seconds 240:60","first_present":3876,"ms":60057.563},"presents":485,"frame_ms":{"p50":109.613,"p90":121.024,"p99":484.346,"max":601.233},"gpu_busy_ms_per_present":33.91,"worker_busy_pct":{"queue worker 0x0":97.283},"top_phases_ms_per_frame":{"Driver.Packet":114.198,"Graphics.Draw":83.544,"Driver.Packet.draw":82.565,"Driver.Draw":81.659,"Graphics.Draw.draw_and_resource_release":71.617,"Driver.Draw.shader_compile_and_link":41.23,"Shader.DrawStage":29.868,"Driver.Draw.draw_enqueued":27.397},"owned_draw_counts":{},"trace_dropped":false,"trace":"aps5-trace-9d8e4f7b9797-30964.json.gz"}
tools/trace_digest.py, main 1

seconds 240:60 from present 2805: 306 presents, frame p50 138.1 / p90 195.3 / p99 1636.1 / max 2225.8 ms, GPU busy 34.1 ms per present
AMD Radeon RX 7900 XTX, AMD proprietary driver 26.10.1 (LLPC), Windows 10.0.26300, 3840x2160, commit 9d2e737432, dropped: no

{"commit":"9d2e737432db","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_PIPELINE_STATS":"2","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"240:60","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"AMD Radeon RX 7900 XTX","driver":"AMD proprietary driver 26.10.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31860,"title_id":"<redacted>","title":"<redacted>","content_version":"01.011.001","resolution":"3840x2160","window":{"spec":"seconds 240:60","first_present":2805,"ms":60001.233},"presents":306,"frame_ms":{"p50":138.1,"p90":195.335,"p99":1636.101,"max":2225.752},"gpu_busy_ms_per_present":34.15,"worker_busy_pct":{"queue worker 0x0":98.204},"top_phases_ms_per_frame":{"Driver.Packet":185.752,"Graphics.Draw":154.491,"Driver.Packet.draw":144.721,"Driver.Draw":143.555,"Graphics.Draw.draw_and_resource_release":138.729,"Driver.Draw.draw_enqueued":76.676,"Vulkan.GraphicsPipeline":51.664,"Driver.Draw.shader_compile_and_link":50.623},"owned_draw_counts":{},"trace_dropped":false,"trace":"aps5-trace-9d2e737432db-77744.json.gz"}

Slowest frames (largest slices inside each, inclusive)

  • present 2849: 2225.8 ms at 12706 ms: Driver.Packet (queue worker 0x0) 2186.7, Graphics.Draw (draw committer) 2141.6, Graphics.Draw.draw_and_resource_release (draw committer) 2123.6, Vulkan.GraphicsPipeline (draw committer) 2034.5
  • present 2848: 2098.6 ms at 10607 ms: Graphics.Draw (draw committer) 2022.8, Graphics.Draw.draw_and_resource_release (draw committer) 2004.2, Driver.Packet (queue worker 0x0) 1993.6, Driver.Packet.draw (queue worker 0x0) 1960.4
  • present 2846: 1862.2 ms at 7474 ms: Driver.Packet (queue worker 0x0) 1825.8, Graphics.Draw (draw committer) 1774.4, Graphics.Draw.draw_and_resource_release (draw committer) 1751.7, Vulkan.GraphicsPipeline (draw committer) 1668.5
  • present 2845: 1636.1 ms at 5838 ms: Driver.Packet (queue worker 0x0) 1598.3, Driver.Packet.draw (queue worker 0x0) 1565.7, Driver.Draw (queue worker 0x0) 1564.4, Graphics.Draw (draw committer) 1545.1
  • present 2847: 1271.3 ms at 9336 ms: Driver.Packet (queue worker 0x0) 1232.3, Driver.Packet.draw (queue worker 0x0) 1206.1, Driver.Draw (queue worker 0x0) 1204.8, Graphics.Draw (draw committer) 1199.6

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

  • present 2849: 2225.8 ms at 12706 ms, persistence 2108.5 ms
  • present 2899: 1137.9 ms at 24001 ms, persistence 1015.0 ms
  • present 3070: 1014.3 ms at 53357 ms, persistence 891.3 ms
  • present 2846: 1862.2 ms at 7474 ms, persistence 590.9 ms
  • present 2852: 988.5 ms at 16368 ms, persistence 565.3 ms
  • present 2907: 674.9 ms at 26369 ms, persistence 520.3 ms
  • present 2950: 496.3 ms at 34734 ms, persistence 365.8 ms
  • present 2974: 442.4 ms at 38858 ms, persistence 312.1 ms
  • present 3024: 419.8 ms at 46882 ms, persistence 295.4 ms
  • present 3107: 412.8 ms at 59180 ms, persistence 287.8 ms

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
title 0.0 (0 %) 0.0 (0 %) 196.1 0.0 Shader.ResolveGraphicsStagesAbi 0.0
queue worker 0x0 162.7 (83 %) 1.1 (1 %) 32.3 184.5 Driver.Packet 157.3, Driver.Rewind 4.5
draw committer 145.8 (74 %) 0.3 (0 %) 49.9 54.1 Graphics.Draw 135.4, Recorder.Submit 4.9
presenter 2.7 (1 %) 6.8 (3 %) 186.6 0.1 VideoOut.Flip 9.5
gpu 34.1 (17 %) 0.0 (0 %) 161.9 0.0 batch 34.1

Largest slices (ms per frame, inclusive, all threads): Driver.Packet 157.3, Graphics.Draw 135.4, Driver.Packet.draw 125.7, Driver.Draw 124.5, Graphics.Draw.draw_and_resource_release 119.2, Driver.Draw.draw_enqueued 64.5, Vulkan.GraphicsPipeline 51.7, Vulkan.GraphicsPipeline.create 50.1, Vulkan.GraphicsPipelineLibrary 50.1, batch 34.1

Longest waits

  • Driver.Present.render_fence_wait (presenter) 8.4 ms at 56748 ms, present 3089
  • Driver.Present.gpu_mutex_wait (presenter) 8.3 ms at 2098 ms, present 2821
  • Driver.Present.gpu_mutex_wait (presenter) 7.3 ms at 40710 ms, present 2984
  • Driver.Present.gpu_mutex_wait (presenter) 7.2 ms at 44153 ms, present 3007
  • Driver.Present.gpu_mutex_wait (presenter) 7.2 ms at 48118 ms, present 3031
  • Driver.Present.gpu_mutex_wait (presenter) 7.2 ms at 32882 ms, present 2938
  • Driver.Present.gpu_mutex_wait (presenter) 7.1 ms at 59038 ms, present 3106
  • Driver.Present.gpu_mutex_wait (presenter) 7.1 ms at 19024 ms, present 2864
  • Driver.Present.render_fence_wait (presenter) 6.9 ms at 57010 ms, present 3091
  • Vulkan.Acquire.acquire_fence_wait (presenter) 5.9 ms at 42513 ms, present 2995

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

  • batch 21164: 11.7 ms at 2092 ms, present 2820: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.3, Graphics.Draw.draw_and_resource_release (draw committer) 0.3, Recorder.Submit (draw committer) 0.0
  • batch 50110: 11.5 ms at 48112 ms, present 3030: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.draw_and_resource_release (draw committer) 0.4, Recorder.Submit (draw committer) 0.1
  • batch 43674: 11.3 ms at 40704 ms, present 2983: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.draw_and_resource_release (draw committer) 0.5, Recorder.Submit (draw committer) 0.0
  • batch 46832: 10.6 ms at 44148 ms, present 3006: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.2, Graphics.Draw.draw_and_resource_release (draw committer) 0.2, Recorder.Submit (draw committer) 0.0
  • batch 60341: 10.5 ms at 59033 ms, present 3105: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.2, Graphics.Draw.draw_and_resource_release (draw committer) 0.2, Recorder.Submit (draw committer) 0.0
tools/trace_digest.py, PR 1

seconds 240:60 from present 3838: 534 presents, frame p50 110.3 / p90 118.9 / p99 132.1 / max 486.0 ms, GPU busy 33.4 ms per present
AMD Radeon RX 7900 XTX, AMD proprietary driver 26.10.1 (LLPC), Windows 10.0.26300, 3840x2160, commit 9d8e4f7b97, dropped: no

{"commit":"9d8e4f7b9797","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_PIPELINE_STATS":"2","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"240:60","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"AMD Radeon RX 7900 XTX","driver":"AMD proprietary driver 26.10.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31860,"title_id":"<redacted>","title":"<redacted>","content_version":"01.011.001","resolution":"3840x2160","window":{"spec":"seconds 240:60","first_present":3838,"ms":60093.53},"presents":534,"frame_ms":{"p50":110.34,"p90":118.853,"p99":132.081,"max":485.987},"gpu_busy_ms_per_present":33.396,"worker_busy_pct":{"queue worker 0x0":97.013},"top_phases_ms_per_frame":{"Driver.Packet":103.259,"Graphics.Draw":75.867,"Driver.Packet.draw":74.299,"Driver.Draw":73.408,"Graphics.Draw.draw_and_resource_release":65.29,"Driver.Draw.shader_compile_and_link":40.297,"Shader.DrawStage":29.477,"Driver.Draw.draw_enqueued":20.594},"owned_draw_counts":{},"trace_dropped":false,"trace":"aps5-trace-9d8e4f7b9797-70852.json.gz"}

Slowest frames (largest slices inside each, inclusive)

  • present 3866: 486.0 ms at 3083 ms: Driver.Packet (queue worker 0x0) 445.8, Driver.Packet.draw (queue worker 0x0) 427.4, Driver.Draw (queue worker 0x0) 426.3, Graphics.Draw (draw committer) 405.2
  • present 4018: 171.6 ms at 20266 ms: Driver.Packet (queue worker 0x0) 135.6, Driver.Packet.draw (queue worker 0x0) 109.4, Driver.Draw (queue worker 0x0) 108.0, Graphics.Draw (draw committer) 100.2
  • present 4285: 151.4 ms at 50202 ms: Driver.Packet (queue worker 0x0) 105.4, Graphics.Draw (draw committer) 81.8, Driver.Packet.draw (queue worker 0x0) 73.2, Driver.Draw (queue worker 0x0) 72.1
  • present 3898: 147.1 ms at 7161 ms: Driver.Packet (queue worker 0x0) 106.2, Driver.Packet.draw (queue worker 0x0) 84.1, Driver.Draw (queue worker 0x0) 83.1, Graphics.Draw (draw committer) 80.1
  • present 4242: 134.6 ms at 45327 ms: Driver.Packet (queue worker 0x0) 93.9, Graphics.Draw (draw committer) 78.6, Driver.Packet.draw (queue worker 0x0) 71.7, Driver.Draw (queue worker 0x0) 70.9

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

  • present 3866: 486.0 ms at 3083 ms, persistence 383.4 ms
  • present 4018: 171.6 ms at 20266 ms, persistence 69.0 ms
  • present 4285: 151.4 ms at 50202 ms, persistence 48.1 ms
  • present 3898: 147.1 ms at 7161 ms, persistence 40.9 ms
  • present 4242: 134.6 ms at 45327 ms, persistence 28.3 ms
  • present 4124: 131.8 ms at 32105 ms, persistence 27.3 ms
  • present 4356: 131.6 ms at 58297 ms, persistence 25.0 ms
  • present 4293: 132.1 ms at 51150 ms, persistence 24.8 ms
  • present 4281: 130.3 ms at 49733 ms, persistence 22.8 ms
  • present 4130: 129.5 ms at 32787 ms, persistence 22.0 ms

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
title 0.0 (0 %) 0.0 (0 %) 112.5 0.0 Shader.ResolveGraphicsStagesAbi 0.0
queue worker 0x0 76.5 (68 %) 1.1 (1 %) 34.9 182.0 Driver.Packet 72.0, Driver.Rewind 4.3
title 0.0 (0 %) 0.0 (0 %) 112.5 0.0
draw committer 63.8 (57 %) 0.1 (0 %) 48.6 56.0 Graphics.Draw 53.4, Recorder.Sync 5.8
presenter 2.5 (2 %) 7.6 (7 %) 102.5 0.1 VideoOut.Flip 10.1
gpu 33.4 (30 %) 0.0 (0 %) 79.1 0.0 batch 33.4

Largest slices (ms per frame, inclusive, all threads): Driver.Packet 72.0, Graphics.Draw 53.4, Driver.Packet.draw 51.4, Driver.Draw 50.4, Graphics.Draw.draw_and_resource_release 43.0, batch 33.4, Driver.Draw.shader_compile_and_link 17.5, Driver.Packet.dispatch 15.9, Driver.Draw.draw_enqueued 10.1, VideoOut.Flip 10.1

Longest waits

  • Driver.Present.render_fence_wait (presenter) 10.6 ms at 52771 ms, present 4307
  • Driver.Present.gpu_mutex_wait (presenter) 10.1 ms at 33487 ms, present 4136
  • Driver.Present.gpu_mutex_wait (presenter) 9.5 ms at 14238 ms, present 3963
  • Driver.Present.render_fence_wait (presenter) 8.9 ms at 29283 ms, present 4099
  • Driver.Present.gpu_mutex_wait (presenter) 8.6 ms at 4840 ms, present 3878
  • Driver.Present.gpu_mutex_wait (presenter) 8.4 ms at 50206 ms, present 4285
  • Driver.Present.gpu_mutex_wait (presenter) 8.2 ms at 55748 ms, present 4333
  • Driver.Present.gpu_mutex_wait (presenter) 7.9 ms at 58078 ms, present 4354
  • Driver.Present.gpu_mutex_wait (presenter) 6.7 ms at 24877 ms, present 4059
  • Driver.Present.gpu_mutex_wait (presenter) 6.7 ms at 49399 ms, present 4278

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

  • batch 203671: 12.6 ms at 33482 ms, present 4135: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.3, Graphics.Draw.draw_and_resource_release (draw committer) 0.2, Recorder.Submit (draw committer) 0.0
  • batch 180521: 12.5 ms at 14233 ms, present 3962: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.3, Graphics.Draw.draw_and_resource_release (draw committer) 0.3, Recorder.Submit (draw committer) 0.0
  • batch 230017: 12.2 ms at 55742 ms, present 4332: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.4, Graphics.Draw.draw_and_resource_release (draw committer) 0.3, Recorder.Submit (draw committer) 0.0
  • batch 226544: 12.2 ms at 52767 ms, present 4306: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.4, Graphics.Draw.draw_and_resource_release (draw committer) 0.3, Recorder.Submit (draw committer) 0.1, Recorder.Reap (draw committer) 0.0
  • batch 193303: 11.4 ms at 24871 ms, present 4058: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.3, Graphics.Draw.draw_and_resource_release (draw committer) 0.2, Recorder.Submit (draw committer) 0.0

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: AMD Radeon RX 7900 XTX, AMD Software 26.10.1, Windows 11 Pro 26300
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5222406561 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17697). Originally posted by [Nesyth](https://github.com/Nesyth) on 2026-11-09T10:28:28Z. --- ### What Windows can leave another busy thread on the SMT sibling of the draw committer's core for a whole run. The committer then stays slower until the process exits, and boots of the same scene fall into fast and slow modes. This PR gives the committer, and the draw finisher when it runs, a physical core of their own through CPU sets. - When its thread starts, the committer takes the highest-numbered core of the highest efficiency class (the performance cores on hybrid parts) among those sharing the last-level cache of the first unparked one, if that cache holds at least six; the finisher takes the next one. The core's logical processors leave the process default CPU sets and those of the threads already running, and the thread selects its lowest-numbered one, so the sibling stays idle. Threads with their own affinity mask keep it. - Nothing is reserved with fewer than six such cores, with the queue workers pinned (`APS5_WORKER_AFFINITY`, `APS5_WORKER_AFFINITY_MASK`), with inline recording (`APS5_PIPELINED_DRAWS=0`), or outside Windows. On parts with two last-level caches the cores come from the cache of the first unparked performance core; this was not run on such a part. - `APS5_NO_COMMITTER_CORE` turns both off, `APS5_NO_FINISHER_CORE` only the finisher's, and `APS5_COMMITTER_CPU=<logical processor>` names the committer's processor on any host. Each reservation prints one `[affinity]` line. - The choice is a pure function in `CpuTopology.hpp`, tested in `cpu_topology_tests`: SMT on and off, hybrid parts, parked cores, two caches, two processor groups, a requested processor and too few cores. - The finisher's core applies only while the finisher runs, with `APS5_DRAW_PIPELINE` or by default with #15456. ### Tested Windows 11 Pro 26300, Radeon RX 7900 XTX (AMD Software 26.10.1), Ryzen 7 7800X3D, Release, MinGW-w64 GCC 15.2. PPSA04264 on main 095ff72367, the same save. Each boot had a 30 s warm-up and was measured for 150 s. Boots alternated the reservation on and off (`APS5_NO_COMMITTER_CORE=1`). Committer time is the mean of the last 8 `[draw] pipelined` reports. | mode | reservation | boots | FPS | committer us per commit | |---|---|---|---|---| | default | off | 3 | 7.22, 7.21, 7.21 | 32.9 | | default | on | 3 | 9.46, 9.10, 9.42 | 24.4 | | `APS5_DRAW_PIPELINE=1` | off | 2 | 8.03, 7.83 | 29.8 | | `APS5_DRAW_PIPELINE=1` | on | 2 | 9.93, 9.94 | 23.2 | FPS is +29% in the default mode and +25% with the draw finisher. No boot had a fatal error or a lost device. Four trace captures in the default mode, alternating, with `APS5_TRACE_SECONDS=240:60`, give the same picture. With the reservation off: 428 and 430 presents in 60 s, frame p50 140.4 and 139.3 ms. With it on: 552 and 543 presents, p50 108.3 and 110.0 ms. GPU busy is 34.0-35.0 ms per present in all four. After the rebase onto 9d2e737432, the build passes, `agc_thread_priority` passes, and `cpu_topology_tests` passes under WSL Ubuntu with GCC 12. ### Captures Four trace captures in the default mode, alternating main at this PR's base (`9d2e737432`, no reservation) and the PR head (`9d8e4f7b97`), the same save: `APS5_TRACE_SECONDS=240:60`, `APS5_TRACE_SUMMARY_EVERY=10`, `APS5_TRACE_EVENTS=4194304` (no thread buffer filled, so no events were dropped). Title fields in the summary lines are redacted. | capture | commit | presents in 60 s | frame p50 / p90 / p99 | GPU busy per present | trace | |---|---|---|---|---|---| | main 1 | `9d2e737432` | 306 | 138.1 / 195.3 / 1636.1 ms | 34.1 ms | [aps5-trace-9d2e737432db-77744.json.gz](https://github.com/Nesyth/AnyPS5/releases/download/perf-traces/aps5-trace-9d2e737432db-77744.json.gz) | | PR 1 | `9d8e4f7b97` | 534 | 110.3 / 118.9 / 132.1 ms | 33.4 ms | [aps5-trace-9d8e4f7b9797-70852.json.gz](https://github.com/Nesyth/AnyPS5/releases/download/perf-traces/aps5-trace-9d8e4f7b9797-70852.json.gz) | | main 2 | `9d2e737432` | 425 | 140.5 / 151.4 / 166.9 ms | 34.2 ms | [aps5-trace-9d2e737432db-89208.json.gz](https://github.com/Nesyth/AnyPS5/releases/download/perf-traces/aps5-trace-9d2e737432db-89208.json.gz) | | PR 2 | `9d8e4f7b97` | 485 | 109.6 / 121.0 / 484.3 ms | 33.9 ms | [aps5-trace-9d8e4f7b9797-30964.json.gz](https://github.com/Nesyth/AnyPS5/releases/download/perf-traces/aps5-trace-9d8e4f7b9797-30964.json.gz) | The `seconds 240:60` summary lines: ```json {"commit":"9d2e737432db","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_PIPELINE_STATS":"2","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"240:60","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"AMD Radeon RX 7900 XTX","driver":"AMD proprietary driver 26.10.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31860,"title_id":"<redacted>","title":"<redacted>","content_version":"01.011.001","resolution":"3840x2160","window":{"spec":"seconds 240:60","first_present":2805,"ms":60001.233},"presents":306,"frame_ms":{"p50":138.1,"p90":195.335,"p99":1636.101,"max":2225.752},"gpu_busy_ms_per_present":34.15,"worker_busy_pct":{"queue worker 0x0":98.204},"top_phases_ms_per_frame":{"Driver.Packet":185.752,"Graphics.Draw":154.491,"Driver.Packet.draw":144.721,"Driver.Draw":143.555,"Graphics.Draw.draw_and_resource_release":138.729,"Driver.Draw.draw_enqueued":76.676,"Vulkan.GraphicsPipeline":51.664,"Driver.Draw.shader_compile_and_link":50.623},"owned_draw_counts":{},"trace_dropped":false,"trace":"aps5-trace-9d2e737432db-77744.json.gz"} {"commit":"9d8e4f7b9797","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_PIPELINE_STATS":"2","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"240:60","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"AMD Radeon RX 7900 XTX","driver":"AMD proprietary driver 26.10.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31860,"title_id":"<redacted>","title":"<redacted>","content_version":"01.011.001","resolution":"3840x2160","window":{"spec":"seconds 240:60","first_present":3838,"ms":60093.53},"presents":534,"frame_ms":{"p50":110.34,"p90":118.853,"p99":132.081,"max":485.987},"gpu_busy_ms_per_present":33.396,"worker_busy_pct":{"queue worker 0x0":97.013},"top_phases_ms_per_frame":{"Driver.Packet":103.259,"Graphics.Draw":75.867,"Driver.Packet.draw":74.299,"Driver.Draw":73.408,"Graphics.Draw.draw_and_resource_release":65.29,"Driver.Draw.shader_compile_and_link":40.297,"Shader.DrawStage":29.477,"Driver.Draw.draw_enqueued":20.594},"owned_draw_counts":{},"trace_dropped":false,"trace":"aps5-trace-9d8e4f7b9797-70852.json.gz"} {"commit":"9d2e737432db","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_PIPELINE_STATS":"2","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"240:60","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"AMD Radeon RX 7900 XTX","driver":"AMD proprietary driver 26.10.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31860,"title_id":"<redacted>","title":"<redacted>","content_version":"01.011.001","resolution":"3840x2160","window":{"spec":"seconds 240:60","first_present":3560,"ms":60070.846},"presents":425,"frame_ms":{"p50":140.549,"p90":151.389,"p99":166.926,"max":175.441},"gpu_busy_ms_per_present":34.204,"worker_busy_pct":{"queue worker 0x0":97.454},"top_phases_ms_per_frame":{"Driver.Packet":131.055,"Graphics.Draw":102.013,"Driver.Packet.draw":96.651,"Driver.Draw":95.511,"Graphics.Draw.draw_and_resource_release":86.519,"Driver.Draw.shader_compile_and_link":48.151,"Shader.DrawStage":35.048,"Driver.Draw.draw_enqueued":30.823},"owned_draw_counts":{},"trace_dropped":false,"trace":"aps5-trace-9d2e737432db-89208.json.gz"} {"commit":"9d8e4f7b9797","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_PIPELINE_STATS":"2","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"240:60","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"AMD Radeon RX 7900 XTX","driver":"AMD proprietary driver 26.10.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31860,"title_id":"<redacted>","title":"<redacted>","content_version":"01.011.001","resolution":"3840x2160","window":{"spec":"seconds 240:60","first_present":3876,"ms":60057.563},"presents":485,"frame_ms":{"p50":109.613,"p90":121.024,"p99":484.346,"max":601.233},"gpu_busy_ms_per_present":33.91,"worker_busy_pct":{"queue worker 0x0":97.283},"top_phases_ms_per_frame":{"Driver.Packet":114.198,"Graphics.Draw":83.544,"Driver.Packet.draw":82.565,"Driver.Draw":81.659,"Graphics.Draw.draw_and_resource_release":71.617,"Driver.Draw.shader_compile_and_link":41.23,"Shader.DrawStage":29.868,"Driver.Draw.draw_enqueued":27.397},"owned_draw_counts":{},"trace_dropped":false,"trace":"aps5-trace-9d8e4f7b9797-30964.json.gz"} ``` <details><summary><code>tools/trace_digest.py</code>, main 1</summary> **seconds 240:60** from present 2805: 306 presents, frame p50 138.1 / p90 195.3 / p99 1636.1 / max 2225.8 ms, GPU busy 34.1 ms per present AMD Radeon RX 7900 XTX, AMD proprietary driver 26.10.1 (LLPC), Windows 10.0.26300, 3840x2160, commit 9d2e737432db, dropped: no ```json {"commit":"9d2e737432db","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_PIPELINE_STATS":"2","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"240:60","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"AMD Radeon RX 7900 XTX","driver":"AMD proprietary driver 26.10.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31860,"title_id":"<redacted>","title":"<redacted>","content_version":"01.011.001","resolution":"3840x2160","window":{"spec":"seconds 240:60","first_present":2805,"ms":60001.233},"presents":306,"frame_ms":{"p50":138.1,"p90":195.335,"p99":1636.101,"max":2225.752},"gpu_busy_ms_per_present":34.15,"worker_busy_pct":{"queue worker 0x0":98.204},"top_phases_ms_per_frame":{"Driver.Packet":185.752,"Graphics.Draw":154.491,"Driver.Packet.draw":144.721,"Driver.Draw":143.555,"Graphics.Draw.draw_and_resource_release":138.729,"Driver.Draw.draw_enqueued":76.676,"Vulkan.GraphicsPipeline":51.664,"Driver.Draw.shader_compile_and_link":50.623},"owned_draw_counts":{},"trace_dropped":false,"trace":"aps5-trace-9d2e737432db-77744.json.gz"} ``` **Slowest frames** (largest slices inside each, inclusive) - present 2849: 2225.8 ms at 12706 ms: Driver.Packet (queue worker 0x0) 2186.7, Graphics.Draw (draw committer) 2141.6, Graphics.Draw.draw_and_resource_release (draw committer) 2123.6, Vulkan.GraphicsPipeline (draw committer) 2034.5 - present 2848: 2098.6 ms at 10607 ms: Graphics.Draw (draw committer) 2022.8, Graphics.Draw.draw_and_resource_release (draw committer) 2004.2, Driver.Packet (queue worker 0x0) 1993.6, Driver.Packet.draw (queue worker 0x0) 1960.4 - present 2846: 1862.2 ms at 7474 ms: Driver.Packet (queue worker 0x0) 1825.8, Graphics.Draw (draw committer) 1774.4, Graphics.Draw.draw_and_resource_release (draw committer) 1751.7, Vulkan.GraphicsPipeline (draw committer) 1668.5 - present 2845: 1636.1 ms at 5838 ms: Driver.Packet (queue worker 0x0) 1598.3, Driver.Packet.draw (queue worker 0x0) 1565.7, Driver.Draw (queue worker 0x0) 1564.4, Graphics.Draw (draw committer) 1545.1 - present 2847: 1271.3 ms at 9336 ms: Driver.Packet (queue worker 0x0) 1232.3, Driver.Packet.draw (queue worker 0x0) 1206.1, Driver.Draw (queue worker 0x0) 1204.8, Graphics.Draw (draw committer) 1199.6 **Persistent spikes** (frame time above the fastest frame that separates it from a longer frame; one entry per stall, not per frame) - present 2849: 2225.8 ms at 12706 ms, persistence 2108.5 ms - present 2899: 1137.9 ms at 24001 ms, persistence 1015.0 ms - present 3070: 1014.3 ms at 53357 ms, persistence 891.3 ms - present 2846: 1862.2 ms at 7474 ms, persistence 590.9 ms - present 2852: 988.5 ms at 16368 ms, persistence 565.3 ms - present 2907: 674.9 ms at 26369 ms, persistence 520.3 ms - present 2950: 496.3 ms at 34734 ms, persistence 365.8 ms - present 2974: 442.4 ms at 38858 ms, persistence 312.1 ms - present 3024: 419.8 ms at 46882 ms, persistence 295.4 ms - present 3107: 412.8 ms at 59180 ms, persistence 287.8 ms **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | title | 0.0 (0 %) | 0.0 (0 %) | 196.1 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0 | | queue worker 0x0 | 162.7 (83 %) | 1.1 (1 %) | 32.3 | 184.5 | Driver.Packet 157.3, Driver.Rewind 4.5 | | draw committer | 145.8 (74 %) | 0.3 (0 %) | 49.9 | 54.1 | Graphics.Draw 135.4, Recorder.Submit 4.9 | | presenter | 2.7 (1 %) | 6.8 (3 %) | 186.6 | 0.1 | VideoOut.Flip 9.5 | | gpu | 34.1 (17 %) | 0.0 (0 %) | 161.9 | 0.0 | batch 34.1 | **Largest slices** (ms per frame, inclusive, all threads): Driver.Packet 157.3, Graphics.Draw 135.4, Driver.Packet.draw 125.7, Driver.Draw 124.5, Graphics.Draw.draw_and_resource_release 119.2, Driver.Draw.draw_enqueued 64.5, Vulkan.GraphicsPipeline 51.7, Vulkan.GraphicsPipeline.create 50.1, Vulkan.GraphicsPipelineLibrary 50.1, batch 34.1 **Longest waits** - Driver.Present.render_fence_wait (presenter) 8.4 ms at 56748 ms, present 3089 - Driver.Present.gpu_mutex_wait (presenter) 8.3 ms at 2098 ms, present 2821 - Driver.Present.gpu_mutex_wait (presenter) 7.3 ms at 40710 ms, present 2984 - Driver.Present.gpu_mutex_wait (presenter) 7.2 ms at 44153 ms, present 3007 - Driver.Present.gpu_mutex_wait (presenter) 7.2 ms at 48118 ms, present 3031 - Driver.Present.gpu_mutex_wait (presenter) 7.2 ms at 32882 ms, present 2938 - Driver.Present.gpu_mutex_wait (presenter) 7.1 ms at 59038 ms, present 3106 - Driver.Present.gpu_mutex_wait (presenter) 7.1 ms at 19024 ms, present 2864 - Driver.Present.render_fence_wait (presenter) 6.9 ms at 57010 ms, present 3091 - Vulkan.Acquire.acquire_fence_wait (presenter) 5.9 ms at 42513 ms, present 2995 **Largest GPU batches** (GPU ranges inside, and the CPU slices that recorded each, inclusive) - batch 21164: 11.7 ms at 2092 ms, present 2820: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.3, Graphics.Draw.draw_and_resource_release (draw committer) 0.3, Recorder.Submit (draw committer) 0.0 - batch 50110: 11.5 ms at 48112 ms, present 3030: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.draw_and_resource_release (draw committer) 0.4, Recorder.Submit (draw committer) 0.1 - batch 43674: 11.3 ms at 40704 ms, present 2983: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.draw_and_resource_release (draw committer) 0.5, Recorder.Submit (draw committer) 0.0 - batch 46832: 10.6 ms at 44148 ms, present 3006: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.2, Graphics.Draw.draw_and_resource_release (draw committer) 0.2, Recorder.Submit (draw committer) 0.0 - batch 60341: 10.5 ms at 59033 ms, present 3105: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.2, Graphics.Draw.draw_and_resource_release (draw committer) 0.2, Recorder.Submit (draw committer) 0.0 </details> <details><summary><code>tools/trace_digest.py</code>, PR 1</summary> **seconds 240:60** from present 3838: 534 presents, frame p50 110.3 / p90 118.9 / p99 132.1 / max 486.0 ms, GPU busy 33.4 ms per present AMD Radeon RX 7900 XTX, AMD proprietary driver 26.10.1 (LLPC), Windows 10.0.26300, 3840x2160, commit 9d8e4f7b9797, dropped: no ```json {"commit":"9d8e4f7b9797","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_PIPELINE_STATS":"2","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"240:60","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"AMD Radeon RX 7900 XTX","driver":"AMD proprietary driver 26.10.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31860,"title_id":"<redacted>","title":"<redacted>","content_version":"01.011.001","resolution":"3840x2160","window":{"spec":"seconds 240:60","first_present":3838,"ms":60093.53},"presents":534,"frame_ms":{"p50":110.34,"p90":118.853,"p99":132.081,"max":485.987},"gpu_busy_ms_per_present":33.396,"worker_busy_pct":{"queue worker 0x0":97.013},"top_phases_ms_per_frame":{"Driver.Packet":103.259,"Graphics.Draw":75.867,"Driver.Packet.draw":74.299,"Driver.Draw":73.408,"Graphics.Draw.draw_and_resource_release":65.29,"Driver.Draw.shader_compile_and_link":40.297,"Shader.DrawStage":29.477,"Driver.Draw.draw_enqueued":20.594},"owned_draw_counts":{},"trace_dropped":false,"trace":"aps5-trace-9d8e4f7b9797-70852.json.gz"} ``` **Slowest frames** (largest slices inside each, inclusive) - present 3866: 486.0 ms at 3083 ms: Driver.Packet (queue worker 0x0) 445.8, Driver.Packet.draw (queue worker 0x0) 427.4, Driver.Draw (queue worker 0x0) 426.3, Graphics.Draw (draw committer) 405.2 - present 4018: 171.6 ms at 20266 ms: Driver.Packet (queue worker 0x0) 135.6, Driver.Packet.draw (queue worker 0x0) 109.4, Driver.Draw (queue worker 0x0) 108.0, Graphics.Draw (draw committer) 100.2 - present 4285: 151.4 ms at 50202 ms: Driver.Packet (queue worker 0x0) 105.4, Graphics.Draw (draw committer) 81.8, Driver.Packet.draw (queue worker 0x0) 73.2, Driver.Draw (queue worker 0x0) 72.1 - present 3898: 147.1 ms at 7161 ms: Driver.Packet (queue worker 0x0) 106.2, Driver.Packet.draw (queue worker 0x0) 84.1, Driver.Draw (queue worker 0x0) 83.1, Graphics.Draw (draw committer) 80.1 - present 4242: 134.6 ms at 45327 ms: Driver.Packet (queue worker 0x0) 93.9, Graphics.Draw (draw committer) 78.6, Driver.Packet.draw (queue worker 0x0) 71.7, Driver.Draw (queue worker 0x0) 70.9 **Persistent spikes** (frame time above the fastest frame that separates it from a longer frame; one entry per stall, not per frame) - present 3866: 486.0 ms at 3083 ms, persistence 383.4 ms - present 4018: 171.6 ms at 20266 ms, persistence 69.0 ms - present 4285: 151.4 ms at 50202 ms, persistence 48.1 ms - present 3898: 147.1 ms at 7161 ms, persistence 40.9 ms - present 4242: 134.6 ms at 45327 ms, persistence 28.3 ms - present 4124: 131.8 ms at 32105 ms, persistence 27.3 ms - present 4356: 131.6 ms at 58297 ms, persistence 25.0 ms - present 4293: 132.1 ms at 51150 ms, persistence 24.8 ms - present 4281: 130.3 ms at 49733 ms, persistence 22.8 ms - present 4130: 129.5 ms at 32787 ms, persistence 22.0 ms **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | title | 0.0 (0 %) | 0.0 (0 %) | 112.5 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0 | | queue worker 0x0 | 76.5 (68 %) | 1.1 (1 %) | 34.9 | 182.0 | Driver.Packet 72.0, Driver.Rewind 4.3 | | title | 0.0 (0 %) | 0.0 (0 %) | 112.5 | 0.0 | | | draw committer | 63.8 (57 %) | 0.1 (0 %) | 48.6 | 56.0 | Graphics.Draw 53.4, Recorder.Sync 5.8 | | presenter | 2.5 (2 %) | 7.6 (7 %) | 102.5 | 0.1 | VideoOut.Flip 10.1 | | gpu | 33.4 (30 %) | 0.0 (0 %) | 79.1 | 0.0 | batch 33.4 | **Largest slices** (ms per frame, inclusive, all threads): Driver.Packet 72.0, Graphics.Draw 53.4, Driver.Packet.draw 51.4, Driver.Draw 50.4, Graphics.Draw.draw_and_resource_release 43.0, batch 33.4, Driver.Draw.shader_compile_and_link 17.5, Driver.Packet.dispatch 15.9, Driver.Draw.draw_enqueued 10.1, VideoOut.Flip 10.1 **Longest waits** - Driver.Present.render_fence_wait (presenter) 10.6 ms at 52771 ms, present 4307 - Driver.Present.gpu_mutex_wait (presenter) 10.1 ms at 33487 ms, present 4136 - Driver.Present.gpu_mutex_wait (presenter) 9.5 ms at 14238 ms, present 3963 - Driver.Present.render_fence_wait (presenter) 8.9 ms at 29283 ms, present 4099 - Driver.Present.gpu_mutex_wait (presenter) 8.6 ms at 4840 ms, present 3878 - Driver.Present.gpu_mutex_wait (presenter) 8.4 ms at 50206 ms, present 4285 - Driver.Present.gpu_mutex_wait (presenter) 8.2 ms at 55748 ms, present 4333 - Driver.Present.gpu_mutex_wait (presenter) 7.9 ms at 58078 ms, present 4354 - Driver.Present.gpu_mutex_wait (presenter) 6.7 ms at 24877 ms, present 4059 - Driver.Present.gpu_mutex_wait (presenter) 6.7 ms at 49399 ms, present 4278 **Largest GPU batches** (GPU ranges inside, and the CPU slices that recorded each, inclusive) - batch 203671: 12.6 ms at 33482 ms, present 4135: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.3, Graphics.Draw.draw_and_resource_release (draw committer) 0.2, Recorder.Submit (draw committer) 0.0 - batch 180521: 12.5 ms at 14233 ms, present 3962: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.3, Graphics.Draw.draw_and_resource_release (draw committer) 0.3, Recorder.Submit (draw committer) 0.0 - batch 230017: 12.2 ms at 55742 ms, present 4332: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.4, Graphics.Draw.draw_and_resource_release (draw committer) 0.3, Recorder.Submit (draw committer) 0.0 - batch 226544: 12.2 ms at 52767 ms, present 4306: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.4, Graphics.Draw.draw_and_resource_release (draw committer) 0.3, Recorder.Submit (draw committer) 0.1, Recorder.Reap (draw committer) 0.0 - batch 193303: 11.4 ms at 24871 ms, present 4058: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.3, Graphics.Draw.draw_and_resource_release (draw committer) 0.2, Recorder.Submit (draw committer) 0.0 </details> ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: AMD Radeon RX 7900 XTX, AMD Software 26.10.1, Windows 11 Pro 26300 - [x] AI-assisted: yes
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!17697
No description provided.