perf(agc): plan a draw's vertex copies in per-thread scratch #18287

Merged
meh7an merged 1 commit from upstream-pr/18287 into main 2026-11-14 17:41:31 +00:00
meh7an commented 2026-11-11 03:22:01 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by meh7an on 2026-11-11T03:22:01Z.


What

prepareDrawInputs planned each draw's vertex fetches in nine std::vector locals, allocated and freed on every draw: fetches, fetchValid, fetchOf, zeroed, isSolo, plannedFetches, plannedOf, rangeHandles and rangeOffsets. They now live in one per-thread VertexPlanScratch that keeps its capacity from draw to draw.

  • Lease. ExclusiveScratch<T, Tag> (new, in ThreadScratch.hpp) lends a thread's ThreadScratch object to one scope.
    • The first lease on a thread uses the thread's object. A lease taken while another holds it (a nested draw on the same thread) gets an object of its own, so the outer draw's lists are never touched.
    • The destructor clears every list (capacity kept) and frees the object, also when the draw throws. zeroed holds shared_ptr<Buffer>s, so an exception cannot leave a zero buffer alive past its draw.
  • Same content as before. Every list starts empty, as the locals did; assign and resize replace the sized constructors (fetchOf, zeroed, isSolo, plannedOf), and reserve stays where it was. The draw fills and reads them in the same order, so the planned copies, handles and offsets are unchanged.
  • Not touched: soloHandles, SoloZeroPaddedFetchIndices, PlanVertexCopies (its result lists, order and the stable_sort buffer) and DrawInputs' own vectors.
  • Memory: each list holds at most one element per vertex attribute of the draw's shader. One object stays per thread that runs a draw (the draw committer, or the queue worker when draws are not pipelined), so there is nothing to budget or trim.
  • No new switch: nothing observable changes, only where the lists' storage comes from.
  • VertexPlanScratchState ThreadVertexPlanScratch() (Draw.hpp) reports the calling thread's scratch (busy flag, resting elements, capacity) for the tests. The thread slot is per module, so a test cannot read the driver's scratch itself.
  • Overlap: no open PR changes these lists or adds a lease for them. This comes from a diff scan of the 2,007 open PRs for the nine lists' names, PlanVertexCopies, ThreadScratch and the new names. The five PRs too large for gh pr diff (#17613, #12315, #9508, #7642, #5021) were read file by file through the files API: none changes a line with those symbols.
    • #9875 (copy only the fetched vertex records) adds rangeFrom and VertexCopyStarts right after plan, next to rangeHandles. It is a textual conflict only (tools/pr_overlap.py: Draw.cpp L1970-1972); whichever lands second rebases, and #9875's new vector could join the scratch afterwards.
    • #9915 (RDNA 2 range checks) edits the fetchValid.push_back line, a one-line textual neighbour.
    • #16753 (clock reads, owner copies, allocations) deletes Kept::vertexBuffers and adds InlineList.hpp. It shares no line with this change and does not touch the nine lists.
    • #18174 (open, same author) edits Draw.hpp and Draw.cpp next to CommitTrims; the accessor here sits elsewhere, and the two branches merge without conflict.
    • tools/pr_overlap.py failed closed. It reports the line conflicts with #9875 and #18174 above, and could not compare 32 PRs that conflict with main and share Draw.cpp or Draw.hpp; the symbol scan covers those.

Tested

Windows 11 (10.0.26300), NVIDIA GeForce RTX 2080 Ti (driver 617.14), Sonic Origins (PPSA05324) menu on the S3K page, 3840x2160, default environment.

  • Measured commits: main 9e3265259e and this change on top of it (e3222a2db0), both clean builds from one build tree. The commit was then amended to cc90f5506e, which only moves the test accessor in Draw.hpp and Draw.cpp away from CommitTrims (a textual conflict with #18174); git range-diff shows the rest unchanged. The five tests that touch the accessor or the lease (agc_exclusive_scratch, agc_driver_zero_stride_vertex_fetch, agc_vertex_input, agc_vertex_input_validation, agc_graphics_profile_draw) were rerun on the amended build under validation: all pass, no VUID- line.
  • Base: main has moved by 95 merges since; none touches core/libs/prx/libSceAgcDriver, and the branch merges cleanly (git merge-tree).

New and extended tests:

  • agc_exclusive_scratch (new, header-only): the lease reuses its storage and starts empty; a nested lease (also three deep) gets its own object and leaves the outer lists alone; unwinding frees the object, empties it and releases what it held; another thread has its own; VertexPlanScratch empties all nine lists and releases a zero buffer.
  • agc_driver_zero_stride_vertex_fetch (extended): its 20 draws alternate zero-buffer and real fetches on one thread, with the outputs checked per vertex. At the end the thread's vertex plan scratch must be free, empty and in use (capacity != 0).

Broken copies of the change, each run against these tests, are all caught (8 of 8):

  • the lease: no clear() in the destructor, no busy = false, nesting that shares the object;
  • VertexPlanScratch::clear() without zeroed, without isSolo, without rangeOffsets (unit test);
  • the same zeroed mutant, and prepareDrawInputs using a plain local VertexPlanScratch instead of the lease (agc_driver_zero_stride_vertex_fetch, library rebuilt).

Vulkan validation protocol (ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, ctest -V, same machine and GPU):

  • Tests: agc_vertex_input, agc_vertex_input_validation, agc_driver_zero_stride_vertex_fetch, agc_driver_vertex_fetch, agc_embedded_vertex_fetch (+ _aliasing), agc_vertex_layer_export, agc_driver_vertex_clip_cull_draw (+ _no_key), agc_driver_layered_volume_vertex (+ _no_gpl), agc_driver_vertex_target_range_copied and _imported, agc_driver_draw_offset_indices, agc_driver_indexed_copy, agc_driver_list_restart, agc_driver_quad_list_index_overflow, agc_driver_rect_list_corner, agc_driver_pass_break_reasons, agc_graphics_profile_draw, agc_driver_draw_cache_relocation* (6), and the new agc_exclusive_scratch.
  • Results: 27 of 27 pass on the change, 26 of 26 on main 9e3265259e (the new test does not exist there).
  • Logs: neither contains was not found but was requested by env var VK_INSTANCE_LAYERS or a VUID- line.

tools/check_conventions.py --base upstream/main passes. Full ctest was not run.

Sampler (APS5_SAMPLE_COMMITTER and APS5_SAMPLE_WORKER, one 60 s window per arm, 3841 and 3843 samples on the draw committer; a sample is about 0.018 ms per frame). Samples whose stack passes through the function:

draw committer, samples main 9e3265259e this PR e3222a2db0
prepareDrawInputs inclusive 383 (9.97%) 347 (9.03%)
Allocate + operator delete under prepareDrawInputs and PlanVertexCopies 46 + 33 = 79 (2.06%) 23 + 22 = 45 (1.17%)
all Allocate + operator delete 143 + 91 (6.09%) 140 + 79 (5.70%)
commitDraw inclusive 78.99% 78.45%
  • Saving: 34 samples in the vertex phase, about 0.6 ms per frame. Two earlier windows on main 164ac9b078 held 83 and 95 there, so the 45 is outside the spread of main. The whole committer's allocation share falls by 15 samples only: other functions (planDraw, for one) moved up by about as much between the two windows, which is the spread between boots (2-8 points on the committer).
  • Worker: allocation and delete shares are equal within noise (5.2% and 6.2% on main, 6.0% and 6.2% on the PR); the lists belong to the committer on this scene.
  • Limiting threads: the committer is busy about 79% (commitDraw) and, with the GPU, limits the frame. The worker spends 27.2% (main) and 25.6% (PR) of its samples in DrawPipeline::Enqueue, waiting for the committer, so its worker_busy_pct overstates its load.

Two traced runs per arm (APS5_TRACE_SECONDS=200:15), in main, PR, PR, main order, both commit IDs in the summaries:

main 9e3265259e this PR e3222a2db0
reading FPS (median) 14.60 / 14.83 14.96 / 14.58
frame p50 72.55 / 72.35 ms 71.53 / 72.32 ms
Graphics.Draw per frame (retained events) 51.37 / 54.52 ms 50.77 / 51.53 ms
GPU busy per present 39.0 / 36.2 ms 38.4 / 39.7 ms
  • No FPS change is claimed. The saving shows in the sampler; frame time and FPS stay within the run-to-run spread. The second main run stalled (p90 104 ms, p99 246 ms), which inflates its Graphics.Draw. The sampler boots read 15.53 (main) and 15.54 (PR).
  • Dropped events: all four traces dropped events once the worker's buffer filled, equally in both arms, so the slice figures cover retained events only.
  • Machine: other work was not excluded. The benchmark lease's noise report for the second run chain reads 8.1% CPU on average and 35.6% at peak from outside the session, and the machine was not quiet at its start.

Summary lines (tools/trace_digest.py JSON summary, one per capture, in the order of the table):

seconds 200:15 from present 4415: 206 presents, frame p50 72.6 / p90 77.5 / p99 92.7 / max 102.3 ms, GPU busy 39.0 ms per present
NVIDIA GeForce RTX 2080 Ti, NVIDIA 617.14, Windows 10.0.26300, 3840x2160, commit 9e3265259e, dropped: yes

{"commit":"9e3265259ee0","dirty":false,"env":{"APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"200:15"},"gpu":"NVIDIA GeForce RTX 2080 Ti","driver":"NVIDIA 617.14","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz","cpu_threads":16,"memory_mib":32700,"title_id":"PPSA05324","title":"Sonic Origins","content_version":"02.002.000","resolution":"3840x2160","window":{"spec":"seconds 200:15","first_present":4415,"ms":15037.631},"presents":206,"frame_ms":{"p50":72.551,"p90":77.477,"p99":92.735,"max":102.308},"gpu_busy_ms_per_present":38.999,"worker_busy_pct":{"queue worker 0x0":96.755},"top_phases_ms_per_frame":{"Driver.Packet":68.561,"Graphics.Draw":51.366,"Driver.Packet.draw":51.193,"Driver.Draw":50.246,"Graphics.Draw.draw_and_resource_release":40.721,"Driver.Draw.shader_compile_and_link":24.608,"Shader.DrawStage":16.142,"Driver.Draw.draw_enqueued":14.835},"owned_draw_counts":{"OwnedDraw.evicted_other":18911},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":5.725,"events_lost":425253,"totals_full":false},"draw committer":{"events_full_after_s":12.394,"events_lost":55921,"totals_full":false}},"trace":"aps5-trace-9e3265259ee0-41808.json.gz"}

seconds 200:15 from present 4449: 208 presents, frame p50 71.5 / p90 76.3 / p99 93.0 / max 113.9 ms, GPU busy 38.4 ms per present
NVIDIA GeForce RTX 2080 Ti, NVIDIA 617.14, Windows 10.0.26300, 3840x2160, commit e3222a2db0bf, dropped: yes

{"commit":"e3222a2db0bf","dirty":false,"env":{"APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"200:15"},"gpu":"NVIDIA GeForce RTX 2080 Ti","driver":"NVIDIA 617.14","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz","cpu_threads":16,"memory_mib":32700,"title_id":"PPSA05324","title":"Sonic Origins","content_version":"02.002.000","resolution":"3840x2160","window":{"spec":"seconds 200:15","first_present":4449,"ms":15025.948},"presents":208,"frame_ms":{"p50":71.528,"p90":76.313,"p99":92.959,"max":113.931},"gpu_busy_ms_per_present":38.425,"worker_busy_pct":{"queue worker 0x0":97.012},"top_phases_ms_per_frame":{"Driver.Packet":67.993,"Driver.Packet.draw":50.834,"Graphics.Draw":50.765,"Driver.Draw":49.889,"Graphics.Draw.draw_and_resource_release":40.237,"Driver.Draw.shader_compile_and_link":24.314,"Shader.DrawStage":15.864,"Driver.Draw.draw_enqueued":14.709},"owned_draw_counts":{"OwnedDraw.evicted_other":18921},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":5.868,"events_lost":417986,"totals_full":false},"draw committer":{"events_full_after_s":12.259,"events_lost":58327,"totals_full":false}},"trace":"aps5-trace-e3222a2db0bf-41980.json.gz"}

seconds 200:15 from present 4404: 205 presents, frame p50 72.3 / p90 77.2 / p99 80.3 / max 182.2 ms, GPU busy 39.7 ms per present
NVIDIA GeForce RTX 2080 Ti, NVIDIA 617.14, Windows 10.0.26300, 3840x2160, commit e3222a2db0bf, dropped: yes

