Repository navigation
perf(agc): size a draw's descriptor sets only when none is recycled - #26436
Conversation
A draw that reads copies makes its own descriptor sets, one per split set, in writeDrawSets. Each draw rebuilt the per-type descriptor counts of both sets, although the counts are only used when the descriptor cache has no recycled set to hand out, which on Sonic Origins' S3K page is almost never once the first draws have run. A recycled set was also copied out of the cache where it can be moved. DescriptorCache::TakeRewritten moves a recycled set out, and the counts are built on a miss only. The index of in-place elements is built only for a draw that has some. On the S3K menu page, with writeDrawSets rotating per call between the old and the new body in one run so that machine state cancels, the old body took 1334 and 1294 ns per call in two runs and the new one 1156 and 1097 ns (-13% and -15%), about 190 ns for each of the 36,000 draws a second. The frame is flat.
|
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
|
Update 2026-11-27, head RTX 3070 run of Tested
Not tested: AMD, titles. AI-assisted (Claude Code). |
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — no blocking findings
Nothing blocks this; the points below are optional.
What I ran
Reviewed head d5612492a5576979019fcf074400d026f998467f using the prepared diff and the pinned repo_read.py reader. I read the changed hunks and relevant context in all three changed files; the rest of the large .cpp and test files was not read. No commands or tests were run. The description reports author-run tests and performance measurements; I did not independently verify them.
Results
| Check | Result | Note |
|---|---|---|
| Changed code review | passed | No concrete defect found in inspected changes |
| Tests | not run | Reader access only |
| Negative control | not run | No test execution available |
Negative control
Could not run a negative control because tests could not be run in this review environment.
Findings
Blocking
None.
Non-blocking
None.
Sources
- ShaderResources.hpp at reviewed head
- ShaderResources.cpp at reviewed head
- Graphics.cpp at reviewed head
Not verified
The uninspected portions of the changed .cpp and test files, other platforms and GPUs, the full test suite, and the author-reported tests and performance results were not independently verified. The prepared bundle excludes no changed files; full file text for ShaderResources.cpp and Graphics.cpp was too large for the bundle, so I inspected targeted ranges through the reader.
To get this to a good state
Nothing is required.
|
I merged main into your branch (835cdd5) to resolve the conflict in ShaderResources.cpp. Main removed |
|
No actionable comments were generated in the recent review. Walkthrough
Change: Refactor Merge Risk:
|
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — no blocking findings
The inspected changes preserve the existing allocation and descriptor sizing behavior; runtime checks were not run in this review.
What I ran
Read the prepared description, commit list, manifest, and diff for head 835cdd540780d763f548e31567bd680c9c288e7c. Read the changed header declaration, the changed implementation ranges and their relevant callers, and the changed descriptor cache test range. No commands or tests were run.
Results
| Check | Result | Note |
|---|---|---|
| Diff and targeted source review | passed | Three changed files inspected |
| Tests in this review | not run | No execution environment available |
| Author-reported checks | not run | Description reports focused tests and performance measurements |
Findings
Blocking
None.
Non-blocking
None.
Not verified
The full implementation and test files were not read beyond the relevant ranges. Tests and performance measurements described by the author were not independently verified. The description says the in-place index is built only when in-place elements exist, but the inspected code still fills snapshotIndices unconditionally; I did not include this as a finding because the relevant lines are unchanged and findings must cite changed lines.
Files read: ShaderResources.hpp, targeted ranges of ShaderResources.cpp, targeted range of Graphics.cpp, plus description.md, commits.md, manifest.json, and diff.patch. Excluded from full-text reading: the remainder of ShaderResources.cpp and Graphics.cpp (both exceed the review bundle limit). No changed file was wholly read.
To get this to a good state
Nothing is required.
What
A draw that reads copies (almost every draw on Sonic Origins' S3K menu page: 99.3% of
PrepareDrawBindingscalls) makes its own descriptor sets inShaderResources::writeDrawSets, one per split set. Three things in it cost every draw something that a recycled set makes unnecessary:find_ifper binding, a sort), although they are only read when the descriptor cache has no recycled set to hand out, which after the first draws is never on this page (recycle hit 100%, miss 0 in a counting build);DescriptorCache::AllocateRewrittencopied the recycledSetAllocation(itssizesvector and table pointer included) out of its list where it can be moved;DescriptorCache::TakeRewrittenmoves the recycled set out of the cache (AllocateRewrittenis nowTakeRewrittenplusAllocate),writeDrawSetsbuilds the counts the first time a set misses, and the in-place index only whenDrawBindings::inPlaceis not empty. Two files in the library change (ShaderResources.hpp: one declaration;ShaderResources.cpp) plus the descriptor cache test. No switch, no new state, no behaviour change.What it shows.
writeDrawSetsrotates between bodies per call in a timing build (call % 3: main's body, this change's body and a third variant), all on one thread in one run, so machine state cancels (the whole-run timings of separate builds moved by 5 to 10% with the run's FPS and could not resolve this). Two runs on the S3K page, steady windows (calls per window above 90,000 per body), ns per call:That is -178 and -197 ns per call (-13.3% and -15.2%), with the ranges disjoint in both runs: about 190 ns for each of the 36,000 draws a second the page makes, 0.7% of the committer's time, about 0.4 ms of a 62 ms frame. The frame is flat: see the sampler and traced tables below; the queue worker is blocked 17 to 19% in
EnqueueandDrainand the committer is 71 to 72% incommitDraw, so the two threads are coupled and 0.4 ms of one of them does not reach the frame by itself. I am proposing it for the saving on the committer's own path, not for a measured frame-rate gain.What a counting build showed about the rest of build A's idea (so that nobody tries it again here): the page makes 34,400 own-set draws a second, each with 3.9 bindings and 7.9 descriptors (5.4 buffers, 2.0 sampled images, 0.5 samplers), and 5.1 of the 5.4 buffer descriptors are replaced by snapshots; rebound 0, fault-record draws 0. Two ideas that I measured the same way and dropped because they gave nothing on this base: a draw-owned list of 12 inline snapshots instead of the heap vector (the whole function did not get faster; the vector comes from the per-thread block cache of #24515), and copying the template set's untouched descriptors instead of rewriting them (no faster than this change's body in the rotation, -42 and +38 ns per call: only 2.5 image and sampler descriptors per draw could be copied, and one write per replaced element adds structs).
Overlap.
tools/pr_overlap.pyover 2,547 open PRs failed closed (52 PRs shareShaderResources.hpp,ShaderResources.cpportests/Graphics.cpp, some conflicting with main themselves), so I read the patches of those 52 forwriteDrawSets,AllocateRewritten,TakeRewritten,recycled, the in-place index and the count lambdas: only #7642 and #9508 (the GPU descriptor heap, conflicting) changewriteDrawSets' signature and would rewrite it outright; no open PR touchesAllocateRewrittenor the counts. Earlier, a scan of 2,599 open PRs for the draw-set symbols (167 candidates by path, all patches read) found none that implements this: #22647 (conflicting) changesPrepareDrawBindings' parameters and readssnapshotsas a span, which this change does not touch. The commit is on mainbfcd717ebc5, merges cleanly onto upstream main75981fd49b1.Tested
Windows 11 (10.0.26300), NVIDIA GeForce RTX 2080 Ti (driver 610.88), Intel Core i9-9900K. Sonic Origins (PPSA05324) menu on the S3K page with the four add-ons, 3840x2160, default environment. Measured commits: main
bfcd717ebc5(the base) andda362924bd6, which has the same tree as this PR's headd5612492a55(the head only has a corrected commit message, so the summaries and traces name the earlier hash).Tests. New cases in
descriptorCacheTests(agc_descriptor_cache): an empty recycle list serves nothing, a set recycled with a variable image count is not served for another count or for none,TakeRewrittenreturns the whole set (pool and count kept) once and not twice. The focused set around the changed code (descriptor cache and pool, draw descriptors, snapshot, recorder, draw inputs, copied write-back, fault records, resources, vertex input: 90 ctest names, 89 pass andagc_driver_pipelined_flush_read_order_draw_pipelineis skipped in both builds because theirANYPS5_AGC_EXECUTION_TESTSlist leaves it out) gives the identical list of results on main and on this change, plain and withVK_LAYER_KHRONOS_validation(ANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1,VK_LOADER_DEBUG=layer), same machine and GPU: 0VUID-, no "was not found but was requested" line, 474 layer lines in each log. Seven of eleven mutants are caught (a take that does not pop, ignores the variable count, serves an empty list, or is never made; no set described; a miss that allocates nothing; the in-place index never built, caught byagc_driver_dispatch_rebind, which is not in the 90); four survive: the counts never computed, never cleared, keyed to set 0, and the fragment set sized as set 0. They only change the pool sizes of a freshly allocated set, which needs a draw set larger than the chain pool (4,096 storage buffers or 1,024 sampled images) and no unit test builds one; the code is the old counting loop moved into a lambda. Not run: Linux and macOS, other GPUs, the full ctest suite.Sampler (
APS5_SAMPLE_WORKERandAPS5_SAMPLE_COMMITTER, one 60 s window per arm, about 3,840 samples per thread, both orders; benchmark leases, outside CPU 13.6% on average and the lease was not quiet at its start; the change windows ran the same diff before it was committed, so their title readmain bfcd717ebc5 dirty):commitDrawPrepareDrawBindingswriteDrawSetsAllocateRewritten/TakeRewrittenEnqueueandDrainMeans: FPS main 16.79, change 16.93 (+0.8%);
commitDraw71.9% and 71.6%;PrepareDrawBindings10.1% and 10.0%;writeDrawSets3.78% and 3.32%. ThewriteDrawSetsrow moves the way the rotation says, but the two windows of each arm differ by 1.2 to 1.6 points, more than the 0.5 point the saving is worth, so the sampler cannot resolve it. What is left of the cache's share is the lock and thestd::maplookup under it (0.9 to 1.1% of the committer).Traced runs (
APS5_TRACE_SECONDS=200:15, same page, committed build against the base, both orders,tools/trace_digest.py):FPS: main 16.16, this PR 17.19 (+6.4%); pair deltas +12.0% and +1.3%; p50 68.7 and 67.8 ms; p99 95.0 and 110.8 ms; GPU busy 31.4 and 31.0 ms per present; main alone spans 15.53 to 16.78 FPS.
The PR runs are the committed tree (
da362924bd6; the PR head only has a corrected commit message). I do not read this as a frame gain. The saving is about 0.4 ms of a 62 ms frame, which is about 0.1 FPS; main's first run (15.53) is the lowest main reading I have taken on this page, main alone spans 15.53 to 16.78 FPS, the outside CPU averaged 17.5% over the four runs (the lease was not quiet at its start), and the second pair's runs show p99 spikes of 110 and 134 ms in both arms. So the traced runs show no frame change that the change can be credited with, and none against it. All four traces lost events the same way (the queue worker's buffer fills after a few seconds), so slice timings cover the first seconds only.The summaries and traces are attached as m37_trace_main_pt1_bfcd717ebc5.zip, m37_trace_main_pt2_bfcd717ebc5.zip, m37_trace_pr_pt1_da362924bd6.zip and m37_trace_pr_pt2_da362924bd6.zip, one zip per traced run, each with its digest; the instrumentation of the rotation and of the counting build (patches against
bfcd717ebc5, not part of this PR) is attached as m37_instrumentation.zip.aps5-summary.jsonl lines: main (pt1), this PR (pt1), this PR (pt2), main (pt2)
{"commit":"bfcd717ebc57","dirty":false,"env":{"APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"200:15"},"gpu":"NVIDIA GeForce RTX 2080 Ti","driver":"NVIDIA 610.88","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz","cpu_threads":16,"memory_mib":65468,"title_id":"PPSA05324","title":"Sonic Origins","content_version":"02.002.000","resolution":"3840x2160","window":{"spec":"seconds 200:15","first_present":5610,"ms":15058.808},"presents":227,"frame_ms":{"p50":65.626,"p90":72.465,"p99":80.347,"max":82.666},"gpu_busy_ms_per_present":30.605,"worker_busy_pct":{"queue worker 0x0":96.728},"phase_totals_ms":{"Driver.Completion":3.961,"Driver.Dispatch":1377.833,"Driver.Dispatch.capture_resources":16.706,"Driver.Dispatch.decode_key_device_setup":1006.496,"Driver.Dispatch.lookup_cache":14.799,"Driver.Dispatch.materialize":3.408,"Driver.Dispatch.prepared_invocation":3.085,"Driver.Draw":10960.275,"Driver.Draw.device_setup":781.733,"Driver.Draw.draw_enqueued":2091.088,"Driver.Draw.post_compile_prepare":198.878,"Driver.Draw.prepare":1341.095,"Driver.Draw.shader_compile_and_link":6294.826,"Driver.EndSubmission":7.069,"Driver.Packet":14554.939,"Driver.Packet.device_lock":155.758,"Driver.Packet.dispatch":1382.025,"Driver.Packet.draw":11167.731,"Driver.Packet.execute":381.398,"Driver.Packet.flip_flush":6.911,"Driver.Packet.flush_between_packets":457.613,"Driver.Packet.memory_wait":0.050,"Driver.Packet.pipeline_drain":222.804,"Driver.Packet.pipeline_prepare":273.970,"Driver.Packet.prepare_memory":246.732,"Driver.Packet.rendering_wait":0.339,"Driver.Present":2614.657,"Driver.Present.acquire_image":3.027,"Driver.Present.device_setup":0.177,"Driver.Present.gpu_mutex_wait":35.392,"Driver.Present.inflight_wait":0.630,"Driver.Present.present_display_buffer":44.656,"Driver.Present.queue_present":46.691,"Driver.Present.release_and_callback":1.037,"Driver.Present.render_fence_wait":2482.268,"Driver.Present.resize":0.470,"Driver.Present.validate":0.066,"Driver.Suspend":0.070,"GpuMutex.wait.draw":76.350,"GpuMutex.wait.end":1.150,"GpuMutex.wait.fill":2.754,"GpuMutex.wait.flush":1.177,"GpuMutex.wait.label":3.644,"GpuMutex.wait.other":2.568,"GpuMutex.wait.present":34.781,"GpuMutex.wait.wait":3.707,"Graphics.Draw":9386.121,"Graphics.Draw.draw_and_resource_release":7172.901,"Graphics.Draw.index_upload":470.452,"Graphics.Draw.validate":858.524,"Graphics.Draw.vertex_upload":734.137,"Graphics.DrawWithRecipe":631.316,"Graphics.DrawWithRecipe.draw_and_resource_release":603.491,"Graphics.DrawWithRecipe.index_upload":4.107,"Graphics.DrawWithRecipe.validate":9.653,"Graphics.DrawWithRecipe.vertex_upload":8.491,"Recorder.Reap":147.341,"Recorder.Submit":463.885,"Recorder.WaitSerial":2583.186,"Resources.Complete":99.518,"Resources.Prepare":53.160,"Shader.DrawStage":4079.420,"Shader.DrawStage.capture_resources":1816.590,"Shader.DrawStage.materialize":1189.124,"Shader.DrawStage.prepared_invocation":991.446,"Shader.ResolveAbi":157.704,"Shader.ResolveGraphicsAbi":61.452,"Shader.ResolveGraphicsStagesAbi":158.418,"VideoOut.Flip":2618.935,"VideoOut.Flip.completion_mutex_wait":0.411,"VideoOut.Flip.config_mutex_wait":0.030,"VideoOut.Flip.frame_limit":0.202,"VideoOut.Flip.notify_game":9.192,"VideoOut.Flip.present":2605.149,"VideoOut.Flip.validate":0.365,"VideoOut.Flip.vblank_wait":0.212,"VideoOut.Flip.window_prepare":0.395,"VideoOut.Flip.window_title":2.631,"VideoOut.Readiness":0.945,"VideoOut.Readiness.locks_validate":0.454,"Vulkan.Acquire":2.761,"Vulkan.Acquire.acquire_fence_wait":0.520,"Vulkan.Acquire.acquire_image":1.513,"Vulkan.Acquire.fence_reset":0.515,"Vulkan.Acquire.retired_swapchains":0.120,"Vulkan.Dispatch":181.437,"Vulkan.Dispatch.command_record":59.679,"Vulkan.Dispatch.shader_resources":120.566,"Vulkan.DrawFromRecipe":640.148,"Vulkan.Present":24.007,"Vulkan.Present.command_record_scale":8.991,"Vulkan.Present.pixel_upload":1.551,"Vulkan.Present.queue_submit":13.144,"Vulkan.QueuePresent":45.685,"Vulkan.QueuePresent.queue_present":45.275,"Vulkan.Retire":2482.039,"Vulkan.Retire.wait":2476.035},"top_phases_ms_per_frame":{"Driver.Packet":64.119,"Driver.Packet.draw":49.197,"Driver.Draw":48.283,"Graphics.Draw":41.349,"Graphics.Draw.draw_and_resource_release":31.599,"Driver.Draw.shader_compile_and_link":27.731,"Shader.DrawStage":17.971,"VideoOut.Flip":11.537},"owned_draw_counts":{"OwnedDraw.evicted_other":1200},"graphics_track":{"Graphics.Barrier.copy":908,"Graphics.Barrier.dispatch-lead":1383,"Graphics.Barrier.dispatch-trail":2497,"Graphics.Barrier.draw":37139,"Graphics.Barrier.fill-clear":2270,"Graphics.Barrier.label-run":39038,"Graphics.Barrier.present-blit":454,"Graphics.Barrier.staging-in":2110,"Graphics.Barrier.staging-out":454,"Graphics.Barrier.storage-upload":25878,"Graphics.Barrier.storage-writeback":2302,"Graphics.BarrierMerged.dispatch-lead":1114,"Graphics.BarrierMerged.staging-in":160,"Graphics.BarrierMerged.staging-out":454,"Graphics.BarrierMerged.storage-writeback":422,"Graphics.Copy":1362,"Graphics.Copy.bytes":14557056,"Graphics.RenderPass":18332,"Graphics.RenderPass.Close.command":6750,"Graphics.RenderPass.Close.image":17,"Graphics.RenderPass.Close.key":866,"Graphics.RenderPass.Close.new-batch":10699,"Graphics.RenderPass.Continued":461655},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":4.916,"events_lost":533246,"totals_full":false},"draw committer":{"events_full_after_s":13.893,"events_lost":24603,"totals_full":false}},"trace":"aps5-trace-bfcd717ebc57-31220.json.gz"} {"commit":"da362924bd6a","dirty":false,"env":{"APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"200:15"},"gpu":"NVIDIA GeForce RTX 2080 Ti","driver":"NVIDIA 610.88","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz","cpu_threads":16,"memory_mib":65468,"title_id":"PPSA05324","title":"Sonic Origins","content_version":"02.002.000","resolution":"3840x2160","window":{"spec":"seconds 200:15","first_present":4425,"ms":15015.957},"presents":227,"frame_ms":{"p50":65.409,"p90":70.912,"p99":87.564,"max":107.348},"gpu_busy_ms_per_present":30.725,"worker_busy_pct":{"queue worker 0x0":96.723},"phase_totals_ms":{"Driver.Completion":3.454,"Driver.Dispatch":1388.995,"Driver.Dispatch.capture_resources":15.601,"Driver.Dispatch.decode_key_device_setup":1014.785,"Driver.Dispatch.lookup_cache":14.972,"Driver.Dispatch.materialize":2.954,"Driver.Dispatch.prepared_invocation":2.820,"Driver.Draw":10868.334,"Driver.Draw.device_setup":790.678,"Driver.Draw.draw_enqueued":2028.368,"Driver.Draw.post_compile_prepare":203.906,"Driver.Draw.prepare":1339.581,"Driver.Draw.shader_compile_and_link":6252.842,"Driver.EndSubmission":13.808,"Driver.Packet":14506.607,"Driver.Packet.device_lock":159.196,"Driver.Packet.dispatch":1392.874,"Driver.Packet.draw":11069.700,"Driver.Packet.execute":391.496,"Driver.Packet.flip_flush":7.709,"Driver.Packet.flush_between_packets":460.975,"Driver.Packet.memory_wait":0.029,"Driver.Packet.pipeline_drain":233.910,"Driver.Packet.pipeline_prepare":273.712,"Driver.Packet.prepare_memory":245.672,"Driver.Packet.rendering_wait":0.505,"Driver.Present":2662.344,"Driver.Present.acquire_image":2.883,"Driver.Present.device_setup":0.156,"Driver.Present.gpu_mutex_wait":20.944,"Driver.Present.inflight_wait":0.598,"Driver.Present.present_display_buffer":38.354,"Driver.Present.queue_present":43.340,"Driver.Present.release_and_callback":1.164,"Driver.Present.render_fence_wait":2554.178,"Driver.Present.resize":0.424,"Driver.Present.validate":0.068,"Driver.Suspend":0.073,"GpuMutex.wait.dispatch":0.021,"GpuMutex.wait.draw":68.839,"GpuMutex.wait.end":0.862,"GpuMutex.wait.fill":0.319,"GpuMutex.wait.flush":0.295,"GpuMutex.wait.label":1.529,"GpuMutex.wait.other":0.963,"GpuMutex.wait.present":20.376,"GpuMutex.wait.wait":4.254,"Graphics.Draw":9157.115,"Graphics.Draw.draw_and_resource_release":7036.098,"Graphics.Draw.index_upload":452.641,"Graphics.Draw.validate":822.511,"Graphics.Draw.vertex_upload":703.748,"Graphics.DrawWithRecipe":720.456,"Graphics.DrawWithRecipe.draw_and_resource_release":674.231,"Graphics.DrawWithRecipe.index_upload":8.742,"Graphics.DrawWithRecipe.validate":14.560,"Graphics.DrawWithRecipe.vertex_upload":15.536,"Recorder.Reap":138.873,"Recorder.Submit":522.570,"Recorder.WaitSerial":2632.212,"Resources.Complete":75.960,"Resources.Prepare":53.456,"Shader.DrawStage":4039.982,"Shader.DrawStage.capture_resources":1829.347,"Shader.DrawStage.materialize":1138.715,"Shader.DrawStage.prepared_invocation":984.256,"Shader.ResolveAbi":161.050,"Shader.ResolveGraphicsAbi":60.452,"Shader.ResolveGraphicsStagesAbi":158.124,"VideoOut.Flip":2663.650,"VideoOut.Flip.completion_mutex_wait":0.418,"VideoOut.Flip.config_mutex_wait":0.031,"VideoOut.Flip.frame_limit":0.193,"VideoOut.Flip.notify_game":8.309,"VideoOut.Flip.present":2651.014,"VideoOut.Flip.validate":0.309,"VideoOut.Flip.vblank_wait":0.203,"VideoOut.Flip.window_prepare":0.391,"VideoOut.Flip.window_title":2.471,"VideoOut.Readiness":0.814,"VideoOut.Readiness.locks_validate":0.346,"Vulkan.Acquire":2.618,"Vulkan.Acquire.acquire_fence_wait":0.454,"Vulkan.Acquire.acquire_image":1.469,"Vulkan.Acquire.fence_reset":0.498,"Vulkan.Acquire.retired_swapchains":0.114,"Vulkan.Dispatch":183.046,"Vulkan.Dispatch.command_record":60.304,"Vulkan.Dispatch.shader_resources":121.575,"Vulkan.DispatchRecipe":1.001,"Vulkan.DispatchRecipe.command_record":1.000,"Vulkan.DrawFromRecipe":732.406,"Vulkan.Present":20.017,"Vulkan.Present.command_record_scale":8.259,"Vulkan.Present.pixel_upload":0.834,"Vulkan.Present.queue_submit":10.653,"Vulkan.QueuePresent":42.594,"Vulkan.QueuePresent.queue_present":42.223,"Vulkan.Retire":2553.945,"Vulkan.Retire.wait":2549.029},"top_phases_ms_per_frame":{"Driver.Packet":63.906,"Driver.Packet.draw":48.765,"Driver.Draw":47.878,"Graphics.Draw":40.340,"Graphics.Draw.draw_and_resource_release":30.996,"Driver.Draw.shader_compile_and_link":27.546,"Shader.DrawStage":17.797,"VideoOut.Flip":11.734},"owned_draw_counts":{"OwnedDraw.evicted_other":1073},"graphics_track":{"Graphics.Barrier.copy":908,"Graphics.Barrier.dispatch-lead":1381,"Graphics.Barrier.dispatch-trail":2500,"Graphics.Barrier.draw":37200,"Graphics.Barrier.fill-clear":2270,"Graphics.Barrier.label-run":39077,"Graphics.Barrier.present-blit":454,"Graphics.Barrier.shadow-publish":2,"Graphics.Barrier.staging-in":2110,"Graphics.Barrier.staging-out":454,"Graphics.Barrier.storage-upload":25888,"Graphics.Barrier.storage-writeback":2319,"Graphics.BarrierMerged.dispatch-lead":1119,"Graphics.BarrierMerged.label-run":11,"Graphics.BarrierMerged.shadow-publish":2,"Graphics.BarrierMerged.staging-in":164,"Graphics.BarrierMerged.staging-out":454,"Graphics.BarrierMerged.storage-writeback":418,"Graphics.Copy":1364,"Graphics.Copy.bytes":14557152,"Graphics.RenderPass":18367,"Graphics.RenderPass.Close.command":6740,"Graphics.RenderPass.Close.image":16,"Graphics.RenderPass.Close.key":892,"Graphics.RenderPass.Close.label":11,"Graphics.RenderPass.Close.new-batch":10708,"Graphics.RenderPass.Continued":461181},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":4.915,"events_lost":516113,"totals_full":false},"draw committer":{"events_full_after_s":13.764,"events_lost":22165,"totals_full":false}},"trace":"aps5-trace-da362924bd6a-24316.json.gz"} {"commit":"da362924bd6a","dirty":false,"env":{"APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"200:15"},"gpu":"NVIDIA GeForce RTX 2080 Ti","driver":"NVIDIA 610.88","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz","cpu_threads":16,"memory_mib":65468,"title_id":"PPSA05324","title":"Sonic Origins","content_version":"02.002.000","resolution":"3840x2160","window":{"spec":"seconds 200:15","first_present":4434,"ms":15068.953},"presents":209,"frame_ms":{"p50":70.131,"p90":82.818,"p99":134.029,"max":168.317},"gpu_busy_ms_per_present":31.337,"worker_busy_pct":{"queue worker 0x0":96.810},"phase_totals_ms":{"Driver.Completion":3.583,"Driver.Dispatch":1436.500,"Driver.Dispatch.capture_resources":16.537,"Driver.Dispatch.decode_key_device_setup":1072.720,"Driver.Dispatch.lookup_cache":15.082,"Driver.Dispatch.materialize":3.356,"Driver.Dispatch.prepared_invocation":3.166,"Driver.Draw":10843.337,"Driver.Draw.device_setup":750.562,"Driver.Draw.draw_enqueued":2139.936,"Driver.Draw.post_compile_prepare":196.651,"Driver.Draw.prepare":1321.326,"Driver.Draw.shader_compile_and_link":6189.806,"Driver.EndSubmission":12.411,"Driver.Packet":14572.102,"Driver.Packet.device_lock":147.063,"Driver.Packet.dispatch":1440.756,"Driver.Packet.draw":11046.717,"Driver.Packet.execute":379.384,"Driver.Packet.flip_flush":6.592,"Driver.Packet.flush_between_packets":439.579,"Driver.Packet.memory_wait":0.077,"Driver.Packet.pipeline_drain":240.193,"Driver.Packet.pipeline_prepare":261.935,"Driver.Packet.prepare_memory":237.918,"Driver.Packet.rendering_wait":0.341,"Driver.Present":2394.298,"Driver.Present.acquire_image":2.875,"Driver.Present.device_setup":0.183,"Driver.Present.gpu_mutex_wait":9.156,"Driver.Present.inflight_wait":0.583,"Driver.Present.present_display_buffer":39.853,"Driver.Present.queue_present":43.939,"Driver.Present.release_and_callback":0.801,"Driver.Present.render_fence_wait":2296.229,"Driver.Present.resize":0.423,"Driver.Present.validate":0.072,"Driver.Suspend":0.089,"GpuMutex.wait.draw":87.121,"GpuMutex.wait.end":0.162,"GpuMutex.wait.fill":1.187,"GpuMutex.wait.flush":0.352,"GpuMutex.wait.label":1.131,"GpuMutex.wait.other":1.021,"GpuMutex.wait.present":8.604,"GpuMutex.wait.wait":2.861,"Graphics.Draw":9235.731,"Graphics.Draw.draw_and_resource_release":7120.194,"Graphics.Draw.index_upload":440.586,"Graphics.Draw.validate":834.445,"Graphics.Draw.vertex_upload":702.208,"Graphics.DrawWithRecipe":644.918,"Graphics.DrawWithRecipe.draw_and_resource_release":616.393,"Graphics.DrawWithRecipe.index_upload":4.248,"Graphics.DrawWithRecipe.validate":9.733,"Graphics.DrawWithRecipe.vertex_upload":9.110,"Recorder.Reap":149.146,"Recorder.Submit":471.642,"Recorder.WaitSerial":2365.613,"Resources.Complete":111.748,"Resources.Prepare":52.648,"Shader.DrawStage":4011.481,"Shader.DrawStage.capture_resources":1817.916,"Shader.DrawStage.materialize":1137.843,"Shader.DrawStage.prepared_invocation":971.527,"Shader.ResolveAbi":161.212,"Shader.ResolveGraphicsAbi":62.502,"Shader.ResolveGraphicsStagesAbi":159.273,"VideoOut.Flip":2413.995,"VideoOut.Flip.completion_mutex_wait":0.620,"VideoOut.Flip.config_mutex_wait":0.026,"VideoOut.Flip.frame_limit":0.165,"VideoOut.Flip.notify_game":24.104,"VideoOut.Flip.present":2384.932,"VideoOut.Flip.validate":0.313,"VideoOut.Flip.vblank_wait":0.177,"VideoOut.Flip.window_prepare":0.421,"VideoOut.Flip.window_title":2.769,"VideoOut.Readiness":0.788,"VideoOut.Readiness.locks_validate":0.281,"Vulkan.Acquire":2.610,"Vulkan.Acquire.acquire_fence_wait":0.472,"Vulkan.Acquire.acquire_image":1.409,"Vulkan.Acquire.fence_reset":0.516,"Vulkan.Acquire.retired_swapchains":0.123,"Vulkan.Dispatch":176.806,"Vulkan.Dispatch.command_record":58.181,"Vulkan.Dispatch.shader_resources":117.412,"Vulkan.DispatchRecipe":0.806,"Vulkan.DispatchRecipe.command_record":0.805,"Vulkan.DrawFromRecipe":653.543,"Vulkan.Present":20.454,"Vulkan.Present.command_record_scale":8.774,"Vulkan.Present.pixel_upload":0.872,"Vulkan.Present.queue_submit":10.489,"Vulkan.QueuePresent":43.124,"Vulkan.QueuePresent.queue_present":42.713,"Vulkan.Retire":2296.037,"Vulkan.Retire.wait":2290.692},"top_phases_ms_per_frame":{"Driver.Packet":69.723,"Driver.Packet.draw":52.855,"Driver.Draw":51.882,"Graphics.Draw":44.190,"Graphics.Draw.draw_and_resource_release":34.068,"Driver.Draw.shader_compile_and_link":29.616,"Shader.DrawStage":19.194,"VideoOut.Flip":11.550},"owned_draw_counts":{"OwnedDraw.evicted_other":994},"graphics_track":{"Graphics.Barrier.copy":836,"Graphics.Barrier.dispatch-lead":1256,"Graphics.Barrier.dispatch-trail":2299,"Graphics.Barrier.draw":34231,"Graphics.Barrier.fill-clear":2090,"Graphics.Barrier.label-run":36119,"Graphics.Barrier.present-blit":418,"Graphics.Barrier.staging-in":1962,"Graphics.Barrier.staging-out":418,"Graphics.Barrier.storage-upload":23826,"Graphics.Barrier.storage-writeback":2113,"Graphics.BarrierMerged.dispatch-lead":1043,"Graphics.BarrierMerged.staging-in":128,"Graphics.BarrierMerged.staging-out":418,"Graphics.BarrierMerged.storage-writeback":395,"Graphics.Copy":1254,"Graphics.Copy.bytes":13402752,"Graphics.RenderPass":16887,"Graphics.RenderPass.Close.command":6072,"Graphics.RenderPass.Close.image":24,"Graphics.RenderPass.Close.key":786,"Graphics.RenderPass.Close.new-batch":10005,"Graphics.RenderPass.Continued":423522},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":4.708,"events_lost":582955,"totals_full":false},"draw committer":{"events_full_after_s":14.634,"events_lost":8134,"totals_full":false}},"trace":"aps5-trace-da362924bd6a-34992.json.gz"} {"commit":"bfcd717ebc57","dirty":false,"env":{"APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"200:15"},"gpu":"NVIDIA GeForce RTX 2080 Ti","driver":"NVIDIA 610.88","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz","cpu_threads":16,"memory_mib":65468,"title_id":"PPSA05324","title":"Sonic Origins","content_version":"02.002.000","resolution":"3840x2160","window":{"spec":"seconds 200:15","first_present":4327,"ms":15047.056},"presents":203,"frame_ms":{"p50":71.802,"p90":88.374,"p99":109.581,"max":119.769},"gpu_busy_ms_per_present":32.221,"worker_busy_pct":{"queue worker 0x0":96.791},"phase_totals_ms":{"Driver.Completion":3.200,"Driver.Dispatch":1505.315,"Driver.Dispatch.capture_resources":18.213,"Driver.Dispatch.decode_key_device_setup":1133.055,"Driver.Dispatch.lookup_cache":15.553,"Driver.Dispatch.materialize":3.730,"Driver.Dispatch.prepared_invocation":3.508,"Driver.Draw":10862.925,"Driver.Draw.device_setup":755.216,"Driver.Draw.draw_enqueued":2141.478,"Driver.Draw.post_compile_prepare":196.793,"Driver.Draw.prepare":1325.181,"Driver.Draw.shader_compile_and_link":6191.768,"Driver.EndSubmission":7.426,"Driver.Packet":14553.440,"Driver.Packet.device_lock":144.626,"Driver.Packet.dispatch":1509.970,"Driver.Packet.draw":11067.935,"Driver.Packet.execute":371.995,"Driver.Packet.flip_flush":7.456,"Driver.Packet.flush_between_packets":447.740,"Driver.Packet.memory_wait":0.113,"Driver.Packet.pipeline_drain":225.693,"Driver.Packet.pipeline_prepare":261.075,"Driver.Packet.prepare_memory":240.125,"Driver.Packet.rendering_wait":0.500,"Driver.Present":2369.605,"Driver.Present.acquire_image":2.738,"Driver.Present.device_setup":0.171,"Driver.Present.gpu_mutex_wait":7.803,"Driver.Present.inflight_wait":0.631,"Driver.Present.present_display_buffer":39.623,"Driver.Present.queue_present":43.215,"Driver.Present.release_and_callback":0.775,"Driver.Present.render_fence_wait":2273.964,"Driver.Present.resize":0.432,"Driver.Present.validate":0.070,"Driver.Suspend":0.067,"GpuMutex.wait.draw":83.165,"GpuMutex.wait.end":0.686,"GpuMutex.wait.fill":1.125,"GpuMutex.wait.flush":1.132,"GpuMutex.wait.label":0.277,"GpuMutex.wait.other":0.771,"GpuMutex.wait.present":7.289,"GpuMutex.wait.wait":10.099,"Graphics.Draw":9322.634,"Graphics.Draw.draw_and_resource_release":7159.976,"Graphics.Draw.index_upload":460.740,"Graphics.Draw.validate":843.371,"Graphics.Draw.vertex_upload":707.553,"Graphics.DrawWithRecipe":623.071,"Graphics.DrawWithRecipe.draw_and_resource_release":587.035,"Graphics.DrawWithRecipe.index_upload":5.132,"Graphics.DrawWithRecipe.validate":10.449,"Graphics.DrawWithRecipe.vertex_upload":10.201,"Recorder.Reap":156.819,"Recorder.Submit":533.344,"Recorder.WaitSerial":2340.175,"Resources.Complete":144.765,"Resources.Prepare":69.225,"Shader.DrawStage":4019.991,"Shader.DrawStage.capture_resources":1804.612,"Shader.DrawStage.materialize":1156.995,"Shader.DrawStage.prepared_invocation":977.543,"Shader.ResolveAbi":169.709,"Shader.ResolveGraphicsAbi":61.834,"Shader.ResolveGraphicsStagesAbi":164.608,"VideoOut.Flip":2370.044,"VideoOut.Flip.completion_mutex_wait":0.405,"VideoOut.Flip.config_mutex_wait":0.048,"VideoOut.Flip.frame_limit":0.160,"VideoOut.Flip.notify_game":8.782,"VideoOut.Flip.present":2357.714,"VideoOut.Flip.validate":0.304,"VideoOut.Flip.vblank_wait":0.183,"VideoOut.Flip.window_prepare":0.415,"VideoOut.Flip.window_title":1.694,"VideoOut.Readiness":0.765,"VideoOut.Readiness.locks_validate":0.290,"Vulkan.Acquire":2.482,"Vulkan.Acquire.acquire_fence_wait":0.457,"Vulkan.Acquire.acquire_image":1.351,"Vulkan.Acquire.fence_reset":0.480,"Vulkan.Acquire.retired_swapchains":0.115,"Vulkan.Dispatch":183.471,"Vulkan.Dispatch.command_record":60.913,"Vulkan.Dispatch.shader_resources":121.293,"Vulkan.DispatchRecipe":1.036,"Vulkan.DispatchRecipe.command_record":1.034,"Vulkan.DrawFromRecipe":632.359,"Vulkan.Present":20.825,"Vulkan.Present.command_record_scale":8.922,"Vulkan.Present.pixel_upload":0.746,"Vulkan.Present.queue_submit":10.848,"Vulkan.QueuePresent":42.381,"Vulkan.QueuePresent.queue_present":41.964,"Vulkan.Retire":2273.812,"Vulkan.Retire.wait":2268.820},"top_phases_ms_per_frame":{"Driver.Packet":71.692,"Driver.Packet.draw":54.522,"Driver.Draw":53.512,"Graphics.Draw":45.924,"Graphics.Draw.draw_and_resource_release":35.271,"Driver.Draw.shader_compile_and_link":30.501,"Shader.DrawStage":19.803,"VideoOut.Flip":11.675},"owned_draw_counts":{"OwnedDraw.evicted_other":999},"graphics_track":{"Graphics.Barrier.copy":812,"Graphics.Barrier.dispatch-lead":1222,"Graphics.Barrier.dispatch-trail":2236,"Graphics.Barrier.draw":33237,"Graphics.Barrier.fill-clear":2030,"Graphics.Barrier.label-run":35117,"Graphics.Barrier.present-blit":406,"Graphics.Barrier.shadow-publish":2,"Graphics.Barrier.staging-in":1913,"Graphics.Barrier.staging-out":406,"Graphics.Barrier.storage-upload":23152,"Graphics.Barrier.storage-writeback":2056,"Graphics.BarrierMerged.dispatch-lead":1014,"Graphics.BarrierMerged.shadow-publish":2,"Graphics.BarrierMerged.staging-in":121,"Graphics.BarrierMerged.staging-out":406,"Graphics.BarrierMerged.storage-writeback":393,"Graphics.Copy":1220,"Graphics.Copy.bytes":13018080,"Graphics.RenderPass":16391,"Graphics.RenderPass.Close.command":5884,"Graphics.RenderPass.Close.image":25,"Graphics.RenderPass.Close.key":773,"Graphics.RenderPass.Close.new-batch":9709,"Graphics.RenderPass.Continued":412508},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":4.601,"events_lost":586883,"totals_full":false},"draw committer":{"events_full_after_s":13.288,"events_lost":33156,"totals_full":false}},"trace":"aps5-trace-bfcd717ebc57-38016.json.gz"}Digest: main, run pt1 (commit bfcd717)
seconds 200:15 from present 5610: 227 presents, frame p50 65.6 / p90 72.5 / p99 80.3 / max 82.7 ms, GPU busy 30.6 ms per present
NVIDIA GeForce RTX 2080 Ti, NVIDIA 610.88, Windows 10.0.26300, 3840x2160, commit bfcd717, dropped: yes
{"commit":"bfcd717ebc57","dirty":false,"env":{"APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"200:15"},"gpu":"NVIDIA GeForce RTX 2080 Ti","driver":"NVIDIA 610.88","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz","cpu_threads":16,"memory_mib":65468,"title_id":"PPSA05324","title":"Sonic Origins","content_version":"02.002.000","resolution":"3840x2160","window":{"spec":"seconds 200:15","first_present":5610,"ms":15058.808},"presents":227,"frame_ms":{"p50":65.626,"p90":72.465,"p99":80.347,"max":82.666},"gpu_busy_ms_per_present":30.605,"worker_busy_pct":{"queue worker 0x0":96.728},"phase_totals_ms":{"Driver.Completion":3.961,"Driver.Dispatch":1377.833,"Driver.Dispatch.capture_resources":16.706,"Driver.Dispatch.decode_key_device_setup":1006.496,"Driver.Dispatch.lookup_cache":14.799,"Driver.Dispatch.materialize":3.408,"Driver.Dispatch.prepared_invocation":3.085,"Driver.Draw":10960.275,"Driver.Draw.device_setup":781.733,"Driver.Draw.draw_enqueued":2091.088,"Driver.Draw.post_compile_prepare":198.878,"Driver.Draw.prepare":1341.095,"Driver.Draw.shader_compile_and_link":6294.826,"Driver.EndSubmission":7.069,"Driver.Packet":14554.939,"Driver.Packet.device_lock":155.758,"Driver.Packet.dispatch":1382.025,"Driver.Packet.draw":11167.731,"Driver.Packet.execute":381.398,"Driver.Packet.flip_flush":6.911,"Driver.Packet.flush_between_packets":457.613,"Driver.Packet.memory_wait":0.05,"Driver.Packet.pipeline_drain":222.804,"Driver.Packet.pipeline_prepare":273.97,"Driver.Packet.prepare_memory":246.732,"Driver.Packet.rendering_wait":0.339,"Driver.Present":2614.657,"Driver.Present.acquire_image":3.027,"Driver.Present.device_setup":0.177,"Driver.Present.gpu_mutex_wait":35.392,"Driver.Present.inflight_wait":0.63,"Driver.Present.present_display_buffer":44.656,"Driver.Present.queue_present":46.691,"Driver.Present.release_and_callback":1.037,"Driver.Present.render_fence_wait":2482.268,"Driver.Present.resize":0.47,"Driver.Present.validate":0.066,"Driver.Suspend":0.07,"GpuMutex.wait.draw":76.35,"GpuMutex.wait.end":1.15,"GpuMutex.wait.fill":2.754,"GpuMutex.wait.flush":1.177,"GpuMutex.wait.label":3.644,"GpuMutex.wait.other":2.568,"GpuMutex.wait.present":34.781,"GpuMutex.wait.wait":3.707,"Graphics.Draw":9386.121,"Graphics.Draw.draw_and_resource_release":7172.901,"Graphics.Draw.index_upload":470.452,"Graphics.Draw.validate":858.524,"Graphics.Draw.vertex_upload":734.137,"Graphics.DrawWithRecipe":631.316,"Graphics.DrawWithRecipe.draw_and_resource_release":603.491,"Graphics.DrawWithRecipe.index_upload":4.107,"Graphics.DrawWithRecipe.validate":9.653,"Graphics.DrawWithRecipe.vertex_upload":8.491,"Recorder.Reap":147.341,"Recorder.Submit":463.885,"Recorder.WaitSerial":2583.186,"Resources.Complete":99.518,"Resources.Prepare":53.16,"Shader.DrawStage":4079.42,"Shader.DrawStage.capture_resources":1816.59,"Shader.DrawStage.materialize":1189.124,"Shader.DrawStage.prepared_invocation":991.446,"Shader.ResolveAbi":157.704,"Shader.ResolveGraphicsAbi":61.452,"Shader.ResolveGraphicsStagesAbi":158.418,"VideoOut.Flip":2618.935,"VideoOut.Flip.completion_mutex_wait":0.411,"VideoOut.Flip.config_mutex_wait":0.03,"VideoOut.Flip.frame_limit":0.202,"VideoOut.Flip.notify_game":9.192,"VideoOut.Flip.present":2605.149,"VideoOut.Flip.validate":0.365,"VideoOut.Flip.vblank_wait":0.212,"VideoOut.Flip.window_prepare":0.395,"VideoOut.Flip.window_title":2.631,"VideoOut.Readiness":0.945,"VideoOut.Readiness.locks_validate":0.454,"Vulkan.Acquire":2.761,"Vulkan.Acquire.acquire_fence_wait":0.52,"Vulkan.Acquire.acquire_image":1.513,"Vulkan.Acquire.fence_reset":0.515,"Vulkan.Acquire.retired_swapchains":0.12,"Vulkan.Dispatch":181.437,"Vulkan.Dispatch.command_record":59.679,"Vulkan.Dispatch.shader_resources":120.566,"Vulkan.DrawFromRecipe":640.148,"Vulkan.Present":24.007,"Vulkan.Present.command_record_scale":8.991,"Vulkan.Present.pixel_upload":1.551,"Vulkan.Present.queue_submit":13.144,"Vulkan.QueuePresent":45.685,"Vulkan.QueuePresent.queue_present":45.275,"Vulkan.Retire":2482.039,"Vulkan.Retire.wait":2476.035},"top_phases_ms_per_frame":{"Driver.Packet":64.119,"Driver.Packet.draw":49.197,"Driver.Draw":48.283,"Graphics.Draw":41.349,"Graphics.Draw.draw_and_resource_release":31.599,"Driver.Draw.shader_compile_and_link":27.731,"Shader.DrawStage":17.971,"VideoOut.Flip":11.537},"owned_draw_counts":{"OwnedDraw.evicted_other":1200},"graphics_track":{"Graphics.Barrier.copy":908,"Graphics.Barrier.dispatch-lead":1383,"Graphics.Barrier.dispatch-trail":2497,"Graphics.Barrier.draw":37139,"Graphics.Barrier.fill-clear":2270,"Graphics.Barrier.label-run":39038,"Graphics.Barrier.present-blit":454,"Graphics.Barrier.staging-in":2110,"Graphics.Barrier.staging-out":454,"Graphics.Barrier.storage-upload":25878,"Graphics.Barrier.storage-writeback":2302,"Graphics.BarrierMerged.dispatch-lead":1114,"Graphics.BarrierMerged.staging-in":160,"Graphics.BarrierMerged.staging-out":454,"Graphics.BarrierMerged.storage-writeback":422,"Graphics.Copy":1362,"Graphics.Copy.bytes":14557056,"Graphics.RenderPass":18332,"Graphics.RenderPass.Close.command":6750,"Graphics.RenderPass.Close.image":17,"Graphics.RenderPass.Close.key":866,"Graphics.RenderPass.Close.new-batch":10699,"Graphics.RenderPass.Continued":461655},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":4.916,"events_lost":533246,"totals_full":false},"draw committer":{"events_full_after_s":13.893,"events_lost":24603,"totals_full":false}},"trace":"aps5-trace-bfcd717ebc57-31220.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.
Slowest frames (largest slices inside each, inclusive)
Persistent spikes (frame time above the fastest frame that separates it from a longer frame; one entry per stall, not per frame)
Threads (ms per frame)
Largest slices (ms per frame, inclusive, all threads): batch 30.5, Graphics.Draw 23.3, Driver.Packet 13.0, VideoOut.Flip 11.5, Driver.Present 11.5, VideoOut.Flip.present 11.5, Recorder.WaitSerial 11.4, Driver.Present.render_fence_wait 10.9, Vulkan.Retire 10.9, Vulkan.Retire.wait 10.9
Longest waits
Largest GPU batches (GPU ranges inside, and the CPU slices that recorded each, inclusive)
Digest: this PR, run pt1 (commit da362924bd6)
seconds 200:15 from present 4425: 227 presents, frame p50 65.4 / p90 70.9 / p99 87.6 / max 107.3 ms, GPU busy 30.7 ms per present
NVIDIA GeForce RTX 2080 Ti, NVIDIA 610.88, Windows 10.0.26300, 3840x2160, commit da362924bd6a, dropped: yes
{"commit":"da362924bd6a","dirty":false,"env":{"APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"200:15"},"gpu":"NVIDIA GeForce RTX 2080 Ti","driver":"NVIDIA 610.88","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz","cpu_threads":16,"memory_mib":65468,"title_id":"PPSA05324","title":"Sonic Origins","content_version":"02.002.000","resolution":"3840x2160","window":{"spec":"seconds 200:15","first_present":4425,"ms":15015.957},"presents":227,"frame_ms":{"p50":65.409,"p90":70.912,"p99":87.564,"max":107.348},"gpu_busy_ms_per_present":30.725,"worker_busy_pct":{"queue worker 0x0":96.723},"phase_totals_ms":{"Driver.Completion":3.454,"Driver.Dispatch":1388.995,"Driver.Dispatch.capture_resources":15.601,"Driver.Dispatch.decode_key_device_setup":1014.785,"Driver.Dispatch.lookup_cache":14.972,"Driver.Dispatch.materialize":2.954,"Driver.Dispatch.prepared_invocation":2.82,"Driver.Draw":10868.334,"Driver.Draw.device_setup":790.678,"Driver.Draw.draw_enqueued":2028.368,"Driver.Draw.post_compile_prepare":203.906,"Driver.Draw.prepare":1339.581,"Driver.Draw.shader_compile_and_link":6252.842,"Driver.EndSubmission":13.808,"Driver.Packet":14506.607,"Driver.Packet.device_lock":159.196,"Driver.Packet.dispatch":1392.874,"Driver.Packet.draw":11069.7,"Driver.Packet.execute":391.496,"Driver.Packet.flip_flush":7.709,"Driver.Packet.flush_between_packets":460.975,"Driver.Packet.memory_wait":0.029,"Driver.Packet.pipeline_drain":233.91,"Driver.Packet.pipeline_prepare":273.712,"Driver.Packet.prepare_memory":245.672,"Driver.Packet.rendering_wait":0.505,"Driver.Present":2662.344,"Driver.Present.acquire_image":2.883,"Driver.Present.device_setup":0.156,"Driver.Present.gpu_mutex_wait":20.944,"Driver.Present.inflight_wait":0.598,"Driver.Present.present_display_buffer":38.354,"Driver.Present.queue_present":43.34,"Driver.Present.release_and_callback":1.164,"Driver.Present.render_fence_wait":2554.178,"Driver.Present.resize":0.424,"Driver.Present.validate":0.068,"Driver.Suspend":0.073,"GpuMutex.wait.dispatch":0.021,"GpuMutex.wait.draw":68.839,"GpuMutex.wait.end":0.862,"GpuMutex.wait.fill":0.319,"GpuMutex.wait.flush":0.295,"GpuMutex.wait.label":1.529,"GpuMutex.wait.other":0.963,"GpuMutex.wait.present":20.376,"GpuMutex.wait.wait":4.254,"Graphics.Draw":9157.115,"Graphics.Draw.draw_and_resource_release":7036.098,"Graphics.Draw.index_upload":452.641,"Graphics.Draw.validate":822.511,"Graphics.Draw.vertex_upload":703.748,"Graphics.DrawWithRecipe":720.456,"Graphics.DrawWithRecipe.draw_and_resource_release":674.231,"Graphics.DrawWithRecipe.index_upload":8.742,"Graphics.DrawWithRecipe.validate":14.56,"Graphics.DrawWithRecipe.vertex_upload":15.536,"Recorder.Reap":138.873,"Recorder.Submit":522.57,"Recorder.WaitSerial":2632.212,"Resources.Complete":75.96,"Resources.Prepare":53.456,"Shader.DrawStage":4039.982,"Shader.DrawStage.capture_resources":1829.347,"Shader.DrawStage.materialize":1138.715,"Shader.DrawStage.prepared_invocation":984.256,"Shader.ResolveAbi":161.05,"Shader.ResolveGraphicsAbi":60.452,"Shader.ResolveGraphicsStagesAbi":158.124,"VideoOut.Flip":2663.65,"VideoOut.Flip.completion_mutex_wait":0.418,"VideoOut.Flip.config_mutex_wait":0.031,"VideoOut.Flip.frame_limit":0.193,"VideoOut.Flip.notify_game":8.309,"VideoOut.Flip.present":2651.014,"VideoOut.Flip.validate":0.309,"VideoOut.Flip.vblank_wait":0.203,"VideoOut.Flip.window_prepare":0.391,"VideoOut.Flip.window_title":2.471,"VideoOut.Readiness":0.814,"VideoOut.Readiness.locks_validate":0.346,"Vulkan.Acquire":2.618,"Vulkan.Acquire.acquire_fence_wait":0.454,"Vulkan.Acquire.acquire_image":1.469,"Vulkan.Acquire.fence_reset":0.498,"Vulkan.Acquire.retired_swapchains":0.114,"Vulkan.Dispatch":183.046,"Vulkan.Dispatch.command_record":60.304,"Vulkan.Dispatch.shader_resources":121.575,"Vulkan.DispatchRecipe":1.001,"Vulkan.DispatchRecipe.command_record":1.0,"Vulkan.DrawFromRecipe":732.406,"Vulkan.Present":20.017,"Vulkan.Present.command_record_scale":8.259,"Vulkan.Present.pixel_upload":0.834,"Vulkan.Present.queue_submit":10.653,"Vulkan.QueuePresent":42.594,"Vulkan.QueuePresent.queue_present":42.223,"Vulkan.Retire":2553.945,"Vulkan.Retire.wait":2549.029},"top_phases_ms_per_frame":{"Driver.Packet":63.906,"Driver.Packet.draw":48.765,"Driver.Draw":47.878,"Graphics.Draw":40.34,"Graphics.Draw.draw_and_resource_release":30.996,"Driver.Draw.shader_compile_and_link":27.546,"Shader.DrawStage":17.797,"VideoOut.Flip":11.734},"owned_draw_counts":{"OwnedDraw.evicted_other":1073},"graphics_track":{"Graphics.Barrier.copy":908,"Graphics.Barrier.dispatch-lead":1381,"Graphics.Barrier.dispatch-trail":2500,"Graphics.Barrier.draw":37200,"Graphics.Barrier.fill-clear":2270,"Graphics.Barrier.label-run":39077,"Graphics.Barrier.present-blit":454,"Graphics.Barrier.shadow-publish":2,"Graphics.Barrier.staging-in":2110,"Graphics.Barrier.staging-out":454,"Graphics.Barrier.storage-upload":25888,"Graphics.Barrier.storage-writeback":2319,"Graphics.BarrierMerged.dispatch-lead":1119,"Graphics.BarrierMerged.label-run":11,"Graphics.BarrierMerged.shadow-publish":2,"Graphics.BarrierMerged.staging-in":164,"Graphics.BarrierMerged.staging-out":454,"Graphics.BarrierMerged.storage-writeback":418,"Graphics.Copy":1364,"Graphics.Copy.bytes":14557152,"Graphics.RenderPass":18367,"Graphics.RenderPass.Close.command":6740,"Graphics.RenderPass.Close.image":16,"Graphics.RenderPass.Close.key":892,"Graphics.RenderPass.Close.label":11,"Graphics.RenderPass.Close.new-batch":10708,"Graphics.RenderPass.Continued":461181},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":4.915,"events_lost":516113,"totals_full":false},"draw committer":{"events_full_after_s":13.764,"events_lost":22165,"totals_full":false}},"trace":"aps5-trace-da362924bd6a-24316.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.
Slowest frames (largest slices inside each, inclusive)
Persistent spikes (frame time above the fastest frame that separates it from a longer frame; one entry per stall, not per frame)
Threads (ms per frame)
Largest slices (ms per frame, inclusive, all threads): batch 30.7, Graphics.Draw 22.5, Driver.Packet 13.5, VideoOut.Flip 11.7, Driver.Present 11.7, VideoOut.Flip.present 11.7, Recorder.WaitSerial 11.6, Driver.Present.render_fence_wait 11.3, Vulkan.Retire 11.3, Vulkan.Retire.wait 11.2
Longest waits
Largest GPU batches (GPU ranges inside, and the CPU slices that recorded each, inclusive)
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Summary by CodeRabbit