perf(shader): balance dense runtime image dispatch #12299

Closed
Filip722 wants to merge 23 commits from upstream-pr/12299 into main
Filip722 commented 2026-10-28 08:22:30 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Filip722 on 2026-10-28T08:22:30Z.


What

Reviewer-requested evidence remains outstanding (2026-11-07). Kept open for investigation. The November 1 captures below do not demonstrate a repeatable gain. Source inspection of main 4204951e771ee2ec2e71507e5390ee2c9b6e9238 and PR head 12367bdb6c32a65dfdf2c1e255534fd18d0a2fa6 found no runtime-selected workload eligible for the balanced-tree path: direct-image selectors are specialization constants in both registration and non-registration paths, while this PR excludes image/sampler tables. This is source analysis, not a new build, hardware test or performance capture. The requested named runtime case and repeatable matched current-main benefit are still missing; this request is not resolved.

Express distinct direct-image mode dispatch as a balanced tree while retaining #8716's switch for equivalent modes. The original motivation was a runtime selector; merged #11952 now specializes that selector, so the historical runtime-chain benefit cannot be presumed to remain on current main. The refreshed diagnostic pair below demonstrates no performance gain.

  • Dispatch dense direct-image results with a balanced tree using the existing structured-selection helper.
  • Preserve every image-mode body and invalid-selector exit. Tables, sampler guards, writes and loop continuations retain their current dispatch.
  • Keep runtime registration-module reuse; no new specialization, pipeline variant, mode-count threshold or title-specific behavior.

The production change is confined to EmitImage. In a historical standalone focused RADV robust2 GPL compilation, the loaded game fragment changed 1,911 → 1,821 native instructions and 9,104 → 8,744 code bytes, retaining 32 VGPRs, 128 SGPRs and zero spills. Static branches increase 47 → 73, while the executed first-mode path skips the membership chain and later sequential checks. This is a focused compiler observation, not exact linked-capture ISA or an elapsed-time estimate.

PR #8716 deduplicates equivalent case bodies while retaining OpSwitch. This branch incorporates its refreshed head 45998c33789b as the declared prerequisite. Current main includes #11952's direct-mode specialization; the updated comparison keeps that code and #8716 identical in both arms.

Tested

Historical integration refresh, 2026-11-01 (exact revisions below). Head 12367bdb6c32a65dfdf2c1e255534fd18d0a2fa6 incorporates pinned main 5bae1a4bc2cffc66c13e37ce8e63ae48b1b5dd1e and refreshed prerequisite #8716 45998c33789bc84b5a07a10260ece689b1d9cbde, preserving history. Baseline 7673d25f370dae11690a3ec0ea04b061b5791118 is that same main plus the same prerequisite. Their source difference is exactly the 40-line balanced-dispatch addition; fixtures and all other sources match.

Both exact trees pass all eight focused tests: agc_shader_memory, agc_driver_depth_plane_sampling, agc_driver_image_address_dimension, agc_driver_image_plane_bias_on_single_level_volume, agc_driver_image_sample_unnormalized, agc_driver_image_table, agc_driver_pixel_implicit_derivatives, and agc_driver_prepared_graphics. Author runs used required Vulkan, shader-cache bypass and Khronos validation with verbose CTest on Radeon 760M, private RADV Mesa 26.2.6/libdrm 2.4.133, Debian 13/Linux 7.2.12-x64v3-xanmod1. Each arm verified seven actual instance/device-layer insertions and the selected private Radeon driver, with no VUIDs, synchronization hazards, missing layers or skips. The historical image-table allocation failure does not reproduce in this setup.

The requested downstream refresh retains the separate-heap-source fixture correction, both equivalent-mode switch assertions and current upstream shader changes. Main's current write-watch registrations are retained exactly; the former macOS registration workaround leaves no diff against main.

One predetermined diagnostic AB pair followed two ordinary trace-enabled warmups per arm. Mean frame time is 21.827840 → 21.911022 ms (candidate 0.083182 ms / 0.381% higher); GPU busy time is 18.841 → 18.805 ms/present. This single pair establishes neither a repeatable gain nor a regression, and supplies no renewed performance justification. No timing-based exclusions, replacements or additional pairs were collected. Both measured runs passed scene/input/focus/geometry, per-arm cache-content, loaded-library/driver and complete-trace gates.

PPSA28997 01.008.001, restored stationary camp, same copied save with resolutionIndex=6 requesting 2560×1440 internal rendering, 1920×1080 presentation, active 1152×648 Wayland client, mailbox; Ryzen 5 7640HS/Radeon 760M. Physical internal image allocation/extent was not independently verified for these builds. Both carry the identical private first-present/screenshot observer (dirty:true); no screenshots or input occurred in the timed window. Only AGC and VideoOut binary hashes differ: VideoOut's entire difference is 12 verified telemetry commit-literal bytes, with identical source and all other bytes matching.

Both original timing traces, full summaries, trace digests, protocol and provenance hashes are attached as lossless text chunks with a SHA-256-verifying decoder. Only timing evidence is public; game-derived files, saves, images, shaders, ISA, native libraries, hardware captures and console logs remain private.

Summary lines for the sole pair, baseline then candidate:

{"commit":"7673d25f370d","dirty":true,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"25:12"},"gpu":"AMD Radeon 760M Graphics (RADV PHOENIX)","driver":"radv Mesa 26.2.6","os":"Linux 7.2.12-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 25:12","first_present":946,"ms":12005.312},"presents":550,"frame_ms":{"p50":21.871,"p90":22.309,"p99":22.823,"max":27.835},"gpu_busy_ms_per_present":18.841,"worker_busy_pct":{"queue worker 0x0":74.972},"top_phases_ms_per_frame":{"Driver.Packet":16.261,"Driver.Packet.draw":14.076,"Driver.Draw":14.039,"Driver.Draw.draw_enqueued":10.753,"Recorder.Sync":9.889,"VideoOut.Flip":4.485,"Driver.Present":4.449,"VideoOut.Flip.present":4.447},"trace_dropped":false,"trace":"aps5-trace-7673d25f370d-1142990.json.gz"}
{"commit":"12367bdb6c32","dirty":true,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"25:12"},"gpu":"AMD Radeon 760M Graphics (RADV PHOENIX)","driver":"radv Mesa 26.2.6","os":"Linux 7.2.12-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 25:12","first_present":929,"ms":12007.24},"presents":548,"frame_ms":{"p50":21.956,"p90":22.437,"p99":23.098,"max":24.312},"gpu_busy_ms_per_present":18.805,"worker_busy_pct":{"queue worker 0x0":75.182},"top_phases_ms_per_frame":{"Driver.Packet":16.365,"Driver.Packet.draw":14.157,"Driver.Draw":14.122,"Driver.Draw.draw_enqueued":10.776,"Recorder.Sync":9.946,"VideoOut.Flip":4.481,"Driver.Present":4.447,"VideoOut.Flip.present":4.444},"trace_dropped":false,"trace":"aps5-trace-12367bdb6c32-1143997.json.gz"}

trace_digest.py summary excerpts:

**seconds 25:12** from present 946: 550 presents, frame p50 21.9 / p90 22.3 / p99 22.8 / max 27.8 ms, GPU busy 18.8 ms per present
AMD Radeon 760M Graphics (RADV PHOENIX), radv Mesa 26.2.6, Linux 7.2.12-x64v3-xanmod1, 1920x1080, commit 7673d25f370d (dirty), dropped: no
**seconds 25:12** from present 929: 548 presents, frame p50 22.0 / p90 22.4 / p99 23.1 / max 24.3 ms, GPU busy 18.8 ms per present
AMD Radeon 760M Graphics (RADV PHOENIX), radv Mesa 26.2.6, Linux 7.2.12-x64v3-xanmod1, 1920x1080, commit 12367bdb6c32 (dirty), dropped: no

The new selector specialization materially affects the original performance rationale. The earlier approved report below remains historical evidence for its named revisions, and is neither pooled with this pair nor relabeled as testing this head. Reviewer acceptance of the updated change and its remaining value is still open.

Historical evidence for the exact revisions named below.

Review correction on 2026-10-31: head 5e4b0682fce7c05cb6c1aa08f24948f34eaf19cf incorporates main 474030e58424fefdb65e5df9f3820810fbb4553c with a history-preserving merge. The runtime-image fixture now gives its column a separate four-dword heap source, matching ResourceTracker; no production behavior changed in this correction. This addresses jotitadev's reported interaction with #9749 without weakening nested-table validation or importing #9749 into this branch.

On current main plus the previous PR head plus #9749 (da431b6a63ca), agc_shader_memory reproduced the reported nested-image-table rejection. The four-line fixture correction makes that combined test pass, retaining the dispatch assertions. Current main and this corrected PR separately ran the same eight focused tests listed below: 7/8 pass on each, with the same existing agc_driver_image_table descriptor-allocation failure (-1000069000). Each run verified seven Radeon 760M executions and seven Khronos instance/device-layer insertions; no VUID errors, missing layers or skips. Hardware/driver: AMD Ryzen 5 7640HS / Radeon 760M, RADV Mesa 25.0.7-2+deb13u1, Debian 13.7, Linux 7.2.12-x64v3-xanmod1. Required Vulkan and disabled shader cache were used with verbose CTest.

The full overlap scan covered 1,681 open PRs. Manual review of all 18 base-conflicted shared-file branches found no duplicate fixture correction. A real unresolved conflict with #10867 remains in the base-level sampling code inherited from #8716; #10867 changes compute derivative/LOD handling, not this dispatch mechanism. The branches will need a coordinated refresh when either lands. #8716 remains the declared prerequisite; this update does not claim that all other open PRs compose cleanly.

CI correction on 2026-10-31: head 37d4bd020c7b059abdf48c56e37add477f505409 removes the duplicate fault-test registration loop from core/libs/tests/write_watch/CMakeLists.txt (five deletions, no shader/runtime behavior change). The previous run failed on duplicate write_watch_execute-fault and write_watch_read-fault names. Local CMake configuration now succeeds and all 18 tests are registered once with their original arguments and 30-second timeouts. Both actual macOS write-watch jobs now pass on this head: Intel, Arm. Other CI jobs are tracked in that run; this does not claim new shader/GPU or gameplay validation.

No new gameplay cohort was run for this fixture correction. The measurements and trace digests below remain historical evidence for their named revisions, not a fresh-main speed claim or confirmation under the later four-pair acceptance protocol.

Historical performance evidence follows. Refreshed exact head ca770b73f881ed05979a87d4f133f5d572fad1fa incorporates main 9624d8c6bb9e96b7aa92b815f55690f69b0a88d5, selected live for this update, using a history-preserving merge. The measured baseline is bf134c54d635e5c6d6ea73547210ea0f8e6de1fd. The declared #8716 prerequisite is identical in both arms; this isolates downstream #12299 rather than attributing the combined change to this PR.

Focused comparison: 7/8 pass on both sides; the same pre-existing image-table descriptor-allocation failure (-1000069000) remains on both sides. Tests: agc_shader_memory, agc_driver_depth_plane_sampling, agc_driver_image_address_dimension, agc_driver_image_plane_bias_on_single_level_volume, agc_driver_image_sample_unnormalized, agc_driver_image_table, agc_driver_pixel_implicit_derivatives, agc_driver_prepared_graphics. Baseline fixture overlays, if present, contain only the corresponding PR assertions. Both verbose logs verify the physical AMD Radeon760M (RADV PHOENIX) and actual Khronos validation (7 baseline / 7 candidate insertions), required Vulkan and disabled shader cache. Zero VUID errors, missing layers or skips. Release full-native libraries and focused targets build; conventions and whitespace checks pass. Driver/OS: RADV Mesa25.0.7-2+deb13u1, Debian13/Linux7.2.12-x64v3-xanmod1; Ryzen5 7640HS.

Three predeclared warmed pairs A1,B1,B2,A2,A3,B3, all audited. Mean FPS 19.89557 → 20.06535 (+0.853%); mean GPU work 46.893 → 46.480 ms/present.

Pair Order Baseline FPS PR FPS FPS change Baseline GPU ms/present PR GPU ms/present
1 AB 19.82672 20.01862 +0.968% 47.024 46.557
2 BA 19.97072 20.07031 +0.499% 46.843 46.481
3 AB 19.88926 20.10712 +1.095% 46.811 46.401

Baseline FPS range 19.82672–19.97072; candidate 20.01862–20.10712. FPS improves in 3/3 pairs and GPU work is lower in 3/3. Candidate FPS exceeds the entire baseline run range. The observed direction repeats across these samples, with no cross-title/vendor/session claim.

PPSA28997 v01.008.001 stationary camp; same copied save/seven fixed inputs, 1920×1080 internal/output, focused1152×648 Wayland client, mailbox. Each arm ran once to warm its caches, then restarted with fresh copies of its independently warmed shader/driver caches for each capture, seconds90:12. Default buffer, only permitted TRACE_SECONDS/TRACE_DIR; no other TRACE/PROFILE settings and no redirected game log. Game stdout/stderr inherited the terminal. Identical attached screenshot-signal/startup-clock observer is disclosed by dirty flags, removed from source after freezing libraries, and never committed. All50 loaded native and9 guest libraries match the frozen hashes. Scene/focus/input/cache/library/drop audits pass for every capture. No timed numerical exclusions, added repetitions, competing builds or GPU work. Setup interruptions, if any, are disclosed in the attached protocol. Screenshots remain private.

All six original lossless traces, full summaries/digests, paired results, protocol, hashes and common observer. All 43 published files and six decoded original trace hashes were verified after download. Timing-only public evidence; no game files, saves, screenshots, shaders, ISA, native libraries, hardware captures or console logs. Main remained 9624d8c6bb at publication.

Landing order remains #8716 → #12299, with Filip722 owning the deduplication-preserving adaptation and combined validation. Acceptance and the prerequisite checklist remain external review matters. No cold-compilation benefit is claimed.

A1

{"commit":"bf134c54d635","dirty":true,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"90:12"},"gpu":"AMD Radeon 760M (RADV PHOENIX)","driver":"radv Mesa 25.0.7-2+deb13u1","os":"Linux 7.2.12-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 90:12","first_present":2391,"ms":12004.002},"presents":238,"frame_ms":{"p50":50.352,"p90":50.782,"p99":55.418,"max":56.144},"gpu_busy_ms_per_present":47.024,"worker_busy_pct":{"queue worker 0x0":77.987},"top_phases_ms_per_frame":{"Driver.Packet":39.186,"Driver.Packet.draw":36.071,"Driver.Draw":36.009,"Driver.Draw.draw_enqueued":31.174,"Recorder.Sync":29.449,"VideoOut.Flip":10.254,"Driver.Present":10.234,"VideoOut.Flip.present":10.202},"trace_dropped":false,"trace":"aps5-trace-bf134c54d635-3102939.json.gz"}

seconds 90:12 from present 2391: 238 presents, frame p50 50.4 / p90 50.8 / p99 55.4 / max 56.1 ms, GPU busy 47.0 ms per present
AMD Radeon 760M (RADV PHOENIX), radv Mesa 25.0.7-2+deb13u1, Linux 7.2.12-x64v3-xanmod1, 1920x1080, commit bf134c54d635 (dirty), dropped: no

{"commit":"bf134c54d635","dirty":true,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"90:12"},"gpu":"AMD Radeon 760M (RADV PHOENIX)","driver":"radv Mesa 25.0.7-2+deb13u1","os":"Linux 7.2.12-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 90:12","first_present":2391,"ms":12004.002},"presents":238,"frame_ms":{"p50":50.352,"p90":50.782,"p99":55.418,"max":56.144},"gpu_busy_ms_per_present":47.024,"worker_busy_pct":{"queue worker 0x0":77.987},"top_phases_ms_per_frame":{"Driver.Packet":39.186,"Driver.Packet.draw":36.071,"Driver.Draw":36.009,"Driver.Draw.draw_enqueued":31.174,"Recorder.Sync":29.449,"VideoOut.Flip":10.254,"Driver.Present":10.234,"VideoOut.Flip.present":10.202},"trace_dropped":false,"trace":"aps5-trace-bf134c54d635-3102939.json.gz"}

Slowest frames (largest slices inside each, inclusive)

  • present 2562: 56.1 ms at 8636 ms: batch (gpu) 47.3, Driver.Packet (queue worker 0x0) 42.1, Driver.Packet.draw (queue worker 0x0) 38.5, Driver.Draw (queue worker 0x0) 38.5
  • present 2564: 55.6 ms at 8748 ms: batch (gpu) 48.7, Driver.Packet (queue worker 0x0) 41.1, Driver.Packet.draw (queue worker 0x0) 37.7, Driver.Draw (queue worker 0x0) 37.6
  • present 2563: 55.4 ms at 8692 ms: batch (gpu) 48.6, Driver.Packet (queue worker 0x0) 41.9, Driver.Packet.draw (queue worker 0x0) 35.8, Driver.Draw (queue worker 0x0) 35.7
  • present 2560: 54.6 ms at 8528 ms: batch (gpu) 49.6, Driver.Packet (queue worker 0x0) 40.2, Driver.Packet.draw (queue worker 0x0) 37.6, Driver.Draw (queue worker 0x0) 37.4
  • present 2551: 54.2 ms at 8071 ms: batch (gpu) 47.6, Driver.Packet (queue worker 0x0) 40.7, Driver.Packet.draw (queue worker 0x0) 38.2, Driver.Draw (queue worker 0x0) 38.1

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
queue worker 0x0 37.3 (74 %) 10.7 (21 %) 2.4 9.7 Driver.Packet 37.2, Driver.EndSubmission 0.1
draw committer 36.3 (72 %) 0.0 (0 %) 14.1 3.2 Recorder.Sync 29.4, Graphics.Draw 5.0
presenter 0.4 (1 %) 9.9 (20 %) 40.1 0.1 VideoOut.Flip 10.3, Driver.Present 0.0
title 0.1 (0 %) 0.0 (0 %) 50.3 0.6 Shader.ResolveGraphicsStagesAbi 0.1, Shader.ResolveGraphicsAbi 0.0
title 0.1 (0 %) 0.0 (0 %) 50.4 0.5 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 50.4 0.1 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 50.4 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 50.4 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 50.4 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 50.4 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 50.4 0.0 Shader.ResolveGraphicsStagesAbi 0.0
gpu 47.0 (93 %) 0.0 (0 %) 3.5 0.0 batch 47.0