{"commit":"e3222a2db0bf","dirty":false,"env":{"APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"200:15"},"gpu":"NVIDIA GeForce RTX 2080 Ti","driver":"NVIDIA 617.14","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz","cpu_threads":16,"memory_mib":32700,"title_id":"PPSA05324","title":"Sonic Origins","content_version":"02.002.000","resolution":"3840x2160","window":{"spec":"seconds 200:15","first_present":4404,"ms":15049.759},"presents":205,"frame_ms":{"p50":72.321,"p90":77.212,"p99":80.259,"max":182.233},"gpu_busy_ms_per_present":39.664,"worker_busy_pct":{"queue worker 0x0":97.091},"top_phases_ms_per_frame":{"Driver.Packet":69.214,"Driver.Packet.draw":51.9,"Graphics.Draw":51.534,"Driver.Draw":50.955,"Graphics.Draw.draw_and_resource_release":40.634,"Driver.Draw.shader_compile_and_link":24.847,"Shader.DrawStage":16.25,"Driver.Draw.draw_enqueued":15.23},"owned_draw_counts":{"OwnedDraw.evicted_other":18681},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":5.727,"events_lost":425265,"totals_full":false},"draw committer":{"events_full_after_s":12.301,"events_lost":59020,"totals_full":false}},"trace":"aps5-trace-e3222a2db0bf-33608.json.gz"}

seconds 200:15 from present 4451: 188 presents, frame p50 72.4 / p90 104.2 / p99 245.8 / max 297.6 ms, GPU busy 36.2 ms per present
NVIDIA GeForce RTX 2080 Ti, NVIDIA 617.14, Windows 10.0.26300, 3840x2160, commit 9e3265259e, dropped: yes

{"commit":"9e3265259ee0","dirty":false,"env":{"APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"200:15"},"gpu":"NVIDIA GeForce RTX 2080 Ti","driver":"NVIDIA 617.14","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz","cpu_threads":16,"memory_mib":32700,"title_id":"PPSA05324","title":"Sonic Origins","content_version":"02.002.000","resolution":"3840x2160","window":{"spec":"seconds 200:15","first_present":4451,"ms":15030.746},"presents":188,"frame_ms":{"p50":72.352,"p90":104.16,"p99":245.823,"max":297.618},"gpu_busy_ms_per_present":36.241,"worker_busy_pct":{"queue worker 0x0":96.778},"top_phases_ms_per_frame":{"Driver.Packet":75.268,"Driver.Packet.draw":56.724,"Driver.Draw":55.688,"Graphics.Draw":54.521,"Graphics.Draw.draw_and_resource_release":43.188,"Driver.Draw.shader_compile_and_link":26.158,"Driver.Draw.draw_enqueued":18.053,"Shader.DrawStage":16.969},"owned_draw_counts":{"OwnedDraw.evicted_other":16466},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":5.534,"events_lost":443760,"totals_full":false},"draw committer":{"events_full_after_s":12.873,"events_lost":45557,"totals_full":false}},"trace":"aps5-trace-9e3265259ee0-36968.json.gz"}

Traces (two runs per zip, each with its aps5-summary.jsonl): m34-main-traces.zip (main 9e3265259e), m34-change-traces.zip (this PR as measured, e3222a2db0).

trace_digest.py, main run 1

seconds 200:15 from present 4415: 206 presents, frame p50 72.6 / p90 77.5 / p99 92.7 / max 102.3 ms, GPU busy 39.0 ms per present
NVIDIA GeForce RTX 2080 Ti, NVIDIA 617.14, Windows 10.0.26300, 3840x2160, commit 9e3265259e, dropped: yes

{"commit":"9e3265259ee0","dirty":false,"env":{"APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"200:15"},"gpu":"NVIDIA GeForce RTX 2080 Ti","driver":"NVIDIA 617.14","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz","cpu_threads":16,"memory_mib":32700,"title_id":"PPSA05324","title":"Sonic Origins","content_version":"02.002.000","resolution":"3840x2160","window":{"spec":"seconds 200:15","first_present":4415,"ms":15037.631},"presents":206,"frame_ms":{"p50":72.551,"p90":77.477,"p99":92.735,"max":102.308},"gpu_busy_ms_per_present":38.999,"worker_busy_pct":{"queue worker 0x0":96.755},"top_phases_ms_per_frame":{"Driver.Packet":68.561,"Graphics.Draw":51.366,"Driver.Packet.draw":51.193,"Driver.Draw":50.246,"Graphics.Draw.draw_and_resource_release":40.721,"Driver.Draw.shader_compile_and_link":24.608,"Shader.DrawStage":16.142,"Driver.Draw.draw_enqueued":14.835},"owned_draw_counts":{"OwnedDraw.evicted_other":18911},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":5.725,"events_lost":425253,"totals_full":false},"draw committer":{"events_full_after_s":12.394,"events_lost":55921,"totals_full":false}},"trace":"aps5-trace-9e3265259ee0-41808.json.gz"}

Incomplete trace: recorded data was lost. Slice-based timings, waits and batch inventories cover retained events only; missing slices are not idle time. Summary statistics are reported separately.

  • queue worker 0x0: 425253 events lost; buffer full at 5725.3 ms
  • draw committer: 55921 events lost; buffer full at 12394.3 ms

Slowest frames (largest slices inside each, inclusive)

  • present 4603: 102.3 ms at 13714 ms: batch (gpu) 28.5, VideoOut.Flip (presenter) 4.2, VideoOut.Flip.present (presenter) 4.0, Driver.Present (presenter) 4.0
  • present 4602: 97.4 ms at 13617 ms: batch (gpu) 34.5, VideoOut.Flip (presenter) 1.7, VideoOut.Flip.present (presenter) 1.4, Driver.Present (presenter) 1.4
  • present 4609: 92.7 ms at 14171 ms: batch (gpu) 43.3, VideoOut.Flip (presenter) 8.8, VideoOut.Flip.present (presenter) 8.6, Driver.Present (presenter) 8.6
  • present 4601: 87.1 ms at 13530 ms: batch (gpu) 48.8, VideoOut.Flip (presenter) 11.8, VideoOut.Flip.present (presenter) 11.6, Driver.Present (presenter) 11.6
  • present 4459: 82.3 ms at 3231 ms: Driver.Packet (queue worker 0x0) 60.2, Driver.Packet.draw (queue worker 0x0) 48.4, Driver.Draw (queue worker 0x0) 46.9, Graphics.Draw (draw committer) 43.3

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

  • present 4603: 102.3 ms at 13714 ms, persistence 36.9 ms
  • present 4609: 92.7 ms at 14171 ms, persistence 26.6 ms
  • present 4459: 82.3 ms at 3231 ms, persistence 16.7 ms
  • present 4446: 81.5 ms at 2279 ms, persistence 13.8 ms
  • present 4569: 79.6 ms at 11237 ms, persistence 12.7 ms
  • present 4528: 79.2 ms at 8258 ms, persistence 12.5 ms
  • present 4514: 78.6 ms at 7242 ms, persistence 12.0 ms
  • present 4470: 80.9 ms at 4033 ms, persistence 11.3 ms
  • present 4555: 78.1 ms at 10217 ms, persistence 10.5 ms
  • present 4548: 78.0 ms at 9720 ms, persistence 10.5 ms

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
title 0.1 (0 %) 10.6 (15 %) 62.3 0.5 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
queue worker 0x0 18.3 (25 %) 0.0 (0 %) 54.7 46.3 Driver.Packet 17.5, Driver.EndSubmission 0.8
draw committer 32.5 (45 %) 0.2 (0 %) 40.3 32.6 Graphics.Draw 29.9, Recorder.Submit 1.9
title 0.0 (0 %) 0.0 (0 %) 73.0 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 73.0 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 73.0 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 73.0 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
presenter 0.9 (1 %) 10.0 (14 %) 62.1 0.1 VideoOut.Flip 10.8, Driver.Present 0.0
title 0.0 (0 %) 0.0 (0 %) 73.0 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 73.0 0.1 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 73.0 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 73.0 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 73.0 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 73.0 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 73.0 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 73.0 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsAbi 0.0
gpu 38.9 (53 %) 0.0 (0 %) 34.1 0.0 batch 38.9

Largest slices (ms per frame, inclusive, all threads): batch 38.9, Graphics.Draw 29.9, Graphics.Draw.draw_and_resource_release 21.8, Driver.Packet 17.5, Driver.Packet.draw 13.6, Driver.Draw 13.2, VideoOut.Flip 10.8, Driver.Present 10.7, VideoOut.Flip.present 10.6, Recorder.WaitSerial 10.6

Longest waits

  • Recorder.WaitSerial (title) 12.7 ms at 4911 ms, present 4481
  • Recorder.WaitSerial (title) 12.7 ms at 3743 ms, present 4465
  • Recorder.WaitSerial (title) 12.6 ms at 3079 ms, present 4456
  • Recorder.WaitSerial (title) 12.6 ms at 1989 ms, present 4441
  • Recorder.WaitSerial (title) 12.6 ms at 6541 ms, present 4503
  • Recorder.WaitSerial (title) 12.4 ms at 9426 ms, present 4543
  • Recorder.WaitSerial (title) 12.4 ms at 809 ms, present 4425
  • Driver.Present.render_fence_wait (presenter) 12.3 ms at 3744 ms, present 4466
  • Recorder.WaitSerial (title) 12.3 ms at 11606 ms, present 4573
  • Recorder.WaitSerial (title) 12.3 ms at 14828 ms, present 4617

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

  • batch 3968: 10.5 ms at 4759 ms, present 4479: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.6, Graphics.Draw.draw_and_resource_release (draw committer) 0.6, Resources.Complete (draw committer) 0.1
  • batch 5680: 10.4 ms at 6808 ms, present 4507: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.draw_and_resource_release (draw committer) 0.5, Resources.Complete (draw committer) 0.1
  • batch 11519: 9.9 ms at 13696 ms, present 4602: GPU no ranges; recorded by no CPU slices
  • batch 7641: 9.6 ms at 9118 ms, present 4539: GPU no ranges; recorded by no CPU slices
  • batch 1931: 9.4 ms at 2349 ms, present 4446: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 12.5, Driver.Packet.draw (queue worker 0x0) 6.5, Driver.Draw (queue worker 0x0) 6.5, Driver.Packet.dispatch (queue worker 0x0) 4.7
trace_digest.py, PR run 1

seconds 200:15 from present 4449: 208 presents, frame p50 71.5 / p90 76.3 / p99 93.0 / max 113.9 ms, GPU busy 38.4 ms per present
NVIDIA GeForce RTX 2080 Ti, NVIDIA 617.14, Windows 10.0.26300, 3840x2160, commit e3222a2db0bf, dropped: yes

{"commit":"e3222a2db0bf","dirty":false,"env":{"APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"200:15"},"gpu":"NVIDIA GeForce RTX 2080 Ti","driver":"NVIDIA 617.14","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz","cpu_threads":16,"memory_mib":32700,"title_id":"PPSA05324","title":"Sonic Origins","content_version":"02.002.000","resolution":"3840x2160","window":{"spec":"seconds 200:15","first_present":4449,"ms":15025.948},"presents":208,"frame_ms":{"p50":71.528,"p90":76.313,"p99":92.959,"max":113.931},"gpu_busy_ms_per_present":38.425,"worker_busy_pct":{"queue worker 0x0":97.012},"top_phases_ms_per_frame":{"Driver.Packet":67.993,"Driver.Packet.draw":50.834,"Graphics.Draw":50.765,"Driver.Draw":49.889,"Graphics.Draw.draw_and_resource_release":40.237,"Driver.Draw.shader_compile_and_link":24.314,"Shader.DrawStage":15.864,"Driver.Draw.draw_enqueued":14.709},"owned_draw_counts":{"OwnedDraw.evicted_other":18921},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":5.868,"events_lost":417986,"totals_full":false},"draw committer":{"events_full_after_s":12.259,"events_lost":58327,"totals_full":false}},"trace":"aps5-trace-e3222a2db0bf-41980.json.gz"}

Incomplete trace: recorded data was lost. Slice-based timings, waits and batch inventories cover retained events only; missing slices are not idle time. Summary statistics are reported separately.

  • queue worker 0x0: 417986 events lost; buffer full at 5867.6 ms
  • draw committer: 58327 events lost; buffer full at 12258.9 ms

