perf(agc): retry the draw pipeline and draw finisher mutexes before blocking #18226

Open
Nesyth wants to merge 1 commit from upstream-pr/18226 into main
Nesyth commented 2026-11-10 22:20:33 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Nesyth on 2026-11-10T22:20:33Z.


What

The queue-0 worker hands every pipelined draw to the draw committer, and to the draw finisher when it runs, through two queues guarded by a std::mutex. The worker also takes these mutexes for most packets to look up held writes, labels, reads and draw keys. Each holder keeps a mutex for only a short time, but with MinGW a contended std::mutex sleeps in the kernel at once, and the unlock that wakes it costs another kernel transition. A handoff that collides then costs more in the sleep and the wake than in the critical section, on the worker and the committer alike.

  • Every acquisition of the two mutexes retries try_lock for up to 20 us, then blocks as before. This covers enqueues, the committer's and the finisher's take and retire, drains, settles and the held-write, label, read and key lookups.
  • The retry never runs longer than the handoff spin window. With 8 or fewer usable processors, where the window is 0 by default, and with APS5_HANDOFF_SPIN_US=0, the threads block at once.
  • After a job, the draw finisher notifies its idle condition variable only when a drain, a settle or an enqueue waiting for room sleeps on it, as the committer already does.
  • APS5_NO_SPIN_HANDOFF makes the threads block at once again. It is a runtime switch, so APS5_AB can toggle it within one run. The committer's mutex is used in both modes and the finisher's only with APS5_DRAW_PIPELINE, so the switch can be measured with and without the finisher.
  • The new agc_driver_draw_handoff_spin test runs in the default and draw pipeline modes, each with the retry on, off and toggled every 50 us. It checks that commits and finisher jobs keep their order under lookup contention, that queued labels read back their own values, and that settles, drains and an enqueue waiting for room wake when the finisher empties.

Tested

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

An open-world, draw-heavy title on main 56c80b0917, the same save and scene in every boot. Every boot runs main's pipelined configuration: APS5_PIPELINED_DRAWS=32 APS5_PIPELINE_DISPATCH=1 APS5_DRAW_PIPELINE=1.

In-run A/B on the PR build (APS5_AB=30:APS5_NO_SPIN_HANDOFF, phases of 30 s from 190 s after the first present, 10 pairs, read with tools/ab_split.py):

APS5_NO_SPIN_HANDOFF set (as before) unset (this PR) difference
presents per 10 s 88.65 91.47 +3.2% (+2.86 +- 0.47 against the neighbouring phases, n 10)
frame ms 112.83 109.33 -3.1% (-3.55 +- 0.60)

Separate boots with APS5_TRACE_SECONDS=300:30:

build seconds in game FPS frame p50 / p90 / p99 ms GPU busy ms per present
main 56c80b0917 316 8.77 117.1 / 123.8 / 144.7 33.0
this PR (54e4d6d3fc) 316 9.15 110.2 / 116.0 / 119.5 31.7

Traces, both captured on the same machine in one session: main 56c80b0917, this PR.

No boot had a fatal error or a lost device. Both traces are incomplete: threads filled their buffers inside the 30 s window, as the digests say. The summary lines are complete.

Tests: every target builds; agc_driver_draw_handoff_spin in its default, draw pipeline and plan verify variants and agc_runtime_switches pass (5 of 5); tools/check_conventions.py passes.

trace_digest: main 56c80b0917

seconds 300:30 from present 4482: 254 presents, frame p50 117.1 / p90 123.8 / p99 144.7 / max 162.8 ms, GPU busy 33.0 ms per present
AMD Radeon RX 7900 XTX, AMD proprietary driver 26.10.1 (LLPC), Windows 10.0.26300, 3840x2160, commit 56c80b0917, dropped: yes