Largest slices (ms per frame, inclusive, all threads): batch 47.0, Driver.Packet 37.2, Driver.Packet.draw 35.4, Driver.Draw 35.3, Driver.Draw.draw_enqueued 30.4, Recorder.Sync 29.4, Driver.WorkerWait 10.7, Driver.WorkerWait.idle_and_completion_poll 10.7, VideoOut.Flip 10.3, Driver.Present 10.2

Longest waits

  • Driver.WorkerWait (queue worker 0x0) 11.6 ms at 8528 ms, present 2559
  • Driver.WorkerWait (queue worker 0x0) 11.4 ms at 8636 ms, present 2561
  • Driver.WorkerWait (queue worker 0x0) 11.1 ms at 8748 ms, present 2563
  • Driver.WorkerWait (queue worker 0x0) 10.8 ms at 11803 ms, present 2624
  • Driver.WorkerWait (queue worker 0x0) 10.8 ms at 8175 ms, present 2552
  • Driver.WorkerWait (queue worker 0x0) 10.8 ms at 8582 ms, present 2560
  • Driver.WorkerWait (queue worker 0x0) 10.8 ms at 8071 ms, present 2550
  • Driver.WorkerWait (queue worker 0x0) 10.8 ms at 8125 ms, present 2551
  • Driver.WorkerWait (queue worker 0x0) 10.8 ms at 8906 ms, present 2566
  • Driver.WorkerWait (queue worker 0x0) 10.7 ms at 2271 ms, present 2435

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

  • batch 2557: 14.8 ms at 8607 ms, present 2561: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.8, Graphics.Draw.draw_and_resource_release (draw committer) 0.4, Recorder.Submit (draw committer) 0.3, Recorder.Reap (draw committer) 0.0
  • batch 2406: 14.6 ms at 8098 ms, present 2551: GPU no ranges; recorded by Graphics.Draw (draw committer) 1.3, Graphics.Draw.draw_and_resource_release (draw committer) 1.0, Recorder.Submit (draw committer) 0.3, Graphics.Draw.validate (draw committer) 0.1
  • batch 2541: 14.6 ms at 8554 ms, present 2560: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.6, Recorder.Submit (draw committer) 0.2, Graphics.Draw.draw_and_resource_release (draw committer) 0.2
  • batch 2589: 14.5 ms at 8717 ms, present 2563: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.7, Graphics.Draw.draw_and_resource_release (draw committer) 0.3, Recorder.Submit (draw committer) 0.2, Graphics.Draw.validate (draw committer) 0.0
  • batch 2606: 14.5 ms at 8774 ms, present 2564: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.9, Graphics.Draw.draw_and_resource_release (draw committer) 0.5, Recorder.Submit (draw committer) 0.3

B1

{"commit":"ca770b73f881","dirty":true,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"90:12"},"gpu":"AMD Radeon 760M (RADV PHOENIX)","driver":"radv Mesa 25.0.7-2+deb13u1","os":"Linux 7.2.12-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 90:12","first_present":2413,"ms":12038.791},"presents":241,"frame_ms":{"p50":49.940,"p90":50.515,"p99":51.156,"max":51.278},"gpu_busy_ms_per_present":46.557,"worker_busy_pct":{"queue worker 0x0":77.769},"top_phases_ms_per_frame":{"Driver.Packet":38.684,"Driver.Packet.draw":35.453,"Driver.Draw":35.384,"Driver.Draw.draw_enqueued":30.692,"Recorder.Sync":29.310,"VideoOut.Flip":10.184,"Driver.Present":10.164,"VideoOut.Flip.present":10.132},"trace_dropped":false,"trace":"aps5-trace-ca770b73f881-3104541.json.gz"}

seconds 90:12 from present 2413: 241 presents, frame p50 49.9 / p90 50.5 / p99 51.2 / max 51.3 ms, GPU busy 46.6 ms per present
AMD Radeon 760M (RADV PHOENIX), radv Mesa 25.0.7-2+deb13u1, Linux 7.2.12-x64v3-xanmod1, 1920x1080, commit ca770b73f8 (dirty), dropped: no

{"commit":"ca770b73f881","dirty":true,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"90:12"},"gpu":"AMD Radeon 760M (RADV PHOENIX)","driver":"radv Mesa 25.0.7-2+deb13u1","os":"Linux 7.2.12-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 90:12","first_present":2413,"ms":12038.791},"presents":241,"frame_ms":{"p50":49.94,"p90":50.515,"p99":51.156,"max":51.278},"gpu_busy_ms_per_present":46.557,"worker_busy_pct":{"queue worker 0x0":77.769},"top_phases_ms_per_frame":{"Driver.Packet":38.684,"Driver.Packet.draw":35.453,"Driver.Draw":35.384,"Driver.Draw.draw_enqueued":30.692,"Recorder.Sync":29.31,"VideoOut.Flip":10.184,"Driver.Present":10.164,"VideoOut.Flip.present":10.132},"trace_dropped":false,"trace":"aps5-trace-ca770b73f881-3104541.json.gz"}

Slowest frames (largest slices inside each, inclusive)

  • present 2501: 51.3 ms at 4392 ms: batch (gpu) 46.8, Driver.Packet (queue worker 0x0) 38.0, Driver.Packet.draw (queue worker 0x0) 36.1, Driver.Draw (queue worker 0x0) 36.1
  • present 2563: 51.2 ms at 7502 ms: batch (gpu) 46.6, Driver.Packet (queue worker 0x0) 37.9, Driver.Packet.draw (queue worker 0x0) 36.2, Driver.Draw (queue worker 0x0) 36.1
  • present 2545: 51.2 ms at 6598 ms: batch (gpu) 46.7, Driver.Packet (queue worker 0x0) 37.9, Driver.Packet.draw (queue worker 0x0) 36.1, Driver.Draw (queue worker 0x0) 36.0
  • present 2572: 51.1 ms at 7954 ms: batch (gpu) 46.7, Driver.Packet (queue worker 0x0) 38.0, Driver.Packet.draw (queue worker 0x0) 36.2, Driver.Draw (queue worker 0x0) 36.2
  • present 2580: 51.1 ms at 8354 ms: batch (gpu) 46.6, Driver.Packet (queue worker 0x0) 37.8, Driver.Packet.draw (queue worker 0x0) 35.9, Driver.Draw (queue worker 0x0) 35.8

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
queue worker 0x0 36.7 (73 %) 10.7 (21 %) 2.5 9.8 Driver.Packet 36.6, Driver.EndSubmission 0.1
draw committer 36.3 (73 %) 0.0 (0 %) 13.6 3.2 Recorder.Sync 29.3, Graphics.Draw 5.0
presenter 0.4 (1 %) 9.8 (20 %) 39.7 0.1 VideoOut.Flip 10.2, Driver.Present 0.0
title 0.1 (0 %) 0.0 (0 %) 49.8 0.6 Shader.ResolveGraphicsStagesAbi 0.1, Shader.ResolveAbi 0.0
title 0.1 (0 %) 0.0 (0 %) 49.9 0.5 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 49.9 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 49.9 0.1 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 49.9 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 49.9 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 50.0 0.0 Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 50.0 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 50.0 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0
gpu 46.5 (93 %) 0.0 (0 %) 3.4 0.0 batch 46.5

Largest slices (ms per frame, inclusive, all threads): batch 46.5, Driver.Packet 36.6, Driver.Packet.draw 34.7, Driver.Draw 34.7, Driver.Draw.draw_enqueued 30.0, Recorder.Sync 29.3, Driver.WorkerWait 10.7, Driver.WorkerWait.idle_and_completion_poll 10.7, VideoOut.Flip 10.2, Driver.Present 10.2

Longest waits

  • Driver.WorkerWait (queue worker 0x0) 10.9 ms at 9054 ms, present 2594
  • Driver.WorkerWait (queue worker 0x0) 10.9 ms at 8104 ms, present 2574
  • Driver.WorkerWait (queue worker 0x0) 10.8 ms at 6750 ms, present 2547
  • Driver.WorkerWait (queue worker 0x0) 10.8 ms at 1453 ms, present 2441
  • Driver.WorkerWait (queue worker 0x0) 10.8 ms at 100 ms, present 2414
  • Driver.WorkerWait (queue worker 0x0) 10.7 ms at 4845 ms, present 2509
  • Driver.WorkerWait (queue worker 0x0) 10.7 ms at 5896 ms, present 2530
  • Driver.WorkerWait (queue worker 0x0) 10.7 ms at 5946 ms, present 2531
  • Driver.WorkerWait (queue worker 0x0) 10.7 ms at 8854 ms, present 2589
  • Driver.WorkerWait (queue worker 0x0) 10.7 ms at 7251 ms, present 2557

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

  • batch 2832: 14.5 ms at 9427 ms, present 2601: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.9, Graphics.Draw.draw_and_resource_release (draw committer) 0.5, Recorder.Submit (draw committer) 0.2, Graphics.Draw.validate (draw committer) 0.0
  • batch 2682: 14.5 ms at 8928 ms, present 2591: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.7, Graphics.Draw.draw_and_resource_release (draw committer) 0.4, Recorder.Submit (draw committer) 0.2, Recorder.Reap (draw committer) 0.0
  • batch 1450: 14.5 ms at 4819 ms, present 2509: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.draw_and_resource_release (draw committer) 0.2, Recorder.Submit (draw committer) 0.2
  • batch 2141: 14.5 ms at 7124 ms, present 2555: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.7, Graphics.Draw.draw_and_resource_release (draw committer) 0.4, Recorder.Submit (draw committer) 0.1
  • batch 2412: 14.5 ms at 8028 ms, present 2573: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.draw_and_resource_release (draw committer) 0.3, Recorder.Submit (draw committer) 0.1

B2

{"commit":"ca770b73f881","dirty":true,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"90:12"},"gpu":"AMD Radeon 760M (RADV PHOENIX)","driver":"radv Mesa 25.0.7-2+deb13u1","os":"Linux 7.2.12-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 90:12","first_present":2410,"ms":12007.789},"presents":241,"frame_ms":{"p50":49.826,"p90":50.241,"p99":50.935,"max":51.013},"gpu_busy_ms_per_present":46.481,"worker_busy_pct":{"queue worker 0x0":77.709},"top_phases_ms_per_frame":{"Driver.Packet":38.559,"Driver.Packet.draw":35.370,"Driver.Draw":35.304,"Driver.Draw.draw_enqueued":30.758,"Recorder.Sync":29.414,"VideoOut.Flip":10.181,"Driver.Present":10.165,"VideoOut.Flip.present":10.135},"trace_dropped":false,"trace":"aps5-trace-ca770b73f881-3105993.json.gz"}

seconds 90:12 from present 2410: 241 presents, frame p50 49.8 / p90 50.2 / p99 50.9 / max 51.0 ms, GPU busy 46.5 ms per present
AMD Radeon 760M (RADV PHOENIX), radv Mesa 25.0.7-2+deb13u1, Linux 7.2.12-x64v3-xanmod1, 1920x1080, commit ca770b73f8 (dirty), dropped: no

{"commit":"ca770b73f881","dirty":true,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"90:12"},"gpu":"AMD Radeon 760M (RADV PHOENIX)","driver":"radv Mesa 25.0.7-2+deb13u1","os":"Linux 7.2.12-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 90:12","first_present":2410,"ms":12007.789},"presents":241,"frame_ms":{"p50":49.826,"p90":50.241,"p99":50.935,"max":51.013},"gpu_busy_ms_per_present":46.481,"worker_busy_pct":{"queue worker 0x0":77.709},"top_phases_ms_per_frame":{"Driver.Packet":38.559,"Driver.Packet.draw":35.37,"Driver.Draw":35.304,"Driver.Draw.draw_enqueued":30.758,"Recorder.Sync":29.414,"VideoOut.Flip":10.181,"Driver.Present":10.165,"VideoOut.Flip.present":10.135},"trace_dropped":false,"trace":"aps5-trace-ca770b73f881-3105993.json.gz"}

Slowest frames (largest slices inside each, inclusive)

  • present 2430: 51.0 ms at 998 ms: batch (gpu) 46.6, Driver.Packet (queue worker 0x0) 37.5, Driver.Packet.draw (queue worker 0x0) 35.9, Driver.Draw (queue worker 0x0) 35.8
  • present 2445: 51.0 ms at 1750 ms: batch (gpu) 46.6, Driver.Packet (queue worker 0x0) 37.7, Driver.Packet.draw (queue worker 0x0) 35.4, Driver.Draw (queue worker 0x0) 35.3
  • present 2534: 50.9 ms at 6186 ms: batch (gpu) 46.3, Driver.Packet (queue worker 0x0) 37.6, Driver.Packet.draw (queue worker 0x0) 36.1, Driver.Draw (queue worker 0x0) 35.8
  • present 2431: 50.9 ms at 1049 ms: batch (gpu) 46.7, Driver.Packet (queue worker 0x0) 37.5, Driver.Packet.draw (queue worker 0x0) 34.4, Driver.Draw (queue worker 0x0) 34.4
  • present 2632: 50.7 ms at 11059 ms: batch (gpu) 46.7, Driver.Packet (queue worker 0x0) 37.2, Driver.Packet.draw (queue worker 0x0) 35.0, Driver.Draw (queue worker 0x0) 34.9

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
queue worker 0x0 36.6 (73 %) 10.7 (22 %) 2.5 9.7 Driver.Packet 36.5, Driver.EndSubmission 0.1
draw committer 36.3 (73 %) 0.0 (0 %) 13.5 3.1 Recorder.Sync 29.4, Graphics.Draw 4.9
presenter 0.4 (1 %) 9.8 (20 %) 39.6 0.1 VideoOut.Flip 10.2, Driver.Present 0.0
title 0.1 (0 %) 0.0 (0 %) 49.7 0.6 Shader.ResolveGraphicsStagesAbi 0.1, Shader.ResolveGraphicsAbi 0.0
title 0.1 (0 %) 0.0 (0 %) 49.8 0.5 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 49.8 0.1 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 49.8 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 49.8 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 49.8 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 49.8 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 49.8 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
gpu 46.4 (93 %) 0.0 (0 %) 3.4 0.0 batch 46.4

Largest slices (ms per frame, inclusive, all threads): batch 46.4, Driver.Packet 36.5, Driver.Packet.draw 34.6, Driver.Draw 34.6, Driver.Draw.draw_enqueued 30.0, Recorder.Sync 29.4, Driver.WorkerWait 10.7, Driver.WorkerWait.idle_and_completion_poll 10.7, VideoOut.Flip 10.2, Driver.Present 10.2

Longest waits

  • Driver.WorkerWait (queue worker 0x0) 11.1 ms at 11658 ms, present 2643
  • Driver.WorkerWait (queue worker 0x0) 10.9 ms at 10511 ms, present 2620
  • Driver.WorkerWait (queue worker 0x0) 10.8 ms at 4842 ms, present 2506
  • Driver.WorkerWait (queue worker 0x0) 10.8 ms at 10760 ms, present 2625
  • Driver.WorkerWait (queue worker 0x0) 10.8 ms at 9913 ms, present 2608
  • Driver.WorkerWait (queue worker 0x0) 10.7 ms at 1851 ms, present 2446
  • Driver.WorkerWait (queue worker 0x0) 10.7 ms at 11059 ms, present 2631
  • Driver.WorkerWait (queue worker 0x0) 10.7 ms at 4492 ms, present 2499
  • Driver.WorkerWait (queue worker 0x0) 10.7 ms at 1250 ms, present 2434
  • Driver.WorkerWait (queue worker 0x0) 10.7 ms at 49 ms, present 2410

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

  • batch 3472: 14.5 ms at 11532 ms, present 2641: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.7, Graphics.Draw.draw_and_resource_release (draw committer) 0.4, Recorder.Submit (draw committer) 0.2, Graphics.Draw.validate (draw committer) 0.0
  • batch 2450: 14.5 ms at 8143 ms, present 2573: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.draw_and_resource_release (draw committer) 0.2, Recorder.Submit (draw committer) 0.2
  • batch 3140: 14.5 ms at 10434 ms, present 2619: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.6, Graphics.Draw.draw_and_resource_release (draw committer) 0.2, Recorder.Submit (draw committer) 0.2
  • batch 3170: 14.5 ms at 10534 ms, present 2621: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.draw_and_resource_release (draw committer) 0.2, Recorder.Submit (draw committer) 0.2
  • batch 2870: 14.5 ms at 9539 ms, present 2601: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.draw_and_resource_release (draw committer) 0.2, Recorder.Submit (draw committer) 0.2

A2

{"commit":"bf134c54d635","dirty":true,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"90:12"},"gpu":"AMD Radeon 760M (RADV PHOENIX)","driver":"radv Mesa 25.0.7-2+deb13u1","os":"Linux 7.2.12-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 90:12","first_present":2398,"ms":12017.594},"presents":240,"frame_ms":{"p50":50.061,"p90":50.566,"p99":51.360,"max":51.447},"gpu_busy_ms_per_present":46.843,"worker_busy_pct":{"queue worker 0x0":77.861},"top_phases_ms_per_frame":{"Driver.Packet":38.827,"Driver.Packet.draw":35.709,"Driver.Draw":35.644,"Driver.Draw.draw_enqueued":31.212,"Recorder.Sync":29.724,"VideoOut.Flip":10.211,"Driver.Present":10.192,"VideoOut.Flip.present":10.161},"trace_dropped":false,"trace":"aps5-trace-bf134c54d635-3107625.json.gz"}