Slowest frames (largest slices inside each, inclusive)

  • present 4612: 113.9 ms at 11718 ms: Graphics.Draw (draw committer) 71.3, Graphics.Draw.draw_and_resource_release (draw committer) 48.3, batch (gpu) 44.3, VideoOut.Flip (presenter) 9.5
  • present 4449: 94.1 ms at 0 ms: Driver.Packet (queue worker 0x0) 65.1, Driver.Packet.draw (queue worker 0x0) 56.3, Driver.Draw (queue worker 0x0) 55.5, batch (gpu) 35.2
  • present 4613: 93.0 ms at 11831 ms: Graphics.Draw (draw committer) 55.0, batch (gpu) 33.5, Graphics.Draw.draw_and_resource_release (draw committer) 31.2, Recorder.Submit (draw committer) 4.3
  • present 4608: 82.0 ms at 11419 ms: Graphics.Draw (draw committer) 51.1, batch (gpu) 36.7, Graphics.Draw.draw_and_resource_release (draw committer) 28.4, VideoOut.Flip (presenter) 11.0
  • present 4644: 80.6 ms at 14076 ms: batch (gpu) 37.9, VideoOut.Flip (presenter) 10.6, VideoOut.Flip.present (presenter) 10.3, Driver.Present (presenter) 10.3

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

  • present 4612: 113.9 ms at 11718 ms, persistence 49.3 ms
  • present 4449: 94.1 ms at 0 ms, persistence 29.5 ms
  • present 4608: 82.0 ms at 11419 ms, persistence 14.7 ms
  • present 4644: 80.6 ms at 14076 ms, persistence 13.9 ms
  • present 4532: 79.2 ms at 5968 ms, persistence 13.2 ms
  • present 4630: 78.0 ms at 13058 ms, persistence 11.1 ms
  • present 4485: 76.3 ms at 2592 ms, persistence 10.6 ms
  • present 4601: 80.4 ms at 10891 ms, persistence 10.4 ms
  • present 4632: 77.3 ms at 13203 ms, persistence 9.6 ms
  • present 4542: 77.7 ms at 6699 ms, persistence 9.0 ms

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
title 0.1 (0 %) 10.5 (15 %) 61.6 0.5 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
queue worker 0x0 18.2 (25 %) 0.0 (0 %) 54.0 48.7 Driver.Packet 17.4, Driver.EndSubmission 0.8
draw committer 32.2 (45 %) 0.3 (0 %) 39.7 31.1 Graphics.Draw 29.3, Recorder.Submit 2.2
title 0.0 (0 %) 0.0 (0 %) 72.2 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 72.2 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 72.2 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsAbi 0.0
presenter 0.9 (1 %) 9.9 (14 %) 61.4 0.1 VideoOut.Flip 10.8, Driver.Present 0.0
title 0.0 (0 %) 0.0 (0 %) 72.2 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 72.2 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 72.2 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 72.2 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 72.2 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 72.2 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 72.2 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 72.2 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 72.2 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
gpu 38.4 (53 %) 0.0 (0 %) 33.8 0.0 batch 38.4

Largest slices (ms per frame, inclusive, all threads): batch 38.4, Graphics.Draw 29.3, Graphics.Draw.draw_and_resource_release 21.8, Driver.Packet 17.4, Driver.Packet.draw 13.5, Driver.Draw 13.1, VideoOut.Flip 10.8, VideoOut.Flip.present 10.6, Driver.Present 10.6, Recorder.WaitSerial 10.5

Longest waits

  • GpuMutex.wait.draw (draw committer) 23.0 ms at 3 ms, present 4449
  • Recorder.WaitSerial (title) 12.8 ms at 1160 ms, present 4464
  • Recorder.WaitSerial (title) 12.6 ms at 1296 ms, present 4466
  • Recorder.WaitSerial (title) 12.5 ms at 3685 ms, present 4499
  • Recorder.WaitSerial (title) 12.5 ms at 10106 ms, present 4590
  • Recorder.WaitSerial (title) 12.4 ms at 11994 ms, present 4614
  • Recorder.WaitSerial (title) 12.4 ms at 13560 ms, present 4636
  • Recorder.WaitSerial (title) 12.3 ms at 5891 ms, present 4530
  • Recorder.WaitSerial (title) 12.3 ms at 7905 ms, present 4558
  • Recorder.WaitSerial (title) 12.3 ms at 11117 ms, present 4603

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

  • batch 3651: 10.8 ms at 4312 ms, present 4508: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.6, Graphics.Draw.draw_and_resource_release (draw committer) 0.6, Resources.Complete (draw committer) 0.1, Recorder.Reap (draw committer) 0.0
  • batch 8290: 10.3 ms at 9742 ms, present 4584: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.draw_and_resource_release (draw committer) 0.5, Resources.Complete (draw committer) 0.1
  • batch 9464: 10.0 ms at 11108 ms, present 4603: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.draw_and_resource_release (draw committer) 0.5, Resources.Complete (draw committer) 0.1
  • batch 962: 9.9 ms at 1151 ms, present 4464: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.draw_and_resource_release (draw committer) 0.5, Resources.Complete (draw committer) 0.1
  • batch 11600: 9.8 ms at 13696 ms, present 4638: GPU no ranges; recorded by no CPU slices
trace_digest.py, PR run 2

seconds 200:15 from present 4404: 205 presents, frame p50 72.3 / p90 77.2 / p99 80.3 / max 182.2 ms, GPU busy 39.7 ms per present
NVIDIA GeForce RTX 2080 Ti, NVIDIA 617.14, Windows 10.0.26300, 3840x2160, commit e3222a2db0bf, dropped: yes

{"commit":"e3222a2db0bf","dirty":false,"env":{"APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"200:15"},"gpu":"NVIDIA GeForce RTX 2080 Ti","driver":"NVIDIA 617.14","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz","cpu_threads":16,"memory_mib":32700,"title_id":"PPSA05324","title":"Sonic Origins","content_version":"02.002.000","resolution":"3840x2160","window":{"spec":"seconds 200:15","first_present":4404,"ms":15049.759},"presents":205,"frame_ms":{"p50":72.321,"p90":77.212,"p99":80.259,"max":182.233},"gpu_busy_ms_per_present":39.664,"worker_busy_pct":{"queue worker 0x0":97.091},"top_phases_ms_per_frame":{"Driver.Packet":69.214,"Driver.Packet.draw":51.9,"Graphics.Draw":51.534,"Driver.Draw":50.955,"Graphics.Draw.draw_and_resource_release":40.634,"Driver.Draw.shader_compile_and_link":24.847,"Shader.DrawStage":16.25,"Driver.Draw.draw_enqueued":15.23},"owned_draw_counts":{"OwnedDraw.evicted_other":18681},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":5.727,"events_lost":425265,"totals_full":false},"draw committer":{"events_full_after_s":12.301,"events_lost":59020,"totals_full":false}},"trace":"aps5-trace-e3222a2db0bf-33608.json.gz"}

Incomplete trace: recorded data was lost. Slice-based timings, waits and batch inventories cover retained events only; missing slices are not idle time. Summary statistics are reported separately.

  • queue worker 0x0: 425265 events lost; buffer full at 5727.1 ms
  • draw committer: 59020 events lost; buffer full at 12301.3 ms

Slowest frames (largest slices inside each, inclusive)

  • present 4452: 182.2 ms at 3548 ms: Driver.Packet (queue worker 0x0) 161.2, Driver.Packet.draw (queue worker 0x0) 136.5, Driver.Draw (queue worker 0x0) 134.7, Driver.Draw.draw_enqueued (queue worker 0x0) 83.2
  • present 4575: 81.7 ms at 12563 ms: batch (gpu) 37.5, VideoOut.Flip (presenter) 9.1, VideoOut.Flip.present (presenter) 8.9, Driver.Present (presenter) 8.9
  • present 4507: 80.3 ms at 7641 ms: Graphics.Draw (draw committer) 46.5, batch (gpu) 38.7, Graphics.Draw.draw_and_resource_release (draw committer) 28.8, VideoOut.Flip (presenter) 10.3
  • present 4427: 80.2 ms at 1703 ms: Driver.Packet (queue worker 0x0) 57.6, Driver.Packet.draw (queue worker 0x0) 47.4, Driver.Draw (queue worker 0x0) 46.2, Graphics.Draw (draw committer) 40.8
  • present 4413: 80.0 ms at 657 ms: Driver.Packet (queue worker 0x0) 53.0, Driver.Packet.draw (queue worker 0x0) 41.9, Graphics.Draw (draw committer) 41.8, batch (gpu) 41.2

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

  • present 4452: 182.2 ms at 3548 ms, persistence 116.1 ms
  • present 4575: 81.7 ms at 12563 ms, persistence 15.5 ms
  • present 4512: 79.3 ms at 8009 ms, persistence 12.3 ms
  • present 4507: 80.3 ms at 7641 ms, persistence 11.8 ms
  • present 4427: 80.2 ms at 1703 ms, persistence 11.0 ms
  • present 4413: 80.0 ms at 657 ms, persistence 10.1 ms
  • present 4444: 79.9 ms at 2956 ms, persistence 9.9 ms
  • present 4499: 78.7 ms at 7046 ms, persistence 9.6 ms
  • present 4527: 78.4 ms at 9091 ms, persistence 9.6 ms
  • present 4535: 77.9 ms at 9674 ms, persistence 9.0 ms

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
title 0.1 (0 %) 11.4 (15 %) 62.0 0.5 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
queue worker 0x0 18.7 (25 %) 0.0 (0 %) 54.7 45.9 Driver.Packet 17.9, Driver.EndSubmission 0.8
draw committer 32.7 (45 %) 0.2 (0 %) 40.5 31.2 Graphics.Draw 30.1, Recorder.Submit 2.0
title 0.0 (0 %) 0.0 (0 %) 73.4 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 73.4 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 73.4 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 73.4 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
presenter 0.9 (1 %) 10.7 (15 %) 61.9 0.1 VideoOut.Flip 11.6, Driver.Present 0.0
title 0.0 (0 %) 0.0 (0 %) 73.4 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 73.4 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 73.4 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 73.4 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 73.4 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 73.4 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 73.4 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 73.4 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsAbi 0.0
gpu 39.7 (54 %) 0.0 (0 %) 33.7 0.0 batch 39.7

Largest slices (ms per frame, inclusive, all threads): batch 39.7, Graphics.Draw 30.1, Graphics.Draw.draw_and_resource_release 22.2, Driver.Packet 17.9, Driver.Packet.draw 14.0, Driver.Draw 13.6, VideoOut.Flip 11.6, Driver.Present 11.4, VideoOut.Flip.present 11.4, Recorder.WaitSerial 11.3

Longest waits

  • Recorder.WaitSerial (title) 13.8 ms at 436 ms, present 4409
  • Recorder.WaitSerial (title) 13.6 ms at 13235 ms, present 4584
  • Recorder.WaitSerial (title) 13.6 ms at 1099 ms, present 4418
  • Recorder.WaitSerial (title) 13.5 ms at 14903 ms, present 4606
  • Recorder.WaitSerial (title) 13.5 ms at 12873 ms, present 4578
  • Recorder.WaitSerial (title) 13.3 ms at 11839 ms, present 4564
  • Recorder.WaitSerial (title) 13.2 ms at 11255 ms, present 4556
  • Recorder.WaitSerial (title) 13.0 ms at 14466 ms, present 4600
  • Recorder.WaitSerial (title) 13.0 ms at 12050 ms, present 4567
  • Recorder.WaitSerial (title) 13.0 ms at 2883 ms, present 4443

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

  • batch 6832: 10.8 ms at 8286 ms, present 4515: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.6, Graphics.Draw.draw_and_resource_release (draw committer) 0.5, Resources.Complete (draw committer) 0.1
  • batch 3530: 10.7 ms at 4369 ms, present 4461: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.draw_and_resource_release (draw committer) 0.4, Resources.Complete (draw committer) 0.1
  • batch 6407: 9.7 ms at 7778 ms, present 4508: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.6, Graphics.Draw.draw_and_resource_release (draw committer) 0.5, Resources.Complete (draw committer) 0.1
  • batch 3045: 9.6 ms at 3795 ms, present 4453: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.draw_and_resource_release (draw committer) 0.4, Resources.Complete (draw committer) 0.1
  • batch 1332: 9.4 ms at 1613 ms, present 4425: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 4.9, Driver.Packet.dispatch (queue worker 0x0) 3.6, Driver.Dispatch (queue worker 0x0) 2.2, Driver.Packet.draw (queue worker 0x0) 1.1
trace_digest.py, main run 2