{"commit":"56c80b0917c4","dirty":false,"env":{"APS5_DRAW_PIPELINE":"1","APS5_LOG_TIMESTAMPS":"1","APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_PIPELINED_DRAWS":"32","APS5_PIPELINE_DISPATCH":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"300:30"},"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":"<withheld>","title":"<withheld>","content_version":"01.011.001","resolution":"3840x2160","window":{"spec":"seconds 300:30","first_present":4482,"ms":30024.755},"presents":254,"frame_ms":{"p50":117.067,"p90":123.787,"p99":144.693,"max":162.77},"gpu_busy_ms_per_present":32.958,"worker_busy_pct":{"queue worker 0x0":94.271},"top_phases_ms_per_frame":{"Driver.Packet":105.133,"Graphics.Draw":93.034,"Graphics.Draw.draw_and_resource_release":78.826,"Driver.Packet.draw":77.556,"Driver.Draw":76.746,"Driver.DrawFinish":65.687,"Driver.Draw.prepare":58.157,"Driver.DrawFinish.shader_compile_and_link":32.919},"owned_draw_counts":{},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":5.883,"events_lost":1056597,"totals_full":false},"draw committer":{"events_full_after_s":10.262,"events_lost":493570,"totals_full":false},"draw finisher":{"events_full_after_s":15.939,"events_lost":231558,"totals_full":false}},"trace":"aps5-trace-56c80b0917c4-97360.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: 1056597 events lost; buffer full at 5883.2 ms
  • draw committer: 493570 events lost; buffer full at 10262.0 ms
  • draw finisher: 231558 events lost; buffer full at 15939.2 ms

Slowest frames (largest slices inside each, inclusive)

  • present 4602: 162.8 ms at 14195 ms: Driver.DrawFinish (draw finisher) 86.4, Driver.DrawFinish.shader_compile_and_link (draw finisher) 52.6, Shader.DrawStage (draw finisher) 42.9, batch (gpu) 34.7
  • present 4606: 159.3 ms at 14751 ms: Driver.DrawFinish (draw finisher) 81.4, Driver.DrawFinish.shader_compile_and_link (draw finisher) 48.1, Shader.DrawStage (draw finisher) 36.7, batch (gpu) 35.1
  • present 4607: 144.7 ms at 14910 ms: Driver.DrawFinish (draw finisher) 66.2, batch (gpu) 38.3, Driver.DrawFinish.shader_compile_and_link (draw finisher) 36.6, Shader.DrawStage (draw finisher) 27.3
  • present 4603: 144.3 ms at 14358 ms: Driver.DrawFinish (draw finisher) 68.5, Driver.DrawFinish.shader_compile_and_link (draw finisher) 40.5, batch (gpu) 31.4, Shader.DrawStage (draw finisher) 27.7
  • present 4715: 131.8 ms at 27530 ms: batch (gpu) 32.6, VideoOut.Flip (presenter) 9.7, VideoOut.Flip.present (presenter) 9.1, Driver.Present (presenter) 9.1

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

  • present 4602: 162.8 ms at 14195 ms, persistence 56.4 ms
  • present 4606: 159.3 ms at 14751 ms, persistence 38.5 ms
  • present 4715: 131.8 ms at 27530 ms, persistence 24.4 ms
  • present 4721: 128.1 ms at 28265 ms, persistence 21.7 ms
  • present 4590: 129.6 ms at 12789 ms, persistence 20.9 ms
  • present 4669: 127.9 ms at 22230 ms, persistence 18.7 ms
  • present 4526: 126.8 ms at 5153 ms, persistence 18.1 ms
  • present 4540: 127.9 ms at 6780 ms, persistence 17.3 ms
  • present 4628: 131.0 ms at 17459 ms, persistence 15.4 ms
  • present 4564: 127.6 ms at 9676 ms, persistence 15.3 ms

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
title 0.0 (0 %) 0.0 (0 %) 118.2 0.0 Shader.ResolveGraphicsStagesAbi 0.0
queue worker 0x0 15.5 (13 %) 0.1 (0 %) 102.6 24.4 Driver.Packet 14.5, Driver.Rewind 0.9
draw committer 27.6 (23 %) 0.2 (0 %) 90.3 17.8 Graphics.Draw 25.8, Recorder.Submit 1.5
draw finisher 24.2 (21 %) 0.0 (0 %) 94.0 56.8 Driver.DrawFinish 24.2, Driver.DrawFinish.draw_enqueued 0.0
presenter 2.5 (2 %) 5.3 (5 %) 110.4 0.0 VideoOut.Flip 7.8, Driver.Present 0.0
gpu 32.9 (28 %) 0.0 (0 %) 85.3 0.0 batch 32.9

Largest slices (ms per frame, inclusive, all threads): batch 32.9, Graphics.Draw 25.8, Driver.DrawFinish 24.2, Graphics.Draw.draw_and_resource_release 20.4, Driver.Packet 14.5, Driver.Packet.draw 11.0, Driver.Draw 10.8, Driver.DrawFinish.draw_enqueued 10.7, VideoOut.Flip 7.8, Driver.Present 7.7

Longest waits

  • Vulkan.Acquire.acquire_fence_wait (presenter) 5.9 ms at 25240 ms, present 4695
  • Vulkan.Acquire.acquire_fence_wait (presenter) 5.9 ms at 29333 ms, present 4730
  • Vulkan.Acquire.acquire_fence_wait (presenter) 5.8 ms at 10168 ms, present 4568
  • Vulkan.Acquire.acquire_fence_wait (presenter) 5.7 ms at 21537 ms, present 4663
  • Vulkan.Acquire.acquire_fence_wait (presenter) 5.7 ms at 949 ms, present 4490
  • Vulkan.Acquire.acquire_fence_wait (presenter) 5.6 ms at 11004 ms, present 4575
  • Vulkan.Acquire.acquire_fence_wait (presenter) 5.5 ms at 3159 ms, present 4509
  • Vulkan.Acquire.acquire_fence_wait (presenter) 5.4 ms at 21879 ms, present 4666
  • Vulkan.Acquire.acquire_fence_wait (presenter) 5.4 ms at 18414 ms, present 4636
  • Vulkan.Acquire.acquire_fence_wait (presenter) 5.4 ms at 19686 ms, present 4647

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

  • batch 12528: 7.2 ms at 11005 ms, present 4575: GPU no ranges; recorded by no CPU slices
  • batch 3607: 6.9 ms at 3159 ms, present 4509: 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.0, Recorder.Reap (draw committer) 0.0
  • batch 20775: 6.7 ms at 18413 ms, present 4635: GPU no ranges; recorded by no CPU slices
  • batch 3206: 6.6 ms at 2806 ms, present 4505: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.7, Graphics.Draw.draw_and_resource_release (draw committer) 0.5, Recorder.Submit (draw committer) 0.1
  • batch 24814: 6.6 ms at 21880 ms, present 4666: GPU no ranges; recorded by no CPU slices
trace_digest: this PR

seconds 300:30 from present 4499: 272 presents, frame p50 110.2 / p90 116.0 / p99 119.5 / max 130.1 ms, GPU busy 31.7 ms per present
AMD Radeon RX 7900 XTX, AMD proprietary driver 26.10.1 (LLPC), Windows 10.0.26300, 3840x2160, commit 54e4d6d3fc, dropped: yes

{"commit":"54e4d6d3fcab","dirty":false,"env":{"APS5_DRAW_PIPELINE":"1","APS5_LOG_TIMESTAMPS":"1","APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_PIPELINED_DRAWS":"32","APS5_PIPELINE_DISPATCH":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"300:30"},"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":"<withheld>","title":"<withheld>","content_version":"01.011.001","resolution":"3840x2160","window":{"spec":"seconds 300:30","first_present":4499,"ms":30106.234},"presents":272,"frame_ms":{"p50":110.248,"p90":116.047,"p99":119.542,"max":130.12},"gpu_busy_ms_per_present":31.659,"worker_busy_pct":{"queue worker 0x0":94.344},"top_phases_ms_per_frame":{"Driver.Packet":98.379,"Graphics.Draw":87.093,"Graphics.Draw.draw_and_resource_release":73.765,"Driver.Packet.draw":71.444,"Driver.Draw":70.622,"Driver.DrawFinish":59.825,"Driver.Draw.prepare":52.607,"Driver.DrawFinish.shader_compile_and_link":30.888},"owned_draw_counts":{},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":6.165,"events_lost":1022963,"totals_full":false},"draw committer":{"events_full_after_s":10.798,"events_lost":471069,"totals_full":false},"draw finisher":{"events_full_after_s":17.177,"events_lost":197746,"totals_full":false}},"trace":"aps5-trace-54e4d6d3fcab-40332.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: 1022963 events lost; buffer full at 6164.9 ms
  • draw committer: 471069 events lost; buffer full at 10798.5 ms
  • draw finisher: 197746 events lost; buffer full at 17177.1 ms

Slowest frames (largest slices inside each, inclusive)

  • present 4763: 130.1 ms at 29184 ms: batch (gpu) 33.7, VideoOut.Flip (presenter) 8.2, VideoOut.Flip.present (presenter) 7.1, Driver.Present (presenter) 7.1
  • present 4618: 119.6 ms at 13190 ms: Driver.DrawFinish (draw finisher) 48.1, batch (gpu) 34.3, Driver.DrawFinish.draw_enqueued (draw finisher) 20.5, Driver.DrawFinish.shader_compile_and_link (draw finisher) 17.2
  • present 4519: 119.5 ms at 2263 ms: Graphics.Draw (draw committer) 78.5, Driver.Packet (queue worker 0x0) 77.9, Graphics.Draw.draw_and_resource_release (draw committer) 61.3, Driver.Packet.draw (queue worker 0x0) 58.7
  • present 4516: 119.2 ms at 1916 ms: Driver.Packet (queue worker 0x0) 74.1, Graphics.Draw (draw committer) 72.2, Graphics.Draw.draw_and_resource_release (draw committer) 57.6, Driver.Packet.draw (queue worker 0x0) 54.9
  • present 4602: 119.2 ms at 11450 ms: Driver.DrawFinish (draw finisher) 43.9, batch (gpu) 30.9, Driver.DrawFinish.draw_enqueued (draw finisher) 17.0, Driver.DrawFinish.shader_compile_and_link (draw finisher) 16.7

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

  • present 4763: 130.1 ms at 29184 ms, persistence 30.0 ms
  • present 4618: 119.6 ms at 13190 ms, persistence 19.5 ms
  • present 4519: 119.5 ms at 2263 ms, persistence 16.2 ms
  • present 4602: 119.2 ms at 11450 ms, persistence 15.8 ms
  • present 4663: 117.0 ms at 18176 ms, persistence 14.6 ms
  • present 4546: 118.0 ms at 5275 ms, persistence 14.3 ms
  • present 4698: 116.0 ms at 22022 ms, persistence 13.8 ms
  • present 4636: 117.0 ms at 15180 ms, persistence 13.4 ms
  • present 4594: 118.6 ms at 10563 ms, persistence 13.4 ms
  • present 4730: 118.2 ms at 25510 ms, persistence 13.2 ms

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
title 0.0 (0 %) 0.0 (0 %) 110.7 0.0 Shader.ResolveGraphicsStagesAbi 0.0
queue worker 0x0 14.6 (13 %) 0.1 (0 %) 95.9 25.7 Driver.Packet 13.6, Driver.Rewind 0.9
draw committer 26.1 (24 %) 0.2 (0 %) 84.4 19.5 Graphics.Draw 24.2, Recorder.Submit 1.6
draw finisher 22.1 (20 %) 0.0 (0 %) 88.6 60.1 Driver.DrawFinish 22.1
presenter 2.4 (2 %) 5.3 (5 %) 103.0 0.0 VideoOut.Flip 7.6, Driver.Present 0.0
gpu 31.6 (29 %) 0.0 (0 %) 79.0 0.0 batch 31.6

Largest slices (ms per frame, inclusive, all threads): batch 31.6, Graphics.Draw 24.2, Driver.DrawFinish 22.1, Graphics.Draw.draw_and_resource_release 19.0, Driver.Packet 13.6, Driver.Packet.draw 10.0, Driver.Draw 9.9, Driver.DrawFinish.draw_enqueued 9.7, VideoOut.Flip 7.6, Driver.Present 7.5

Longest waits

  • Vulkan.Acquire.acquire_fence_wait (presenter) 5.9 ms at 29428 ms, present 4765
  • Vulkan.Acquire.acquire_fence_wait (presenter) 5.7 ms at 664 ms, present 4505
  • Vulkan.Acquire.acquire_fence_wait (presenter) 5.6 ms at 5393 ms, present 4547
  • Vulkan.Acquire.acquire_fence_wait (presenter) 5.6 ms at 20810 ms, present 4687
  • Vulkan.Acquire.acquire_fence_wait (presenter) 5.5 ms at 9554 ms, present 4585
  • Vulkan.Acquire.acquire_fence_wait (presenter) 5.3 ms at 13754 ms, present 4623
  • Vulkan.Acquire.acquire_fence_wait (presenter) 5.3 ms at 6687 ms, present 4559
  • Vulkan.Acquire.acquire_fence_wait (presenter) 5.2 ms at 10338 ms, present 4592
  • Vulkan.Acquire.acquire_fence_wait (presenter) 4.9 ms at 23882 ms, present 4715
  • Driver.Present.render_fence_wait (presenter) 4.8 ms at 24325 ms, present 4719

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

  • batch 14505: 6.7 ms at 12110 ms, present 4607: GPU no ranges; recorded by no CPU slices
  • batch 8022: 6.7 ms at 6688 ms, present 4559: 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, Recorder.Reap (draw committer) 0.0
  • batch 28722: 6.6 ms at 23881 ms, present 4714: GPU no ranges; recorded by no CPU slices
  • batch 11476: 6.6 ms at 9555 ms, present 4585: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.4, Graphics.Draw.draw_and_resource_release (draw committer) 0.4, Recorder.Submit (draw committer) 0.0, Recorder.Reap (draw committer) 0.0
  • batch 14243: 6.5 ms at 11898 ms, present 4605: GPU no ranges; recorded by no CPU slices

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:5249930036 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18226). Originally posted by [Nesyth](https://github.com/Nesyth) on 2026-11-10T22:20:33Z. --- ### What The queue-0 worker hands every pipelined draw to the draw committer, and to the draw finisher when it runs, through two queues guarded by a `std::mutex`. The worker also takes these mutexes for most packets to look up held writes, labels, reads and draw keys. Each holder keeps a mutex for only a short time, but with MinGW a contended `std::mutex` sleeps in the kernel at once, and the unlock that wakes it costs another kernel transition. A handoff that collides then costs more in the sleep and the wake than in the critical section, on the worker and the committer alike. - Every acquisition of the two mutexes retries `try_lock` for up to 20 us, then blocks as before. This covers enqueues, the committer's and the finisher's take and retire, drains, settles and the held-write, label, read and key lookups. - The retry never runs longer than the handoff spin window. With 8 or fewer usable processors, where the window is 0 by default, and with `APS5_HANDOFF_SPIN_US=0`, the threads block at once. - After a job, the draw finisher notifies its idle condition variable only when a drain, a settle or an enqueue waiting for room sleeps on it, as the committer already does. - `APS5_NO_SPIN_HANDOFF` makes the threads block at once again. It is a runtime switch, so `APS5_AB` can toggle it within one run. The committer's mutex is used in both modes and the finisher's only with `APS5_DRAW_PIPELINE`, so the switch can be measured with and without the finisher. - The new `agc_driver_draw_handoff_spin` test runs in the default and draw pipeline modes, each with the retry on, off and toggled every 50 us. It checks that commits and finisher jobs keep their order under lookup contention, that queued labels read back their own values, and that settles, drains and an enqueue waiting for room wake when the finisher empties. ### Tested Windows 11 Pro 26300, Radeon RX 7900 XTX (AMD Software 26.10.1), Ryzen 7 7800X3D, Release, MinGW-w64 GCC 15.2. An open-world, draw-heavy title on main 56c80b0917, the same save and scene in every boot. Every boot runs main's pipelined configuration: `APS5_PIPELINED_DRAWS=32` `APS5_PIPELINE_DISPATCH=1` `APS5_DRAW_PIPELINE=1`. In-run A/B on the PR build (`APS5_AB=30:APS5_NO_SPIN_HANDOFF`, phases of 30 s from 190 s after the first present, 10 pairs, read with `tools/ab_split.py`): | | `APS5_NO_SPIN_HANDOFF` set (as before) | unset (this PR) | difference | |---|---|---|---| | presents per 10 s | 88.65 | 91.47 | +3.2% (+2.86 +- 0.47 against the neighbouring phases, n 10) | | frame ms | 112.83 | 109.33 | -3.1% (-3.55 +- 0.60) | Separate boots with `APS5_TRACE_SECONDS=300:30`: | build | seconds in game | FPS | frame p50 / p90 / p99 ms | GPU busy ms per present | |---|---|---|---|---| | main 56c80b0917 | 316 | 8.77 | 117.1 / 123.8 / 144.7 | 33.0 | | this PR (54e4d6d3fc) | 316 | 9.15 | 110.2 / 116.0 / 119.5 | 31.7 | Traces, both captured on the same machine in one session: [main 56c80b0917](https://github.com/Nesyth/AnyPS5/releases/download/perf-traces/aps5-trace-56c80b0917c4-97360.json.gz), [this PR](https://github.com/Nesyth/AnyPS5/releases/download/perf-traces/aps5-trace-54e4d6d3fcab-40332.json.gz). No boot had a fatal error or a lost device. Both traces are incomplete: threads filled their buffers inside the 30 s window, as the digests say. The summary lines are complete. Tests: every target builds; `agc_driver_draw_handoff_spin` in its default, draw pipeline and plan verify variants and `agc_runtime_switches` pass (5 of 5); `tools/check_conventions.py` passes. <details> <summary>trace_digest: main 56c80b0917</summary> **seconds 300:30** from present 4482: 254 presents, frame p50 117.1 / p90 123.8 / p99 144.7 / max 162.8 ms, GPU busy 33.0 ms per present AMD Radeon RX 7900 XTX, AMD proprietary driver 26.10.1 (LLPC), Windows 10.0.26300, 3840x2160, commit 56c80b0917c4, dropped: yes ```json {"commit":"56c80b0917c4","dirty":false,"env":{"APS5_DRAW_PIPELINE":"1","APS5_LOG_TIMESTAMPS":"1","APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_PIPELINED_DRAWS":"32","APS5_PIPELINE_DISPATCH":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"300:30"},"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":"<withheld>","title":"<withheld>","content_version":"01.011.001","resolution":"3840x2160","window":{"spec":"seconds 300:30","first_present":4482,"ms":30024.755},"presents":254,"frame_ms":{"p50":117.067,"p90":123.787,"p99":144.693,"max":162.77},"gpu_busy_ms_per_present":32.958,"worker_busy_pct":{"queue worker 0x0":94.271},"top_phases_ms_per_frame":{"Driver.Packet":105.133,"Graphics.Draw":93.034,"Graphics.Draw.draw_and_resource_release":78.826,"Driver.Packet.draw":77.556,"Driver.Draw":76.746,"Driver.DrawFinish":65.687,"Driver.Draw.prepare":58.157,"Driver.DrawFinish.shader_compile_and_link":32.919},"owned_draw_counts":{},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":5.883,"events_lost":1056597,"totals_full":false},"draw committer":{"events_full_after_s":10.262,"events_lost":493570,"totals_full":false},"draw finisher":{"events_full_after_s":15.939,"events_lost":231558,"totals_full":false}},"trace":"aps5-trace-56c80b0917c4-97360.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: 1056597 events lost; buffer full at 5883.2 ms - draw committer: 493570 events lost; buffer full at 10262.0 ms - draw finisher: 231558 events lost; buffer full at 15939.2 ms **Slowest frames** (largest slices inside each, inclusive) - present 4602: 162.8 ms at 14195 ms: Driver.DrawFinish (draw finisher) 86.4, Driver.DrawFinish.shader_compile_and_link (draw finisher) 52.6, Shader.DrawStage (draw finisher) 42.9, batch (gpu) 34.7 - present 4606: 159.3 ms at 14751 ms: Driver.DrawFinish (draw finisher) 81.4, Driver.DrawFinish.shader_compile_and_link (draw finisher) 48.1, Shader.DrawStage (draw finisher) 36.7, batch (gpu) 35.1 - present 4607: 144.7 ms at 14910 ms: Driver.DrawFinish (draw finisher) 66.2, batch (gpu) 38.3, Driver.DrawFinish.shader_compile_and_link (draw finisher) 36.6, Shader.DrawStage (draw finisher) 27.3 - present 4603: 144.3 ms at 14358 ms: Driver.DrawFinish (draw finisher) 68.5, Driver.DrawFinish.shader_compile_and_link (draw finisher) 40.5, batch (gpu) 31.4, Shader.DrawStage (draw finisher) 27.7 - present 4715: 131.8 ms at 27530 ms: batch (gpu) 32.6, VideoOut.Flip (presenter) 9.7, VideoOut.Flip.present (presenter) 9.1, Driver.Present (presenter) 9.1 **Persistent spikes** (frame time above the fastest frame that separates it from a longer frame; one entry per stall, not per frame) - present 4602: 162.8 ms at 14195 ms, persistence 56.4 ms - present 4606: 159.3 ms at 14751 ms, persistence 38.5 ms - present 4715: 131.8 ms at 27530 ms, persistence 24.4 ms - present 4721: 128.1 ms at 28265 ms, persistence 21.7 ms - present 4590: 129.6 ms at 12789 ms, persistence 20.9 ms - present 4669: 127.9 ms at 22230 ms, persistence 18.7 ms - present 4526: 126.8 ms at 5153 ms, persistence 18.1 ms - present 4540: 127.9 ms at 6780 ms, persistence 17.3 ms - present 4628: 131.0 ms at 17459 ms, persistence 15.4 ms - present 4564: 127.6 ms at 9676 ms, persistence 15.3 ms **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | title | 0.0 (0 %) | 0.0 (0 %) | 118.2 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0 | | queue worker 0x0 | 15.5 (13 %) | 0.1 (0 %) | 102.6 | 24.4 | Driver.Packet 14.5, Driver.Rewind 0.9 | | draw committer | 27.6 (23 %) | 0.2 (0 %) | 90.3 | 17.8 | Graphics.Draw 25.8, Recorder.Submit 1.5 | | draw finisher | 24.2 (21 %) | 0.0 (0 %) | 94.0 | 56.8 | Driver.DrawFinish 24.2, Driver.DrawFinish.draw_enqueued 0.0 | | presenter | 2.5 (2 %) | 5.3 (5 %) | 110.4 | 0.0 | VideoOut.Flip 7.8, Driver.Present 0.0 | | gpu | 32.9 (28 %) | 0.0 (0 %) | 85.3 | 0.0 | batch 32.9 | **Largest slices** (ms per frame, inclusive, all threads): batch 32.9, Graphics.Draw 25.8, Driver.DrawFinish 24.2, Graphics.Draw.draw_and_resource_release 20.4, Driver.Packet 14.5, Driver.Packet.draw 11.0, Driver.Draw 10.8, Driver.DrawFinish.draw_enqueued 10.7, VideoOut.Flip 7.8, Driver.Present 7.7 **Longest waits** - Vulkan.Acquire.acquire_fence_wait (presenter) 5.9 ms at 25240 ms, present 4695 - Vulkan.Acquire.acquire_fence_wait (presenter) 5.9 ms at 29333 ms, present 4730 - Vulkan.Acquire.acquire_fence_wait (presenter) 5.8 ms at 10168 ms, present 4568 - Vulkan.Acquire.acquire_fence_wait (presenter) 5.7 ms at 21537 ms, present 4663 - Vulkan.Acquire.acquire_fence_wait (presenter) 5.7 ms at 949 ms, present 4490 - Vulkan.Acquire.acquire_fence_wait (presenter) 5.6 ms at 11004 ms, present 4575 - Vulkan.Acquire.acquire_fence_wait (presenter) 5.5 ms at 3159 ms, present 4509 - Vulkan.Acquire.acquire_fence_wait (presenter) 5.4 ms at 21879 ms, present 4666 - Vulkan.Acquire.acquire_fence_wait (presenter) 5.4 ms at 18414 ms, present 4636 - Vulkan.Acquire.acquire_fence_wait (presenter) 5.4 ms at 19686 ms, present 4647 **Largest GPU batches** (GPU ranges inside, and the CPU slices that recorded each, inclusive) - batch 12528: 7.2 ms at 11005 ms, present 4575: GPU no ranges; recorded by no CPU slices - batch 3607: 6.9 ms at 3159 ms, present 4509: 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.0, Recorder.Reap (draw committer) 0.0 - batch 20775: 6.7 ms at 18413 ms, present 4635: GPU no ranges; recorded by no CPU slices - batch 3206: 6.6 ms at 2806 ms, present 4505: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.7, Graphics.Draw.draw_and_resource_release (draw committer) 0.5, Recorder.Submit (draw committer) 0.1 - batch 24814: 6.6 ms at 21880 ms, present 4666: GPU no ranges; recorded by no CPU slices </details> <details> <summary>trace_digest: this PR</summary> **seconds 300:30** from present 4499: 272 presents, frame p50 110.2 / p90 116.0 / p99 119.5 / max 130.1 ms, GPU busy 31.7 ms per present AMD Radeon RX 7900 XTX, AMD proprietary driver 26.10.1 (LLPC), Windows 10.0.26300, 3840x2160, commit 54e4d6d3fcab, dropped: yes ```json {"commit":"54e4d6d3fcab","dirty":false,"env":{"APS5_DRAW_PIPELINE":"1","APS5_LOG_TIMESTAMPS":"1","APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_PIPELINED_DRAWS":"32","APS5_PIPELINE_DISPATCH":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"300:30"},"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":"<withheld>","title":"<withheld>","content_version":"01.011.001","resolution":"3840x2160","window":{"spec":"seconds 300:30","first_present":4499,"ms":30106.234},"presents":272,"frame_ms":{"p50":110.248,"p90":116.047,"p99":119.542,"max":130.12},"gpu_busy_ms_per_present":31.659,"worker_busy_pct":{"queue worker 0x0":94.344},"top_phases_ms_per_frame":{"Driver.Packet":98.379,"Graphics.Draw":87.093,"Graphics.Draw.draw_and_resource_release":73.765,"Driver.Packet.draw":71.444,"Driver.Draw":70.622,"Driver.DrawFinish":59.825,"Driver.Draw.prepare":52.607,"Driver.DrawFinish.shader_compile_and_link":30.888},"owned_draw_counts":{},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":6.165,"events_lost":1022963,"totals_full":false},"draw committer":{"events_full_after_s":10.798,"events_lost":471069,"totals_full":false},"draw finisher":{"events_full_after_s":17.177,"events_lost":197746,"totals_full":false}},"trace":"aps5-trace-54e4d6d3fcab-40332.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: 1022963 events lost; buffer full at 6164.9 ms - draw committer: 471069 events lost; buffer full at 10798.5 ms - draw finisher: 197746 events lost; buffer full at 17177.1 ms **Slowest frames** (largest slices inside each, inclusive) - present 4763: 130.1 ms at 29184 ms: batch (gpu) 33.7, VideoOut.Flip (presenter) 8.2, VideoOut.Flip.present (presenter) 7.1, Driver.Present (presenter) 7.1 - present 4618: 119.6 ms at 13190 ms: Driver.DrawFinish (draw finisher) 48.1, batch (gpu) 34.3, Driver.DrawFinish.draw_enqueued (draw finisher) 20.5, Driver.DrawFinish.shader_compile_and_link (draw finisher) 17.2 - present 4519: 119.5 ms at 2263 ms: Graphics.Draw (draw committer) 78.5, Driver.Packet (queue worker 0x0) 77.9, Graphics.Draw.draw_and_resource_release (draw committer) 61.3, Driver.Packet.draw (queue worker 0x0) 58.7 - present 4516: 119.2 ms at 1916 ms: Driver.Packet (queue worker 0x0) 74.1, Graphics.Draw (draw committer) 72.2, Graphics.Draw.draw_and_resource_release (draw committer) 57.6, Driver.Packet.draw (queue worker 0x0) 54.9 - present 4602: 119.2 ms at 11450 ms: Driver.DrawFinish (draw finisher) 43.9, batch (gpu) 30.9, Driver.DrawFinish.draw_enqueued (draw finisher) 17.0, Driver.DrawFinish.shader_compile_and_link (draw finisher) 16.7 **Persistent spikes** (frame time above the fastest frame that separates it from a longer frame; one entry per stall, not per frame) - present 4763: 130.1 ms at 29184 ms, persistence 30.0 ms - present 4618: 119.6 ms at 13190 ms, persistence 19.5 ms - present 4519: 119.5 ms at 2263 ms, persistence 16.2 ms - present 4602: 119.2 ms at 11450 ms, persistence 15.8 ms - present 4663: 117.0 ms at 18176 ms, persistence 14.6 ms - present 4546: 118.0 ms at 5275 ms, persistence 14.3 ms - present 4698: 116.0 ms at 22022 ms, persistence 13.8 ms - present 4636: 117.0 ms at 15180 ms, persistence 13.4 ms - present 4594: 118.6 ms at 10563 ms, persistence 13.4 ms - present 4730: 118.2 ms at 25510 ms, persistence 13.2 ms **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | title | 0.0 (0 %) | 0.0 (0 %) | 110.7 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0 | | queue worker 0x0 | 14.6 (13 %) | 0.1 (0 %) | 95.9 | 25.7 | Driver.Packet 13.6, Driver.Rewind 0.9 | | draw committer | 26.1 (24 %) | 0.2 (0 %) | 84.4 | 19.5 | Graphics.Draw 24.2, Recorder.Submit 1.6 | | draw finisher | 22.1 (20 %) | 0.0 (0 %) | 88.6 | 60.1 | Driver.DrawFinish 22.1 | | presenter | 2.4 (2 %) | 5.3 (5 %) | 103.0 | 0.0 | VideoOut.Flip 7.6, Driver.Present 0.0 | | gpu | 31.6 (29 %) | 0.0 (0 %) | 79.0 | 0.0 | batch 31.6 | **Largest slices** (ms per frame, inclusive, all threads): batch 31.6, Graphics.Draw 24.2, Driver.DrawFinish 22.1, Graphics.Draw.draw_and_resource_release 19.0, Driver.Packet 13.6, Driver.Packet.draw 10.0, Driver.Draw 9.9, Driver.DrawFinish.draw_enqueued 9.7, VideoOut.Flip 7.6, Driver.Present 7.5 **Longest waits** - Vulkan.Acquire.acquire_fence_wait (presenter) 5.9 ms at 29428 ms, present 4765 - Vulkan.Acquire.acquire_fence_wait (presenter) 5.7 ms at 664 ms, present 4505 - Vulkan.Acquire.acquire_fence_wait (presenter) 5.6 ms at 5393 ms, present 4547 - Vulkan.Acquire.acquire_fence_wait (presenter) 5.6 ms at 20810 ms, present 4687 - Vulkan.Acquire.acquire_fence_wait (presenter) 5.5 ms at 9554 ms, present 4585 - Vulkan.Acquire.acquire_fence_wait (presenter) 5.3 ms at 13754 ms, present 4623 - Vulkan.Acquire.acquire_fence_wait (presenter) 5.3 ms at 6687 ms, present 4559 - Vulkan.Acquire.acquire_fence_wait (presenter) 5.2 ms at 10338 ms, present 4592 - Vulkan.Acquire.acquire_fence_wait (presenter) 4.9 ms at 23882 ms, present 4715 - Driver.Present.render_fence_wait (presenter) 4.8 ms at 24325 ms, present 4719 **Largest GPU batches** (GPU ranges inside, and the CPU slices that recorded each, inclusive) - batch 14505: 6.7 ms at 12110 ms, present 4607: GPU no ranges; recorded by no CPU slices - batch 8022: 6.7 ms at 6688 ms, present 4559: 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, Recorder.Reap (draw committer) 0.0 - batch 28722: 6.6 ms at 23881 ms, present 4714: GPU no ranges; recorded by no CPU slices - batch 11476: 6.6 ms at 9555 ms, present 4585: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.4, Graphics.Draw.draw_and_resource_release (draw committer) 0.4, Recorder.Submit (draw committer) 0.0, Recorder.Reap (draw committer) 0.0 - batch 14243: 6.5 ms at 11898 ms, present 4605: GPU no ranges; recorded by no CPU slices </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
MarcZX10 commented 2026-11-10 22:31:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-10T22:31:43Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

The performance evidence does not meet the repository's capture requirements: the main and PR runs were separate boots, and the required trace attachments and identifiable title/scene are missing.

What I ran

Reviewed all eight changed files at head 54e4d6d3fcab72c7133999dd503de2cab6be5456 against current main tip 1d13b559c20a1f11ec001090e7ab443c426957b6; the merge preview is clean. Environment: Linux 6.1 x86_64, Python 3.11.2, GCC 12.2.0.

python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 18226 --output-dir /tmp/anyps5-pr-precheck-18226
gh pr checks 18226 --repo boykopovar/AnyPS5

The PR description also reports Windows 11/GCC 15.2 tests and GPU captures; those are author-provided results, not runs I performed.

Results

Check Result Note
Diff and conventions passed No whitespace or convention errors.
Merge preview passed Clean against current main.
Performance report requirements failed Required base/change capture details and raw trace attachments are incomplete.
Local build and CTest not run Initial review pass excludes builds.
Hosted checks not run Windows was pending; seven jobs were skipped in the snapshot.
Commands and recorded output

pr_precheck.py:

/tmp/anyps5-pr-precheck-18226/report.md
/tmp/anyps5-pr-precheck-18226/report.json
Conclusion: checks incomplete

The report records diff_check, conventions_and_pr_template, live_dependency_and_mergeability_check, and test_quality_heuristics as passed. It marks compilation and build-dependent C++ tests as not run. The test-quality heuristic says the new C++ test path was not found literally in CMake; I checked the registration macro and the new CMake fragment calls agc_add_draw_pipeline_test(agc_driver_draw_handoff_spin), so this warning is a false positive.

The audit and convention output:

All conventions checks passed.
{
  "status": "not_applicable",
  "symbols": [],
  "findings": [],
  "limitations": [
    "No changed APS5_VABI declaration/definition or APS5_EXPORT alias was recognized in the PR diff."
  ]
}

The stack report says:

Target branch tip: `1d13b559c20a1f11ec001090e7ab443c426957b6`
- PR #18226: **clean** against current base; head `54e4d6d3fcab72c7133999dd503de2cab6be5456`; changed paths: none reported

Hosted status snapshot: conventions, eligibility, intake, labels, library-portability and report passed; Windows was pending; edge-watch, Linux, pipe-write, register-context, relinker, relinker-asan and write-watch were skipped.

Negative control

Not run; no exact-head test binary was built in this initial no-build pass.

Findings

Blocking

The PR includes summary lines and digests, but the summaries mark the game title and ID as withheld, and the scene is described only as “an open-world, draw-heavy title.” The two trace filenames appear in the text, but I found no downloadable .json.gz trace attachments or links. The main and PR summary captures are also explicitly described as separate boots; the in-run A/B toggles a runtime switch in the PR build and is not a same-session capture of the base and changed builds. The performance report form requires an identifiable title and scene, the base and change captured on the same machine in the same session, and both trace files.

Please provide the title ID and enough scene detail to reproduce the capture, attach both raw traces, and provide matched base/change captures following the form. The included in-run A/B is useful supplementary evidence; it does not replace that base/change pair. Both trace digests report dropped events, so the available traces also cannot support inspection of all recorded slices.

Non-blocking

None found in the source-level review.

Sources

Not verified

  • I did not build or run the new CTest variants.
  • Windows was pending; skipped hosted jobs provide no test evidence.
  • I did not independently reproduce the GPU measurements. The PR reports that both 30-second traces dropped events.

To get this to a good state

Add the reproducible scene description and trace files, and capture base and change in the same session. On the updated head I will rerun the no-build precheck, refresh hosted statuses, and check the focused draw-handoff tests if build evidence is needed.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5850531142 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18226#pullrequestreview-5850531142). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-10T22:31:43Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested The performance evidence does not meet the repository's capture requirements: the main and PR runs were separate boots, and the required trace attachments and identifiable title/scene are missing. ## What I ran Reviewed all eight changed files at head `54e4d6d3fcab72c7133999dd503de2cab6be5456` against current `main` tip `1d13b559c20a1f11ec001090e7ab443c426957b6`; the merge preview is clean. Environment: Linux 6.1 x86_64, Python 3.11.2, GCC 12.2.0. ```sh python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 18226 --output-dir /tmp/anyps5-pr-precheck-18226 gh pr checks 18226 --repo boykopovar/AnyPS5 ``` The PR description also reports Windows 11/GCC 15.2 tests and GPU captures; those are author-provided results, not runs I performed. ## Results | Check | Result | Note | |---|---|---| | Diff and conventions | passed | No whitespace or convention errors. | | Merge preview | passed | Clean against current `main`. | | Performance report requirements | failed | Required base/change capture details and raw trace attachments are incomplete. | | Local build and CTest | not run | Initial review pass excludes builds. | | Hosted checks | not run | Windows was pending; seven jobs were skipped in the snapshot. | <details> <summary>Commands and recorded output</summary> `pr_precheck.py`: ```text /tmp/anyps5-pr-precheck-18226/report.md /tmp/anyps5-pr-precheck-18226/report.json Conclusion: checks incomplete ``` The report records `diff_check`, `conventions_and_pr_template`, `live_dependency_and_mergeability_check`, and `test_quality_heuristics` as passed. It marks compilation and build-dependent C++ tests as not run. The test-quality heuristic says the new C++ test path was not found literally in CMake; I checked the registration macro and the new CMake fragment calls `agc_add_draw_pipeline_test(agc_driver_draw_handoff_spin)`, so this warning is a false positive. The audit and convention output: ```text All conventions checks passed. { "status": "not_applicable", "symbols": [], "findings": [], "limitations": [ "No changed APS5_VABI declaration/definition or APS5_EXPORT alias was recognized in the PR diff." ] } ``` The stack report says: ```text Target branch tip: `1d13b559c20a1f11ec001090e7ab443c426957b6` - PR #18226: **clean** against current base; head `54e4d6d3fcab72c7133999dd503de2cab6be5456`; changed paths: none reported ``` Hosted status snapshot: conventions, eligibility, intake, labels, library-portability and report passed; Windows was pending; edge-watch, Linux, pipe-write, register-context, relinker, relinker-asan and write-watch were skipped. </details> ## Negative control Not run; no exact-head test binary was built in this initial no-build pass. ## Findings ### Blocking The PR includes summary lines and digests, but the summaries mark the game title and ID as withheld, and the scene is described only as “an open-world, draw-heavy title.” The two trace filenames appear in the text, but I found no downloadable `.json.gz` trace attachments or links. The main and PR summary captures are also explicitly described as separate boots; the in-run A/B toggles a runtime switch in the PR build and is not a same-session capture of the base and changed builds. The performance report form requires an identifiable title and scene, the base and change captured on the same machine in the same session, and both trace files. Please provide the title ID and enough scene detail to reproduce the capture, attach both raw traces, and provide matched base/change captures following the form. The included in-run A/B is useful supplementary evidence; it does not replace that base/change pair. Both trace digests report dropped events, so the available traces also cannot support inspection of all recorded slices. ### Non-blocking None found in the source-level review. ## Sources - [Performance capture protocol at the reviewed base](https://github.com/boykopovar/AnyPS5/blob/1d13b559c20a1f11ec001090e7ab443c426957b6/.github/ISSUE_TEMPLATE/performance.yml#L8-L14) - [Required summary lines and trace attachments](https://github.com/boykopovar/AnyPS5/blob/1d13b559c20a1f11ec001090e7ab443c426957b6/.github/ISSUE_TEMPLATE/performance.yml#L31-L45) - [New draw-handoff test at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/54e4d6d3fcab72c7133999dd503de2cab6be5456/core/libs/prx/libSceAgcDriver/tests/execution/DrawHandoffSpin.cpp) - [Lock handoff implementation at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/54e4d6d3fcab72c7133999dd503de2cab6be5456/core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPipeline.cpp) ## Not verified - I did not build or run the new CTest variants. - Windows was pending; skipped hosted jobs provide no test evidence. - I did not independently reproduce the GPU measurements. The PR reports that both 30-second traces dropped events. ## To get this to a good state Add the reproducible scene description and trace files, and capture base and change in the same session. On the updated head I will rerun the no-build precheck, refresh hosted statuses, and check the focused draw-handoff tests if build evidence is needed.
ligmaSec commented 2026-12-03 22:33:21 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T22:33:21Z.

Review: COMMENTED


The trial merge onto c1601e56d5 conflicts in DrawPipeline.cpp and the runtime-switch header and implementation. When resolving it, retain the blocking fallback and the order/drain assertions in the contended fixture. In particular, keep the full-finisher case, which exercises backpressure independently of label ordering. The timed result should use the repository’s paired main/change traces from the same scene and machine.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6179785612 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18226#pullrequestreview-6179785612). Originally posted by [ligmaSec](https://github.com/ligmaSec) on 2026-12-03T22:33:21Z. **Review:** COMMENTED --- The trial merge onto `c1601e56d5` conflicts in `DrawPipeline.cpp` and the runtime-switch header and implementation. When resolving it, retain the blocking fallback and the order/drain assertions in the contended fixture. In particular, keep the full-finisher case, which exercises backpressure independently of label ordering. The timed result should use the repository’s paired main/change traces from the same scene and machine. AI-assisted: yes.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/18226:upstream-pr/18226'
git switch 'upstream-pr/18226'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/18226'
git switch 'upstream-pr/18226'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/18226'
git switch 'upstream-pr/18226'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/18226'
git switch 'main'
git merge --squash 'upstream-pr/18226'
git switch 'main'
git merge --ff-only 'upstream-pr/18226'
git switch 'main'
git merge 'upstream-pr/18226'
git push origin 'main'
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!18226
No description provided.