seconds 90:12 from present 2398: 240 presents, frame p50 50.1 / p90 50.6 / p99 51.4 / max 51.4 ms, GPU busy 46.8 ms per present
AMD Radeon 760M (RADV PHOENIX), radv Mesa 25.0.7-2+deb13u1, Linux 7.2.12-x64v3-xanmod1, 1920x1080, commit bf134c54d635 (dirty), dropped: no

{"commit":"bf134c54d635","dirty":true,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"90:12"},"gpu":"AMD Radeon 760M (RADV PHOENIX)","driver":"radv Mesa 25.0.7-2+deb13u1","os":"Linux 7.2.12-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 90:12","first_present":2398,"ms":12017.594},"presents":240,"frame_ms":{"p50":50.061,"p90":50.566,"p99":51.36,"max":51.447},"gpu_busy_ms_per_present":46.843,"worker_busy_pct":{"queue worker 0x0":77.861},"top_phases_ms_per_frame":{"Driver.Packet":38.827,"Driver.Packet.draw":35.709,"Driver.Draw":35.644,"Driver.Draw.draw_enqueued":31.212,"Recorder.Sync":29.724,"VideoOut.Flip":10.211,"Driver.Present":10.192,"VideoOut.Flip.present":10.161},"trace_dropped":false,"trace":"aps5-trace-bf134c54d635-3107625.json.gz"}

Slowest frames (largest slices inside each, inclusive)

  • present 2625: 51.4 ms at 11361 ms: batch (gpu) 46.8, Driver.Packet (queue worker 0x0) 38.2, Driver.Packet.draw (queue worker 0x0) 36.2, Driver.Draw (queue worker 0x0) 36.2
  • present 2421: 51.4 ms at 1148 ms: batch (gpu) 47.3, Driver.Packet (queue worker 0x0) 38.4, Driver.Packet.draw (queue worker 0x0) 37.0, Driver.Draw (queue worker 0x0) 37.0
  • present 2607: 51.4 ms at 10456 ms: batch (gpu) 46.8, Driver.Packet (queue worker 0x0) 38.3, Driver.Packet.draw (queue worker 0x0) 36.7, Driver.Draw (queue worker 0x0) 36.6
  • present 2399: 51.1 ms at 50 ms: batch (gpu) 47.1, Driver.Packet (queue worker 0x0) 37.6, Driver.Packet.draw (queue worker 0x0) 35.1, Driver.Draw (queue worker 0x0) 35.0
  • present 2500: 51.1 ms at 5103 ms: batch (gpu) 47.4, Driver.Packet (queue worker 0x0) 37.6, Driver.Packet.draw (queue worker 0x0) 35.6, Driver.Draw (queue worker 0x0) 35.5

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
queue worker 0x0 36.9 (74 %) 10.7 (21 %) 2.5 9.7 Driver.Packet 36.7, Driver.EndSubmission 0.1
draw committer 36.3 (73 %) 0.0 (0 %) 13.7 3.3 Recorder.Sync 29.7, Graphics.Draw 4.7
presenter 0.4 (1 %) 9.8 (20 %) 39.8 0.1 VideoOut.Flip 10.2, Driver.Present 0.0
title 0.1 (0 %) 0.0 (0 %) 50.0 0.6 Shader.ResolveGraphicsStagesAbi 0.1, Shader.ResolveGraphicsAbi 0.0
title 0.1 (0 %) 0.0 (0 %) 50.0 0.4 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 50.0 0.1 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 50.1 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 50.1 0.0 Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 50.1 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 50.1 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 50.1 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 50.1 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
gpu 46.8 (93 %) 0.0 (0 %) 3.3 0.0 batch 46.8

Largest slices (ms per frame, inclusive, all threads): batch 46.8, Driver.Packet 36.7, Driver.Packet.draw 34.9, Driver.Draw 34.9, Driver.Draw.draw_enqueued 30.5, Recorder.Sync 29.7, Driver.WorkerWait 10.7, Driver.WorkerWait.idle_and_completion_poll 10.7, VideoOut.Flip 10.2, Driver.Present 10.2

Longest waits

  • Driver.WorkerWait (queue worker 0x0) 10.9 ms at 4953 ms, present 2496
  • Driver.WorkerWait (queue worker 0x0) 10.9 ms at 1250 ms, present 2422
  • Driver.WorkerWait (queue worker 0x0) 10.8 ms at 7005 ms, present 2537
  • Driver.WorkerWait (queue worker 0x0) 10.8 ms at 5655 ms, present 2510
  • Driver.WorkerWait (queue worker 0x0) 10.8 ms at 1199 ms, present 2421
  • Driver.WorkerWait (queue worker 0x0) 10.7 ms at 5004 ms, present 2497
  • Driver.WorkerWait (queue worker 0x0) 10.7 ms at 11464 ms, present 2626
  • Driver.WorkerWait (queue worker 0x0) 10.7 ms at 6555 ms, present 2528
  • Driver.WorkerWait (queue worker 0x0) 10.7 ms at 3246 ms, present 2462
  • Driver.WorkerWait (queue worker 0x0) 10.7 ms at 8446 ms, present 2566

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

  • batch 949: 14.5 ms at 3169 ms, present 2461: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.4, Graphics.Draw.draw_and_resource_release (draw committer) 0.2, Recorder.Submit (draw committer) 0.1, Graphics.Draw.validate (draw committer) 0.0
  • batch 814: 14.5 ms at 2718 ms, present 2452: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.6, Graphics.Draw.draw_and_resource_release (draw committer) 0.3, Recorder.Submit (draw committer) 0.2
  • batch 2978: 14.5 ms at 9926 ms, present 2596: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.9, Graphics.Draw.draw_and_resource_release (draw committer) 0.6, Recorder.Submit (draw committer) 0.2
  • batch 3564: 14.5 ms at 11890 ms, present 2635: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.7, Graphics.Draw.draw_and_resource_release (draw committer) 0.3, Recorder.Submit (draw committer) 0.2, Graphics.Draw.validate (draw committer) 0.0
  • batch 3308: 14.5 ms at 11033 ms, present 2618: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.7, Graphics.Draw.draw_and_resource_release (draw committer) 0.3, Recorder.Submit (draw committer) 0.2

A3

{"commit":"bf134c54d635","dirty":true,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"90:12"},"gpu":"AMD Radeon 760M (RADV PHOENIX)","driver":"radv Mesa 25.0.7-2+deb13u1","os":"Linux 7.2.12-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 90:12","first_present":2398,"ms":12016.533},"presents":239,"frame_ms":{"p50":50.191,"p90":50.850,"p99":53.856,"max":55.817},"gpu_busy_ms_per_present":46.811,"worker_busy_pct":{"queue worker 0x0":77.925},"top_phases_ms_per_frame":{"Driver.Packet":39.022,"Driver.Packet.draw":35.811,"Driver.Draw":35.745,"Driver.Draw.draw_enqueued":30.890,"Recorder.Sync":29.431,"VideoOut.Flip":10.223,"Driver.Present":10.203,"VideoOut.Flip.present":10.170},"trace_dropped":false,"trace":"aps5-trace-bf134c54d635-3109220.json.gz"}

seconds 90:12 from present 2398: 239 presents, frame p50 50.2 / p90 50.9 / p99 53.9 / max 55.8 ms, GPU busy 46.8 ms per present
AMD Radeon 760M (RADV PHOENIX), radv Mesa 25.0.7-2+deb13u1, Linux 7.2.12-x64v3-xanmod1, 1920x1080, commit bf134c54d635 (dirty), dropped: no

{"commit":"bf134c54d635","dirty":true,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"90:12"},"gpu":"AMD Radeon 760M (RADV PHOENIX)","driver":"radv Mesa 25.0.7-2+deb13u1","os":"Linux 7.2.12-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 90:12","first_present":2398,"ms":12016.533},"presents":239,"frame_ms":{"p50":50.191,"p90":50.85,"p99":53.856,"max":55.817},"gpu_busy_ms_per_present":46.811,"worker_busy_pct":{"queue worker 0x0":77.925},"top_phases_ms_per_frame":{"Driver.Packet":39.022,"Driver.Packet.draw":35.811,"Driver.Draw":35.745,"Driver.Draw.draw_enqueued":30.89,"Recorder.Sync":29.431,"VideoOut.Flip":10.223,"Driver.Present":10.203,"VideoOut.Flip.present":10.17},"trace_dropped":false,"trace":"aps5-trace-bf134c54d635-3109220.json.gz"}

Slowest frames (largest slices inside each, inclusive)

  • present 2447: 55.8 ms at 2465 ms: batch (gpu) 48.2, Driver.Packet (queue worker 0x0) 42.0, Driver.Packet.draw (queue worker 0x0) 36.8, Driver.Draw (queue worker 0x0) 36.7
  • present 2445: 54.9 ms at 2358 ms: batch (gpu) 48.3, Driver.Packet (queue worker 0x0) 40.7, Driver.Packet.draw (queue worker 0x0) 38.3, Driver.Draw (queue worker 0x0) 38.2
  • present 2448: 53.9 ms at 2521 ms: batch (gpu) 47.4, Driver.Packet (queue worker 0x0) 40.0, Driver.Packet.draw (queue worker 0x0) 37.3, Driver.Draw (queue worker 0x0) 37.3
  • present 2446: 52.6 ms at 2413 ms: batch (gpu) 47.4, Driver.Packet (queue worker 0x0) 40.3, Driver.Packet.draw (queue worker 0x0) 37.3, Driver.Draw (queue worker 0x0) 37.3
  • present 2449: 52.4 ms at 2575 ms: batch (gpu) 46.9, Driver.Packet (queue worker 0x0) 39.1, Driver.Packet.draw (queue worker 0x0) 36.6, Driver.Draw (queue worker 0x0) 36.6

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
queue worker 0x0 37.1 (74 %) 10.7 (21 %) 2.4 9.7 Driver.Packet 37.0, Driver.EndSubmission 0.1
draw committer 36.5 (73 %) 0.0 (0 %) 13.8 3.1 Recorder.Sync 29.4, Graphics.Draw 5.1
presenter 0.4 (1 %) 9.9 (20 %) 40.0 0.1 VideoOut.Flip 10.2, Driver.Present 0.0
title 0.1 (0 %) 0.0 (0 %) 50.2 0.6 Shader.ResolveGraphicsStagesAbi 0.1, Shader.ResolveGraphicsAbi 0.0
title 0.1 (0 %) 0.0 (0 %) 50.2 0.5 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 50.3 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 50.2 0.1 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 50.3 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 50.3 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 50.3 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 50.3 0.0 Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 50.3 0.0 Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 50.3 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
gpu 46.8 (93 %) 0.0 (0 %) 3.5 0.0 batch 46.8

Largest slices (ms per frame, inclusive, all threads): batch 46.8, Driver.Packet 37.0, Driver.Packet.draw 35.1, Driver.Draw 35.1, Driver.Draw.draw_enqueued 30.2, Recorder.Sync 29.4, Driver.WorkerWait 10.7, Driver.WorkerWait.idle_and_completion_poll 10.7, VideoOut.Flip 10.2, Driver.Present 10.2

Longest waits

  • Driver.WorkerWait (queue worker 0x0) 11.8 ms at 2358 ms, present 2444
  • Driver.WorkerWait (queue worker 0x0) 11.4 ms at 10756 ms, present 2611
  • Driver.WorkerWait (queue worker 0x0) 11.3 ms at 10402 ms, present 2604
  • Driver.WorkerWait (queue worker 0x0) 10.9 ms at 1505 ms, present 2427
  • Driver.WorkerWait (queue worker 0x0) 10.9 ms at 1405 ms, present 2425
  • Driver.WorkerWait (queue worker 0x0) 10.8 ms at 2521 ms, present 2447
  • Driver.WorkerWait (queue worker 0x0) 10.8 ms at 402 ms, present 2405
  • Driver.WorkerWait (queue worker 0x0) 10.8 ms at 2575 ms, present 2448
  • Driver.WorkerWait (queue worker 0x0) 10.8 ms at 3977 ms, present 2476
  • Driver.WorkerWait (queue worker 0x0) 10.8 ms at 2627 ms, present 2449

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

  • batch 710: 14.7 ms at 2384 ms, present 2445: GPU no ranges; recorded by Graphics.Draw (draw committer) 1.3, Graphics.Draw.draw_and_resource_release (draw committer) 0.9, Recorder.Submit (draw committer) 0.3, Graphics.Draw.validate (draw committer) 0.0
  • batch 742: 14.6 ms at 2490 ms, present 2447: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.draw_and_resource_release (draw committer) 0.2, Recorder.Submit (draw committer) 0.1
  • batch 789: 14.5 ms at 2652 ms, present 2450: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.draw_and_resource_release (draw committer) 0.2, Recorder.Submit (draw committer) 0.2
  • batch 726: 14.5 ms at 2436 ms, present 2446: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.4, Graphics.Draw.draw_and_resource_release (draw committer) 0.2, Recorder.Submit (draw committer) 0.2
  • batch 3342: 14.5 ms at 11184 ms, present 2620: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.9, Graphics.Draw.draw_and_resource_release (draw committer) 0.6, Recorder.Submit (draw committer) 0.2, Graphics.Draw.validate (draw committer) 0.0

B3

{"commit":"ca770b73f881","dirty":true,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"90:12"},"gpu":"AMD Radeon 760M (RADV PHOENIX)","driver":"radv Mesa 25.0.7-2+deb13u1","os":"Linux 7.2.12-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 90:12","first_present":2411,"ms":12035.535},"presents":242,"frame_ms":{"p50":49.735,"p90":50.171,"p99":50.736,"max":50.820},"gpu_busy_ms_per_present":46.401,"worker_busy_pct":{"queue worker 0x0":77.666},"top_phases_ms_per_frame":{"Driver.Packet":38.473,"Driver.Packet.draw":35.325,"Driver.Draw":35.259,"Driver.Draw.draw_enqueued":30.565,"Recorder.Sync":29.345,"VideoOut.Flip":10.215,"Driver.Present":10.199,"VideoOut.Flip.present":10.167},"trace_dropped":false,"trace":"aps5-trace-ca770b73f881-3110771.json.gz"}

seconds 90:12 from present 2411: 242 presents, frame p50 49.7 / p90 50.2 / p99 50.7 / max 50.8 ms, GPU busy 46.4 ms per present
AMD Radeon 760M (RADV PHOENIX), radv Mesa 25.0.7-2+deb13u1, Linux 7.2.12-x64v3-xanmod1, 1920x1080, commit ca770b73f8 (dirty), dropped: no

{"commit":"ca770b73f881","dirty":true,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"90:12"},"gpu":"AMD Radeon 760M (RADV PHOENIX)","driver":"radv Mesa 25.0.7-2+deb13u1","os":"Linux 7.2.12-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 90:12","first_present":2411,"ms":12035.535},"presents":242,"frame_ms":{"p50":49.735,"p90":50.171,"p99":50.736,"max":50.82},"gpu_busy_ms_per_present":46.401,"worker_busy_pct":{"queue worker 0x0":77.666},"top_phases_ms_per_frame":{"Driver.Packet":38.473,"Driver.Packet.draw":35.325,"Driver.Draw":35.259,"Driver.Draw.draw_enqueued":30.565,"Recorder.Sync":29.345,"VideoOut.Flip":10.215,"Driver.Present":10.199,"VideoOut.Flip.present":10.167},"trace_dropped":false,"trace":"aps5-trace-ca770b73f881-3110771.json.gz"}

Slowest frames (largest slices inside each, inclusive)

  • present 2646: 50.8 ms at 11687 ms: batch (gpu) 46.6, Driver.Packet (queue worker 0x0) 37.3, Driver.Packet.draw (queue worker 0x0) 34.5, Driver.Draw (queue worker 0x0) 34.4
  • present 2415: 50.8 ms at 199 ms: batch (gpu) 46.7, Driver.Packet (queue worker 0x0) 37.4, Driver.Packet.draw (queue worker 0x0) 35.5, Driver.Draw (queue worker 0x0) 35.4
  • present 2435: 50.7 ms at 1194 ms: batch (gpu) 46.6, Driver.Packet (queue worker 0x0) 37.5, Driver.Packet.draw (queue worker 0x0) 35.3, Driver.Draw (queue worker 0x0) 35.2
  • present 2502: 50.5 ms at 4531 ms: batch (gpu) 46.8, Driver.Packet (queue worker 0x0) 37.3, Driver.Packet.draw (queue worker 0x0) 35.2, Driver.Draw (queue worker 0x0) 35.1
  • present 2543: 50.5 ms at 6558 ms: batch (gpu) 46.5, Driver.Packet (queue worker 0x0) 37.4, Driver.Packet.draw (queue worker 0x0) 35.4, Driver.Draw (queue worker 0x0) 35.2

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
queue worker 0x0 36.5 (73 %) 10.7 (22 %) 2.5 9.7 Driver.Packet 36.4, Driver.EndSubmission 0.1
draw committer 36.2 (73 %) 0.0 (0 %) 13.6 3.2 Recorder.Sync 29.3, Graphics.Draw 4.9
presenter 0.4 (1 %) 9.9 (20 %) 39.5 0.1 VideoOut.Flip 10.2, Driver.Present 0.0
title 0.1 (0 %) 0.0 (0 %) 49.6 0.6 Shader.ResolveGraphicsStagesAbi 0.1, Shader.ResolveGraphicsAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 49.7 0.1 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0
title 0.1 (0 %) 0.0 (0 %) 49.7 0.5 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 49.7 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 49.7 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 49.7 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 49.7 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 49.7 0.0 Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 49.7 0.0 Shader.ResolveGraphicsStagesAbi 0.0
gpu 46.4 (93 %) 0.0 (0 %) 3.4 0.0 batch 46.4