seconds 200:15 from present 4451: 188 presents, frame p50 72.4 / p90 104.2 / p99 245.8 / max 297.6 ms, GPU busy 36.2 ms per present
NVIDIA GeForce RTX 2080 Ti, NVIDIA 617.14, Windows 10.0.26300, 3840x2160, commit 9e3265259e, dropped: yes

{"commit":"9e3265259ee0","dirty":false,"env":{"APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"200:15"},"gpu":"NVIDIA GeForce RTX 2080 Ti","driver":"NVIDIA 617.14","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz","cpu_threads":16,"memory_mib":32700,"title_id":"PPSA05324","title":"Sonic Origins","content_version":"02.002.000","resolution":"3840x2160","window":{"spec":"seconds 200:15","first_present":4451,"ms":15030.746},"presents":188,"frame_ms":{"p50":72.352,"p90":104.16,"p99":245.823,"max":297.618},"gpu_busy_ms_per_present":36.241,"worker_busy_pct":{"queue worker 0x0":96.778},"top_phases_ms_per_frame":{"Driver.Packet":75.268,"Driver.Packet.draw":56.724,"Driver.Draw":55.688,"Graphics.Draw":54.521,"Graphics.Draw.draw_and_resource_release":43.188,"Driver.Draw.shader_compile_and_link":26.158,"Driver.Draw.draw_enqueued":18.053,"Shader.DrawStage":16.969},"owned_draw_counts":{"OwnedDraw.evicted_other":16466},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":5.534,"events_lost":443760,"totals_full":false},"draw committer":{"events_full_after_s":12.873,"events_lost":45557,"totals_full":false}},"trace":"aps5-trace-9e3265259ee0-36968.json.gz"}

Incomplete trace: recorded data was lost. Slice-based timings, waits and batch inventories cover retained events only; missing slices are not idle time. Summary statistics are reported separately.

  • queue worker 0x0: 443760 events lost; buffer full at 5534.1 ms
  • draw committer: 45557 events lost; buffer full at 12873.1 ms

Slowest frames (largest slices inside each, inclusive)

  • present 4489: 297.6 ms at 2855 ms: Driver.Packet (queue worker 0x0) 281.0, Driver.Packet.draw (queue worker 0x0) 245.4, Driver.Draw (queue worker 0x0) 243.3, Driver.Draw.draw_enqueued (queue worker 0x0) 172.5
  • present 4488: 245.8 ms at 2609 ms: Driver.Packet (queue worker 0x0) 225.2, Driver.Packet.draw (queue worker 0x0) 162.1, Driver.Draw (queue worker 0x0) 160.0, Driver.Draw.draw_enqueued (queue worker 0x0) 102.4
  • present 4571: 186.9 ms at 9953 ms: Graphics.Draw (draw committer) 54.3, batch (gpu) 45.3, Graphics.Draw.draw_and_resource_release (draw committer) 40.3, VideoOut.Flip (presenter) 10.0
  • present 4572: 180.2 ms at 10140 ms: Graphics.Draw (draw committer) 77.3, Graphics.Draw.draw_and_resource_release (draw committer) 54.2, GpuMutex.wait.wait (title) 40.3, batch (gpu) 34.6
  • present 4503: 136.9 ms at 4448 ms: Driver.Packet (queue worker 0x0) 118.3, Driver.Packet.draw (queue worker 0x0) 93.6, Graphics.Draw (draw committer) 92.3, Driver.Draw (queue worker 0x0) 91.7

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

  • present 4489: 297.6 ms at 2855 ms, persistence 242.3 ms
  • present 4571: 186.9 ms at 9953 ms, persistence 121.1 ms
  • present 4503: 136.9 ms at 4448 ms, persistence 57.3 ms
  • present 4520: 117.6 ms at 6135 ms, persistence 45.1 ms
  • present 4627: 105.0 ms at 14143 ms, persistence 40.4 ms
  • present 4473: 96.9 ms at 1519 ms, persistence 35.6 ms
  • present 4497: 106.9 ms at 3871 ms, persistence 25.9 ms
  • present 4505: 111.8 ms at 4671 ms, persistence 25.4 ms
  • present 4517: 108.0 ms at 5841 ms, persistence 22.2 ms
  • present 4475: 83.6 ms at 1678 ms, persistence 19.4 ms

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
title 0.1 (0 %) 9.2 (11 %) 70.7 0.5 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
queue worker 0x0 21.9 (27 %) 0.0 (0 %) 58.0 39.6 Driver.Packet 21.2, Driver.EndSubmission 0.7
draw committer 38.0 (47 %) 0.2 (0 %) 41.8 33.2 Graphics.Draw 34.8, Recorder.Submit 2.4
title 0.0 (0 %) 0.0 (0 %) 79.9 0.1 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 79.9 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 79.9 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
presenter 0.9 (1 %) 8.3 (10 %) 70.7 0.1 VideoOut.Flip 9.2, Driver.Present 0.0
title 0.0 (0 %) 0.0 (0 %) 79.9 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 79.9 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 79.9 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 79.9 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 79.9 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 79.9 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 79.9 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 79.9 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 79.9 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsAbi 0.0
gpu 36.2 (45 %) 0.0 (0 %) 43.7 0.0 batch 36.2

Largest slices (ms per frame, inclusive, all threads): batch 36.2, Graphics.Draw 34.8, Graphics.Draw.draw_and_resource_release 24.2, Driver.Packet 21.2, Driver.Packet.draw 16.9, Driver.Draw 16.4, VideoOut.Flip 9.2, Driver.Present 9.0, VideoOut.Flip.present 9.0, Recorder.WaitSerial 8.9

Longest waits

  • GpuMutex.wait.wait (title) 40.7 ms at 10140 ms, present 4571
  • GpuMutex.wait.wait (title) 14.4 ms at 10320 ms, present 4573
  • Recorder.WaitSerial (title) 12.4 ms at 10753 ms, present 4578
  • Recorder.WaitSerial (title) 12.3 ms at 12152 ms, present 4599
  • Recorder.WaitSerial (title) 12.1 ms at 14690 ms, present 4633
  • Recorder.WaitSerial (title) 12.0 ms at 13066 ms, present 4611
  • Recorder.WaitSerial (title) 12.0 ms at 2309 ms, present 4483
  • Recorder.WaitSerial (title) 12.0 ms at 12015 ms, present 4596
  • Recorder.WaitSerial (title) 11.9 ms at 13136 ms, present 4612
  • Recorder.WaitSerial (title) 11.9 ms at 12221 ms, present 4599

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

  • batch 1670: 10.3 ms at 2036 ms, present 4479: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.draw_and_resource_release (draw committer) 0.5, Resources.Complete (draw committer) 0.1
  • batch 1788: 10.3 ms at 2166 ms, present 4481: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.6, Graphics.Draw.draw_and_resource_release (draw committer) 0.6, Resources.Complete (draw committer) 0.1
  • batch 1430: 10.0 ms at 1752 ms, present 4475: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.draw_and_resource_release (draw committer) 0.5, Resources.Complete (draw committer) 0.1
  • batch 1489: 9.9 ms at 1823 ms, present 4476: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.6, Graphics.Draw.draw_and_resource_release (draw committer) 0.5, Resources.Complete (draw committer) 0.1
  • batch 8263: 9.9 ms at 11302 ms, present 4586: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.6, Graphics.Draw.draw_and_resource_release (draw committer) 0.5, Resources.Complete (draw committer) 0.0

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: NVIDIA GeForce RTX 2080 Ti, driver 617.14, Windows 11 (10.0.26300)
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5253193271 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18287). Originally posted by [meh7an](https://github.com/meh7an) on 2026-11-11T03:22:01Z. --- ### What `prepareDrawInputs` planned each draw's vertex fetches in nine `std::vector` locals, allocated and freed on every draw: `fetches`, `fetchValid`, `fetchOf`, `zeroed`, `isSolo`, `plannedFetches`, `plannedOf`, `rangeHandles` and `rangeOffsets`. They now live in one per-thread `VertexPlanScratch` that keeps its capacity from draw to draw. - **Lease.** `ExclusiveScratch<T, Tag>` (new, in `ThreadScratch.hpp`) lends a thread's `ThreadScratch` object to one scope. - The first lease on a thread uses the thread's object. A lease taken while another holds it (a nested draw on the same thread) gets an object of its own, so the outer draw's lists are never touched. - The destructor clears every list (capacity kept) and frees the object, also when the draw throws. `zeroed` holds `shared_ptr<Buffer>`s, so an exception cannot leave a zero buffer alive past its draw. - **Same content as before.** Every list starts empty, as the locals did; `assign` and `resize` replace the sized constructors (`fetchOf`, `zeroed`, `isSolo`, `plannedOf`), and `reserve` stays where it was. The draw fills and reads them in the same order, so the planned copies, handles and offsets are unchanged. - **Not touched:** `soloHandles`, `SoloZeroPaddedFetchIndices`, `PlanVertexCopies` (its result lists, `order` and the `stable_sort` buffer) and `DrawInputs`' own vectors. - **Memory:** each list holds at most one element per vertex attribute of the draw's shader. One object stays per thread that runs a draw (the draw committer, or the queue worker when draws are not pipelined), so there is nothing to budget or trim. - **No new switch:** nothing observable changes, only where the lists' storage comes from. - `VertexPlanScratchState ThreadVertexPlanScratch()` (`Draw.hpp`) reports the calling thread's scratch (busy flag, resting elements, capacity) for the tests. The thread slot is per module, so a test cannot read the driver's scratch itself. - **Overlap:** no open PR changes these lists or adds a lease for them. This comes from a diff scan of the 2,007 open PRs for the nine lists' names, `PlanVertexCopies`, `ThreadScratch` and the new names. The five PRs too large for `gh pr diff` (#17613, #12315, #9508, #7642, #5021) were read file by file through the files API: none changes a line with those symbols. - #9875 (copy only the fetched vertex records) adds `rangeFrom` and `VertexCopyStarts` right after `plan`, next to `rangeHandles`. It is a textual conflict only (`tools/pr_overlap.py`: `Draw.cpp` L1970-1972); whichever lands second rebases, and #9875's new vector could join the scratch afterwards. - #9915 (RDNA 2 range checks) edits the `fetchValid.push_back` line, a one-line textual neighbour. - #16753 (clock reads, owner copies, allocations) deletes `Kept::vertexBuffers` and adds `InlineList.hpp`. It shares no line with this change and does not touch the nine lists. - #18174 (open, same author) edits `Draw.hpp` and `Draw.cpp` next to `CommitTrims`; the accessor here sits elsewhere, and the two branches merge without conflict. - `tools/pr_overlap.py` failed closed. It reports the line conflicts with #9875 and #18174 above, and could not compare 32 PRs that conflict with main and share `Draw.cpp` or `Draw.hpp`; the symbol scan covers those. ### 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. --> Windows 11 (10.0.26300), NVIDIA GeForce RTX 2080 Ti (driver 617.14), Sonic Origins (PPSA05324) menu on the S3K page, 3840x2160, default environment. - **Measured commits:** main `9e3265259e` and this change on top of it (`e3222a2db0`), both clean builds from one build tree. The commit was then amended to `cc90f5506e`, which only moves the test accessor in `Draw.hpp` and `Draw.cpp` away from `CommitTrims` (a textual conflict with #18174); `git range-diff` shows the rest unchanged. The five tests that touch the accessor or the lease (`agc_exclusive_scratch`, `agc_driver_zero_stride_vertex_fetch`, `agc_vertex_input`, `agc_vertex_input_validation`, `agc_graphics_profile_draw`) were rerun on the amended build under validation: all pass, no `VUID-` line. - **Base:** main has moved by 95 merges since; none touches `core/libs/prx/libSceAgcDriver`, and the branch merges cleanly (`git merge-tree`). New and extended tests: - **`agc_exclusive_scratch`** (new, header-only): the lease reuses its storage and starts empty; a nested lease (also three deep) gets its own object and leaves the outer lists alone; unwinding frees the object, empties it and releases what it held; another thread has its own; `VertexPlanScratch` empties all nine lists and releases a zero buffer. - **`agc_driver_zero_stride_vertex_fetch`** (extended): its 20 draws alternate zero-buffer and real fetches on one thread, with the outputs checked per vertex. At the end the thread's vertex plan scratch must be free, empty and in use (`capacity != 0`). Broken copies of the change, each run against these tests, are all caught (8 of 8): - the lease: no `clear()` in the destructor, no `busy = false`, nesting that shares the object; - `VertexPlanScratch::clear()` without `zeroed`, without `isSolo`, without `rangeOffsets` (unit test); - the same `zeroed` mutant, and `prepareDrawInputs` using a plain local `VertexPlanScratch` instead of the lease (`agc_driver_zero_stride_vertex_fetch`, library rebuilt). Vulkan validation protocol (`ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`, `ctest -V`, same machine and GPU): - **Tests:** `agc_vertex_input`, `agc_vertex_input_validation`, `agc_driver_zero_stride_vertex_fetch`, `agc_driver_vertex_fetch`, `agc_embedded_vertex_fetch` (+ `_aliasing`), `agc_vertex_layer_export`, `agc_driver_vertex_clip_cull_draw` (+ `_no_key`), `agc_driver_layered_volume_vertex` (+ `_no_gpl`), `agc_driver_vertex_target_range_copied` and `_imported`, `agc_driver_draw_offset_indices`, `agc_driver_indexed_copy`, `agc_driver_list_restart`, `agc_driver_quad_list_index_overflow`, `agc_driver_rect_list_corner`, `agc_driver_pass_break_reasons`, `agc_graphics_profile_draw`, `agc_driver_draw_cache_relocation*` (6), and the new `agc_exclusive_scratch`. - **Results:** 27 of 27 pass on the change, 26 of 26 on main `9e3265259e` (the new test does not exist there). - **Logs:** neither contains `was not found but was requested by env var VK_INSTANCE_LAYERS` or a `VUID-` line. `tools/check_conventions.py --base upstream/main` passes. Full ctest was not run. Sampler (`APS5_SAMPLE_COMMITTER` and `APS5_SAMPLE_WORKER`, one 60 s window per arm, 3841 and 3843 samples on the draw committer; a sample is about 0.018 ms per frame). Samples whose stack passes through the function: | draw committer, samples | main `9e3265259e` | this PR `e3222a2db0` | |---|---|---| | `prepareDrawInputs` inclusive | 383 (9.97%) | 347 (9.03%) | | `Allocate` + `operator delete` under `prepareDrawInputs` and `PlanVertexCopies` | 46 + 33 = **79** (2.06%) | 23 + 22 = **45** (1.17%) | | all `Allocate` + `operator delete` | 143 + 91 (6.09%) | 140 + 79 (5.70%) | | `commitDraw` inclusive | 78.99% | 78.45% | - **Saving:** 34 samples in the vertex phase, about 0.6 ms per frame. Two earlier windows on main `164ac9b078` held 83 and 95 there, so the 45 is outside the spread of main. The whole committer's allocation share falls by 15 samples only: other functions (`planDraw`, for one) moved up by about as much between the two windows, which is the spread between boots (2-8 points on the committer). - **Worker:** allocation and delete shares are equal within noise (5.2% and 6.2% on main, 6.0% and 6.2% on the PR); the lists belong to the committer on this scene. - **Limiting threads:** the committer is busy about 79% (`commitDraw`) and, with the GPU, limits the frame. The worker spends 27.2% (main) and 25.6% (PR) of its samples in `DrawPipeline::Enqueue`, waiting for the committer, so its `worker_busy_pct` overstates its load. Two traced runs per arm (`APS5_TRACE_SECONDS=200:15`), in main, PR, PR, main order, both commit IDs in the summaries: | | main `9e3265259e` | this PR `e3222a2db0` | |---|---|---| | reading FPS (median) | 14.60 / 14.83 | 14.96 / 14.58 | | frame p50 | 72.55 / 72.35 ms | 71.53 / 72.32 ms | | `Graphics.Draw` per frame (retained events) | 51.37 / 54.52 ms | 50.77 / 51.53 ms | | GPU busy per present | 39.0 / 36.2 ms | 38.4 / 39.7 ms | - **No FPS change is claimed.** The saving shows in the sampler; frame time and FPS stay within the run-to-run spread. The second main run stalled (p90 104 ms, p99 246 ms), which inflates its `Graphics.Draw`. The sampler boots read 15.53 (main) and 15.54 (PR). - **Dropped events:** all four traces dropped events once the worker's buffer filled, equally in both arms, so the slice figures cover retained events only. - **Machine:** other work was not excluded. The benchmark lease's noise report for the second run chain reads 8.1% CPU on average and 35.6% at peak from outside the session, and the machine was not quiet at its start. Summary lines (`tools/trace_digest.py` JSON summary, one per capture, in the order of the table): **seconds 200:15** from present 4415: 206 presents, frame p50 72.6 / p90 77.5 / p99 92.7 / max 102.3 ms, GPU busy 39.0 ms per present NVIDIA GeForce RTX 2080 Ti, NVIDIA 617.14, Windows 10.0.26300, 3840x2160, commit 9e3265259ee0, dropped: yes ```json {"commit":"9e3265259ee0","dirty":false,"env":{"APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"200:15"},"gpu":"NVIDIA GeForce RTX 2080 Ti","driver":"NVIDIA 617.14","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz","cpu_threads":16,"memory_mib":32700,"title_id":"PPSA05324","title":"Sonic Origins","content_version":"02.002.000","resolution":"3840x2160","window":{"spec":"seconds 200:15","first_present":4415,"ms":15037.631},"presents":206,"frame_ms":{"p50":72.551,"p90":77.477,"p99":92.735,"max":102.308},"gpu_busy_ms_per_present":38.999,"worker_busy_pct":{"queue worker 0x0":96.755},"top_phases_ms_per_frame":{"Driver.Packet":68.561,"Graphics.Draw":51.366,"Driver.Packet.draw":51.193,"Driver.Draw":50.246,"Graphics.Draw.draw_and_resource_release":40.721,"Driver.Draw.shader_compile_and_link":24.608,"Shader.DrawStage":16.142,"Driver.Draw.draw_enqueued":14.835},"owned_draw_counts":{"OwnedDraw.evicted_other":18911},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":5.725,"events_lost":425253,"totals_full":false},"draw committer":{"events_full_after_s":12.394,"events_lost":55921,"totals_full":false}},"trace":"aps5-trace-9e3265259ee0-41808.json.gz"} ``` **seconds 200:15** from present 4449: 208 presents, frame p50 71.5 / p90 76.3 / p99 93.0 / max 113.9 ms, GPU busy 38.4 ms per present NVIDIA GeForce RTX 2080 Ti, NVIDIA 617.14, Windows 10.0.26300, 3840x2160, commit e3222a2db0bf, dropped: yes ```json {"commit":"e3222a2db0bf","dirty":false,"env":{"APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"200:15"},"gpu":"NVIDIA GeForce RTX 2080 Ti","driver":"NVIDIA 617.14","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz","cpu_threads":16,"memory_mib":32700,"title_id":"PPSA05324","title":"Sonic Origins","content_version":"02.002.000","resolution":"3840x2160","window":{"spec":"seconds 200:15","first_present":4449,"ms":15025.948},"presents":208,"frame_ms":{"p50":71.528,"p90":76.313,"p99":92.959,"max":113.931},"gpu_busy_ms_per_present":38.425,"worker_busy_pct":{"queue worker 0x0":97.012},"top_phases_ms_per_frame":{"Driver.Packet":67.993,"Driver.Packet.draw":50.834,"Graphics.Draw":50.765,"Driver.Draw":49.889,"Graphics.Draw.draw_and_resource_release":40.237,"Driver.Draw.shader_compile_and_link":24.314,"Shader.DrawStage":15.864,"Driver.Draw.draw_enqueued":14.709},"owned_draw_counts":{"OwnedDraw.evicted_other":18921},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":5.868,"events_lost":417986,"totals_full":false},"draw committer":{"events_full_after_s":12.259,"events_lost":58327,"totals_full":false}},"trace":"aps5-trace-e3222a2db0bf-41980.json.gz"} ``` **seconds 200:15** from present 4404: 205 presents, frame p50 72.3 / p90 77.2 / p99 80.3 / max 182.2 ms, GPU busy 39.7 ms per present NVIDIA GeForce RTX 2080 Ti, NVIDIA 617.14, Windows 10.0.26300, 3840x2160, commit e3222a2db0bf, dropped: yes ```json {"commit":"e3222a2db0bf","dirty":false,"env":{"APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"200:15"},"gpu":"NVIDIA GeForce RTX 2080 Ti","driver":"NVIDIA 617.14","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz","cpu_threads":16,"memory_mib":32700,"title_id":"PPSA05324","title":"Sonic Origins","content_version":"02.002.000","resolution":"3840x2160","window":{"spec":"seconds 200:15","first_present":4404,"ms":15049.759},"presents":205,"frame_ms":{"p50":72.321,"p90":77.212,"p99":80.259,"max":182.233},"gpu_busy_ms_per_present":39.664,"worker_busy_pct":{"queue worker 0x0":97.091},"top_phases_ms_per_frame":{"Driver.Packet":69.214,"Driver.Packet.draw":51.9,"Graphics.Draw":51.534,"Driver.Draw":50.955,"Graphics.Draw.draw_and_resource_release":40.634,"Driver.Draw.shader_compile_and_link":24.847,"Shader.DrawStage":16.25,"Driver.Draw.draw_enqueued":15.23},"owned_draw_counts":{"OwnedDraw.evicted_other":18681},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":5.727,"events_lost":425265,"totals_full":false},"draw committer":{"events_full_after_s":12.301,"events_lost":59020,"totals_full":false}},"trace":"aps5-trace-e3222a2db0bf-33608.json.gz"} ``` **seconds 200:15** from present 4451: 188 presents, frame p50 72.4 / p90 104.2 / p99 245.8 / max 297.6 ms, GPU busy 36.2 ms per present NVIDIA GeForce RTX 2080 Ti, NVIDIA 617.14, Windows 10.0.26300, 3840x2160, commit 9e3265259ee0, dropped: yes ```json {"commit":"9e3265259ee0","dirty":false,"env":{"APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"200:15"},"gpu":"NVIDIA GeForce RTX 2080 Ti","driver":"NVIDIA 617.14","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz","cpu_threads":16,"memory_mib":32700,"title_id":"PPSA05324","title":"Sonic Origins","content_version":"02.002.000","resolution":"3840x2160","window":{"spec":"seconds 200:15","first_present":4451,"ms":15030.746},"presents":188,"frame_ms":{"p50":72.352,"p90":104.16,"p99":245.823,"max":297.618},"gpu_busy_ms_per_present":36.241,"worker_busy_pct":{"queue worker 0x0":96.778},"top_phases_ms_per_frame":{"Driver.Packet":75.268,"Driver.Packet.draw":56.724,"Driver.Draw":55.688,"Graphics.Draw":54.521,"Graphics.Draw.draw_and_resource_release":43.188,"Driver.Draw.shader_compile_and_link":26.158,"Driver.Draw.draw_enqueued":18.053,"Shader.DrawStage":16.969},"owned_draw_counts":{"OwnedDraw.evicted_other":16466},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":5.534,"events_lost":443760,"totals_full":false},"draw committer":{"events_full_after_s":12.873,"events_lost":45557,"totals_full":false}},"trace":"aps5-trace-9e3265259ee0-36968.json.gz"} ``` Traces (two runs per zip, each with its `aps5-summary.jsonl`): [m34-main-traces.zip](https://github.com/user-attachments/files/34668707/m34-main-traces.zip) (main `9e3265259e`), [m34-change-traces.zip](https://github.com/user-attachments/files/34668717/m34-change-traces.zip) (this PR as measured, `e3222a2db0`). <details><summary>trace_digest.py, main run 1</summary> **seconds 200:15** from present 4415: 206 presents, frame p50 72.6 / p90 77.5 / p99 92.7 / max 102.3 ms, GPU busy 39.0 ms per present NVIDIA GeForce RTX 2080 Ti, NVIDIA 617.14, Windows 10.0.26300, 3840x2160, commit 9e3265259ee0, dropped: yes ```json {"commit":"9e3265259ee0","dirty":false,"env":{"APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"200:15"},"gpu":"NVIDIA GeForce RTX 2080 Ti","driver":"NVIDIA 617.14","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz","cpu_threads":16,"memory_mib":32700,"title_id":"PPSA05324","title":"Sonic Origins","content_version":"02.002.000","resolution":"3840x2160","window":{"spec":"seconds 200:15","first_present":4415,"ms":15037.631},"presents":206,"frame_ms":{"p50":72.551,"p90":77.477,"p99":92.735,"max":102.308},"gpu_busy_ms_per_present":38.999,"worker_busy_pct":{"queue worker 0x0":96.755},"top_phases_ms_per_frame":{"Driver.Packet":68.561,"Graphics.Draw":51.366,"Driver.Packet.draw":51.193,"Driver.Draw":50.246,"Graphics.Draw.draw_and_resource_release":40.721,"Driver.Draw.shader_compile_and_link":24.608,"Shader.DrawStage":16.142,"Driver.Draw.draw_enqueued":14.835},"owned_draw_counts":{"OwnedDraw.evicted_other":18911},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":5.725,"events_lost":425253,"totals_full":false},"draw committer":{"events_full_after_s":12.394,"events_lost":55921,"totals_full":false}},"trace":"aps5-trace-9e3265259ee0-41808.json.gz"} ``` **Incomplete trace:** recorded data was lost. Slice-based timings, waits and batch inventories cover retained events only; missing slices are not idle time. Summary statistics are reported separately. - queue worker 0x0: 425253 events lost; buffer full at 5725.3 ms - draw committer: 55921 events lost; buffer full at 12394.3 ms **Slowest frames** (largest slices inside each, inclusive) - present 4603: 102.3 ms at 13714 ms: batch (gpu) 28.5, VideoOut.Flip (presenter) 4.2, VideoOut.Flip.present (presenter) 4.0, Driver.Present (presenter) 4.0 - present 4602: 97.4 ms at 13617 ms: batch (gpu) 34.5, VideoOut.Flip (presenter) 1.7, VideoOut.Flip.present (presenter) 1.4, Driver.Present (presenter) 1.4 - present 4609: 92.7 ms at 14171 ms: batch (gpu) 43.3, VideoOut.Flip (presenter) 8.8, VideoOut.Flip.present (presenter) 8.6, Driver.Present (presenter) 8.6 - present 4601: 87.1 ms at 13530 ms: batch (gpu) 48.8, VideoOut.Flip (presenter) 11.8, VideoOut.Flip.present (presenter) 11.6, Driver.Present (presenter) 11.6 - present 4459: 82.3 ms at 3231 ms: Driver.Packet (queue worker 0x0) 60.2, Driver.Packet.draw (queue worker 0x0) 48.4, Driver.Draw (queue worker 0x0) 46.9, Graphics.Draw (draw committer) 43.3 **Persistent spikes** (frame time above the fastest frame that separates it from a longer frame; one entry per stall, not per frame) - present 4603: 102.3 ms at 13714 ms, persistence 36.9 ms - present 4609: 92.7 ms at 14171 ms, persistence 26.6 ms - present 4459: 82.3 ms at 3231 ms, persistence 16.7 ms - present 4446: 81.5 ms at 2279 ms, persistence 13.8 ms - present 4569: 79.6 ms at 11237 ms, persistence 12.7 ms - present 4528: 79.2 ms at 8258 ms, persistence 12.5 ms - present 4514: 78.6 ms at 7242 ms, persistence 12.0 ms - present 4470: 80.9 ms at 4033 ms, persistence 11.3 ms - present 4555: 78.1 ms at 10217 ms, persistence 10.5 ms - present 4548: 78.0 ms at 9720 ms, persistence 10.5 ms **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | title | 0.1 (0 %) | 10.6 (15 %) | 62.3 | 0.5 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0 | | queue worker 0x0 | 18.3 (25 %) | 0.0 (0 %) | 54.7 | 46.3 | Driver.Packet 17.5, Driver.EndSubmission 0.8 | | draw committer | 32.5 (45 %) | 0.2 (0 %) | 40.3 | 32.6 | Graphics.Draw 29.9, Recorder.Submit 1.9 | | title | 0.0 (0 %) | 0.0 (0 %) | 73.0 | 0.1 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 73.0 | 0.1 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 73.0 | 0.1 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 73.0 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | presenter | 0.9 (1 %) | 10.0 (14 %) | 62.1 | 0.1 | VideoOut.Flip 10.8, Driver.Present 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 73.0 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 73.0 | 0.1 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 73.0 | 0.1 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 73.0 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 73.0 | 0.1 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 73.0 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 73.0 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 73.0 | 0.1 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsAbi 0.0 | | gpu | 38.9 (53 %) | 0.0 (0 %) | 34.1 | 0.0 | batch 38.9 | **Largest slices** (ms per frame, inclusive, all threads): batch 38.9, Graphics.Draw 29.9, Graphics.Draw.draw_and_resource_release 21.8, Driver.Packet 17.5, Driver.Packet.draw 13.6, Driver.Draw 13.2, VideoOut.Flip 10.8, Driver.Present 10.7, VideoOut.Flip.present 10.6, Recorder.WaitSerial 10.6 **Longest waits** - Recorder.WaitSerial (title) 12.7 ms at 4911 ms, present 4481 - Recorder.WaitSerial (title) 12.7 ms at 3743 ms, present 4465 - Recorder.WaitSerial (title) 12.6 ms at 3079 ms, present 4456 - Recorder.WaitSerial (title) 12.6 ms at 1989 ms, present 4441 - Recorder.WaitSerial (title) 12.6 ms at 6541 ms, present 4503 - Recorder.WaitSerial (title) 12.4 ms at 9426 ms, present 4543 - Recorder.WaitSerial (title) 12.4 ms at 809 ms, present 4425 - Driver.Present.render_fence_wait (presenter) 12.3 ms at 3744 ms, present 4466 - Recorder.WaitSerial (title) 12.3 ms at 11606 ms, present 4573 - Recorder.WaitSerial (title) 12.3 ms at 14828 ms, present 4617 **Largest GPU batches** (GPU ranges inside, and the CPU slices that recorded each, inclusive) - batch 3968: 10.5 ms at 4759 ms, present 4479: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.6, Graphics.Draw.draw_and_resource_release (draw committer) 0.6, Resources.Complete (draw committer) 0.1 - batch 5680: 10.4 ms at 6808 ms, present 4507: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.draw_and_resource_release (draw committer) 0.5, Resources.Complete (draw committer) 0.1 - batch 11519: 9.9 ms at 13696 ms, present 4602: GPU no ranges; recorded by no CPU slices - batch 7641: 9.6 ms at 9118 ms, present 4539: GPU no ranges; recorded by no CPU slices - batch 1931: 9.4 ms at 2349 ms, present 4446: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 12.5, Driver.Packet.draw (queue worker 0x0) 6.5, Driver.Draw (queue worker 0x0) 6.5, Driver.Packet.dispatch (queue worker 0x0) 4.7 </details> <details><summary>trace_digest.py, PR run 1</summary> **seconds 200:15** from present 4449: 208 presents, frame p50 71.5 / p90 76.3 / p99 93.0 / max 113.9 ms, GPU busy 38.4 ms per present NVIDIA GeForce RTX 2080 Ti, NVIDIA 617.14, Windows 10.0.26300, 3840x2160, commit e3222a2db0bf, dropped: yes ```json {"commit":"e3222a2db0bf","dirty":false,"env":{"APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"200:15"},"gpu":"NVIDIA GeForce RTX 2080 Ti","driver":"NVIDIA 617.14","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz","cpu_threads":16,"memory_mib":32700,"title_id":"PPSA05324","title":"Sonic Origins","content_version":"02.002.000","resolution":"3840x2160","window":{"spec":"seconds 200:15","first_present":4449,"ms":15025.948},"presents":208,"frame_ms":{"p50":71.528,"p90":76.313,"p99":92.959,"max":113.931},"gpu_busy_ms_per_present":38.425,"worker_busy_pct":{"queue worker 0x0":97.012},"top_phases_ms_per_frame":{"Driver.Packet":67.993,"Driver.Packet.draw":50.834,"Graphics.Draw":50.765,"Driver.Draw":49.889,"Graphics.Draw.draw_and_resource_release":40.237,"Driver.Draw.shader_compile_and_link":24.314,"Shader.DrawStage":15.864,"Driver.Draw.draw_enqueued":14.709},"owned_draw_counts":{"OwnedDraw.evicted_other":18921},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":5.868,"events_lost":417986,"totals_full":false},"draw committer":{"events_full_after_s":12.259,"events_lost":58327,"totals_full":false}},"trace":"aps5-trace-e3222a2db0bf-41980.json.gz"} ``` **Incomplete trace:** recorded data was lost. Slice-based timings, waits and batch inventories cover retained events only; missing slices are not idle time. Summary statistics are reported separately. - queue worker 0x0: 417986 events lost; buffer full at 5867.6 ms - draw committer: 58327 events lost; buffer full at 12258.9 ms **Slowest frames** (largest slices inside each, inclusive) - present 4612: 113.9 ms at 11718 ms: Graphics.Draw (draw committer) 71.3, Graphics.Draw.draw_and_resource_release (draw committer) 48.3, batch (gpu) 44.3, VideoOut.Flip (presenter) 9.5 - present 4449: 94.1 ms at 0 ms: Driver.Packet (queue worker 0x0) 65.1, Driver.Packet.draw (queue worker 0x0) 56.3, Driver.Draw (queue worker 0x0) 55.5, batch (gpu) 35.2 - present 4613: 93.0 ms at 11831 ms: Graphics.Draw (draw committer) 55.0, batch (gpu) 33.5, Graphics.Draw.draw_and_resource_release (draw committer) 31.2, Recorder.Submit (draw committer) 4.3 - present 4608: 82.0 ms at 11419 ms: Graphics.Draw (draw committer) 51.1, batch (gpu) 36.7, Graphics.Draw.draw_and_resource_release (draw committer) 28.4, VideoOut.Flip (presenter) 11.0 - present 4644: 80.6 ms at 14076 ms: batch (gpu) 37.9, VideoOut.Flip (presenter) 10.6, VideoOut.Flip.present (presenter) 10.3, Driver.Present (presenter) 10.3 **Persistent spikes** (frame time above the fastest frame that separates it from a longer frame; one entry per stall, not per frame) - present 4612: 113.9 ms at 11718 ms, persistence 49.3 ms - present 4449: 94.1 ms at 0 ms, persistence 29.5 ms - present 4608: 82.0 ms at 11419 ms, persistence 14.7 ms - present 4644: 80.6 ms at 14076 ms, persistence 13.9 ms - present 4532: 79.2 ms at 5968 ms, persistence 13.2 ms - present 4630: 78.0 ms at 13058 ms, persistence 11.1 ms - present 4485: 76.3 ms at 2592 ms, persistence 10.6 ms - present 4601: 80.4 ms at 10891 ms, persistence 10.4 ms - present 4632: 77.3 ms at 13203 ms, persistence 9.6 ms - present 4542: 77.7 ms at 6699 ms, persistence 9.0 ms **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | title | 0.1 (0 %) | 10.5 (15 %) | 61.6 | 0.5 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0 | | queue worker 0x0 | 18.2 (25 %) | 0.0 (0 %) | 54.0 | 48.7 | Driver.Packet 17.4, Driver.EndSubmission 0.8 | | draw committer | 32.2 (45 %) | 0.3 (0 %) | 39.7 | 31.1 | Graphics.Draw 29.3, Recorder.Submit 2.2 | | title | 0.0 (0 %) | 0.0 (0 %) | 72.2 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 72.2 | 0.1 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 72.2 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsAbi 0.0 | | presenter | 0.9 (1 %) | 9.9 (14 %) | 61.4 | 0.1 | VideoOut.Flip 10.8, Driver.Present 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 72.2 | 0.1 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 72.2 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 72.2 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 72.2 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 72.2 | 0.1 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 72.2 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 72.2 | 0.1 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 72.2 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 72.2 | 0.1 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | gpu | 38.4 (53 %) | 0.0 (0 %) | 33.8 | 0.0 | batch 38.4 | **Largest slices** (ms per frame, inclusive, all threads): batch 38.4, Graphics.Draw 29.3, Graphics.Draw.draw_and_resource_release 21.8, Driver.Packet 17.4, Driver.Packet.draw 13.5, Driver.Draw 13.1, VideoOut.Flip 10.8, VideoOut.Flip.present 10.6, Driver.Present 10.6, Recorder.WaitSerial 10.5 **Longest waits** - GpuMutex.wait.draw (draw committer) 23.0 ms at 3 ms, present 4449 - Recorder.WaitSerial (title) 12.8 ms at 1160 ms, present 4464 - Recorder.WaitSerial (title) 12.6 ms at 1296 ms, present 4466 - Recorder.WaitSerial (title) 12.5 ms at 3685 ms, present 4499 - Recorder.WaitSerial (title) 12.5 ms at 10106 ms, present 4590 - Recorder.WaitSerial (title) 12.4 ms at 11994 ms, present 4614 - Recorder.WaitSerial (title) 12.4 ms at 13560 ms, present 4636 - Recorder.WaitSerial (title) 12.3 ms at 5891 ms, present 4530 - Recorder.WaitSerial (title) 12.3 ms at 7905 ms, present 4558 - Recorder.WaitSerial (title) 12.3 ms at 11117 ms, present 4603 **Largest GPU batches** (GPU ranges inside, and the CPU slices that recorded each, inclusive) - batch 3651: 10.8 ms at 4312 ms, present 4508: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.6, Graphics.Draw.draw_and_resource_release (draw committer) 0.6, Resources.Complete (draw committer) 0.1, Recorder.Reap (draw committer) 0.0 - batch 8290: 10.3 ms at 9742 ms, present 4584: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.draw_and_resource_release (draw committer) 0.5, Resources.Complete (draw committer) 0.1 - batch 9464: 10.0 ms at 11108 ms, present 4603: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.draw_and_resource_release (draw committer) 0.5, Resources.Complete (draw committer) 0.1 - batch 962: 9.9 ms at 1151 ms, present 4464: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.draw_and_resource_release (draw committer) 0.5, Resources.Complete (draw committer) 0.1 - batch 11600: 9.8 ms at 13696 ms, present 4638: GPU no ranges; recorded by no CPU slices </details> <details><summary>trace_digest.py, PR run 2</summary> **seconds 200:15** from present 4404: 205 presents, frame p50 72.3 / p90 77.2 / p99 80.3 / max 182.2 ms, GPU busy 39.7 ms per present NVIDIA GeForce RTX 2080 Ti, NVIDIA 617.14, Windows 10.0.26300, 3840x2160, commit e3222a2db0bf, dropped: yes ```json {"commit":"e3222a2db0bf","dirty":false,"env":{"APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"200:15"},"gpu":"NVIDIA GeForce RTX 2080 Ti","driver":"NVIDIA 617.14","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz","cpu_threads":16,"memory_mib":32700,"title_id":"PPSA05324","title":"Sonic Origins","content_version":"02.002.000","resolution":"3840x2160","window":{"spec":"seconds 200:15","first_present":4404,"ms":15049.759},"presents":205,"frame_ms":{"p50":72.321,"p90":77.212,"p99":80.259,"max":182.233},"gpu_busy_ms_per_present":39.664,"worker_busy_pct":{"queue worker 0x0":97.091},"top_phases_ms_per_frame":{"Driver.Packet":69.214,"Driver.Packet.draw":51.9,"Graphics.Draw":51.534,"Driver.Draw":50.955,"Graphics.Draw.draw_and_resource_release":40.634,"Driver.Draw.shader_compile_and_link":24.847,"Shader.DrawStage":16.25,"Driver.Draw.draw_enqueued":15.23},"owned_draw_counts":{"OwnedDraw.evicted_other":18681},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":5.727,"events_lost":425265,"totals_full":false},"draw committer":{"events_full_after_s":12.301,"events_lost":59020,"totals_full":false}},"trace":"aps5-trace-e3222a2db0bf-33608.json.gz"} ``` **Incomplete trace:** recorded data was lost. Slice-based timings, waits and batch inventories cover retained events only; missing slices are not idle time. Summary statistics are reported separately. - queue worker 0x0: 425265 events lost; buffer full at 5727.1 ms - draw committer: 59020 events lost; buffer full at 12301.3 ms **Slowest frames** (largest slices inside each, inclusive) - present 4452: 182.2 ms at 3548 ms: Driver.Packet (queue worker 0x0) 161.2, Driver.Packet.draw (queue worker 0x0) 136.5, Driver.Draw (queue worker 0x0) 134.7, Driver.Draw.draw_enqueued (queue worker 0x0) 83.2 - present 4575: 81.7 ms at 12563 ms: batch (gpu) 37.5, VideoOut.Flip (presenter) 9.1, VideoOut.Flip.present (presenter) 8.9, Driver.Present (presenter) 8.9 - present 4507: 80.3 ms at 7641 ms: Graphics.Draw (draw committer) 46.5, batch (gpu) 38.7, Graphics.Draw.draw_and_resource_release (draw committer) 28.8, VideoOut.Flip (presenter) 10.3 - present 4427: 80.2 ms at 1703 ms: Driver.Packet (queue worker 0x0) 57.6, Driver.Packet.draw (queue worker 0x0) 47.4, Driver.Draw (queue worker 0x0) 46.2, Graphics.Draw (draw committer) 40.8 - present 4413: 80.0 ms at 657 ms: Driver.Packet (queue worker 0x0) 53.0, Driver.Packet.draw (queue worker 0x0) 41.9, Graphics.Draw (draw committer) 41.8, batch (gpu) 41.2 **Persistent spikes** (frame time above the fastest frame that separates it from a longer frame; one entry per stall, not per frame) - present 4452: 182.2 ms at 3548 ms, persistence 116.1 ms - present 4575: 81.7 ms at 12563 ms, persistence 15.5 ms - present 4512: 79.3 ms at 8009 ms, persistence 12.3 ms - present 4507: 80.3 ms at 7641 ms, persistence 11.8 ms - present 4427: 80.2 ms at 1703 ms, persistence 11.0 ms - present 4413: 80.0 ms at 657 ms, persistence 10.1 ms - present 4444: 79.9 ms at 2956 ms, persistence 9.9 ms - present 4499: 78.7 ms at 7046 ms, persistence 9.6 ms - present 4527: 78.4 ms at 9091 ms, persistence 9.6 ms - present 4535: 77.9 ms at 9674 ms, persistence 9.0 ms **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | title | 0.1 (0 %) | 11.4 (15 %) | 62.0 | 0.5 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0 | | queue worker 0x0 | 18.7 (25 %) | 0.0 (0 %) | 54.7 | 45.9 | Driver.Packet 17.9, Driver.EndSubmission 0.8 | | draw committer | 32.7 (45 %) | 0.2 (0 %) | 40.5 | 31.2 | Graphics.Draw 30.1, Recorder.Submit 2.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 73.4 | 0.1 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 73.4 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 73.4 | 0.1 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 73.4 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | presenter | 0.9 (1 %) | 10.7 (15 %) | 61.9 | 0.1 | VideoOut.Flip 11.6, Driver.Present 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 73.4 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 73.4 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 73.4 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 73.4 | 0.1 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 73.4 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 73.4 | 0.1 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 73.4 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 73.4 | 0.1 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsAbi 0.0 | | gpu | 39.7 (54 %) | 0.0 (0 %) | 33.7 | 0.0 | batch 39.7 | **Largest slices** (ms per frame, inclusive, all threads): batch 39.7, Graphics.Draw 30.1, Graphics.Draw.draw_and_resource_release 22.2, Driver.Packet 17.9, Driver.Packet.draw 14.0, Driver.Draw 13.6, VideoOut.Flip 11.6, Driver.Present 11.4, VideoOut.Flip.present 11.4, Recorder.WaitSerial 11.3 **Longest waits** - Recorder.WaitSerial (title) 13.8 ms at 436 ms, present 4409 - Recorder.WaitSerial (title) 13.6 ms at 13235 ms, present 4584 - Recorder.WaitSerial (title) 13.6 ms at 1099 ms, present 4418 - Recorder.WaitSerial (title) 13.5 ms at 14903 ms, present 4606 - Recorder.WaitSerial (title) 13.5 ms at 12873 ms, present 4578 - Recorder.WaitSerial (title) 13.3 ms at 11839 ms, present 4564 - Recorder.WaitSerial (title) 13.2 ms at 11255 ms, present 4556 - Recorder.WaitSerial (title) 13.0 ms at 14466 ms, present 4600 - Recorder.WaitSerial (title) 13.0 ms at 12050 ms, present 4567 - Recorder.WaitSerial (title) 13.0 ms at 2883 ms, present 4443 **Largest GPU batches** (GPU ranges inside, and the CPU slices that recorded each, inclusive) - batch 6832: 10.8 ms at 8286 ms, present 4515: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.6, Graphics.Draw.draw_and_resource_release (draw committer) 0.5, Resources.Complete (draw committer) 0.1 - batch 3530: 10.7 ms at 4369 ms, present 4461: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.draw_and_resource_release (draw committer) 0.4, Resources.Complete (draw committer) 0.1 - batch 6407: 9.7 ms at 7778 ms, present 4508: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.6, Graphics.Draw.draw_and_resource_release (draw committer) 0.5, Resources.Complete (draw committer) 0.1 - batch 3045: 9.6 ms at 3795 ms, present 4453: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.draw_and_resource_release (draw committer) 0.4, Resources.Complete (draw committer) 0.1 - batch 1332: 9.4 ms at 1613 ms, present 4425: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 4.9, Driver.Packet.dispatch (queue worker 0x0) 3.6, Driver.Dispatch (queue worker 0x0) 2.2, Driver.Packet.draw (queue worker 0x0) 1.1 </details> <details><summary>trace_digest.py, main run 2</summary> **seconds 200:15** from present 4451: 188 presents, frame p50 72.4 / p90 104.2 / p99 245.8 / max 297.6 ms, GPU busy 36.2 ms per present NVIDIA GeForce RTX 2080 Ti, NVIDIA 617.14, Windows 10.0.26300, 3840x2160, commit 9e3265259ee0, dropped: yes ```json {"commit":"9e3265259ee0","dirty":false,"env":{"APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"200:15"},"gpu":"NVIDIA GeForce RTX 2080 Ti","driver":"NVIDIA 617.14","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz","cpu_threads":16,"memory_mib":32700,"title_id":"PPSA05324","title":"Sonic Origins","content_version":"02.002.000","resolution":"3840x2160","window":{"spec":"seconds 200:15","first_present":4451,"ms":15030.746},"presents":188,"frame_ms":{"p50":72.352,"p90":104.16,"p99":245.823,"max":297.618},"gpu_busy_ms_per_present":36.241,"worker_busy_pct":{"queue worker 0x0":96.778},"top_phases_ms_per_frame":{"Driver.Packet":75.268,"Driver.Packet.draw":56.724,"Driver.Draw":55.688,"Graphics.Draw":54.521,"Graphics.Draw.draw_and_resource_release":43.188,"Driver.Draw.shader_compile_and_link":26.158,"Driver.Draw.draw_enqueued":18.053,"Shader.DrawStage":16.969},"owned_draw_counts":{"OwnedDraw.evicted_other":16466},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":5.534,"events_lost":443760,"totals_full":false},"draw committer":{"events_full_after_s":12.873,"events_lost":45557,"totals_full":false}},"trace":"aps5-trace-9e3265259ee0-36968.json.gz"} ``` **Incomplete trace:** recorded data was lost. Slice-based timings, waits and batch inventories cover retained events only; missing slices are not idle time. Summary statistics are reported separately. - queue worker 0x0: 443760 events lost; buffer full at 5534.1 ms - draw committer: 45557 events lost; buffer full at 12873.1 ms **Slowest frames** (largest slices inside each, inclusive) - present 4489: 297.6 ms at 2855 ms: Driver.Packet (queue worker 0x0) 281.0, Driver.Packet.draw (queue worker 0x0) 245.4, Driver.Draw (queue worker 0x0) 243.3, Driver.Draw.draw_enqueued (queue worker 0x0) 172.5 - present 4488: 245.8 ms at 2609 ms: Driver.Packet (queue worker 0x0) 225.2, Driver.Packet.draw (queue worker 0x0) 162.1, Driver.Draw (queue worker 0x0) 160.0, Driver.Draw.draw_enqueued (queue worker 0x0) 102.4 - present 4571: 186.9 ms at 9953 ms: Graphics.Draw (draw committer) 54.3, batch (gpu) 45.3, Graphics.Draw.draw_and_resource_release (draw committer) 40.3, VideoOut.Flip (presenter) 10.0 - present 4572: 180.2 ms at 10140 ms: Graphics.Draw (draw committer) 77.3, Graphics.Draw.draw_and_resource_release (draw committer) 54.2, GpuMutex.wait.wait (title) 40.3, batch (gpu) 34.6 - present 4503: 136.9 ms at 4448 ms: Driver.Packet (queue worker 0x0) 118.3, Driver.Packet.draw (queue worker 0x0) 93.6, Graphics.Draw (draw committer) 92.3, Driver.Draw (queue worker 0x0) 91.7 **Persistent spikes** (frame time above the fastest frame that separates it from a longer frame; one entry per stall, not per frame) - present 4489: 297.6 ms at 2855 ms, persistence 242.3 ms - present 4571: 186.9 ms at 9953 ms, persistence 121.1 ms - present 4503: 136.9 ms at 4448 ms, persistence 57.3 ms - present 4520: 117.6 ms at 6135 ms, persistence 45.1 ms - present 4627: 105.0 ms at 14143 ms, persistence 40.4 ms - present 4473: 96.9 ms at 1519 ms, persistence 35.6 ms - present 4497: 106.9 ms at 3871 ms, persistence 25.9 ms - present 4505: 111.8 ms at 4671 ms, persistence 25.4 ms - present 4517: 108.0 ms at 5841 ms, persistence 22.2 ms - present 4475: 83.6 ms at 1678 ms, persistence 19.4 ms **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | title | 0.1 (0 %) | 9.2 (11 %) | 70.7 | 0.5 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0 | | queue worker 0x0 | 21.9 (27 %) | 0.0 (0 %) | 58.0 | 39.6 | Driver.Packet 21.2, Driver.EndSubmission 0.7 | | draw committer | 38.0 (47 %) | 0.2 (0 %) | 41.8 | 33.2 | Graphics.Draw 34.8, Recorder.Submit 2.4 | | title | 0.0 (0 %) | 0.0 (0 %) | 79.9 | 0.1 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 79.9 | 0.1 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 79.9 | 0.1 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | presenter | 0.9 (1 %) | 8.3 (10 %) | 70.7 | 0.1 | VideoOut.Flip 9.2, Driver.Present 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 79.9 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 79.9 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 79.9 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 79.9 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 79.9 | 0.1 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 79.9 | 0.1 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 79.9 | 0.1 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 79.9 | 0.1 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 79.9 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsAbi 0.0 | | gpu | 36.2 (45 %) | 0.0 (0 %) | 43.7 | 0.0 | batch 36.2 | **Largest slices** (ms per frame, inclusive, all threads): batch 36.2, Graphics.Draw 34.8, Graphics.Draw.draw_and_resource_release 24.2, Driver.Packet 21.2, Driver.Packet.draw 16.9, Driver.Draw 16.4, VideoOut.Flip 9.2, Driver.Present 9.0, VideoOut.Flip.present 9.0, Recorder.WaitSerial 8.9 **Longest waits** - GpuMutex.wait.wait (title) 40.7 ms at 10140 ms, present 4571 - GpuMutex.wait.wait (title) 14.4 ms at 10320 ms, present 4573 - Recorder.WaitSerial (title) 12.4 ms at 10753 ms, present 4578 - Recorder.WaitSerial (title) 12.3 ms at 12152 ms, present 4599 - Recorder.WaitSerial (title) 12.1 ms at 14690 ms, present 4633 - Recorder.WaitSerial (title) 12.0 ms at 13066 ms, present 4611 - Recorder.WaitSerial (title) 12.0 ms at 2309 ms, present 4483 - Recorder.WaitSerial (title) 12.0 ms at 12015 ms, present 4596 - Recorder.WaitSerial (title) 11.9 ms at 13136 ms, present 4612 - Recorder.WaitSerial (title) 11.9 ms at 12221 ms, present 4599 **Largest GPU batches** (GPU ranges inside, and the CPU slices that recorded each, inclusive) - batch 1670: 10.3 ms at 2036 ms, present 4479: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.draw_and_resource_release (draw committer) 0.5, Resources.Complete (draw committer) 0.1 - batch 1788: 10.3 ms at 2166 ms, present 4481: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.6, Graphics.Draw.draw_and_resource_release (draw committer) 0.6, Resources.Complete (draw committer) 0.1 - batch 1430: 10.0 ms at 1752 ms, present 4475: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.draw_and_resource_release (draw committer) 0.5, Resources.Complete (draw committer) 0.1 - batch 1489: 9.9 ms at 1823 ms, present 4476: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.6, Graphics.Draw.draw_and_resource_release (draw committer) 0.5, Resources.Complete (draw committer) 0.1 - batch 8263: 9.9 ms at 11302 ms, present 4586: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.6, Graphics.Draw.draw_and_resource_release (draw committer) 0.5, Resources.Complete (draw committer) 0.0 </details> ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: NVIDIA GeForce RTX 2080 Ti, driver 617.14, Windows 11 (10.0.26300) - [x] AI-assisted: yes
MarcZX10 commented 2026-11-12 19:15:13 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-12T19:15:13Z.

Review: COMMENTED


Reviewed the vertex-plan scratch change — no blocking findings

Nothing blocks this; the points below are optional.

What I ran

  • Head cc90f5506e9108e3bc8257284dba68274da685a0, base main. The base SHA is not in the run folder, and no merged-preview check was run.
  • Read the title, commit message, manifest and diff.patch for the 7 changed files. Read the changed hunks of each file, plus the head code around the changed calls, with the repository reader. No build was run in this pass.
  • Reader commands at head:
repo_read.py search "rangeHandles" core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
repo_read.py search "zeroed" core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
repo_read.py search "class Buffer" core/libs/prx/libSceAgcDriver
repo_read.py search "GLOB" core/libs/prx/libSceAgcDriver/CMakeLists.txt
repo_read.py cat core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp 1995 2040
repo_read.py cat core/libs/prx/libSceAgcDriver/Execution/include/ThreadScratch.hpp 1 20
repo_read.py cat core/libs/prx/libSceAgcDriver/Graphics/include/Resources.hpp 1 12

Results

Check Result Note
Changed files read passed 7 of 7 listed as reviewed; see Not verified
Lists emptied when the lease ends passed all nine lists in VertexPlanScratch::clear
Lists moved or referenced after the draw passed handles and offsets are copied into inputs
New test registered passed the test fragment is picked up by the glob
Build and ctest not run no build in this pass
Author-reported test runs and traces not run not reproduced here

Findings

Blocking

None.

Non-blocking

  • core/libs/prx/libSceAgcDriver/tests/ExclusiveScratch.cpp:119: the zero-buffer check builds its shared_ptr<Buffer> by aliasing owner.get(), an int*, cast to Buffer*. The pointer is never dereferenced, so the assertion holds, but the test fakes a Buffer from an unrelated type. Smallest fix: keep the entry as a real shared_ptr<Buffer> owned by the test, or leave the alias and name it in the test as a stand-in.

Sources

Not verified

  • The build, ctest, and the Vulkan validation runs were not run. The author reports 27 of 27 passing on the change and a rerun of five tests on the amended commit. I did not reproduce either.
  • The performance numbers, trace digests and sampler figures are author-reported and were not checked.
  • tools/check_conventions.py, the overlap scan against #9875 and #18174, and the conflict claims are author-reported and were not checked.
  • The VertexFetch aggregate initialisation in the test ({1, 2, 3, 4, 5}) was not checked; its definition was not read.
  • The thread-slot behaviour in HostThreadSlot and ThreadOwned was not read. The per-thread claim rests on the code in ThreadScratch, not on those helpers.
  • ThreadScratch.hpp, Draw.cpp and ZeroStrideVertexFetch.cpp were read as their changed hunks plus the excerpts above. The full text in files/ was not opened.
  • Windows: the std::thread use in the new test and configure_windows_unwind were not checked.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5880564273 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18287#pullrequestreview-5880564273). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-12T19:15:13Z. **Review:** COMMENTED --- # Reviewed the vertex-plan scratch change — no blocking findings Nothing blocks this; the points below are optional. ## What I ran - Head `cc90f5506e9108e3bc8257284dba68274da685a0`, base `main`. The base SHA is not in the run folder, and no merged-preview check was run. - Read the title, commit message, manifest and `diff.patch` for the 7 changed files. Read the changed hunks of each file, plus the head code around the changed calls, with the repository reader. No build was run in this pass. - Reader commands at head: ```sh repo_read.py search "rangeHandles" core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp repo_read.py search "zeroed" core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp repo_read.py search "class Buffer" core/libs/prx/libSceAgcDriver repo_read.py search "GLOB" core/libs/prx/libSceAgcDriver/CMakeLists.txt repo_read.py cat core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp 1995 2040 repo_read.py cat core/libs/prx/libSceAgcDriver/Execution/include/ThreadScratch.hpp 1 20 repo_read.py cat core/libs/prx/libSceAgcDriver/Graphics/include/Resources.hpp 1 12 ``` ## Results | Check | Result | Note | |---|---|---| | Changed files read | passed | 7 of 7 listed as reviewed; see Not verified | | Lists emptied when the lease ends | passed | all nine lists in `VertexPlanScratch::clear` | | Lists moved or referenced after the draw | passed | handles and offsets are copied into `inputs` | | New test registered | passed | the test fragment is picked up by the glob | | Build and `ctest` | not run | no build in this pass | | Author-reported test runs and traces | not run | not reproduced here | ## Findings **Blocking** None. **Non-blocking** - `core/libs/prx/libSceAgcDriver/tests/ExclusiveScratch.cpp:119`: the zero-buffer check builds its `shared_ptr<Buffer>` by aliasing `owner.get()`, an `int*`, cast to `Buffer*`. The pointer is never dereferenced, so the assertion holds, but the test fakes a `Buffer` from an unrelated type. Smallest fix: keep the entry as a real `shared_ptr<Buffer>` owned by the test, or leave the alias and name it in the test as a stand-in. ## Sources - [Lease, nesting and destructor](https://github.com/boykopovar/AnyPS5/blob/cc90f5506e9108e3bc8257284dba68274da685a0/core/libs/prx/libSceAgcDriver/Execution/include/ThreadScratch.hpp#L20-L60) - [Lease use in `prepareDrawInputs`](https://github.com/boykopovar/AnyPS5/blob/cc90f5506e9108e3bc8257284dba68274da685a0/core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp#L1931-L1978) - [Moved and copied outputs at the end of the draw](https://github.com/boykopovar/AnyPS5/blob/cc90f5506e9108e3bc8257284dba68274da685a0/core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp#L2006-L2025) ## Not verified - The build, `ctest`, and the Vulkan validation runs were not run. The author reports 27 of 27 passing on the change and a rerun of five tests on the amended commit. I did not reproduce either. - The performance numbers, trace digests and sampler figures are author-reported and were not checked. - `tools/check_conventions.py`, the overlap scan against #9875 and #18174, and the conflict claims are author-reported and were not checked. - The `VertexFetch` aggregate initialisation in the test (`{1, 2, 3, 4, 5}`) was not checked; its definition was not read. - The thread-slot behaviour in `HostThreadSlot` and `ThreadOwned` was not read. The per-thread claim rests on the code in `ThreadScratch`, not on those helpers. - `ThreadScratch.hpp`, `Draw.cpp` and `ZeroStrideVertexFetch.cpp` were read as their changed hunks plus the excerpts above. The full text in `files/` was not opened. - Windows: the `std::thread` use in the new test and `configure_windows_unwind` were not checked. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-14 10:09:45 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-14T10:09:45Z.

Review: APPROVED


Reviewed — looks good

Nothing blocks this change; the author-reported tests and measurements support the stated scratch reuse behavior.

What I ran

Reviewed head afcefa92d562fb9437cfed283cd02a6299c1cee7 using the prepared diff and repo_read.py. No commands or tests were run.

Results

Check Result Note
Changed code review passed All seven changed files and added lines reviewed
Tests and build not run Results in the description are author-reported
Performance measurements not run Captures and measurements are author-reported

Findings

Blocking

None.

Non-blocking

None.

Not verified

I did not independently run builds, tests, validation, convention checks, or performance captures. I read all changed files: ThreadScratch.hpp, Draw.hpp, VertexPlanScratch.hpp, Draw.cpp, ExclusiveScratch.cpp, agc_exclusive_scratch_tests.cmake, and ZeroStrideVertexFetch.cpp. No changed files were excluded from the prepared bundle.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5903665731 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18287#pullrequestreview-5903665731). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-14T10:09:45Z. **Review:** APPROVED --- # Reviewed — looks good Nothing blocks this change; the author-reported tests and measurements support the stated scratch reuse behavior. ## What I ran Reviewed head `afcefa92d562fb9437cfed283cd02a6299c1cee7` using the prepared diff and `repo_read.py`. No commands or tests were run. ## Results | Check | Result | Note | |---|---|---| | Changed code review | passed | All seven changed files and added lines reviewed | | Tests and build | not run | Results in the description are author-reported | | Performance measurements | not run | Captures and measurements are author-reported | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified I did not independently run builds, tests, validation, convention checks, or performance captures. I read all changed files: `ThreadScratch.hpp`, `Draw.hpp`, `VertexPlanScratch.hpp`, `Draw.cpp`, `ExclusiveScratch.cpp`, `agc_exclusive_scratch_tests.cmake`, and `ZeroStrideVertexFetch.cpp`. No changed files were excluded from the prepared bundle. ## To get this to a good state Nothing is required.
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!18287
No description provided.