Largest slices (ms per frame, inclusive, all threads): batch 46.4, Driver.Packet 36.4, Driver.Packet.draw 34.6, Driver.Draw 34.6, Driver.Draw.draw_enqueued 29.9, Recorder.Sync 29.3, Driver.WorkerWait 10.7, Driver.WorkerWait.idle_and_completion_poll 10.7, VideoOut.Flip 10.2, Driver.Present 10.2

Longest waits

  • Driver.WorkerWait (queue worker 0x0) 11.0 ms at 3236 ms, present 2475
  • Driver.WorkerWait (queue worker 0x0) 11.0 ms at 1692 ms, present 2444
  • Driver.WorkerWait (queue worker 0x0) 10.9 ms at 9850 ms, present 2608
  • Driver.WorkerWait (queue worker 0x0) 10.8 ms at 7605 ms, present 2563
  • Driver.WorkerWait (queue worker 0x0) 10.8 ms at 199 ms, present 2414
  • Driver.WorkerWait (queue worker 0x0) 10.8 ms at 7006 ms, present 2551
  • Driver.WorkerWait (queue worker 0x0) 10.8 ms at 2190 ms, present 2454
  • Driver.WorkerWait (queue worker 0x0) 10.8 ms at 10843 ms, present 2628
  • Driver.WorkerWait (queue worker 0x0) 10.7 ms at 2390 ms, present 2458
  • Driver.WorkerWait (queue worker 0x0) 10.7 ms at 9700 ms, present 2605

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

  • batch 125: 14.5 ms at 423 ms, present 2419: GPU no ranges; recorded by Graphics.Draw (draw committer) 1.2, Graphics.Draw.draw_and_resource_release (draw committer) 0.9, Recorder.Submit (draw committer) 0.2, Graphics.Draw.validate (draw committer) 0.0
  • batch 3446: 14.5 ms at 11412 ms, present 2640: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.4, Graphics.Draw.draw_and_resource_release (draw committer) 0.2, Recorder.Submit (draw committer) 0.1
  • batch 3476: 14.5 ms at 11512 ms, present 2642: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.draw_and_resource_release (draw committer) 0.2, Recorder.Submit (draw committer) 0.2, Recorder.Reap (draw committer) 0.0
  • batch 2785: 14.5 ms at 9225 ms, present 2596: GPU no ranges; recorded by Graphics.Draw (draw committer) 1.1, Graphics.Draw.draw_and_resource_release (draw committer) 0.7, Recorder.Submit (draw committer) 0.2, Graphics.Draw.validate (draw committer) 0.0
  • batch 2529: 14.5 ms at 8378 ms, present 2579: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.7, Graphics.Draw.draw_and_resource_release (draw committer) 0.4, Recorder.Submit (draw committer) 0.2, Graphics.Draw.validate (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; #8716 merged on 2026-11-02
  • Fixes: none
  • Unblocks: none
  • GPUs tested: AMD Radeon760M (vendor AMD), RADV Mesa25.0.7-2+deb13u1, Debian13 / Linux7.2.12-x64v3-xanmod1; historical peer compositions below
  • AI-assisted: yes (Codex)
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5047411088 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12299). Originally posted by [Filip722](https://github.com/Filip722) on 2026-10-28T08:22:30Z. --- ### What **Reviewer-requested evidence remains outstanding (2026-11-07).** Kept open for investigation. The November 1 captures below do not demonstrate a repeatable gain. Source inspection of main `4204951e771ee2ec2e71507e5390ee2c9b6e9238` and PR head `12367bdb6c32a65dfdf2c1e255534fd18d0a2fa6` found no runtime-selected workload eligible for the balanced-tree path: direct-image selectors are specialization constants in both registration and non-registration paths, while this PR excludes image/sampler tables. This is source analysis, not a new build, hardware test or performance capture. The requested named runtime case and repeatable matched current-main benefit are still missing; this request is not resolved. Express distinct direct-image mode dispatch as a balanced tree while retaining #8716's switch for equivalent modes. The original motivation was a runtime selector; merged #11952 now specializes that selector, so the historical runtime-chain benefit cannot be presumed to remain on current `main`. The refreshed diagnostic pair below demonstrates no performance gain. - Dispatch dense direct-image results with a balanced tree using the existing structured-selection helper. - Preserve every image-mode body and invalid-selector exit. Tables, sampler guards, writes and loop continuations retain their current dispatch. - Keep runtime registration-module reuse; no new specialization, pipeline variant, mode-count threshold or title-specific behavior. The production change is confined to `EmitImage`. In a historical standalone focused RADV robust2 GPL compilation, the loaded game fragment changed 1,911 → 1,821 native instructions and 9,104 → 8,744 code bytes, retaining 32 VGPRs, 128 SGPRs and zero spills. Static branches increase 47 → 73, while the executed first-mode path skips the membership chain and later sequential checks. This is a focused compiler observation, not exact linked-capture ISA or an elapsed-time estimate. PR #8716 deduplicates equivalent case bodies while retaining `OpSwitch`. This branch incorporates its refreshed head `45998c33789b` as the declared prerequisite. Current `main` includes #11952's direct-mode specialization; the updated comparison keeps that code and #8716 identical in both arms. ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> **Historical integration refresh, 2026-11-01 (exact revisions below).** Head `12367bdb6c32a65dfdf2c1e255534fd18d0a2fa6` incorporates pinned main `5bae1a4bc2cffc66c13e37ce8e63ae48b1b5dd1e` and refreshed prerequisite #8716 `45998c33789bc84b5a07a10260ece689b1d9cbde`, preserving history. Baseline `7673d25f370dae11690a3ec0ea04b061b5791118` is that same main plus the same prerequisite. Their source difference is exactly the 40-line balanced-dispatch addition; fixtures and all other sources match. Both exact trees pass all eight focused tests: `agc_shader_memory`, `agc_driver_depth_plane_sampling`, `agc_driver_image_address_dimension`, `agc_driver_image_plane_bias_on_single_level_volume`, `agc_driver_image_sample_unnormalized`, `agc_driver_image_table`, `agc_driver_pixel_implicit_derivatives`, and `agc_driver_prepared_graphics`. Author runs used required Vulkan, shader-cache bypass and Khronos validation with verbose CTest on Radeon 760M, private RADV Mesa 26.2.6/libdrm 2.4.133, Debian 13/Linux 7.2.12-x64v3-xanmod1. Each arm verified seven actual instance/device-layer insertions and the selected private Radeon driver, with no VUIDs, synchronization hazards, missing layers or skips. The historical image-table allocation failure does not reproduce in this setup. The requested downstream refresh retains the separate-heap-source fixture correction, both equivalent-mode switch assertions and current upstream shader changes. Main's current write-watch registrations are retained exactly; the former macOS registration workaround leaves no diff against main. One predetermined diagnostic **AB** pair followed two ordinary trace-enabled warmups per arm. Mean frame time is **21.827840 → 21.911022 ms** (candidate **0.083182 ms / 0.381% higher**); GPU busy time is **18.841 → 18.805 ms/present**. This single pair establishes neither a repeatable gain nor a regression, and supplies no renewed performance justification. No timing-based exclusions, replacements or additional pairs were collected. Both measured runs passed scene/input/focus/geometry, per-arm cache-content, loaded-library/driver and complete-trace gates. PPSA28997 01.008.001, restored stationary camp, same copied save with `resolutionIndex=6` requesting 2560×1440 internal rendering, 1920×1080 presentation, active 1152×648 Wayland client, mailbox; Ryzen 5 7640HS/Radeon 760M. Physical internal image allocation/extent was not independently verified for these builds. Both carry the identical private first-present/screenshot observer (`dirty:true`); no screenshots or input occurred in the timed window. Only AGC and VideoOut binary hashes differ: VideoOut's entire difference is 12 verified telemetry commit-literal bytes, with identical source and all other bytes matching. [Both original timing traces, full summaries, trace digests, protocol and provenance hashes](https://gist.github.com/Filip722/ca8cc64cff143213b295678e123bd371) are attached as lossless text chunks with a SHA-256-verifying decoder. Only timing evidence is public; game-derived files, saves, images, shaders, ISA, native libraries, hardware captures and console logs remain private. Summary lines for the sole pair, baseline then candidate: ```json {"commit":"7673d25f370d","dirty":true,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"25:12"},"gpu":"AMD Radeon 760M Graphics (RADV PHOENIX)","driver":"radv Mesa 26.2.6","os":"Linux 7.2.12-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 25:12","first_present":946,"ms":12005.312},"presents":550,"frame_ms":{"p50":21.871,"p90":22.309,"p99":22.823,"max":27.835},"gpu_busy_ms_per_present":18.841,"worker_busy_pct":{"queue worker 0x0":74.972},"top_phases_ms_per_frame":{"Driver.Packet":16.261,"Driver.Packet.draw":14.076,"Driver.Draw":14.039,"Driver.Draw.draw_enqueued":10.753,"Recorder.Sync":9.889,"VideoOut.Flip":4.485,"Driver.Present":4.449,"VideoOut.Flip.present":4.447},"trace_dropped":false,"trace":"aps5-trace-7673d25f370d-1142990.json.gz"} {"commit":"12367bdb6c32","dirty":true,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"25:12"},"gpu":"AMD Radeon 760M Graphics (RADV PHOENIX)","driver":"radv Mesa 26.2.6","os":"Linux 7.2.12-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 25:12","first_present":929,"ms":12007.24},"presents":548,"frame_ms":{"p50":21.956,"p90":22.437,"p99":23.098,"max":24.312},"gpu_busy_ms_per_present":18.805,"worker_busy_pct":{"queue worker 0x0":75.182},"top_phases_ms_per_frame":{"Driver.Packet":16.365,"Driver.Packet.draw":14.157,"Driver.Draw":14.122,"Driver.Draw.draw_enqueued":10.776,"Recorder.Sync":9.946,"VideoOut.Flip":4.481,"Driver.Present":4.447,"VideoOut.Flip.present":4.444},"trace_dropped":false,"trace":"aps5-trace-12367bdb6c32-1143997.json.gz"} ``` `trace_digest.py` summary excerpts: ```text **seconds 25:12** from present 946: 550 presents, frame p50 21.9 / p90 22.3 / p99 22.8 / max 27.8 ms, GPU busy 18.8 ms per present AMD Radeon 760M Graphics (RADV PHOENIX), radv Mesa 26.2.6, Linux 7.2.12-x64v3-xanmod1, 1920x1080, commit 7673d25f370d (dirty), dropped: no **seconds 25:12** from present 929: 548 presents, frame p50 22.0 / p90 22.4 / p99 23.1 / max 24.3 ms, GPU busy 18.8 ms per present AMD Radeon 760M Graphics (RADV PHOENIX), radv Mesa 26.2.6, Linux 7.2.12-x64v3-xanmod1, 1920x1080, commit 12367bdb6c32 (dirty), dropped: no ``` The new selector specialization materially affects the original performance rationale. The earlier approved report below remains historical evidence for its named revisions, and is neither pooled with this pair nor relabeled as testing this head. Reviewer acceptance of the updated change and its remaining value is still open. **Historical evidence for the exact revisions named below.** Review correction on 2026-10-31: head `5e4b0682fce7c05cb6c1aa08f24948f34eaf19cf` incorporates main `474030e58424fefdb65e5df9f3820810fbb4553c` with a history-preserving merge. The runtime-image fixture now gives its column a separate four-dword heap source, matching ResourceTracker; no production behavior changed in this correction. This addresses jotitadev's reported interaction with #9749 without weakening nested-table validation or importing #9749 into this branch. On current main plus the previous PR head plus #9749 (`da431b6a63ca`), `agc_shader_memory` reproduced the reported nested-image-table rejection. The four-line fixture correction makes that combined test pass, retaining the dispatch assertions. Current main and this corrected PR separately ran the same eight focused tests listed below: 7/8 pass on each, with the same existing `agc_driver_image_table` descriptor-allocation failure (-1000069000). Each run verified seven Radeon 760M executions and seven Khronos instance/device-layer insertions; no VUID errors, missing layers or skips. Hardware/driver: AMD Ryzen 5 7640HS / Radeon 760M, RADV Mesa 25.0.7-2+deb13u1, Debian 13.7, Linux 7.2.12-x64v3-xanmod1. Required Vulkan and disabled shader cache were used with verbose CTest. The full overlap scan covered 1,681 open PRs. Manual review of all 18 base-conflicted shared-file branches found no duplicate fixture correction. A real unresolved conflict with #10867 remains in the base-level sampling code inherited from #8716; #10867 changes compute derivative/LOD handling, not this dispatch mechanism. The branches will need a coordinated refresh when either lands. #8716 remains the declared prerequisite; this update does not claim that all other open PRs compose cleanly. CI correction on 2026-10-31: head `37d4bd020c7b059abdf48c56e37add477f505409` removes the duplicate fault-test registration loop from `core/libs/tests/write_watch/CMakeLists.txt` (five deletions, no shader/runtime behavior change). The previous run failed on duplicate `write_watch_execute-fault` and `write_watch_read-fault` names. Local CMake configuration now succeeds and all 18 tests are registered once with their original arguments and 30-second timeouts. Both actual macOS write-watch jobs now pass on this head: [Intel](https://github.com/boykopovar/AnyPS5/actions/runs/41244477093/job/124665633184), [Arm](https://github.com/boykopovar/AnyPS5/actions/runs/41244477093/job/124665633210). Other CI jobs are tracked in that run; this does not claim new shader/GPU or gameplay validation. No new gameplay cohort was run for this fixture correction. The measurements and trace digests below remain historical evidence for their named revisions, not a fresh-main speed claim or confirmation under the later four-pair acceptance protocol. Historical performance evidence follows. Refreshed exact head `ca770b73f881ed05979a87d4f133f5d572fad1fa` incorporates main `9624d8c6bb9e96b7aa92b815f55690f69b0a88d5`, selected live for this update, using a history-preserving merge. The measured baseline is `bf134c54d635e5c6d6ea73547210ea0f8e6de1fd`. The declared #8716 prerequisite is identical in both arms; this isolates downstream #12299 rather than attributing the combined change to this PR. Focused comparison: **7/8 pass on both sides; the same pre-existing image-table descriptor-allocation failure (-1000069000) remains on both sides**. Tests: `agc_shader_memory`, `agc_driver_depth_plane_sampling`, `agc_driver_image_address_dimension`, `agc_driver_image_plane_bias_on_single_level_volume`, `agc_driver_image_sample_unnormalized`, `agc_driver_image_table`, `agc_driver_pixel_implicit_derivatives`, `agc_driver_prepared_graphics`. Baseline fixture overlays, if present, contain only the corresponding PR assertions. Both verbose logs verify the physical AMD Radeon760M (RADV PHOENIX) and actual Khronos validation (7 baseline / 7 candidate insertions), required Vulkan and disabled shader cache. Zero VUID errors, missing layers or skips. Release full-native libraries and focused targets build; conventions and whitespace checks pass. Driver/OS: RADV Mesa25.0.7-2+deb13u1, Debian13/Linux7.2.12-x64v3-xanmod1; Ryzen5 7640HS. Three predeclared warmed pairs **A1,B1,B2,A2,A3,B3**, all audited. Mean FPS **19.89557 → 20.06535 (+0.853%)**; mean GPU work **46.893 → 46.480 ms/present**. | Pair | Order | Baseline FPS | PR FPS | FPS change | Baseline GPU ms/present | PR GPU ms/present | |---|---|---:|---:|---:|---:|---:| | 1 | AB | 19.82672 | 20.01862 | +0.968% | 47.024 | 46.557 | | 2 | BA | 19.97072 | 20.07031 | +0.499% | 46.843 | 46.481 | | 3 | AB | 19.88926 | 20.10712 | +1.095% | 46.811 | 46.401 | Baseline FPS range **19.82672–19.97072**; candidate **20.01862–20.10712**. FPS improves in 3/3 pairs and GPU work is lower in 3/3. Candidate FPS exceeds the entire baseline run range. The observed direction repeats across these samples, with no cross-title/vendor/session claim. PPSA28997 v01.008.001 stationary camp; same copied save/seven fixed inputs, 1920×1080 internal/output, focused1152×648 Wayland client, mailbox. Each arm ran once to warm its caches, then restarted with fresh copies of its independently warmed shader/driver caches for each capture, seconds90:12. Default buffer, only permitted TRACE_SECONDS/TRACE_DIR; no other TRACE/PROFILE settings and no redirected game log. Game stdout/stderr inherited the terminal. Identical attached screenshot-signal/startup-clock observer is disclosed by dirty flags, removed from source after freezing libraries, and never committed. All50 loaded native and9 guest libraries match the frozen hashes. Scene/focus/input/cache/library/drop audits pass for every capture. No timed numerical exclusions, added repetitions, competing builds or GPU work. Setup interruptions, if any, are disclosed in the attached protocol. Screenshots remain private. [All six original lossless traces, full summaries/digests, paired results, protocol, hashes and common observer](https://gist.github.com/Filip722/ecbf0ce8486e44d6f2330cf4e21e83fd). All 43 published files and six decoded original trace hashes were verified after download. Timing-only public evidence; no game files, saves, screenshots, shaders, ISA, native libraries, hardware captures or console logs. Main remained 9624d8c6bb9e96b7aa92b815f55690f69b0a88d5 at publication. Landing order remains #8716 → #12299, with Filip722 owning the deduplication-preserving adaptation and combined validation. Acceptance and the prerequisite checklist remain external review matters. No cold-compilation benefit is claimed. #### A1 ```json {"commit":"bf134c54d635","dirty":true,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"90:12"},"gpu":"AMD Radeon 760M (RADV PHOENIX)","driver":"radv Mesa 25.0.7-2+deb13u1","os":"Linux 7.2.12-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 90:12","first_present":2391,"ms":12004.002},"presents":238,"frame_ms":{"p50":50.352,"p90":50.782,"p99":55.418,"max":56.144},"gpu_busy_ms_per_present":47.024,"worker_busy_pct":{"queue worker 0x0":77.987},"top_phases_ms_per_frame":{"Driver.Packet":39.186,"Driver.Packet.draw":36.071,"Driver.Draw":36.009,"Driver.Draw.draw_enqueued":31.174,"Recorder.Sync":29.449,"VideoOut.Flip":10.254,"Driver.Present":10.234,"VideoOut.Flip.present":10.202},"trace_dropped":false,"trace":"aps5-trace-bf134c54d635-3102939.json.gz"} ``` **seconds 90:12** from present 2391: 238 presents, frame p50 50.4 / p90 50.8 / p99 55.4 / max 56.1 ms, GPU busy 47.0 ms per present AMD Radeon 760M (RADV PHOENIX), radv Mesa 25.0.7-2+deb13u1, Linux 7.2.12-x64v3-xanmod1, 1920x1080, commit bf134c54d635 (dirty), dropped: no ```json {"commit":"bf134c54d635","dirty":true,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"90:12"},"gpu":"AMD Radeon 760M (RADV PHOENIX)","driver":"radv Mesa 25.0.7-2+deb13u1","os":"Linux 7.2.12-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 90:12","first_present":2391,"ms":12004.002},"presents":238,"frame_ms":{"p50":50.352,"p90":50.782,"p99":55.418,"max":56.144},"gpu_busy_ms_per_present":47.024,"worker_busy_pct":{"queue worker 0x0":77.987},"top_phases_ms_per_frame":{"Driver.Packet":39.186,"Driver.Packet.draw":36.071,"Driver.Draw":36.009,"Driver.Draw.draw_enqueued":31.174,"Recorder.Sync":29.449,"VideoOut.Flip":10.254,"Driver.Present":10.234,"VideoOut.Flip.present":10.202},"trace_dropped":false,"trace":"aps5-trace-bf134c54d635-3102939.json.gz"} ``` **Slowest frames** (largest slices inside each, inclusive) - present 2562: 56.1 ms at 8636 ms: batch (gpu) 47.3, Driver.Packet (queue worker 0x0) 42.1, Driver.Packet.draw (queue worker 0x0) 38.5, Driver.Draw (queue worker 0x0) 38.5 - present 2564: 55.6 ms at 8748 ms: batch (gpu) 48.7, Driver.Packet (queue worker 0x0) 41.1, Driver.Packet.draw (queue worker 0x0) 37.7, Driver.Draw (queue worker 0x0) 37.6 - present 2563: 55.4 ms at 8692 ms: batch (gpu) 48.6, Driver.Packet (queue worker 0x0) 41.9, Driver.Packet.draw (queue worker 0x0) 35.8, Driver.Draw (queue worker 0x0) 35.7 - present 2560: 54.6 ms at 8528 ms: batch (gpu) 49.6, Driver.Packet (queue worker 0x0) 40.2, Driver.Packet.draw (queue worker 0x0) 37.6, Driver.Draw (queue worker 0x0) 37.4 - present 2551: 54.2 ms at 8071 ms: batch (gpu) 47.6, Driver.Packet (queue worker 0x0) 40.7, Driver.Packet.draw (queue worker 0x0) 38.2, Driver.Draw (queue worker 0x0) 38.1 **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | queue worker 0x0 | 37.3 (74 %) | 10.7 (21 %) | 2.4 | 9.7 | Driver.Packet 37.2, Driver.EndSubmission 0.1 | | draw committer | 36.3 (72 %) | 0.0 (0 %) | 14.1 | 3.2 | Recorder.Sync 29.4, Graphics.Draw 5.0 | | presenter | 0.4 (1 %) | 9.9 (20 %) | 40.1 | 0.1 | VideoOut.Flip 10.3, Driver.Present 0.0 | | title | 0.1 (0 %) | 0.0 (0 %) | 50.3 | 0.6 | Shader.ResolveGraphicsStagesAbi 0.1, Shader.ResolveGraphicsAbi 0.0 | | title | 0.1 (0 %) | 0.0 (0 %) | 50.4 | 0.5 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 50.4 | 0.1 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 50.4 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 50.4 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 50.4 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 50.4 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 50.4 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0 | | gpu | 47.0 (93 %) | 0.0 (0 %) | 3.5 | 0.0 | batch 47.0 | **Largest slices** (ms per frame, inclusive, all threads): batch 47.0, Driver.Packet 37.2, Driver.Packet.draw 35.4, Driver.Draw 35.3, Driver.Draw.draw_enqueued 30.4, Recorder.Sync 29.4, Driver.WorkerWait 10.7, Driver.WorkerWait.idle_and_completion_poll 10.7, VideoOut.Flip 10.3, Driver.Present 10.2 **Longest waits** - Driver.WorkerWait (queue worker 0x0) 11.6 ms at 8528 ms, present 2559 - Driver.WorkerWait (queue worker 0x0) 11.4 ms at 8636 ms, present 2561 - Driver.WorkerWait (queue worker 0x0) 11.1 ms at 8748 ms, present 2563 - Driver.WorkerWait (queue worker 0x0) 10.8 ms at 11803 ms, present 2624 - Driver.WorkerWait (queue worker 0x0) 10.8 ms at 8175 ms, present 2552 - Driver.WorkerWait (queue worker 0x0) 10.8 ms at 8582 ms, present 2560 - Driver.WorkerWait (queue worker 0x0) 10.8 ms at 8071 ms, present 2550 - Driver.WorkerWait (queue worker 0x0) 10.8 ms at 8125 ms, present 2551 - Driver.WorkerWait (queue worker 0x0) 10.8 ms at 8906 ms, present 2566 - Driver.WorkerWait (queue worker 0x0) 10.7 ms at 2271 ms, present 2435 **Largest GPU batches** (GPU ranges inside, and the CPU slices that recorded each, inclusive) - batch 2557: 14.8 ms at 8607 ms, present 2561: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.8, Graphics.Draw.draw_and_resource_release (draw committer) 0.4, Recorder.Submit (draw committer) 0.3, Recorder.Reap (draw committer) 0.0 - batch 2406: 14.6 ms at 8098 ms, present 2551: GPU no ranges; recorded by Graphics.Draw (draw committer) 1.3, Graphics.Draw.draw_and_resource_release (draw committer) 1.0, Recorder.Submit (draw committer) 0.3, Graphics.Draw.validate (draw committer) 0.1 - batch 2541: 14.6 ms at 8554 ms, present 2560: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.6, Recorder.Submit (draw committer) 0.2, Graphics.Draw.draw_and_resource_release (draw committer) 0.2 - batch 2589: 14.5 ms at 8717 ms, present 2563: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.7, Graphics.Draw.draw_and_resource_release (draw committer) 0.3, Recorder.Submit (draw committer) 0.2, Graphics.Draw.validate (draw committer) 0.0 - batch 2606: 14.5 ms at 8774 ms, present 2564: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.9, Graphics.Draw.draw_and_resource_release (draw committer) 0.5, Recorder.Submit (draw committer) 0.3 #### B1 ```json {"commit":"ca770b73f881","dirty":true,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"90:12"},"gpu":"AMD Radeon 760M (RADV PHOENIX)","driver":"radv Mesa 25.0.7-2+deb13u1","os":"Linux 7.2.12-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 90:12","first_present":2413,"ms":12038.791},"presents":241,"frame_ms":{"p50":49.940,"p90":50.515,"p99":51.156,"max":51.278},"gpu_busy_ms_per_present":46.557,"worker_busy_pct":{"queue worker 0x0":77.769},"top_phases_ms_per_frame":{"Driver.Packet":38.684,"Driver.Packet.draw":35.453,"Driver.Draw":35.384,"Driver.Draw.draw_enqueued":30.692,"Recorder.Sync":29.310,"VideoOut.Flip":10.184,"Driver.Present":10.164,"VideoOut.Flip.present":10.132},"trace_dropped":false,"trace":"aps5-trace-ca770b73f881-3104541.json.gz"} ``` **seconds 90:12** from present 2413: 241 presents, frame p50 49.9 / p90 50.5 / p99 51.2 / max 51.3 ms, GPU busy 46.6 ms per present AMD Radeon 760M (RADV PHOENIX), radv Mesa 25.0.7-2+deb13u1, Linux 7.2.12-x64v3-xanmod1, 1920x1080, commit ca770b73f881 (dirty), dropped: no ```json {"commit":"ca770b73f881","dirty":true,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"90:12"},"gpu":"AMD Radeon 760M (RADV PHOENIX)","driver":"radv Mesa 25.0.7-2+deb13u1","os":"Linux 7.2.12-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 90:12","first_present":2413,"ms":12038.791},"presents":241,"frame_ms":{"p50":49.94,"p90":50.515,"p99":51.156,"max":51.278},"gpu_busy_ms_per_present":46.557,"worker_busy_pct":{"queue worker 0x0":77.769},"top_phases_ms_per_frame":{"Driver.Packet":38.684,"Driver.Packet.draw":35.453,"Driver.Draw":35.384,"Driver.Draw.draw_enqueued":30.692,"Recorder.Sync":29.31,"VideoOut.Flip":10.184,"Driver.Present":10.164,"VideoOut.Flip.present":10.132},"trace_dropped":false,"trace":"aps5-trace-ca770b73f881-3104541.json.gz"} ``` **Slowest frames** (largest slices inside each, inclusive) - present 2501: 51.3 ms at 4392 ms: batch (gpu) 46.8, Driver.Packet (queue worker 0x0) 38.0, Driver.Packet.draw (queue worker 0x0) 36.1, Driver.Draw (queue worker 0x0) 36.1 - present 2563: 51.2 ms at 7502 ms: batch (gpu) 46.6, Driver.Packet (queue worker 0x0) 37.9, Driver.Packet.draw (queue worker 0x0) 36.2, Driver.Draw (queue worker 0x0) 36.1 - present 2545: 51.2 ms at 6598 ms: batch (gpu) 46.7, Driver.Packet (queue worker 0x0) 37.9, Driver.Packet.draw (queue worker 0x0) 36.1, Driver.Draw (queue worker 0x0) 36.0 - present 2572: 51.1 ms at 7954 ms: batch (gpu) 46.7, Driver.Packet (queue worker 0x0) 38.0, Driver.Packet.draw (queue worker 0x0) 36.2, Driver.Draw (queue worker 0x0) 36.2 - present 2580: 51.1 ms at 8354 ms: batch (gpu) 46.6, Driver.Packet (queue worker 0x0) 37.8, Driver.Packet.draw (queue worker 0x0) 35.9, Driver.Draw (queue worker 0x0) 35.8 **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | queue worker 0x0 | 36.7 (73 %) | 10.7 (21 %) | 2.5 | 9.8 | Driver.Packet 36.6, Driver.EndSubmission 0.1 | | draw committer | 36.3 (73 %) | 0.0 (0 %) | 13.6 | 3.2 | Recorder.Sync 29.3, Graphics.Draw 5.0 | | presenter | 0.4 (1 %) | 9.8 (20 %) | 39.7 | 0.1 | VideoOut.Flip 10.2, Driver.Present 0.0 | | title | 0.1 (0 %) | 0.0 (0 %) | 49.8 | 0.6 | Shader.ResolveGraphicsStagesAbi 0.1, Shader.ResolveAbi 0.0 | | title | 0.1 (0 %) | 0.0 (0 %) | 49.9 | 0.5 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 49.9 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 49.9 | 0.1 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 49.9 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 49.9 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 50.0 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 50.0 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 50.0 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0 | | gpu | 46.5 (93 %) | 0.0 (0 %) | 3.4 | 0.0 | batch 46.5 | **Largest slices** (ms per frame, inclusive, all threads): batch 46.5, Driver.Packet 36.6, Driver.Packet.draw 34.7, Driver.Draw 34.7, Driver.Draw.draw_enqueued 30.0, Recorder.Sync 29.3, Driver.WorkerWait 10.7, Driver.WorkerWait.idle_and_completion_poll 10.7, VideoOut.Flip 10.2, Driver.Present 10.2 **Longest waits** - Driver.WorkerWait (queue worker 0x0) 10.9 ms at 9054 ms, present 2594 - Driver.WorkerWait (queue worker 0x0) 10.9 ms at 8104 ms, present 2574 - Driver.WorkerWait (queue worker 0x0) 10.8 ms at 6750 ms, present 2547 - Driver.WorkerWait (queue worker 0x0) 10.8 ms at 1453 ms, present 2441 - Driver.WorkerWait (queue worker 0x0) 10.8 ms at 100 ms, present 2414 - Driver.WorkerWait (queue worker 0x0) 10.7 ms at 4845 ms, present 2509 - Driver.WorkerWait (queue worker 0x0) 10.7 ms at 5896 ms, present 2530 - Driver.WorkerWait (queue worker 0x0) 10.7 ms at 5946 ms, present 2531 - Driver.WorkerWait (queue worker 0x0) 10.7 ms at 8854 ms, present 2589 - Driver.WorkerWait (queue worker 0x0) 10.7 ms at 7251 ms, present 2557 **Largest GPU batches** (GPU ranges inside, and the CPU slices that recorded each, inclusive) - batch 2832: 14.5 ms at 9427 ms, present 2601: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.9, Graphics.Draw.draw_and_resource_release (draw committer) 0.5, Recorder.Submit (draw committer) 0.2, Graphics.Draw.validate (draw committer) 0.0 - batch 2682: 14.5 ms at 8928 ms, present 2591: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.7, Graphics.Draw.draw_and_resource_release (draw committer) 0.4, Recorder.Submit (draw committer) 0.2, Recorder.Reap (draw committer) 0.0 - batch 1450: 14.5 ms at 4819 ms, present 2509: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.draw_and_resource_release (draw committer) 0.2, Recorder.Submit (draw committer) 0.2 - batch 2141: 14.5 ms at 7124 ms, present 2555: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.7, Graphics.Draw.draw_and_resource_release (draw committer) 0.4, Recorder.Submit (draw committer) 0.1 - batch 2412: 14.5 ms at 8028 ms, present 2573: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.draw_and_resource_release (draw committer) 0.3, Recorder.Submit (draw committer) 0.1 #### B2 ```json {"commit":"ca770b73f881","dirty":true,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"90:12"},"gpu":"AMD Radeon 760M (RADV PHOENIX)","driver":"radv Mesa 25.0.7-2+deb13u1","os":"Linux 7.2.12-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 90:12","first_present":2410,"ms":12007.789},"presents":241,"frame_ms":{"p50":49.826,"p90":50.241,"p99":50.935,"max":51.013},"gpu_busy_ms_per_present":46.481,"worker_busy_pct":{"queue worker 0x0":77.709},"top_phases_ms_per_frame":{"Driver.Packet":38.559,"Driver.Packet.draw":35.370,"Driver.Draw":35.304,"Driver.Draw.draw_enqueued":30.758,"Recorder.Sync":29.414,"VideoOut.Flip":10.181,"Driver.Present":10.165,"VideoOut.Flip.present":10.135},"trace_dropped":false,"trace":"aps5-trace-ca770b73f881-3105993.json.gz"} ``` **seconds 90:12** from present 2410: 241 presents, frame p50 49.8 / p90 50.2 / p99 50.9 / max 51.0 ms, GPU busy 46.5 ms per present AMD Radeon 760M (RADV PHOENIX), radv Mesa 25.0.7-2+deb13u1, Linux 7.2.12-x64v3-xanmod1, 1920x1080, commit ca770b73f881 (dirty), dropped: no ```json {"commit":"ca770b73f881","dirty":true,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"90:12"},"gpu":"AMD Radeon 760M (RADV PHOENIX)","driver":"radv Mesa 25.0.7-2+deb13u1","os":"Linux 7.2.12-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 90:12","first_present":2410,"ms":12007.789},"presents":241,"frame_ms":{"p50":49.826,"p90":50.241,"p99":50.935,"max":51.013},"gpu_busy_ms_per_present":46.481,"worker_busy_pct":{"queue worker 0x0":77.709},"top_phases_ms_per_frame":{"Driver.Packet":38.559,"Driver.Packet.draw":35.37,"Driver.Draw":35.304,"Driver.Draw.draw_enqueued":30.758,"Recorder.Sync":29.414,"VideoOut.Flip":10.181,"Driver.Present":10.165,"VideoOut.Flip.present":10.135},"trace_dropped":false,"trace":"aps5-trace-ca770b73f881-3105993.json.gz"} ``` **Slowest frames** (largest slices inside each, inclusive) - present 2430: 51.0 ms at 998 ms: batch (gpu) 46.6, Driver.Packet (queue worker 0x0) 37.5, Driver.Packet.draw (queue worker 0x0) 35.9, Driver.Draw (queue worker 0x0) 35.8 - present 2445: 51.0 ms at 1750 ms: batch (gpu) 46.6, Driver.Packet (queue worker 0x0) 37.7, Driver.Packet.draw (queue worker 0x0) 35.4, Driver.Draw (queue worker 0x0) 35.3 - present 2534: 50.9 ms at 6186 ms: batch (gpu) 46.3, Driver.Packet (queue worker 0x0) 37.6, Driver.Packet.draw (queue worker 0x0) 36.1, Driver.Draw (queue worker 0x0) 35.8 - present 2431: 50.9 ms at 1049 ms: batch (gpu) 46.7, Driver.Packet (queue worker 0x0) 37.5, Driver.Packet.draw (queue worker 0x0) 34.4, Driver.Draw (queue worker 0x0) 34.4 - present 2632: 50.7 ms at 11059 ms: batch (gpu) 46.7, Driver.Packet (queue worker 0x0) 37.2, Driver.Packet.draw (queue worker 0x0) 35.0, Driver.Draw (queue worker 0x0) 34.9 **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | queue worker 0x0 | 36.6 (73 %) | 10.7 (22 %) | 2.5 | 9.7 | Driver.Packet 36.5, Driver.EndSubmission 0.1 | | draw committer | 36.3 (73 %) | 0.0 (0 %) | 13.5 | 3.1 | Recorder.Sync 29.4, Graphics.Draw 4.9 | | presenter | 0.4 (1 %) | 9.8 (20 %) | 39.6 | 0.1 | VideoOut.Flip 10.2, Driver.Present 0.0 | | title | 0.1 (0 %) | 0.0 (0 %) | 49.7 | 0.6 | Shader.ResolveGraphicsStagesAbi 0.1, Shader.ResolveGraphicsAbi 0.0 | | title | 0.1 (0 %) | 0.0 (0 %) | 49.8 | 0.5 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 49.8 | 0.1 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 49.8 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 49.8 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 49.8 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 49.8 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 49.8 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0 | | gpu | 46.4 (93 %) | 0.0 (0 %) | 3.4 | 0.0 | batch 46.4 | **Largest slices** (ms per frame, inclusive, all threads): batch 46.4, Driver.Packet 36.5, Driver.Packet.draw 34.6, Driver.Draw 34.6, Driver.Draw.draw_enqueued 30.0, Recorder.Sync 29.4, Driver.WorkerWait 10.7, Driver.WorkerWait.idle_and_completion_poll 10.7, VideoOut.Flip 10.2, Driver.Present 10.2 **Longest waits** - Driver.WorkerWait (queue worker 0x0) 11.1 ms at 11658 ms, present 2643 - Driver.WorkerWait (queue worker 0x0) 10.9 ms at 10511 ms, present 2620 - Driver.WorkerWait (queue worker 0x0) 10.8 ms at 4842 ms, present 2506 - Driver.WorkerWait (queue worker 0x0) 10.8 ms at 10760 ms, present 2625 - Driver.WorkerWait (queue worker 0x0) 10.8 ms at 9913 ms, present 2608 - Driver.WorkerWait (queue worker 0x0) 10.7 ms at 1851 ms, present 2446 - Driver.WorkerWait (queue worker 0x0) 10.7 ms at 11059 ms, present 2631 - Driver.WorkerWait (queue worker 0x0) 10.7 ms at 4492 ms, present 2499 - Driver.WorkerWait (queue worker 0x0) 10.7 ms at 1250 ms, present 2434 - Driver.WorkerWait (queue worker 0x0) 10.7 ms at 49 ms, present 2410 **Largest GPU batches** (GPU ranges inside, and the CPU slices that recorded each, inclusive) - batch 3472: 14.5 ms at 11532 ms, present 2641: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.7, Graphics.Draw.draw_and_resource_release (draw committer) 0.4, Recorder.Submit (draw committer) 0.2, Graphics.Draw.validate (draw committer) 0.0 - batch 2450: 14.5 ms at 8143 ms, present 2573: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.draw_and_resource_release (draw committer) 0.2, Recorder.Submit (draw committer) 0.2 - batch 3140: 14.5 ms at 10434 ms, present 2619: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.6, Graphics.Draw.draw_and_resource_release (draw committer) 0.2, Recorder.Submit (draw committer) 0.2 - batch 3170: 14.5 ms at 10534 ms, present 2621: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.draw_and_resource_release (draw committer) 0.2, Recorder.Submit (draw committer) 0.2 - batch 2870: 14.5 ms at 9539 ms, present 2601: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.draw_and_resource_release (draw committer) 0.2, Recorder.Submit (draw committer) 0.2 #### A2 ```json {"commit":"bf134c54d635","dirty":true,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"90:12"},"gpu":"AMD Radeon 760M (RADV PHOENIX)","driver":"radv Mesa 25.0.7-2+deb13u1","os":"Linux 7.2.12-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 90:12","first_present":2398,"ms":12017.594},"presents":240,"frame_ms":{"p50":50.061,"p90":50.566,"p99":51.360,"max":51.447},"gpu_busy_ms_per_present":46.843,"worker_busy_pct":{"queue worker 0x0":77.861},"top_phases_ms_per_frame":{"Driver.Packet":38.827,"Driver.Packet.draw":35.709,"Driver.Draw":35.644,"Driver.Draw.draw_enqueued":31.212,"Recorder.Sync":29.724,"VideoOut.Flip":10.211,"Driver.Present":10.192,"VideoOut.Flip.present":10.161},"trace_dropped":false,"trace":"aps5-trace-bf134c54d635-3107625.json.gz"} ``` **seconds 90:12** from present 2398: 240 presents, frame p50 50.1 / p90 50.6 / p99 51.4 / max 51.4 ms, GPU busy 46.8 ms per present AMD Radeon 760M (RADV PHOENIX), radv Mesa 25.0.7-2+deb13u1, Linux 7.2.12-x64v3-xanmod1, 1920x1080, commit bf134c54d635 (dirty), dropped: no ```json {"commit":"bf134c54d635","dirty":true,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"90:12"},"gpu":"AMD Radeon 760M (RADV PHOENIX)","driver":"radv Mesa 25.0.7-2+deb13u1","os":"Linux 7.2.12-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 90:12","first_present":2398,"ms":12017.594},"presents":240,"frame_ms":{"p50":50.061,"p90":50.566,"p99":51.36,"max":51.447},"gpu_busy_ms_per_present":46.843,"worker_busy_pct":{"queue worker 0x0":77.861},"top_phases_ms_per_frame":{"Driver.Packet":38.827,"Driver.Packet.draw":35.709,"Driver.Draw":35.644,"Driver.Draw.draw_enqueued":31.212,"Recorder.Sync":29.724,"VideoOut.Flip":10.211,"Driver.Present":10.192,"VideoOut.Flip.present":10.161},"trace_dropped":false,"trace":"aps5-trace-bf134c54d635-3107625.json.gz"} ``` **Slowest frames** (largest slices inside each, inclusive) - present 2625: 51.4 ms at 11361 ms: batch (gpu) 46.8, Driver.Packet (queue worker 0x0) 38.2, Driver.Packet.draw (queue worker 0x0) 36.2, Driver.Draw (queue worker 0x0) 36.2 - present 2421: 51.4 ms at 1148 ms: batch (gpu) 47.3, Driver.Packet (queue worker 0x0) 38.4, Driver.Packet.draw (queue worker 0x0) 37.0, Driver.Draw (queue worker 0x0) 37.0 - present 2607: 51.4 ms at 10456 ms: batch (gpu) 46.8, Driver.Packet (queue worker 0x0) 38.3, Driver.Packet.draw (queue worker 0x0) 36.7, Driver.Draw (queue worker 0x0) 36.6 - present 2399: 51.1 ms at 50 ms: batch (gpu) 47.1, Driver.Packet (queue worker 0x0) 37.6, Driver.Packet.draw (queue worker 0x0) 35.1, Driver.Draw (queue worker 0x0) 35.0 - present 2500: 51.1 ms at 5103 ms: batch (gpu) 47.4, Driver.Packet (queue worker 0x0) 37.6, Driver.Packet.draw (queue worker 0x0) 35.6, Driver.Draw (queue worker 0x0) 35.5 **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | queue worker 0x0 | 36.9 (74 %) | 10.7 (21 %) | 2.5 | 9.7 | Driver.Packet 36.7, Driver.EndSubmission 0.1 | | draw committer | 36.3 (73 %) | 0.0 (0 %) | 13.7 | 3.3 | Recorder.Sync 29.7, Graphics.Draw 4.7 | | presenter | 0.4 (1 %) | 9.8 (20 %) | 39.8 | 0.1 | VideoOut.Flip 10.2, Driver.Present 0.0 | | title | 0.1 (0 %) | 0.0 (0 %) | 50.0 | 0.6 | Shader.ResolveGraphicsStagesAbi 0.1, Shader.ResolveGraphicsAbi 0.0 | | title | 0.1 (0 %) | 0.0 (0 %) | 50.0 | 0.4 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 50.0 | 0.1 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 50.1 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 50.1 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 50.1 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 50.1 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 50.1 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 50.1 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | gpu | 46.8 (93 %) | 0.0 (0 %) | 3.3 | 0.0 | batch 46.8 | **Largest slices** (ms per frame, inclusive, all threads): batch 46.8, Driver.Packet 36.7, Driver.Packet.draw 34.9, Driver.Draw 34.9, Driver.Draw.draw_enqueued 30.5, Recorder.Sync 29.7, Driver.WorkerWait 10.7, Driver.WorkerWait.idle_and_completion_poll 10.7, VideoOut.Flip 10.2, Driver.Present 10.2 **Longest waits** - Driver.WorkerWait (queue worker 0x0) 10.9 ms at 4953 ms, present 2496 - Driver.WorkerWait (queue worker 0x0) 10.9 ms at 1250 ms, present 2422 - Driver.WorkerWait (queue worker 0x0) 10.8 ms at 7005 ms, present 2537 - Driver.WorkerWait (queue worker 0x0) 10.8 ms at 5655 ms, present 2510 - Driver.WorkerWait (queue worker 0x0) 10.8 ms at 1199 ms, present 2421 - Driver.WorkerWait (queue worker 0x0) 10.7 ms at 5004 ms, present 2497 - Driver.WorkerWait (queue worker 0x0) 10.7 ms at 11464 ms, present 2626 - Driver.WorkerWait (queue worker 0x0) 10.7 ms at 6555 ms, present 2528 - Driver.WorkerWait (queue worker 0x0) 10.7 ms at 3246 ms, present 2462 - Driver.WorkerWait (queue worker 0x0) 10.7 ms at 8446 ms, present 2566 **Largest GPU batches** (GPU ranges inside, and the CPU slices that recorded each, inclusive) - batch 949: 14.5 ms at 3169 ms, present 2461: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.4, Graphics.Draw.draw_and_resource_release (draw committer) 0.2, Recorder.Submit (draw committer) 0.1, Graphics.Draw.validate (draw committer) 0.0 - batch 814: 14.5 ms at 2718 ms, present 2452: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.6, Graphics.Draw.draw_and_resource_release (draw committer) 0.3, Recorder.Submit (draw committer) 0.2 - batch 2978: 14.5 ms at 9926 ms, present 2596: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.9, Graphics.Draw.draw_and_resource_release (draw committer) 0.6, Recorder.Submit (draw committer) 0.2 - batch 3564: 14.5 ms at 11890 ms, present 2635: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.7, Graphics.Draw.draw_and_resource_release (draw committer) 0.3, Recorder.Submit (draw committer) 0.2, Graphics.Draw.validate (draw committer) 0.0 - batch 3308: 14.5 ms at 11033 ms, present 2618: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.7, Graphics.Draw.draw_and_resource_release (draw committer) 0.3, Recorder.Submit (draw committer) 0.2 #### A3 ```json {"commit":"bf134c54d635","dirty":true,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"90:12"},"gpu":"AMD Radeon 760M (RADV PHOENIX)","driver":"radv Mesa 25.0.7-2+deb13u1","os":"Linux 7.2.12-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 90:12","first_present":2398,"ms":12016.533},"presents":239,"frame_ms":{"p50":50.191,"p90":50.850,"p99":53.856,"max":55.817},"gpu_busy_ms_per_present":46.811,"worker_busy_pct":{"queue worker 0x0":77.925},"top_phases_ms_per_frame":{"Driver.Packet":39.022,"Driver.Packet.draw":35.811,"Driver.Draw":35.745,"Driver.Draw.draw_enqueued":30.890,"Recorder.Sync":29.431,"VideoOut.Flip":10.223,"Driver.Present":10.203,"VideoOut.Flip.present":10.170},"trace_dropped":false,"trace":"aps5-trace-bf134c54d635-3109220.json.gz"} ``` **seconds 90:12** from present 2398: 239 presents, frame p50 50.2 / p90 50.9 / p99 53.9 / max 55.8 ms, GPU busy 46.8 ms per present AMD Radeon 760M (RADV PHOENIX), radv Mesa 25.0.7-2+deb13u1, Linux 7.2.12-x64v3-xanmod1, 1920x1080, commit bf134c54d635 (dirty), dropped: no ```json {"commit":"bf134c54d635","dirty":true,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"90:12"},"gpu":"AMD Radeon 760M (RADV PHOENIX)","driver":"radv Mesa 25.0.7-2+deb13u1","os":"Linux 7.2.12-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 90:12","first_present":2398,"ms":12016.533},"presents":239,"frame_ms":{"p50":50.191,"p90":50.85,"p99":53.856,"max":55.817},"gpu_busy_ms_per_present":46.811,"worker_busy_pct":{"queue worker 0x0":77.925},"top_phases_ms_per_frame":{"Driver.Packet":39.022,"Driver.Packet.draw":35.811,"Driver.Draw":35.745,"Driver.Draw.draw_enqueued":30.89,"Recorder.Sync":29.431,"VideoOut.Flip":10.223,"Driver.Present":10.203,"VideoOut.Flip.present":10.17},"trace_dropped":false,"trace":"aps5-trace-bf134c54d635-3109220.json.gz"} ``` **Slowest frames** (largest slices inside each, inclusive) - present 2447: 55.8 ms at 2465 ms: batch (gpu) 48.2, Driver.Packet (queue worker 0x0) 42.0, Driver.Packet.draw (queue worker 0x0) 36.8, Driver.Draw (queue worker 0x0) 36.7 - present 2445: 54.9 ms at 2358 ms: batch (gpu) 48.3, Driver.Packet (queue worker 0x0) 40.7, Driver.Packet.draw (queue worker 0x0) 38.3, Driver.Draw (queue worker 0x0) 38.2 - present 2448: 53.9 ms at 2521 ms: batch (gpu) 47.4, Driver.Packet (queue worker 0x0) 40.0, Driver.Packet.draw (queue worker 0x0) 37.3, Driver.Draw (queue worker 0x0) 37.3 - present 2446: 52.6 ms at 2413 ms: batch (gpu) 47.4, Driver.Packet (queue worker 0x0) 40.3, Driver.Packet.draw (queue worker 0x0) 37.3, Driver.Draw (queue worker 0x0) 37.3 - present 2449: 52.4 ms at 2575 ms: batch (gpu) 46.9, Driver.Packet (queue worker 0x0) 39.1, Driver.Packet.draw (queue worker 0x0) 36.6, Driver.Draw (queue worker 0x0) 36.6 **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | queue worker 0x0 | 37.1 (74 %) | 10.7 (21 %) | 2.4 | 9.7 | Driver.Packet 37.0, Driver.EndSubmission 0.1 | | draw committer | 36.5 (73 %) | 0.0 (0 %) | 13.8 | 3.1 | Recorder.Sync 29.4, Graphics.Draw 5.1 | | presenter | 0.4 (1 %) | 9.9 (20 %) | 40.0 | 0.1 | VideoOut.Flip 10.2, Driver.Present 0.0 | | title | 0.1 (0 %) | 0.0 (0 %) | 50.2 | 0.6 | Shader.ResolveGraphicsStagesAbi 0.1, Shader.ResolveGraphicsAbi 0.0 | | title | 0.1 (0 %) | 0.0 (0 %) | 50.2 | 0.5 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 50.3 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 50.2 | 0.1 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 50.3 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 50.3 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 50.3 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 50.3 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 50.3 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 50.3 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | gpu | 46.8 (93 %) | 0.0 (0 %) | 3.5 | 0.0 | batch 46.8 | **Largest slices** (ms per frame, inclusive, all threads): batch 46.8, Driver.Packet 37.0, Driver.Packet.draw 35.1, Driver.Draw 35.1, Driver.Draw.draw_enqueued 30.2, Recorder.Sync 29.4, Driver.WorkerWait 10.7, Driver.WorkerWait.idle_and_completion_poll 10.7, VideoOut.Flip 10.2, Driver.Present 10.2 **Longest waits** - Driver.WorkerWait (queue worker 0x0) 11.8 ms at 2358 ms, present 2444 - Driver.WorkerWait (queue worker 0x0) 11.4 ms at 10756 ms, present 2611 - Driver.WorkerWait (queue worker 0x0) 11.3 ms at 10402 ms, present 2604 - Driver.WorkerWait (queue worker 0x0) 10.9 ms at 1505 ms, present 2427 - Driver.WorkerWait (queue worker 0x0) 10.9 ms at 1405 ms, present 2425 - Driver.WorkerWait (queue worker 0x0) 10.8 ms at 2521 ms, present 2447 - Driver.WorkerWait (queue worker 0x0) 10.8 ms at 402 ms, present 2405 - Driver.WorkerWait (queue worker 0x0) 10.8 ms at 2575 ms, present 2448 - Driver.WorkerWait (queue worker 0x0) 10.8 ms at 3977 ms, present 2476 - Driver.WorkerWait (queue worker 0x0) 10.8 ms at 2627 ms, present 2449 **Largest GPU batches** (GPU ranges inside, and the CPU slices that recorded each, inclusive) - batch 710: 14.7 ms at 2384 ms, present 2445: GPU no ranges; recorded by Graphics.Draw (draw committer) 1.3, Graphics.Draw.draw_and_resource_release (draw committer) 0.9, Recorder.Submit (draw committer) 0.3, Graphics.Draw.validate (draw committer) 0.0 - batch 742: 14.6 ms at 2490 ms, present 2447: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.draw_and_resource_release (draw committer) 0.2, Recorder.Submit (draw committer) 0.1 - batch 789: 14.5 ms at 2652 ms, present 2450: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.draw_and_resource_release (draw committer) 0.2, Recorder.Submit (draw committer) 0.2 - batch 726: 14.5 ms at 2436 ms, present 2446: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.4, Graphics.Draw.draw_and_resource_release (draw committer) 0.2, Recorder.Submit (draw committer) 0.2 - batch 3342: 14.5 ms at 11184 ms, present 2620: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.9, Graphics.Draw.draw_and_resource_release (draw committer) 0.6, Recorder.Submit (draw committer) 0.2, Graphics.Draw.validate (draw committer) 0.0 #### B3 ```json {"commit":"ca770b73f881","dirty":true,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"90:12"},"gpu":"AMD Radeon 760M (RADV PHOENIX)","driver":"radv Mesa 25.0.7-2+deb13u1","os":"Linux 7.2.12-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 90:12","first_present":2411,"ms":12035.535},"presents":242,"frame_ms":{"p50":49.735,"p90":50.171,"p99":50.736,"max":50.820},"gpu_busy_ms_per_present":46.401,"worker_busy_pct":{"queue worker 0x0":77.666},"top_phases_ms_per_frame":{"Driver.Packet":38.473,"Driver.Packet.draw":35.325,"Driver.Draw":35.259,"Driver.Draw.draw_enqueued":30.565,"Recorder.Sync":29.345,"VideoOut.Flip":10.215,"Driver.Present":10.199,"VideoOut.Flip.present":10.167},"trace_dropped":false,"trace":"aps5-trace-ca770b73f881-3110771.json.gz"} ``` **seconds 90:12** from present 2411: 242 presents, frame p50 49.7 / p90 50.2 / p99 50.7 / max 50.8 ms, GPU busy 46.4 ms per present AMD Radeon 760M (RADV PHOENIX), radv Mesa 25.0.7-2+deb13u1, Linux 7.2.12-x64v3-xanmod1, 1920x1080, commit ca770b73f881 (dirty), dropped: no ```json {"commit":"ca770b73f881","dirty":true,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"90:12"},"gpu":"AMD Radeon 760M (RADV PHOENIX)","driver":"radv Mesa 25.0.7-2+deb13u1","os":"Linux 7.2.12-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 90:12","first_present":2411,"ms":12035.535},"presents":242,"frame_ms":{"p50":49.735,"p90":50.171,"p99":50.736,"max":50.82},"gpu_busy_ms_per_present":46.401,"worker_busy_pct":{"queue worker 0x0":77.666},"top_phases_ms_per_frame":{"Driver.Packet":38.473,"Driver.Packet.draw":35.325,"Driver.Draw":35.259,"Driver.Draw.draw_enqueued":30.565,"Recorder.Sync":29.345,"VideoOut.Flip":10.215,"Driver.Present":10.199,"VideoOut.Flip.present":10.167},"trace_dropped":false,"trace":"aps5-trace-ca770b73f881-3110771.json.gz"} ``` **Slowest frames** (largest slices inside each, inclusive) - present 2646: 50.8 ms at 11687 ms: batch (gpu) 46.6, Driver.Packet (queue worker 0x0) 37.3, Driver.Packet.draw (queue worker 0x0) 34.5, Driver.Draw (queue worker 0x0) 34.4 - present 2415: 50.8 ms at 199 ms: batch (gpu) 46.7, Driver.Packet (queue worker 0x0) 37.4, Driver.Packet.draw (queue worker 0x0) 35.5, Driver.Draw (queue worker 0x0) 35.4 - present 2435: 50.7 ms at 1194 ms: batch (gpu) 46.6, Driver.Packet (queue worker 0x0) 37.5, Driver.Packet.draw (queue worker 0x0) 35.3, Driver.Draw (queue worker 0x0) 35.2 - present 2502: 50.5 ms at 4531 ms: batch (gpu) 46.8, Driver.Packet (queue worker 0x0) 37.3, Driver.Packet.draw (queue worker 0x0) 35.2, Driver.Draw (queue worker 0x0) 35.1 - present 2543: 50.5 ms at 6558 ms: batch (gpu) 46.5, Driver.Packet (queue worker 0x0) 37.4, Driver.Packet.draw (queue worker 0x0) 35.4, Driver.Draw (queue worker 0x0) 35.2 **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | queue worker 0x0 | 36.5 (73 %) | 10.7 (22 %) | 2.5 | 9.7 | Driver.Packet 36.4, Driver.EndSubmission 0.1 | | draw committer | 36.2 (73 %) | 0.0 (0 %) | 13.6 | 3.2 | Recorder.Sync 29.3, Graphics.Draw 4.9 | | presenter | 0.4 (1 %) | 9.9 (20 %) | 39.5 | 0.1 | VideoOut.Flip 10.2, Driver.Present 0.0 | | title | 0.1 (0 %) | 0.0 (0 %) | 49.6 | 0.6 | Shader.ResolveGraphicsStagesAbi 0.1, Shader.ResolveGraphicsAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 49.7 | 0.1 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0 | | title | 0.1 (0 %) | 0.0 (0 %) | 49.7 | 0.5 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 49.7 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 49.7 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 49.7 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 49.7 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 49.7 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 49.7 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0 | | gpu | 46.4 (93 %) | 0.0 (0 %) | 3.4 | 0.0 | batch 46.4 | **Largest slices** (ms per frame, inclusive, all threads): batch 46.4, Driver.Packet 36.4, Driver.Packet.draw 34.6, Driver.Draw 34.6, Driver.Draw.draw_enqueued 29.9, Recorder.Sync 29.3, Driver.WorkerWait 10.7, Driver.WorkerWait.idle_and_completion_poll 10.7, VideoOut.Flip 10.2, Driver.Present 10.2 **Longest waits** - Driver.WorkerWait (queue worker 0x0) 11.0 ms at 3236 ms, present 2475 - Driver.WorkerWait (queue worker 0x0) 11.0 ms at 1692 ms, present 2444 - Driver.WorkerWait (queue worker 0x0) 10.9 ms at 9850 ms, present 2608 - Driver.WorkerWait (queue worker 0x0) 10.8 ms at 7605 ms, present 2563 - Driver.WorkerWait (queue worker 0x0) 10.8 ms at 199 ms, present 2414 - Driver.WorkerWait (queue worker 0x0) 10.8 ms at 7006 ms, present 2551 - Driver.WorkerWait (queue worker 0x0) 10.8 ms at 2190 ms, present 2454 - Driver.WorkerWait (queue worker 0x0) 10.8 ms at 10843 ms, present 2628 - Driver.WorkerWait (queue worker 0x0) 10.7 ms at 2390 ms, present 2458 - Driver.WorkerWait (queue worker 0x0) 10.7 ms at 9700 ms, present 2605 **Largest GPU batches** (GPU ranges inside, and the CPU slices that recorded each, inclusive) - batch 125: 14.5 ms at 423 ms, present 2419: GPU no ranges; recorded by Graphics.Draw (draw committer) 1.2, Graphics.Draw.draw_and_resource_release (draw committer) 0.9, Recorder.Submit (draw committer) 0.2, Graphics.Draw.validate (draw committer) 0.0 - batch 3446: 14.5 ms at 11412 ms, present 2640: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.4, Graphics.Draw.draw_and_resource_release (draw committer) 0.2, Recorder.Submit (draw committer) 0.1 - batch 3476: 14.5 ms at 11512 ms, present 2642: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.draw_and_resource_release (draw committer) 0.2, Recorder.Submit (draw committer) 0.2, Recorder.Reap (draw committer) 0.0 - batch 2785: 14.5 ms at 9225 ms, present 2596: GPU no ranges; recorded by Graphics.Draw (draw committer) 1.1, Graphics.Draw.draw_and_resource_release (draw committer) 0.7, Recorder.Submit (draw committer) 0.2, Graphics.Draw.validate (draw committer) 0.0 - batch 2529: 14.5 ms at 8378 ms, present 2579: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.7, Graphics.Draw.draw_and_resource_release (draw committer) 0.4, Recorder.Submit (draw committer) 0.2, Graphics.Draw.validate (draw committer) 0.0 ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [ ] 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: <!-- #PR, or none --> none; #8716 merged on 2026-11-02 - [x] Fixes: <!-- issue it closes as Fixes #N, or none --> none - [x] Unblocks: <!-- title ID and Game bring-up discussion, e.g. PPSA01325 #3232, or none --> none - [x] GPUs tested: <!-- for AGC, shader recompiler or VideoOut changes: vendor, model, driver and OS of each GPU the GPU tests ran on; otherwise n/a --> AMD Radeon760M (vendor AMD), RADV Mesa25.0.7-2+deb13u1, Debian13 / Linux7.2.12-x64v3-xanmod1; historical peer compositions below - [x] AI-assisted: <!-- yes / no --> yes (Codex)
MarcZX10 commented 2026-10-28 08:44:42 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T08:44:42Z.

Review: CHANGES_REQUESTED


The dispatch logic looks internally consistent on the PR base, and the performance report is unusually well scoped. I cannot finish a current-main review on this head, though: it is 18 commits behind main, and main has since changed SpirvImageEmitter.cpp (including the image-store and image-merge-phi changes in 9d6b917388 and b9d00c5d80). Please rebase/update onto current main and rerun the required focused shader tests on the updated head and its matching base; the current report explicitly excludes newer main changes, and the hosted GPU test jobs are skipped. This is needed to check the new structured dispatch against the current emitter and validation baseline.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5679927176 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12299#pullrequestreview-5679927176). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-28T08:44:42Z. **Review:** CHANGES_REQUESTED --- The dispatch logic looks internally consistent on the PR base, and the performance report is unusually well scoped. I cannot finish a current-main review on this head, though: it is 18 commits behind `main`, and `main` has since changed `SpirvImageEmitter.cpp` (including the image-store and image-merge-phi changes in `9d6b917388` and `b9d00c5d80`). Please rebase/update onto current `main` and rerun the required focused shader tests on the updated head and its matching base; the current report explicitly excludes newer main changes, and the hosted GPU test jobs are skipped. This is needed to check the new structured dispatch against the current emitter and validation baseline.
imellag commented 2026-10-28 18:45:06 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by imellag on 2026-10-28T18:45:06Z.

Review: COMMENTED


macOS / MoltenVK data point. Apple M4 Pro, macOS 27.2, MoltenVK 1.4.2, x86_64 Release under Rosetta. main doesn't run titles on macOS yet, so the base is a support branch, not main: main 750cf6cf48 + only the macOS boot PRs #7631 #10552 #11249 #11447 #11554 #10669 #7804, + #12529 (the revert of #10337, which roughly doubles the GPU time on this GPU and would hide smaller changes). Change: that base + eight open shader performance PRs merged together (#12287 #11952 #12299 #12280 #11368 #11265 #8716 #8958, all clean merges). I did not measure each PR alone.

Two alternated runs per side, warm shader cache, APS5_TRACE_SUMMARY_EVERY=10:

base with the eight PRs
God of War Sons of Sparta (PPSA28997), fps from 30 s 51.5 / 51.8 51.6 / 51.8
GoW GPU ms/present, gameplay before the fight / in the fight 13.6 / 19.6 13.5 / 19.5
Planet of Lana (PPSA19450), fps from 85 s 32.2 / 32.7 32.5 / 32.6

Together they don't raise the GPU time on MoltenVK. I'm checking open shader performance PRs on this GPU because #10337 was measured on RADV and doubled it here.

Focused tests below ran with ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation on the same two trees; the layer was found and both logs have the same VUID- lines (12 VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605, 20 VUID-vkCreateDescriptorSetLayout-support-09582, from tests that fail the same way on the base).

Interaction with #8716. The two merge without a textual conflict, but together they fail agc_shader_memory at #8716's new check: runtime image switch deduplication: OpSwitch did not cover every runtime image mode. Each one alone passes it (base + #12299: pass; base + #8716: pass; base + #8716 + #12299: fail; base + #8716 + #11952: pass). This PR turns the direct-image OpSwitch into a balanced if tree for value-returning images, which is the switch #8716 deduplicates and tests. pr_overlap can't see this, so could you and @hamb3r agree which lands first and what the second does: keep #8716's deduplication in the cases that still use OpSwitch and narrow its test to them, or drop the deduplication where this tree replaces the switch?

This PR on MoltenVK otherwise: agc_driver_depth_plane_sampling, agc_driver_image_address_dimension, agc_driver_image_sample_unnormalized and agc_driver_prepared_graphics pass on the base and with the change. agc_driver_image_table fails on both with the same VUID-vkCreateDescriptorSetLayout-support-09582, and agc_driver_image_plane_bias_on_single_level_volume fails on both (MoltenVK has no min/max reduction samplers). No GPU regression in the group.

AI-assisted: yes (Claude Code ran the builds, runs and tests and drafted this review)

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5687925939 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12299#pullrequestreview-5687925939). Originally posted by [imellag](https://github.com/imellag) on 2026-10-28T18:45:06Z. **Review:** COMMENTED --- **macOS / MoltenVK data point.** Apple M4 Pro, macOS 27.2, MoltenVK 1.4.2, x86_64 Release under Rosetta. `main` doesn't run titles on macOS yet, so the base is a support branch, not `main`: `main` `750cf6cf48` + only the macOS boot PRs #7631 #10552 #11249 #11447 #11554 #10669 #7804, + #12529 (the revert of #10337, which roughly doubles the GPU time on this GPU and would hide smaller changes). Change: that base + eight open shader performance PRs merged together (#12287 #11952 #12299 #12280 #11368 #11265 #8716 #8958, all clean merges). I did not measure each PR alone. Two alternated runs per side, warm shader cache, `APS5_TRACE_SUMMARY_EVERY=10`: | | base | with the eight PRs | |---|---|---| | God of War Sons of Sparta (PPSA28997), fps from 30 s | 51.5 / 51.8 | 51.6 / 51.8 | | GoW GPU ms/present, gameplay before the fight / in the fight | 13.6 / 19.6 | 13.5 / 19.5 | | Planet of Lana (PPSA19450), fps from 85 s | 32.2 / 32.7 | 32.5 / 32.6 | Together they don't raise the GPU time on MoltenVK. I'm checking open shader performance PRs on this GPU because #10337 was measured on RADV and doubled it here. Focused tests below ran with `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation` on the same two trees; the layer was found and both logs have the same `VUID-` lines (12 `VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605`, 20 `VUID-vkCreateDescriptorSetLayout-support-09582`, from tests that fail the same way on the base). **Interaction with #8716.** The two merge without a textual conflict, but together they fail `agc_shader_memory` at #8716's new check: `runtime image switch deduplication: OpSwitch did not cover every runtime image mode`. Each one alone passes it (base + #12299: pass; base + #8716: pass; base + #8716 + #12299: fail; base + #8716 + #11952: pass). This PR turns the direct-image `OpSwitch` into a balanced `if` tree for value-returning images, which is the switch #8716 deduplicates and tests. `pr_overlap` can't see this, so could you and @hamb3r agree which lands first and what the second does: keep #8716's deduplication in the cases that still use `OpSwitch` and narrow its test to them, or drop the deduplication where this tree replaces the switch? **This PR on MoltenVK otherwise:** `agc_driver_depth_plane_sampling`, `agc_driver_image_address_dimension`, `agc_driver_image_sample_unnormalized` and `agc_driver_prepared_graphics` pass on the base and with the change. `agc_driver_image_table` fails on both with the same `VUID-vkCreateDescriptorSetLayout-support-09582`, and `agc_driver_image_plane_bias_on_single_level_volume` fails on both (MoltenVK has no min/max reduction samplers). No GPU regression in the group. AI-assisted: yes (Claude Code ran the builds, runs and tests and drafted this review)
MarcZX10 commented 2026-10-29 05:48:50 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T05:48:50Z.

Review: CHANGES_REQUESTED


Re-checked — changes requested

The new reports add useful context, but this branch is still not based on current main, and the available gameplay comparison does not demonstrate a repeatable performance gain. The branch is 548 commits behind current main 52c09d567d2fa453494dd720fcf53a98149468e4; the reviewed code and measurements are based on older snapshots. The one Bendy comparison reports p50 increasing from 40.590 ms to 41.266 ms, p90 improving, and p99 nearly unchanged. The 71-shader SPIR-V sample grows by 0.33%, which may affect pipeline compilation but does not establish an elapsed-time regression by itself.

What I ran

  • Compared exact head 0f90dc4f2036866971fd7fa0a3a10520fcf2eb4d with current main 52c09d567d2fa453494dd720fcf53a98149468e4.
  • Ran a current-main merge preview and git diff --check.
  • Read the new SPIR-V-size and Bendy frame-time reports and the existing exact-head shader validation report.

Results

Check Result
Current-main merge preview Clean, but the branch does not contain current main
git diff --check Passed
Focused shader tests Existing report is against the earlier main 3a2b919816; hosted GPU/product jobs are skipped
Gameplay result One reported pair is neutral/slightly worse in p50; it does not establish a gain
Shader input size 71-request CPU sample grows by 0.33%; pipeline compile-time impact is unmeasured

Please update onto current main and rerun the focused shader tests and the same-scene baseline/change capture on that integrated head. The report should make the performance benefit reproducible and address the observed shader-input growth; if the updated capture remains neutral, reconsider whether the perf change is warranted. I did not run the C++ or GPU tests locally.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5693407802 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12299#pullrequestreview-5693407802). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T05:48:50Z. **Review:** CHANGES_REQUESTED --- # Re-checked — changes requested The new reports add useful context, but this branch is still not based on current `main`, and the available gameplay comparison does not demonstrate a repeatable performance gain. The branch is 548 commits behind current `main` `52c09d567d2fa453494dd720fcf53a98149468e4`; the reviewed code and measurements are based on older snapshots. The one Bendy comparison reports p50 increasing from 40.590 ms to 41.266 ms, p90 improving, and p99 nearly unchanged. The 71-shader SPIR-V sample grows by 0.33%, which may affect pipeline compilation but does not establish an elapsed-time regression by itself. ## What I ran - Compared exact head `0f90dc4f2036866971fd7fa0a3a10520fcf2eb4d` with current `main` `52c09d567d2fa453494dd720fcf53a98149468e4`. - Ran a current-main merge preview and `git diff --check`. - Read the new SPIR-V-size and Bendy frame-time reports and the existing exact-head shader validation report. ## Results | Check | Result | |---|---| | Current-main merge preview | Clean, but the branch does not contain current `main` | | `git diff --check` | Passed | | Focused shader tests | Existing report is against the earlier `main` `3a2b919816`; hosted GPU/product jobs are skipped | | Gameplay result | One reported pair is neutral/slightly worse in p50; it does not establish a gain | | Shader input size | 71-request CPU sample grows by 0.33%; pipeline compile-time impact is unmeasured | Please update onto current `main` and rerun the focused shader tests and the same-scene baseline/change capture on that integrated head. The report should make the performance benefit reproducible and address the observed shader-input growth; if the updated capture remains neutral, reconsider whether the `perf` change is warranted. I did not run the C++ or GPU tests locally.
MarcZX10 commented 2026-10-29 08:36:14 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T08:36:14Z.

Review: CHANGES_REQUESTED


Re-reviewed exact head e192e0c3d7e6b8ae7ffbc6984bb54c8b8a2909c8. The current-main focused validation report is useful, but the performance refresh is explicitly pending and the old captures are not a compliant report for this integration. The perf label check confirms the required same-title, same-scene, same-machine main/change aps5-summary.jsonl lines, attached traces, and tools/trace_digest.py output are absent. Please add that report and resolve the previously noted interaction with #8716 before approval. I did not run GPU tests locally.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5694875739 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12299#pullrequestreview-5694875739). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T08:36:14Z. **Review:** CHANGES_REQUESTED --- Re-reviewed exact head `e192e0c3d7e6b8ae7ffbc6984bb54c8b8a2909c8`. The current-main focused validation report is useful, but the performance refresh is explicitly pending and the old captures are not a compliant report for this integration. The `perf` label check confirms the required same-title, same-scene, same-machine `main`/change `aps5-summary.jsonl` lines, attached traces, and `tools/trace_digest.py` output are absent. Please add that report and resolve the previously noted interaction with #8716 before approval. I did not run GPU tests locally.
MarcZX10 commented 2026-10-29 09:07:45 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T09:07:45Z.

Review: CHANGES_REQUESTED


Re-check — changes requested\n\nThe updated report now supplies the required same-scene performance summaries, trace digests and verified trace attachments. The four captures show +0.438% and +0.632% FPS pairs (20.54654 to 20.65645 FPS overall); GPU-time benefit remains inconclusive, so I treat this as a small observed FPS difference rather than a broad or cross-title claim. The paired Radeon/Khronos runs report seven selected tests passing on each side and no new VUIDs, missing layers or skips. I did not run these GPU tests locally.\n\nTwo integration blockers remain:\n\n1. The report is on main 20c907b510, while the PR base is 3a40945e62 and current main is aaccd0ba39. This head is 9 commits behind current main; the intervening comparison changes 300 paths, many in the AGC driver and shader tests this PR touches. Please refresh onto current main and rerun the focused validation-layer comparison plus the required matched performance captures on the resulting exact head.\n2. The interaction with #8716 remains explicitly unagreed. Its new fixture requires an OpSwitch for a direct image read that this PR replaces with a balanced tree. The PR description says the proposed #12299-first order awaits confirmation and that no combined behavior has been tested. Please coordinate the order and downstream owner, update both checklists, and validate the combined tree with the assertion narrowed to actual fallback-switch cases if that is the agreed resolution.\n\nThe performance evidence resolves my prior missing-report request, but it does not resolve these integration and combined-test blockers. I did not run local builds, tests or captures.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5695229450 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12299#pullrequestreview-5695229450). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T09:07:45Z. **Review:** CHANGES_REQUESTED --- ## Re-check — changes requested\n\nThe updated report now supplies the required same-scene performance summaries, trace digests and verified trace attachments. The four captures show +0.438% and +0.632% FPS pairs (20.54654 to 20.65645 FPS overall); GPU-time benefit remains inconclusive, so I treat this as a small observed FPS difference rather than a broad or cross-title claim. The paired Radeon/Khronos runs report seven selected tests passing on each side and no new VUIDs, missing layers or skips. I did not run these GPU tests locally.\n\nTwo integration blockers remain:\n\n1. The report is on main 20c907b510, while the PR base is 3a40945e62 and current main is aaccd0ba39. This head is 9 commits behind current main; the intervening comparison changes 300 paths, many in the AGC driver and shader tests this PR touches. Please refresh onto current main and rerun the focused validation-layer comparison plus the required matched performance captures on the resulting exact head.\n2. The interaction with #8716 remains explicitly unagreed. Its new fixture requires an OpSwitch for a direct image read that this PR replaces with a balanced tree. The PR description says the proposed #12299-first order awaits confirmation and that no combined behavior has been tested. Please coordinate the order and downstream owner, update both checklists, and validate the combined tree with the assertion narrowed to actual fallback-switch cases if that is the agreed resolution.\n\nThe performance evidence resolves my prior missing-report request, but it does not resolve these integration and combined-test blockers. I did not run local builds, tests or captures.
MarcZX10 commented 2026-10-29 21:33:19 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T21:33:19Z.

Review: APPROVED


Re-checked — new head, looks good

The updated exact-head report resolves the missing matched performance and focused-shader evidence; the current-main merge preview is clean and I found no remaining blocking issue.

What I ran

Reviewed exact head ca770b73f881ed05979a87d4f133f5d572fad1fa against live main fc9240dbc5dc89a6b17a739703e00d26318c7716 on Linux x86-64 using Git and GitHub CLI. The merge preview is clean; git diff --check passes. I did not build or run shader/GPU tests locally.

git merge-tree --write-tree refs/remotes/upstream/main ca770b73f881ed05979a87d4f133f5d572fad1fa
git diff --check refs/remotes/upstream/main...ca770b73f881ed05979a87d4f133f5d572fad1fa
gh pr checks 12299 --repo boykopovar/AnyPS5

Results

Check Result
Current-main merge preview Clean; tree 1f20bfa8ef7c33908b3429fa963809570e908993
git diff --check Passed; no output
Hosted checks Windows, conventions, labels, eligibility, report, Ubuntu/Windows relinker and ASan pass; macOS relinkers remain pending; Linux product and specialized jobs are skipped
Focused shader comparison Author reports 7/8 passing on both arms, with the same pre-existing agc_driver_image_table allocation failure and no new validation errors; not independently run here
Matched performance report Author reports three AB/BA/AB pairs on the same Radeon 760M, title, scene and settings: FPS improves in all three, mean 19.89557 → 20.06535 (+0.853%), and GPU work falls in all three. Six summaries, digests and traces are provided in the linked report.
#8716 interaction The report uses the same #8716 prerequisite in both arms and records the intended landing order #8716 → #12299
Unedited merge-preview output
1f20bfa8ef7c33908b3429fa963809570e908993

git diff --check produced no output and exited successfully.

Findings

Blocking

None found in the reviewed head or current-main merge preview.

Non-blocking

The performance result is specific to the reported Radeon 760M and one title/scene; it supports a narrow observation, not a general hardware claim. The focused and GPU results are author-reported, not independently reproduced here.

Sources

Not verified

I did not independently run the local build, focused shader tests, Vulkan validation, or GPU captures. The macOS relinker jobs are pending; Linux product and specialized hosted jobs are skipped. No console behavior was tested.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5705263481 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12299#pullrequestreview-5705263481). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T21:33:19Z. **Review:** APPROVED --- # Re-checked — new head, looks good The updated exact-head report resolves the missing matched performance and focused-shader evidence; the current-main merge preview is clean and I found no remaining blocking issue. ## What I ran Reviewed exact head `ca770b73f881ed05979a87d4f133f5d572fad1fa` against live `main` `fc9240dbc5dc89a6b17a739703e00d26318c7716` on Linux x86-64 using Git and GitHub CLI. The merge preview is clean; `git diff --check` passes. I did not build or run shader/GPU tests locally. ```sh git merge-tree --write-tree refs/remotes/upstream/main ca770b73f881ed05979a87d4f133f5d572fad1fa git diff --check refs/remotes/upstream/main...ca770b73f881ed05979a87d4f133f5d572fad1fa gh pr checks 12299 --repo boykopovar/AnyPS5 ``` ## Results | Check | Result | |---|---| | Current-main merge preview | Clean; tree `1f20bfa8ef7c33908b3429fa963809570e908993` | | `git diff --check` | Passed; no output | | Hosted checks | Windows, conventions, labels, eligibility, report, Ubuntu/Windows relinker and ASan pass; macOS relinkers remain pending; Linux product and specialized jobs are skipped | | Focused shader comparison | Author reports 7/8 passing on both arms, with the same pre-existing `agc_driver_image_table` allocation failure and no new validation errors; not independently run here | | Matched performance report | Author reports three AB/BA/AB pairs on the same Radeon 760M, title, scene and settings: FPS improves in all three, mean 19.89557 → 20.06535 (+0.853%), and GPU work falls in all three. Six summaries, digests and traces are provided in the linked report. | | #8716 interaction | The report uses the same #8716 prerequisite in both arms and records the intended landing order `#8716` → `#12299` | <details><summary>Unedited merge-preview output</summary> ```text 1f20bfa8ef7c33908b3429fa963809570e908993 ``` `git diff --check` produced no output and exited successfully. </details> ## Findings ### Blocking None found in the reviewed head or current-main merge preview. ### Non-blocking The performance result is specific to the reported Radeon 760M and one title/scene; it supports a narrow observation, not a general hardware claim. The focused and GPU results are author-reported, not independently reproduced here. ## Sources - [Dispatch equivalence and balanced-tree path at `ca770b73f881ed05979a87d4f133f5d572fad1fa`](https://github.com/boykopovar/AnyPS5/blob/ca770b73f881ed05979a87d4f133f5d572fad1fa/core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp#L1978-L2121) - [Performance traces, summaries and digests](https://gist.github.com/Filip722/ecbf0ce8486e44d6f2330cf4e21e83fd) ## Not verified I did not independently run the local build, focused shader tests, Vulkan validation, or GPU captures. The macOS relinker jobs are pending; Linux product and specialized hosted jobs are skipped. No console behavior was tested.
jotitadev commented 2026-10-31 03:19:01 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-31T03:19:01Z.

Review: COMMENTED


Merge-skew check of approved shader PRs: this head together with #9749 fails agc_shader_memory. Each PR passes on its own, and the two merge without a textual conflict. The same happens with #8716, which this PR builds on. cc @hamb3r @EagleBearerYS

Setup: Linux (i7-8700, Ubuntu 26.04, GCC 15.2, Release), lavapipe (Mesa 26.0.3), ANYPS5_NO_SHADER_CACHE=1. Base main 2a1ae91175. Heads: this PR ca770b73f8, #9749 da431b6a63, #8716 01514a6e7a. Each tree was merged --no-ff onto that main. agc_shader_memory was run 3 times on each tree.

Tree agc_shader_memory
main + this PR pass 3/3
main + #9749 pass 3/3
main + this PR + #9749 fail 3/3
main + #8716 + #9749 fail 3/3
SPIR-V emission failed: hash=0x0 stage=4 opcode=ImageWrite reason=has a nested image table without its buffer pointer

Cause. The failing case is the non-packed (storage image table) case of verifyRuntimeImageSwitchDeduplication, from #8716. Its fixture builds one DescriptorSource with a TableColumn and leaves heapSource at its default of 0, so the column names its own source as its heap.

#9749's EmitTableWord treats a column as nested when sources.at(column.heapSource).tableColumn has a value. With this fixture, that parent is the column itself, which is not a buffer column, so emission stops at #9749's new refusal.

Columns built by ResourceTracker point heapSource at the heap's buffer or address source, so the self-reference only comes from the fixture.

Fix I checked in the test: give the column a separate heap source (the same lines apply to #8716):

             TableColumn column{};
             column.stride = 32u;
+            column.heapSource = 1u;
             source.tableColumn = column;
             program.Resources().descriptorSources.push_back(source);
+            DescriptorSource heap{};
+            heap.dwordCount = 4u;
+            program.Resources().descriptorSources.push_back(heap);

With it, agc_shader_memory passes 3/3 on main + this PR + #9749, on main + #8716 + #9749, and on main + this PR alone, so the OpSwitch assertions still run without #9749.

The other option is on #9749's side: don't treat a column whose heapSource is its own index as nested. That check is repeated in ResourceMaterializer.cpp, ShaderDiskCache.cpp and SpirvImageEmitter.cpp, so I only checked the fixture fix.

Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5720849481 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12299#pullrequestreview-5720849481). Originally posted by [jotitadev](https://github.com/jotitadev) on 2026-10-31T03:19:01Z. **Review:** COMMENTED --- Merge-skew check of approved shader PRs: this head together with #9749 fails `agc_shader_memory`. Each PR passes on its own, and the two merge without a textual conflict. The same happens with #8716, which this PR builds on. cc @hamb3r @EagleBearerYS Setup: Linux (i7-8700, Ubuntu 26.04, GCC 15.2, Release), lavapipe (Mesa 26.0.3), `ANYPS5_NO_SHADER_CACHE=1`. Base `main` `2a1ae91175`. Heads: this PR `ca770b73f8`, #9749 `da431b6a63`, #8716 `01514a6e7a`. Each tree was merged `--no-ff` onto that `main`. `agc_shader_memory` was run 3 times on each tree. | Tree | `agc_shader_memory` | |---|---| | `main` + this PR | pass 3/3 | | `main` + #9749 | pass 3/3 | | `main` + this PR + #9749 | **fail 3/3** | | `main` + #8716 + #9749 | **fail 3/3** | ``` SPIR-V emission failed: hash=0x0 stage=4 opcode=ImageWrite reason=has a nested image table without its buffer pointer ``` **Cause.** The failing case is the non-packed (storage image table) case of `verifyRuntimeImageSwitchDeduplication`, from #8716. Its fixture builds one `DescriptorSource` with a `TableColumn` and leaves `heapSource` at its default of 0, so the column names its own source as its heap. #9749's `EmitTableWord` treats a column as nested when `sources.at(column.heapSource).tableColumn` has a value. With this fixture, that parent is the column itself, which is not a buffer column, so emission stops at #9749's new refusal. Columns built by `ResourceTracker` point `heapSource` at the heap's buffer or address source, so the self-reference only comes from the fixture. **Fix I checked** in the test: give the column a separate heap source (the same lines apply to #8716): ```diff TableColumn column{}; column.stride = 32u; + column.heapSource = 1u; source.tableColumn = column; program.Resources().descriptorSources.push_back(source); + DescriptorSource heap{}; + heap.dwordCount = 4u; + program.Resources().descriptorSources.push_back(heap); ``` With it, `agc_shader_memory` passes 3/3 on `main` + this PR + #9749, on `main` + #8716 + #9749, and on `main` + this PR alone, so the OpSwitch assertions still run without #9749. The other option is on #9749's side: don't treat a column whose `heapSource` is its own index as nested. That check is repeated in `ResourceMaterializer.cpp`, `ShaderDiskCache.cpp` and `SpirvImageEmitter.cpp`, so I only checked the fixture fix. Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
adriadam10 commented 2026-11-07 20:33:12 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-11-07T20:33:12Z.

Review: CHANGES_REQUESTED


Thanks for the refresh and for being upfront about the numbers. Correctness looks fine (the balanced tree is only used when no two modes are equivalent, the invalid selector still ends in OpUnreachable, and the fixture uses a separate heap source), but I can't merge it as a perf change on this evidence:

  • The only measurement on the current head is a single pair where the candidate is 0.381% slower in mean frame time (21.827840 → 21.911022 ms) with GPU busy 18.841 → 18.805 ms/present. That shows no gain.
  • #11952 now specializes the direct-image selector in registration modules, which was the case this PR targeted, so the earlier +0.85% (measured before it) no longer applies to main.
  • The earlier data points from other titles were neutral (Bendy) or showed larger SPIR-V (+0.33% words, 12 of 71 shaders grow, JJenkx).

To move it forward, please show a case that is still selected at runtime after #11952 (name the shader or fixture) and a same-scene before/after on main with tools/trace_digest.py summaries that shows a repeatable gain. Otherwise the 40 lines and 145 test lines are maintenance cost without a demonstrated benefit, and it's fine to close it. Feel free to reopen with that evidence.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5814829351 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12299#pullrequestreview-5814829351). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-11-07T20:33:12Z. **Review:** CHANGES_REQUESTED --- Thanks for the refresh and for being upfront about the numbers. Correctness looks fine (the balanced tree is only used when no two modes are equivalent, the invalid selector still ends in `OpUnreachable`, and the fixture uses a separate heap source), but I can't merge it as a perf change on this evidence: - The only measurement on the current head is a single pair where the candidate is 0.381% slower in mean frame time (21.827840 → 21.911022 ms) with GPU busy 18.841 → 18.805 ms/present. That shows no gain. - #11952 now specializes the direct-image selector in registration modules, which was the case this PR targeted, so the earlier +0.85% (measured before it) no longer applies to `main`. - The earlier data points from other titles were neutral (Bendy) or showed larger SPIR-V (+0.33% words, 12 of 71 shaders grow, JJenkx). To move it forward, please show a case that is still selected at runtime after #11952 (name the shader or fixture) and a same-scene before/after on `main` with `tools/trace_digest.py` summaries that shows a repeatable gain. Otherwise the 40 lines and 145 test lines are maintenance cost without a demonstrated benefit, and it's fine to close it. Feel free to reopen with that evidence.

Pull request closed

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!12299
No description provided.