perf(agc): mirror reused vertex and index snapshots in device memory #16760

Merged
meh7an merged 7 commits from upstream-pr/16760 into main 2026-11-15 10:51:01 +00:00
meh7an commented 2026-11-07 15:48:55 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by meh7an on 2026-11-07T15:48:55Z.


What

Summary. A vertex or index snapshot that a draw reuses and binds is copied once into device-local memory, and later draws bind that copy instead of the host snapshot, so vertex fetch stops reading host memory over PCIe. On an RTX 2080 Ti on Sonic Origins' S3K menu page, the 178 shadow-caster draws per present that have no pixel program drop from 2.6-3.1 ms to under about 0.5 ms, the draw class of [gputime] from 19.5-21.0 ms to 15.7-17.7 ms per present, and the traced GPU busy time per present from 40.9-41.0 ms to 33.5-37.1 ms. FPS does not change, because the frame is limited by the CPU. The mirrors count in the existing 1 GiB draw-input budget, with a 512 MiB cap on mirrors inside it, and APS5_NO_INPUT_MIRRORS=1 turns them off.

Recorder::ReusableDrawSnapshot takes a new mirrored flag, which CopyDrawInput sets unless the caller keeps the copy on the host (hostOnly). With it, a kept vertex or index snapshot found unchanged gets a device-local mirror at that first reuse:

  • the copy is recorded on the recorder's open batch with a transfer-to-vertex-input barrier, timed in a new input-mirror [gputime] class;
  • the batch keeps the host snapshot and the mirror until it completes, so dropping or evicting either cannot free it before the copy runs;
  • later reuses return the same mirror; the entry still holds the host snapshot, and a guest store to the range drops both, as it dropped the snapshot before.

Memory:

  • the mirror is allocated through Buffer::WithinDeviceLocalHeadroom, the check staging shadows already use (#14815: the memory type the constructor picks, the rounded size, the last eighth of the device-local budget left free), before anything is dropped or evicted; a refused allocation leaves every entry in place;
  • mirrors together stay within DrawInputMirrorBudget (512 MiB): a new mirror first drops the mirrors of the least recently used entries, whose host snapshots stay, so a budget filled by cold mirrors still serves hot buffers;
  • a mirror counts in the draw-input pool's bytes (DrawInputBudget, 1 GiB) next to its host snapshot, so the pool's least-recently-used eviction trims both together; making a mirror evicts older entries, never its own, to stay within the budget;
  • no mirror is made on a device with no host-only heap (integrated GPUs), where the host snapshot is already in device-local memory;
  • without VK_EXT_memory_budget there is no heap check, and a mirror is allocated like main's other device-local buffers.

Index copies of mesh draws stay on the host: a mesh draw never binds its index copy, since the mesh shader reads its indices from guest memory through the descriptor setMeshIndexBuffer writes, and the mesh restart table reads the copy on the CPU. BindsIndexCopy(state) (false for every mesh draw) decides it. Every kept vertex and index copy now has VK_BUFFER_USAGE_TRANSFER_SRC_BIT, since it is the source of its mirror. The other lookups, storage snapshots, zero-padded vertex copies (SnapshotUse::PaddedVertex) and the owned untracked copies of #13793 (ReusableOwnedDrawInput), are unchanged and never mirrored.

Recording the copy ends a render pass a draw left open. On S3K this happens about 0.2 to 0.5 times per present, because a snapshot is mirrored once and then reused.

Equivalence: the mirror is a byte copy of the host snapshot the draw would have bound. On main a kept vertex or index snapshot is rewritten in place only where #9875 fills a kept vertex window that a later draw reads below; that fill drops the snapshot's mirror (its pool and mirror bytes), and the same reuse mirrors the filled buffer. Otherwise only storage snapshots are refreshed, and a store drops a vertex or index snapshot together with its mirror, so the bound bytes are the same for every input.

Tests (tests/Recorder.cpp):

  • agc_draw_input_mirrors and agc_draw_input_mirrors_off (APS5_NO_INPUT_MIRRORS=1) run the same cases; each prints which mode it ran in, and the ctest requires that line;
  • with mirrors on: a reuse returns an unmapped mirror whose bytes, read back from the GPU, equal the guest's; the mirror is made once; the pool counts it; with the mirror budget full, a new mirror drops the least recently used one and that entry keeps its host snapshot; the pool's eviction drops the least recently used snapshot with its mirror; making a mirror evicts to stay within 1 GiB; a store drops a mirrored snapshot and its bytes; a recorder whose heap budget leaves 44,000 bytes of headroom refuses a 40,000-byte mirror (a 65,536-byte allocation) and evicts nothing; a device whose heaps are all device-local gets no mirror; a CPU-read lookup gets the host snapshot; BindsIndexCopy is false for a mesh draw; a mirrored vertex window that a later draw reads below gets a new mirror whose bytes, read back from the GPU, hold the filled range (vertexWindowMirrorTests, also in agc_driver_recorder);
  • with mirrors off: every reuse returns the host snapshot, no mirror bytes are counted, and the bytes still match;
  • drawInputReuseTests checks the reused copies' bytes in both modes, and runs in agc_driver_recorder too;
  • each of these fails on a deliberate mistake: mirror bytes left out of the pool (a draw input mirror is not counted in the draw input budget), the device-local check removed (a draw input was mirrored on a device whose memory is all device-local), the switch ignored (a draw input was mirrored with APS5_NO_INPUT_MIRRORS set), the old refusal at a full mirror budget (a full mirror budget did not drop the least recently used mirror for a new one), the old headroom check on the first device-local type with the unrounded size (a mirror whose allocation the device-local headroom refuses was made), mesh draws allowed a mirror (a mesh draw's index copy may be mirrored although the mesh shader reads its indices from guest memory), and the fill-in's mirror drop removed (filling in a mirrored vertex window kept its old mirror).

Related:

  • #9712 keeps draw snapshots in resizable BAR memory when the device exposes a BAR over a heap of at least 4 GiB, and in host memory otherwise; it keeps index copies in host memory. Without a resizable BAR (this 2080 Ti, and any device whose BAR window is 256 MiB) it leaves the snapshots in host memory, which this pull request covers. If both land, a snapshot already in BAR memory should not be mirrored again; the second to land adds that check.
  • #9875 (merged into main as 955f51545f) copies only the vertex records a draw fetches and fills a kept vertex window in place when a later draw reads below it. This pull request's merge of main drops the snapshot's mirror in that fill, puts hostOnly and mirrored after #9875's from and lowest parameters, and keeps the copies of #9875's window tests on the host, since those tests read the snapshot on the CPU.
  • #15570 keeps storage snapshots in resizable BAR memory and adds a shadow field to DrawSnapshot next to this pull request's mirror. Storage snapshots are never mirrored, so the two only meet in the struct and its initializer.
  • #14262 and #15792 add tests to the same line of tests/cmake/agc_driver_recorder_tests.cmake.

Tested

Windows 11 (10.0.26300), NVIDIA GeForce RTX 2080 Ti (driver 617.14, no resizable BAR), i9-9900K, 32 GB; Sonic Origins (PPSA05324, 02.002.000) on the S3K page of its menu, whose 3D background is the scene, at 3840x2160. The head is 1572e37e27 on a merge of main 17fec48224, and main below is 17fec48224.

  • Tests:
    • agc_draw_input_mirrors and agc_draw_input_mirrors_off pass, and each case listed above fails on its deliberate mistake.
    • Full ctest on the head: 5001 of 5001 pass. Three tests whose executable shows a Windows "Entry Point Not Found" dialog were left out of the run (guest_kernel_sys_threads_main, guest_kernel_sys_threads_main_patched, net_ipv6only_patched).
    • After #9875 merged, the branch merged main 8b96d9879d (head 367908bfbb). On it: the focused tests (agc_driver_recorder, agc_draw_snapshot_cap, agc_draw_input_mirrors, agc_draw_input_mirrors_off, agc_draw_inputs_in_place, agc_draw_inputs_copied, agc_draw_input_reuse) pass; the validation set below plus agc_draw_input_reuse passes 77 of 77, with no VUID- error, no missing-layer line, and the same 25 warnings; the full ctest passes 5490 of 5493 with the same three left out. The three failures come from main and not from this pull request: prx_thread_local_destructors and test_thread_local_destructors report the static thread_local shared_ptr in ResourceMaterializer::ResolveImageTablesShared (#18827; core/shader/recompiler is identical to main), and agc_driver_upload_cache_read_only_flush does not build with MinGW (setenv is not declared in UploadCacheReadOnlyFlush.cpp). The measurements below are on the earlier base.
    • Khronos validation layer, with VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, ANYPS5_NO_SHADER_CACHE=1, ANYPS5_REQUIRE_VULKAN=1 and ctest -V, on the draw, vertex, index, mesh and snapshot tests (agc_driver_draw_*, agc_driver_vertex_*, agc_driver_rect_list_*, agc_driver_mesh_*, agc_driver_graphics, agc_driver_zero_stride_vertex_fetch, agc_draw_inputs_*, agc_draw_snapshot_cap, agc_driver_recorder, plus the two new tests on the head): 70 of 70 pass on main and 72 of 72 on the head. Neither log has a VUID- error or a was not found but was requested by env var VK_INSTANCE_LAYERS line, and both have the same 25 warnings (24 Undefined-Value-ShaderOutputNotConsumed-DynamicRendering, 1 Undefined-Value-ShaderOutputNotConsumed).
  • [gputime] (APS5_PROFILE_GPU=1 APS5_PROFILE_GPU_DRAWS=1, warm shader caches, boots alternating main and this pull request, means per present over the steady 10 s blocks on the page):
Boot Build draw class All ranges storage-upload input-mirror FPS
1 main 19.52 ms 35.44 ms 3.46 ms 14.61
2 this PR 17.71 ms 35.70 ms 4.01 ms 0.5 copies, 0.01 ms 13.57
3 main 20.99 ms 37.79 ms 3.74 ms 13.99
4 this PR 15.65 ms 31.48 ms 3.45 ms 0.2 copies, 0.00 ms 14.60
  • The draw variant without a pixel program that runs 178 times per present costs 459 and 370 ms per 10 s block on main (2.6-3.1 ms per present); with this pull request it drops out of the programs each block lists in both boots (the last listed costs about 80 ms per block, 0.5 ms per present).
  • Boots 2 and 3 ran while another program used the GPU: their transfer classes (storage-upload, copy, shadow-publish) are 10-16% slower than in boots 1 and 4, so 1 against 4 and 3 against 2 are the comparable pairs.
  • Performance, captured as the Performance report form describes: APS5_TRACE_SECONDS=200:15 and no other APS5_TRACE_* or APS5_PROFILE_* switch, warm shader caches, two rounds alternating main and this pull request in one session, standard output not redirected. A first set of these rounds ran beside the same outside GPU load and is not shown; its second main capture lost its GPU timing.
Run Build Commit Frame p50 / p90 / p99 (ms) GPU busy per present (ms)
1 main 17fec48224 73.0 / 79.4 / 86.0 41.0
2 this PR 1572e37e27 71.5 / 75.8 / 80.0 33.5
3 main 17fec48224 71.8 / 76.3 / 80.6 40.9
4 this PR 1572e37e27 72.7 / 77.4 / 80.8 37.1
  • The frame does not change: GPU busy is about half of it. In 60 s sampler windows on the page from the previous round (main 956775078d against 571e9d704a, APS5_SAMPLE_WORKER, APS5_SAMPLE_COMMITTER), the draw committer was in commitDraw 77.3% and 78.6% of the time, and the queue worker waited in DrawPipeline::Enqueue 17.8% and 18.9% of the time. The frame is limited by the CPU here, so a GPU saving does not reach it; worker_busy_pct (97%) counts the worker's wait in Enqueue as busy.
  • The traces drop events once the queue worker's buffer fills (trace_dropped), as every S3K capture at 200:15 does; the summary lines are still complete.

Summary lines, in run order:

{"commit":"17fec482248b","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":4488,"ms":15051.041},"presents":205,"frame_ms":{"p50":72.995,"p90":79.370,"p99":85.967,"max":91.476},"gpu_busy_ms_per_present":41.019,"worker_busy_pct":{"queue worker 0x0":96.869},"top_phases_ms_per_frame":{"Driver.Packet":69.021,"Graphics.Draw":51.888,"Driver.Packet.draw":51.497,"Driver.Draw":50.494,"Graphics.Draw.draw_and_resource_release":41.254,"Driver.Draw.shader_compile_and_link":24.675,"Shader.DrawStage":15.987,"Driver.Draw.draw_enqueued":15.023},"owned_draw_counts":{"OwnedDraw.evicted_other":18521},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":5.729,"events_lost":416828,"totals_full":false},"draw committer":{"events_full_after_s":12.173,"events_lost":62391,"totals_full":false}},"trace":"aps5-trace-17fec482248b-28412.json.gz"}
{"commit":"1572e37e2756","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":4438,"ms":15049.765},"presents":209,"frame_ms":{"p50":71.525,"p90":75.820,"p99":79.994,"max":88.074},"gpu_busy_ms_per_present":33.503,"worker_busy_pct":{"queue worker 0x0":96.958},"top_phases_ms_per_frame":{"Driver.Packet":67.757,"Graphics.Draw":50.890,"Driver.Packet.draw":50.606,"Driver.Draw":49.662,"Graphics.Draw.draw_and_resource_release":40.679,"Driver.Draw.shader_compile_and_link":23.806,"Shader.DrawStage":15.288,"Driver.Draw.draw_enqueued":14.782},"owned_draw_counts":{"OwnedDraw.evicted_other":19725},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":5.908,"events_lost":398955,"totals_full":false},"draw committer":{"events_full_after_s":12.490,"events_lost":55117,"totals_full":false}},"trace":"aps5-trace-1572e37e2756-16428.json.gz"}
{"commit":"17fec482248b","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":4408,"ms":15057.013},"presents":208,"frame_ms":{"p50":71.849,"p90":76.274,"p99":80.620,"max":81.169},"gpu_busy_ms_per_present":40.933,"worker_busy_pct":{"queue worker 0x0":96.947},"top_phases_ms_per_frame":{"Driver.Packet":68.096,"Graphics.Draw":51.083,"Driver.Packet.draw":50.845,"Driver.Draw":49.821,"Graphics.Draw.draw_and_resource_release":40.722,"Driver.Draw.shader_compile_and_link":24.434,"Shader.DrawStage":15.866,"Driver.Draw.draw_enqueued":14.646},"owned_draw_counts":{"OwnedDraw.evicted_other":19221},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":5.815,"events_lost":415716,"totals_full":false},"draw committer":{"events_full_after_s":12.157,"events_lost":62265,"totals_full":false}},"trace":"aps5-trace-17fec482248b-37160.json.gz"}
{"commit":"1572e37e2756","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":4443,"ms":15036.657},"presents":205,"frame_ms":{"p50":72.748,"p90":77.353,"p99":80.758,"max":82.925},"gpu_busy_ms_per_present":37.055,"worker_busy_pct":{"queue worker 0x0":96.946},"top_phases_ms_per_frame":{"Driver.Packet":69.046,"Graphics.Draw":51.893,"Driver.Packet.draw":51.415,"Driver.Draw":50.455,"Graphics.Draw.draw_and_resource_release":41.382,"Driver.Draw.shader_compile_and_link":24.397,"Shader.DrawStage":15.765,"Driver.Draw.draw_enqueued":14.815},"owned_draw_counts":{"OwnedDraw.evicted_other":18661},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":5.859,"events_lost":411825,"totals_full":false},"draw committer":{"events_full_after_s":12.192,"events_lost":62368,"totals_full":false}},"trace":"aps5-trace-1572e37e2756-25716.json.gz"}
tools/trace_digest.py, run 1, main

seconds 200:15 from present 4488: 205 presents, frame p50 73.0 / p90 79.4 / p99 86.0 / max 91.5 ms, GPU busy 41.0 ms per present
NVIDIA GeForce RTX 2080 Ti, NVIDIA 617.14, Windows 10.0.26300, 3840x2160, commit 17fec48224, dropped: yes

{"commit":"17fec482248b","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":4488,"ms":15051.041},"presents":205,"frame_ms":{"p50":72.995,"p90":79.37,"p99":85.967,"max":91.476},"gpu_busy_ms_per_present":41.019,"worker_busy_pct":{"queue worker 0x0":96.869},"top_phases_ms_per_frame":{"Driver.Packet":69.021,"Graphics.Draw":51.888,"Driver.Packet.draw":51.497,"Driver.Draw":50.494,"Graphics.Draw.draw_and_resource_release":41.254,"Driver.Draw.shader_compile_and_link":24.675,"Shader.DrawStage":15.987,"Driver.Draw.draw_enqueued":15.023},"owned_draw_counts":{"OwnedDraw.evicted_other":18521},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":5.729,"events_lost":416828,"totals_full":false},"draw committer":{"events_full_after_s":12.173,"events_lost":62391,"totals_full":false}},"trace":"aps5-trace-17fec482248b-28412.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: 416828 events lost; buffer full at 5728.5 ms
  • draw committer: 62391 events lost; buffer full at 12172.7 ms

Slowest frames (largest slices inside each, inclusive)

  • present 4531: 91.5 ms at 3338 ms: Driver.Packet (queue worker 0x0) 68.7, Graphics.Draw (draw committer) 57.5, Driver.Packet.draw (queue worker 0x0) 57.3, Driver.Draw (queue worker 0x0) 55.7
  • present 4516: 88.0 ms at 2140 ms: Driver.Packet (queue worker 0x0) 62.3, Driver.Packet.draw (queue worker 0x0) 49.9, Graphics.Draw (draw committer) 49.7, Driver.Draw (queue worker 0x0) 48.5
  • present 4527: 86.0 ms at 3010 ms: Driver.Packet (queue worker 0x0) 59.0, Driver.Packet.draw (queue worker 0x0) 46.9, Graphics.Draw (draw committer) 46.3, Driver.Draw (queue worker 0x0) 45.5
  • present 4530: 83.9 ms at 3254 ms: Driver.Packet (queue worker 0x0) 55.8, batch (gpu) 48.3, Graphics.Draw (draw committer) 46.1, Driver.Packet.draw (queue worker 0x0) 43.1
  • present 4633: 82.8 ms at 10792 ms: Graphics.Draw (draw committer) 45.3, batch (gpu) 44.5, Graphics.Draw.draw_and_resource_release (draw committer) 33.7, VideoOut.Flip (presenter) 14.3

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

  • present 4531: 91.5 ms at 3338 ms, persistence 25.8 ms
  • present 4633: 82.8 ms at 10792 ms, persistence 17.1 ms
  • present 4668: 81.1 ms at 13310 ms, persistence 14.4 ms
  • present 4557: 82.2 ms at 5311 ms, persistence 14.2 ms
  • present 4543: 82.4 ms at 4252 ms, persistence 13.3 ms
  • present 4590: 78.9 ms at 7657 ms, persistence 12.5 ms
  • present 4516: 88.0 ms at 2140 ms, persistence 12.5 ms
  • present 4616: 79.9 ms at 9519 ms, persistence 11.7 ms
  • present 4573: 77.3 ms at 6450 ms, persistence 9.9 ms
  • present 4627: 82.4 ms at 10335 ms, persistence 9.8 ms

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
title 0.1 (0 %) 11.9 (16 %) 61.5 0.5 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
queue worker 0x0 18.7 (26 %) 0.0 (0 %) 54.7 44.9 Driver.Packet 18.0, Driver.EndSubmission 0.8
draw committer 33.1 (45 %) 0.2 (0 %) 40.2 29.7 Graphics.Draw 30.5, Recorder.Submit 1.9
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.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
presenter 1.1 (2 %) 11.2 (15 %) 61.1 0.1 VideoOut.Flip 12.2, Driver.Present 0.1
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.1 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.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.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 73.4 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
gpu 40.9 (56 %) 0.0 (0 %) 32.5 0.0 batch 40.9

Largest slices (ms per frame, inclusive, all threads): batch 40.9, Graphics.Draw 30.5, Graphics.Draw.draw_and_resource_release 23.0, Driver.Packet 18.0, Driver.Packet.draw 14.0, Driver.Draw 13.6, VideoOut.Flip 12.2, Driver.Present 12.0, VideoOut.Flip.present 11.9, Recorder.WaitSerial 11.8

Longest waits

  • Recorder.WaitSerial (title) 20.8 ms at 614 ms, present 4496
  • Driver.Present.render_fence_wait (presenter) 20.2 ms at 614 ms, present 4496
  • Recorder.WaitSerial (title) 19.8 ms at 691 ms, present 4496
  • Recorder.WaitSerial (title) 19.6 ms at 1384 ms, present 4505
  • Driver.Present.render_fence_wait (presenter) 18.6 ms at 692 ms, present 4497
  • Recorder.WaitSerial (title) 18.5 ms at 1148 ms, present 4502
  • Driver.Present.render_fence_wait (presenter) 18.4 ms at 1385 ms, present 4506
  • Recorder.WaitSerial (title) 17.9 ms at 1529 ms, present 4507
  • Recorder.WaitSerial (title) 17.8 ms at 11026 ms, present 4635
  • Driver.Present.render_fence_wait (presenter) 17.6 ms at 1149 ms, present 4503

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

  • batch 1280: 13.6 ms at 1596 ms, present 4508: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 4.2, Driver.Packet.dispatch (queue worker 0x0) 3.1, Driver.Dispatch (queue worker 0x0) 2.1, Driver.Packet.draw (queue worker 0x0) 0.9
  • batch 1771: 12.6 ms at 2215 ms, present 4516: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.4, Graphics.Draw.draw_and_resource_release (draw committer) 0.4, Resources.Complete (draw committer) 0.1
  • batch 8459: 11.6 ms at 10243 ms, present 4625: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.4, Graphics.Draw.draw_and_resource_release (draw committer) 0.4, Resources.Complete (draw committer) 0.1
  • batch 459: 11.1 ms at 574 ms, present 4495: GPU no ranges; recorded by Graphics.Draw (draw committer) 1.4, Graphics.Draw.draw_and_resource_release (draw committer) 1.4, Recorder.Submit (draw committer) 0.1, Recorder.Reap (draw committer) 0.0
  • batch 4128: 11.1 ms at 5147 ms, present 4554: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 11.2, Driver.Packet.draw (queue worker 0x0) 5.4, Driver.Draw (queue worker 0x0) 5.3, Driver.Packet.dispatch (queue worker 0x0) 4.0
tools/trace_digest.py, run 2, this pull request

seconds 200:15 from present 4438: 209 presents, frame p50 71.5 / p90 75.8 / p99 80.0 / max 88.1 ms, GPU busy 33.5 ms per present
NVIDIA GeForce RTX 2080 Ti, NVIDIA 617.14, Windows 10.0.26300, 3840x2160, commit 1572e37e27, dropped: yes

{"commit":"1572e37e2756","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":4438,"ms":15049.765},"presents":209,"frame_ms":{"p50":71.525,"p90":75.82,"p99":79.994,"max":88.074},"gpu_busy_ms_per_present":33.503,"worker_busy_pct":{"queue worker 0x0":96.958},"top_phases_ms_per_frame":{"Driver.Packet":67.757,"Graphics.Draw":50.89,"Driver.Packet.draw":50.606,"Driver.Draw":49.662,"Graphics.Draw.draw_and_resource_release":40.679,"Driver.Draw.shader_compile_and_link":23.806,"Shader.DrawStage":15.288,"Driver.Draw.draw_enqueued":14.782},"owned_draw_counts":{"OwnedDraw.evicted_other":19725},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":5.908,"events_lost":398955,"totals_full":false},"draw committer":{"events_full_after_s":12.49,"events_lost":55117,"totals_full":false}},"trace":"aps5-trace-1572e37e2756-16428.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: 398955 events lost; buffer full at 5908.1 ms
  • draw committer: 55117 events lost; buffer full at 12490.2 ms

Slowest frames (largest slices inside each, inclusive)

  • present 4512: 88.1 ms at 5360 ms: Driver.Packet (queue worker 0x0) 59.4, Driver.Packet.draw (queue worker 0x0) 49.7, Driver.Draw (queue worker 0x0) 48.9, batch (gpu) 41.0
  • present 4552: 82.6 ms at 8292 ms: Graphics.Draw (draw committer) 46.1, batch (gpu) 34.4, Graphics.Draw.draw_and_resource_release (draw committer) 31.9, VideoOut.Flip (presenter) 8.7
  • present 4541: 80.0 ms at 7507 ms: Graphics.Draw (draw committer) 47.4, batch (gpu) 31.6, Graphics.Draw.draw_and_resource_release (draw committer) 29.1, VideoOut.Flip (presenter) 9.2
  • present 4518: 78.9 ms at 5806 ms: Driver.Packet (queue worker 0x0) 53.7, Driver.Packet.draw (queue worker 0x0) 42.6, Driver.Draw (queue worker 0x0) 41.6, Graphics.Draw (draw committer) 37.0
  • present 4525: 78.2 ms at 6330 ms: Graphics.Draw (draw committer) 36.5, batch (gpu) 35.1, Graphics.Draw.draw_and_resource_release (draw committer) 29.4, VideoOut.Flip (presenter) 10.8

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

  • present 4512: 88.1 ms at 5360 ms, persistence 21.3 ms
  • present 4552: 82.6 ms at 8292 ms, persistence 15.8 ms
  • present 4541: 80.0 ms at 7507 ms, persistence 11.7 ms
  • present 4605: 77.5 ms at 12079 ms, persistence 9.9 ms
  • present 4518: 78.9 ms at 5806 ms, persistence 8.9 ms
  • present 4481: 77.8 ms at 3114 ms, persistence 8.9 ms
  • present 4443: 76.7 ms at 355 ms, persistence 8.6 ms
  • present 4572: 76.1 ms at 9730 ms, persistence 8.3 ms
  • present 4588: 76.4 ms at 10874 ms, persistence 8.0 ms
  • present 4458: 76.8 ms at 1439 ms, persistence 7.4 ms

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
title 0.1 (0 %) 9.9 (14 %) 62.0 0.5 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
queue worker 0x0 18.3 (25 %) 0.0 (0 %) 53.8 47.8 Driver.Packet 17.5, Driver.EndSubmission 0.8
draw committer 32.4 (45 %) 0.2 (0 %) 39.4 30.6 Graphics.Draw 29.8, Recorder.Submit 1.9
title 0.0 (0 %) 0.0 (0 %) 72.0 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 72.0 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 72.0 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 72.0 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
presenter 1.0 (1 %) 9.2 (13 %) 61.8 0.1 VideoOut.Flip 10.2, Driver.Present 0.1
title 0.0 (0 %) 0.0 (0 %) 72.0 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 72.0 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 72.0 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 72.0 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 72.0 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 72.0 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 72.0 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 72.0 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
gpu 33.5 (46 %) 0.0 (0 %) 38.6 0.0 batch 33.5

Largest slices (ms per frame, inclusive, all threads): batch 33.5, Graphics.Draw 29.8, Graphics.Draw.draw_and_resource_release 23.3, Driver.Packet 17.5, Driver.Packet.draw 13.5, Driver.Draw 13.2, VideoOut.Flip 10.2, Driver.Present 10.0, VideoOut.Flip.present 10.0, Recorder.WaitSerial 9.9

Longest waits

  • Recorder.WaitSerial (title) 14.1 ms at 864 ms, present 4449
  • Recorder.WaitSerial (title) 13.5 ms at 2024 ms, present 4465
  • Recorder.WaitSerial (title) 13.4 ms at 2096 ms, present 4466
  • Recorder.WaitSerial (title) 13.2 ms at 3626 ms, present 4487
  • Recorder.WaitSerial (title) 13.2 ms at 2755 ms, present 4476
  • Recorder.WaitSerial (title) 13.0 ms at 3408 ms, present 4485
  • Recorder.WaitSerial (title) 12.9 ms at 3555 ms, present 4486
  • Recorder.WaitSerial (title) 12.9 ms at 2684 ms, present 4475
  • Recorder.WaitSerial (title) 12.8 ms at 2611 ms, present 4473
  • Recorder.WaitSerial (title) 12.7 ms at 793 ms, present 4448

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

  • batch 4559: 12.8 ms at 5396 ms, present 4512: GPU no ranges; recorded by Graphics.Draw (draw committer) 1.6, Graphics.Draw.draw_and_resource_release (draw committer) 1.5, Recorder.Submit (draw committer) 0.1, Graphics.Draw.validate (draw committer) 0.0
  • batch 535: 11.9 ms at 642 ms, present 4446: 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 1026: 11.5 ms at 1211 ms, present 4454: 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 9819: 10.0 ms at 11641 ms, present 4598: 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 4948: 9.6 ms at 5874 ms, present 4518: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 3.2, Driver.Packet.dispatch (queue worker 0x0) 2.4, Driver.Dispatch (queue worker 0x0) 1.6, Resources.Prepare (queue worker 0x0) 0.7
tools/trace_digest.py, run 3, main

seconds 200:15 from present 4408: 208 presents, frame p50 71.8 / p90 76.3 / p99 80.6 / max 81.2 ms, GPU busy 40.9 ms per present
NVIDIA GeForce RTX 2080 Ti, NVIDIA 617.14, Windows 10.0.26300, 3840x2160, commit 17fec48224, dropped: yes

{"commit":"17fec482248b","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":4408,"ms":15057.013},"presents":208,"frame_ms":{"p50":71.849,"p90":76.274,"p99":80.62,"max":81.169},"gpu_busy_ms_per_present":40.933,"worker_busy_pct":{"queue worker 0x0":96.947},"top_phases_ms_per_frame":{"Driver.Packet":68.096,"Graphics.Draw":51.083,"Driver.Packet.draw":50.845,"Driver.Draw":49.821,"Graphics.Draw.draw_and_resource_release":40.722,"Driver.Draw.shader_compile_and_link":24.434,"Shader.DrawStage":15.866,"Driver.Draw.draw_enqueued":14.646},"owned_draw_counts":{"OwnedDraw.evicted_other":19221},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":5.815,"events_lost":415716,"totals_full":false},"draw committer":{"events_full_after_s":12.157,"events_lost":62265,"totals_full":false}},"trace":"aps5-trace-17fec482248b-37160.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: 415716 events lost; buffer full at 5815.4 ms
  • draw committer: 62265 events lost; buffer full at 12157.0 ms

Slowest frames (largest slices inside each, inclusive)

  • present 4562: 81.2 ms at 11154 ms: Graphics.Draw (draw committer) 48.8, batch (gpu) 38.2, Graphics.Draw.draw_and_resource_release (draw committer) 30.3, VideoOut.Flip (presenter) 9.9
  • present 4466: 81.0 ms at 4193 ms: Driver.Packet (queue worker 0x0) 57.7, Graphics.Draw (draw committer) 50.0, Driver.Packet.draw (queue worker 0x0) 48.0, Driver.Draw (queue worker 0x0) 46.9
  • present 4554: 80.6 ms at 10577 ms: Graphics.Draw (draw committer) 50.0, batch (gpu) 42.3, Graphics.Draw.draw_and_resource_release (draw committer) 31.1, VideoOut.Flip (presenter) 12.5
  • present 4487: 80.3 ms at 5717 ms: Driver.Packet (queue worker 0x0) 55.4, Driver.Packet.draw (queue worker 0x0) 44.1, batch (gpu) 42.9, Driver.Draw (queue worker 0x0) 42.5
  • present 4492: 79.9 ms at 6087 ms: Graphics.Draw (draw committer) 48.8, batch (gpu) 40.8, Graphics.Draw.draw_and_resource_release (draw committer) 31.9, VideoOut.Flip (presenter) 12.0

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

  • present 4562: 81.2 ms at 11154 ms, persistence 14.3 ms
  • present 4466: 81.0 ms at 4193 ms, persistence 12.3 ms
  • present 4554: 80.6 ms at 10577 ms, persistence 11.6 ms
  • present 4487: 80.3 ms at 5717 ms, persistence 11.2 ms
  • present 4612: 79.3 ms at 14761 ms, persistence 10.9 ms
  • present 4492: 79.9 ms at 6087 ms, persistence 9.9 ms
  • present 4542: 78.8 ms at 9714 ms, persistence 9.4 ms
  • present 4409: 76.3 ms at 75 ms, persistence 9.4 ms
  • present 4505: 78.4 ms at 7041 ms, persistence 9.2 ms
  • present 4570: 78.4 ms at 11729 ms, persistence 9.1 ms

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
title 0.1 (0 %) 12.3 (17 %) 60.0 0.4 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
queue worker 0x0 18.1 (25 %) 0.0 (0 %) 54.3 47.7 Driver.Packet 17.3, Driver.EndSubmission 0.8
draw committer 31.9 (44 %) 0.2 (0 %) 40.3 29.5 Graphics.Draw 29.5, Recorder.Submit 1.7
title 0.0 (0 %) 0.0 (0 %) 72.4 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 72.4 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 72.4 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 72.4 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
presenter 1.0 (1 %) 11.6 (16 %) 59.8 0.1 VideoOut.Flip 12.5, Driver.Present 0.1
title 0.0 (0 %) 0.0 (0 %) 72.4 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 72.4 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 72.4 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 72.4 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 72.4 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 72.4 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 72.4 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 72.4 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
gpu 40.9 (56 %) 0.0 (0 %) 31.5 0.0 batch 40.9

Largest slices (ms per frame, inclusive, all threads): batch 40.9, Graphics.Draw 29.5, Graphics.Draw.draw_and_resource_release 22.9, Driver.Packet 17.3, Driver.Packet.draw 13.4, Driver.Draw 13.0, VideoOut.Flip 12.5, Driver.Present 12.4, VideoOut.Flip.present 12.3, Recorder.WaitSerial 12.3

Longest waits

  • Recorder.WaitSerial (title) 14.3 ms at 8922 ms, present 4530
  • Recorder.WaitSerial (title) 14.2 ms at 12305 ms, present 4577
  • Recorder.WaitSerial (title) 14.1 ms at 8131 ms, present 4520
  • Recorder.WaitSerial (title) 14.1 ms at 3402 ms, present 4454
  • Recorder.WaitSerial (title) 14.1 ms at 1586 ms, present 4429
  • Recorder.WaitSerial (title) 14.1 ms at 1873 ms, present 4433
  • Recorder.WaitSerial (title) 14.0 ms at 12884 ms, present 4585
  • Recorder.WaitSerial (title) 14.0 ms at 1298 ms, present 4425
  • Recorder.WaitSerial (title) 14.0 ms at 13826 ms, present 4598
  • Recorder.WaitSerial (title) 13.9 ms at 8419 ms, present 4523

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

  • batch 11559: 12.1 ms at 13670 ms, present 4596: GPU no ranges; recorded by no CPU slices
  • batch 5434: 11.9 ms at 6444 ms, present 4496: 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 1452: 11.8 ms at 1716 ms, present 4431: GPU no ranges; recorded by Vulkan.DrawFromRecipe (draw committer) 0.3, Graphics.DrawWithRecipe (draw committer) 0.3, Graphics.DrawWithRecipe.draw_and_resource_release (draw committer) 0.3, Graphics.Draw (draw committer) 0.1
  • batch 12539: 11.8 ms at 14829 ms, present 4612: GPU no ranges; recorded by no CPU slices
  • batch 6912: 11.4 ms at 8190 ms, present 4520: 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
tools/trace_digest.py, run 4, this pull request

seconds 200:15 from present 4443: 205 presents, frame p50 72.7 / p90 77.4 / p99 80.8 / max 82.9 ms, GPU busy 37.1 ms per present
NVIDIA GeForce RTX 2080 Ti, NVIDIA 617.14, Windows 10.0.26300, 3840x2160, commit 1572e37e27, dropped: yes

{"commit":"1572e37e2756","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":4443,"ms":15036.657},"presents":205,"frame_ms":{"p50":72.748,"p90":77.353,"p99":80.758,"max":82.925},"gpu_busy_ms_per_present":37.055,"worker_busy_pct":{"queue worker 0x0":96.946},"top_phases_ms_per_frame":{"Driver.Packet":69.046,"Graphics.Draw":51.893,"Driver.Packet.draw":51.415,"Driver.Draw":50.455,"Graphics.Draw.draw_and_resource_release":41.382,"Driver.Draw.shader_compile_and_link":24.397,"Shader.DrawStage":15.765,"Driver.Draw.draw_enqueued":14.815},"owned_draw_counts":{"OwnedDraw.evicted_other":18661},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":5.859,"events_lost":411825,"totals_full":false},"draw committer":{"events_full_after_s":12.192,"events_lost":62368,"totals_full":false}},"trace":"aps5-trace-1572e37e2756-25716.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: 411825 events lost; buffer full at 5859.0 ms
  • draw committer: 62368 events lost; buffer full at 12192.3 ms

Slowest frames (largest slices inside each, inclusive)

  • present 4547: 82.9 ms at 7646 ms: Graphics.Draw (draw committer) 47.5, batch (gpu) 37.4, Graphics.Draw.draw_and_resource_release (draw committer) 32.3, VideoOut.Flip (presenter) 10.2
  • present 4462: 81.5 ms at 1410 ms: Driver.Packet (queue worker 0x0) 57.0, Graphics.Draw (draw committer) 48.7, Driver.Packet.draw (queue worker 0x0) 45.2, Driver.Draw (queue worker 0x0) 44.1
  • present 4568: 80.8 ms at 9176 ms: Graphics.Draw (draw committer) 39.4, batch (gpu) 36.6, Graphics.Draw.draw_and_resource_release (draw committer) 29.7, VideoOut.Flip (presenter) 9.3
  • present 4449: 80.1 ms at 441 ms: Driver.Packet (queue worker 0x0) 52.6, Graphics.Draw (draw committer) 40.9, Driver.Packet.draw (queue worker 0x0) 40.7, Driver.Draw (queue worker 0x0) 39.8
  • present 4553: 80.0 ms at 8084 ms: Graphics.Draw (draw committer) 45.6, batch (gpu) 31.8, Graphics.Draw.draw_and_resource_release (draw committer) 27.7, VideoOut.Flip (presenter) 9.0

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

  • present 4547: 82.9 ms at 7646 ms, persistence 15.4 ms
  • present 4568: 80.8 ms at 9176 ms, persistence 13.2 ms
  • present 4462: 81.5 ms at 1410 ms, persistence 12.7 ms
  • present 4553: 80.0 ms at 8084 ms, persistence 11.5 ms
  • present 4449: 80.1 ms at 441 ms, persistence 10.4 ms
  • present 4486: 79.5 ms at 3162 ms, persistence 9.9 ms
  • present 4636: 78.5 ms at 14160 ms, persistence 9.4 ms
  • present 4609: 79.1 ms at 12185 ms, persistence 9.2 ms
  • present 4622: 78.9 ms at 13137 ms, persistence 8.7 ms
  • present 4517: 78.7 ms at 5432 ms, persistence 8.5 ms

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
title 0.1 (0 %) 11.9 (16 %) 61.4 0.5 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
queue worker 0x0 18.5 (25 %) 0.0 (0 %) 54.8 47.7 Driver.Packet 17.8, Driver.EndSubmission 0.8
draw committer 32.8 (45 %) 0.2 (0 %) 40.4 29.9 Graphics.Draw 30.3, Recorder.Submit 1.8
title 0.0 (0 %) 0.0 (0 %) 73.3 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 73.3 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 73.3 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 73.3 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
presenter 1.0 (1 %) 11.2 (15 %) 61.2 0.1 VideoOut.Flip 12.1, Driver.Present 0.1
title 0.0 (0 %) 0.0 (0 %) 73.3 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 73.3 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 73.3 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 73.3 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 73.3 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 73.3 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 73.3 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 73.3 0.1 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
gpu 36.8 (50 %) 0.0 (0 %) 36.5 0.0 batch 36.8

Largest slices (ms per frame, inclusive, all threads): batch 36.8, Graphics.Draw 30.3, Graphics.Draw.draw_and_resource_release 23.3, Driver.Packet 17.8, Driver.Packet.draw 13.7, Driver.Draw 13.4, VideoOut.Flip 12.1, Driver.Present 12.0, VideoOut.Flip.present 11.9, Recorder.WaitSerial 11.9

Longest waits

  • Recorder.WaitSerial (title) 14.1 ms at 14239 ms, present 4636
  • Recorder.WaitSerial (title) 13.9 ms at 12264 ms, present 4609
  • Recorder.WaitSerial (title) 13.7 ms at 14746 ms, present 4643
  • Recorder.WaitSerial (title) 13.6 ms at 11086 ms, present 4594
  • Recorder.WaitSerial (title) 13.6 ms at 11743 ms, present 4602
  • Recorder.WaitSerial (title) 13.5 ms at 5288 ms, present 4514
  • Driver.Present.render_fence_wait (presenter) 13.5 ms at 14239 ms, present 4637
  • Recorder.WaitSerial (title) 13.5 ms at 13943 ms, present 4632
  • Recorder.WaitSerial (title) 13.5 ms at 8593 ms, present 4559
  • Recorder.WaitSerial (title) 13.5 ms at 6317 ms, present 4528

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

  • batch 6178: 11.6 ms at 7416 ms, present 4543: 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 1397: 11.5 ms at 1696 ms, present 4465: 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 849: 11.4 ms at 1032 ms, present 4456: GPU no ranges; recorded by Vulkan.DrawFromRecipe (draw committer) 0.3, Graphics.DrawWithRecipe (draw committer) 0.3, Graphics.DrawWithRecipe.draw_and_resource_release (draw committer) 0.3, Graphics.Draw (draw committer) 0.2
  • batch 10270: 10.8 ms at 12327 ms, present 4610: GPU no ranges; recorded by no CPU slices
  • batch 7269: 10.3 ms at 8725 ms, present 4561: GPU no ranges; recorded by no CPU slices

The two traces of each round are attached: m15-review-s3k-round1-traces.zip (runs 1 and 2) and m15-review-s3k-round2-traces.zip (runs 3 and 4).

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:5203277849 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/16760). Originally posted by [meh7an](https://github.com/meh7an) on 2026-11-07T15:48:55Z. --- ### What **Summary.** A vertex or index snapshot that a draw reuses and binds is copied once into device-local memory, and later draws bind that copy instead of the host snapshot, so vertex fetch stops reading host memory over PCIe. On an RTX 2080 Ti on Sonic Origins' S3K menu page, the 178 shadow-caster draws per present that have no pixel program drop from 2.6-3.1 ms to under about 0.5 ms, the `draw` class of `[gputime]` from 19.5-21.0 ms to 15.7-17.7 ms per present, and the traced GPU busy time per present from 40.9-41.0 ms to 33.5-37.1 ms. FPS does not change, because the frame is limited by the CPU. The mirrors count in the existing 1 GiB draw-input budget, with a 512 MiB cap on mirrors inside it, and `APS5_NO_INPUT_MIRRORS=1` turns them off. `Recorder::ReusableDrawSnapshot` takes a new `mirrored` flag, which `CopyDrawInput` sets unless the caller keeps the copy on the host (`hostOnly`). With it, a kept vertex or index snapshot found unchanged gets a device-local mirror at that first reuse: - the copy is recorded on the recorder's open batch with a transfer-to-vertex-input barrier, timed in a new `input-mirror` `[gputime]` class; - the batch keeps the host snapshot and the mirror until it completes, so dropping or evicting either cannot free it before the copy runs; - later reuses return the same mirror; the entry still holds the host snapshot, and a guest store to the range drops both, as it dropped the snapshot before. Memory: - the mirror is allocated through `Buffer::WithinDeviceLocalHeadroom`, the check staging shadows already use (#14815: the memory type the constructor picks, the rounded size, the last eighth of the device-local budget left free), before anything is dropped or evicted; a refused allocation leaves every entry in place; - mirrors together stay within `DrawInputMirrorBudget` (512 MiB): a new mirror first drops the mirrors of the least recently used entries, whose host snapshots stay, so a budget filled by cold mirrors still serves hot buffers; - a mirror counts in the draw-input pool's bytes (`DrawInputBudget`, 1 GiB) next to its host snapshot, so the pool's least-recently-used eviction trims both together; making a mirror evicts older entries, never its own, to stay within the budget; - no mirror is made on a device with no host-only heap (integrated GPUs), where the host snapshot is already in device-local memory; - without `VK_EXT_memory_budget` there is no heap check, and a mirror is allocated like `main`'s other device-local buffers. Index copies of mesh draws stay on the host: a mesh draw never binds its index copy, since the mesh shader reads its indices from guest memory through the descriptor `setMeshIndexBuffer` writes, and the mesh restart table reads the copy on the CPU. `BindsIndexCopy(state)` (false for every mesh draw) decides it. Every kept vertex and index copy now has `VK_BUFFER_USAGE_TRANSFER_SRC_BIT`, since it is the source of its mirror. The other lookups, storage snapshots, zero-padded vertex copies (`SnapshotUse::PaddedVertex`) and the owned untracked copies of #13793 (`ReusableOwnedDrawInput`), are unchanged and never mirrored. Recording the copy ends a render pass a draw left open. On S3K this happens about 0.2 to 0.5 times per present, because a snapshot is mirrored once and then reused. Equivalence: the mirror is a byte copy of the host snapshot the draw would have bound. On `main` a kept vertex or index snapshot is rewritten in place only where #9875 fills a kept vertex window that a later draw reads below; that fill drops the snapshot's mirror (its pool and mirror bytes), and the same reuse mirrors the filled buffer. Otherwise only storage snapshots are refreshed, and a store drops a vertex or index snapshot together with its mirror, so the bound bytes are the same for every input. Tests (`tests/Recorder.cpp`): - `agc_draw_input_mirrors` and `agc_draw_input_mirrors_off` (`APS5_NO_INPUT_MIRRORS=1`) run the same cases; each prints which mode it ran in, and the ctest requires that line; - with mirrors on: a reuse returns an unmapped mirror whose bytes, read back from the GPU, equal the guest's; the mirror is made once; the pool counts it; with the mirror budget full, a new mirror drops the least recently used one and that entry keeps its host snapshot; the pool's eviction drops the least recently used snapshot with its mirror; making a mirror evicts to stay within 1 GiB; a store drops a mirrored snapshot and its bytes; a recorder whose heap budget leaves 44,000 bytes of headroom refuses a 40,000-byte mirror (a 65,536-byte allocation) and evicts nothing; a device whose heaps are all device-local gets no mirror; a CPU-read lookup gets the host snapshot; `BindsIndexCopy` is false for a mesh draw; a mirrored vertex window that a later draw reads below gets a new mirror whose bytes, read back from the GPU, hold the filled range (`vertexWindowMirrorTests`, also in `agc_driver_recorder`); - with mirrors off: every reuse returns the host snapshot, no mirror bytes are counted, and the bytes still match; - `drawInputReuseTests` checks the reused copies' bytes in both modes, and runs in `agc_driver_recorder` too; - each of these fails on a deliberate mistake: mirror bytes left out of the pool (`a draw input mirror is not counted in the draw input budget`), the device-local check removed (`a draw input was mirrored on a device whose memory is all device-local`), the switch ignored (`a draw input was mirrored with APS5_NO_INPUT_MIRRORS set`), the old refusal at a full mirror budget (`a full mirror budget did not drop the least recently used mirror for a new one`), the old headroom check on the first device-local type with the unrounded size (`a mirror whose allocation the device-local headroom refuses was made`), mesh draws allowed a mirror (`a mesh draw's index copy may be mirrored although the mesh shader reads its indices from guest memory`), and the fill-in's mirror drop removed (`filling in a mirrored vertex window kept its old mirror`). Related: - #9712 keeps draw snapshots in resizable BAR memory when the device exposes a BAR over a heap of at least 4 GiB, and in host memory otherwise; it keeps index copies in host memory. Without a resizable BAR (this 2080 Ti, and any device whose BAR window is 256 MiB) it leaves the snapshots in host memory, which this pull request covers. If both land, a snapshot already in BAR memory should not be mirrored again; the second to land adds that check. - #9875 (merged into `main` as 955f51545f) copies only the vertex records a draw fetches and fills a kept vertex window in place when a later draw reads below it. This pull request's merge of `main` drops the snapshot's mirror in that fill, puts `hostOnly` and `mirrored` after #9875's `from` and `lowest` parameters, and keeps the copies of #9875's window tests on the host, since those tests read the snapshot on the CPU. - #15570 keeps storage snapshots in resizable BAR memory and adds a `shadow` field to `DrawSnapshot` next to this pull request's `mirror`. Storage snapshots are never mirrored, so the two only meet in the struct and its initializer. - #14262 and #15792 add tests to the same line of `tests/cmake/agc_driver_recorder_tests.cmake`. ### Tested Windows 11 (10.0.26300), NVIDIA GeForce RTX 2080 Ti (driver 617.14, no resizable BAR), i9-9900K, 32 GB; Sonic Origins (PPSA05324, 02.002.000) on the S3K page of its menu, whose 3D background is the scene, at 3840x2160. The head is 1572e37e27 on a merge of `main` 17fec48224, and `main` below is 17fec48224. - Tests: - `agc_draw_input_mirrors` and `agc_draw_input_mirrors_off` pass, and each case listed above fails on its deliberate mistake. - Full `ctest` on the head: 5001 of 5001 pass. Three tests whose executable shows a Windows "Entry Point Not Found" dialog were left out of the run (`guest_kernel_sys_threads_main`, `guest_kernel_sys_threads_main_patched`, `net_ipv6only_patched`). - After #9875 merged, the branch merged `main` 8b96d9879d (head 367908bfbb). On it: the focused tests (`agc_driver_recorder`, `agc_draw_snapshot_cap`, `agc_draw_input_mirrors`, `agc_draw_input_mirrors_off`, `agc_draw_inputs_in_place`, `agc_draw_inputs_copied`, `agc_draw_input_reuse`) pass; the validation set below plus `agc_draw_input_reuse` passes 77 of 77, with no `VUID-` error, no missing-layer line, and the same 25 warnings; the full `ctest` passes 5490 of 5493 with the same three left out. The three failures come from `main` and not from this pull request: `prx_thread_local_destructors` and `test_thread_local_destructors` report the `static thread_local` `shared_ptr` in `ResourceMaterializer::ResolveImageTablesShared` (#18827; `core/shader/recompiler` is identical to `main`), and `agc_driver_upload_cache_read_only_flush` does not build with MinGW (`setenv` is not declared in `UploadCacheReadOnlyFlush.cpp`). The measurements below are on the earlier base. - Khronos validation layer, with `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`, `ANYPS5_NO_SHADER_CACHE=1`, `ANYPS5_REQUIRE_VULKAN=1` and `ctest -V`, on the draw, vertex, index, mesh and snapshot tests (`agc_driver_draw_*`, `agc_driver_vertex_*`, `agc_driver_rect_list_*`, `agc_driver_mesh_*`, `agc_driver_graphics`, `agc_driver_zero_stride_vertex_fetch`, `agc_draw_inputs_*`, `agc_draw_snapshot_cap`, `agc_driver_recorder`, plus the two new tests on the head): 70 of 70 pass on `main` and 72 of 72 on the head. Neither log has a `VUID-` error or a `was not found but was requested by env var VK_INSTANCE_LAYERS` line, and both have the same 25 warnings (24 `Undefined-Value-ShaderOutputNotConsumed-DynamicRendering`, 1 `Undefined-Value-ShaderOutputNotConsumed`). - `[gputime]` (`APS5_PROFILE_GPU=1 APS5_PROFILE_GPU_DRAWS=1`, warm shader caches, boots alternating `main` and this pull request, means per present over the steady 10 s blocks on the page): | Boot | Build | `draw` class | All ranges | `storage-upload` | `input-mirror` | FPS | |---|---|---|---|---|---|---| | 1 | `main` | 19.52 ms | 35.44 ms | 3.46 ms | | 14.61 | | 2 | this PR | 17.71 ms | 35.70 ms | 4.01 ms | 0.5 copies, 0.01 ms | 13.57 | | 3 | `main` | 20.99 ms | 37.79 ms | 3.74 ms | | 13.99 | | 4 | this PR | 15.65 ms | 31.48 ms | 3.45 ms | 0.2 copies, 0.00 ms | 14.60 | - The draw variant without a pixel program that runs 178 times per present costs 459 and 370 ms per 10 s block on `main` (2.6-3.1 ms per present); with this pull request it drops out of the programs each block lists in both boots (the last listed costs about 80 ms per block, 0.5 ms per present). - Boots 2 and 3 ran while another program used the GPU: their transfer classes (`storage-upload`, `copy`, `shadow-publish`) are 10-16% slower than in boots 1 and 4, so 1 against 4 and 3 against 2 are the comparable pairs. - Performance, captured as the Performance report form describes: `APS5_TRACE_SECONDS=200:15` and no other `APS5_TRACE_*` or `APS5_PROFILE_*` switch, warm shader caches, two rounds alternating `main` and this pull request in one session, standard output not redirected. A first set of these rounds ran beside the same outside GPU load and is not shown; its second `main` capture lost its GPU timing. | Run | Build | Commit | Frame p50 / p90 / p99 (ms) | GPU busy per present (ms) | |---|---|---|---|---| | 1 | `main` | `17fec48224` | 73.0 / 79.4 / 86.0 | 41.0 | | 2 | this PR | `1572e37e27` | 71.5 / 75.8 / 80.0 | 33.5 | | 3 | `main` | `17fec48224` | 71.8 / 76.3 / 80.6 | 40.9 | | 4 | this PR | `1572e37e27` | 72.7 / 77.4 / 80.8 | 37.1 | - The frame does not change: GPU busy is about half of it. In 60 s sampler windows on the page from the previous round (`main` 956775078d against 571e9d704a, `APS5_SAMPLE_WORKER`, `APS5_SAMPLE_COMMITTER`), the draw committer was in `commitDraw` 77.3% and 78.6% of the time, and the queue worker waited in `DrawPipeline::Enqueue` 17.8% and 18.9% of the time. The frame is limited by the CPU here, so a GPU saving does not reach it; `worker_busy_pct` (97%) counts the worker's wait in `Enqueue` as busy. - The traces drop events once the queue worker's buffer fills (`trace_dropped`), as every S3K capture at 200:15 does; the summary lines are still complete. Summary lines, in run order: ```json {"commit":"17fec482248b","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":4488,"ms":15051.041},"presents":205,"frame_ms":{"p50":72.995,"p90":79.370,"p99":85.967,"max":91.476},"gpu_busy_ms_per_present":41.019,"worker_busy_pct":{"queue worker 0x0":96.869},"top_phases_ms_per_frame":{"Driver.Packet":69.021,"Graphics.Draw":51.888,"Driver.Packet.draw":51.497,"Driver.Draw":50.494,"Graphics.Draw.draw_and_resource_release":41.254,"Driver.Draw.shader_compile_and_link":24.675,"Shader.DrawStage":15.987,"Driver.Draw.draw_enqueued":15.023},"owned_draw_counts":{"OwnedDraw.evicted_other":18521},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":5.729,"events_lost":416828,"totals_full":false},"draw committer":{"events_full_after_s":12.173,"events_lost":62391,"totals_full":false}},"trace":"aps5-trace-17fec482248b-28412.json.gz"} {"commit":"1572e37e2756","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":4438,"ms":15049.765},"presents":209,"frame_ms":{"p50":71.525,"p90":75.820,"p99":79.994,"max":88.074},"gpu_busy_ms_per_present":33.503,"worker_busy_pct":{"queue worker 0x0":96.958},"top_phases_ms_per_frame":{"Driver.Packet":67.757,"Graphics.Draw":50.890,"Driver.Packet.draw":50.606,"Driver.Draw":49.662,"Graphics.Draw.draw_and_resource_release":40.679,"Driver.Draw.shader_compile_and_link":23.806,"Shader.DrawStage":15.288,"Driver.Draw.draw_enqueued":14.782},"owned_draw_counts":{"OwnedDraw.evicted_other":19725},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":5.908,"events_lost":398955,"totals_full":false},"draw committer":{"events_full_after_s":12.490,"events_lost":55117,"totals_full":false}},"trace":"aps5-trace-1572e37e2756-16428.json.gz"} {"commit":"17fec482248b","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":4408,"ms":15057.013},"presents":208,"frame_ms":{"p50":71.849,"p90":76.274,"p99":80.620,"max":81.169},"gpu_busy_ms_per_present":40.933,"worker_busy_pct":{"queue worker 0x0":96.947},"top_phases_ms_per_frame":{"Driver.Packet":68.096,"Graphics.Draw":51.083,"Driver.Packet.draw":50.845,"Driver.Draw":49.821,"Graphics.Draw.draw_and_resource_release":40.722,"Driver.Draw.shader_compile_and_link":24.434,"Shader.DrawStage":15.866,"Driver.Draw.draw_enqueued":14.646},"owned_draw_counts":{"OwnedDraw.evicted_other":19221},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":5.815,"events_lost":415716,"totals_full":false},"draw committer":{"events_full_after_s":12.157,"events_lost":62265,"totals_full":false}},"trace":"aps5-trace-17fec482248b-37160.json.gz"} {"commit":"1572e37e2756","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":4443,"ms":15036.657},"presents":205,"frame_ms":{"p50":72.748,"p90":77.353,"p99":80.758,"max":82.925},"gpu_busy_ms_per_present":37.055,"worker_busy_pct":{"queue worker 0x0":96.946},"top_phases_ms_per_frame":{"Driver.Packet":69.046,"Graphics.Draw":51.893,"Driver.Packet.draw":51.415,"Driver.Draw":50.455,"Graphics.Draw.draw_and_resource_release":41.382,"Driver.Draw.shader_compile_and_link":24.397,"Shader.DrawStage":15.765,"Driver.Draw.draw_enqueued":14.815},"owned_draw_counts":{"OwnedDraw.evicted_other":18661},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":5.859,"events_lost":411825,"totals_full":false},"draw committer":{"events_full_after_s":12.192,"events_lost":62368,"totals_full":false}},"trace":"aps5-trace-1572e37e2756-25716.json.gz"} ``` <details><summary>tools/trace_digest.py, run 1, main</summary> **seconds 200:15** from present 4488: 205 presents, frame p50 73.0 / p90 79.4 / p99 86.0 / max 91.5 ms, GPU busy 41.0 ms per present NVIDIA GeForce RTX 2080 Ti, NVIDIA 617.14, Windows 10.0.26300, 3840x2160, commit 17fec482248b, dropped: yes ```json {"commit":"17fec482248b","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":4488,"ms":15051.041},"presents":205,"frame_ms":{"p50":72.995,"p90":79.37,"p99":85.967,"max":91.476},"gpu_busy_ms_per_present":41.019,"worker_busy_pct":{"queue worker 0x0":96.869},"top_phases_ms_per_frame":{"Driver.Packet":69.021,"Graphics.Draw":51.888,"Driver.Packet.draw":51.497,"Driver.Draw":50.494,"Graphics.Draw.draw_and_resource_release":41.254,"Driver.Draw.shader_compile_and_link":24.675,"Shader.DrawStage":15.987,"Driver.Draw.draw_enqueued":15.023},"owned_draw_counts":{"OwnedDraw.evicted_other":18521},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":5.729,"events_lost":416828,"totals_full":false},"draw committer":{"events_full_after_s":12.173,"events_lost":62391,"totals_full":false}},"trace":"aps5-trace-17fec482248b-28412.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: 416828 events lost; buffer full at 5728.5 ms - draw committer: 62391 events lost; buffer full at 12172.7 ms **Slowest frames** (largest slices inside each, inclusive) - present 4531: 91.5 ms at 3338 ms: Driver.Packet (queue worker 0x0) 68.7, Graphics.Draw (draw committer) 57.5, Driver.Packet.draw (queue worker 0x0) 57.3, Driver.Draw (queue worker 0x0) 55.7 - present 4516: 88.0 ms at 2140 ms: Driver.Packet (queue worker 0x0) 62.3, Driver.Packet.draw (queue worker 0x0) 49.9, Graphics.Draw (draw committer) 49.7, Driver.Draw (queue worker 0x0) 48.5 - present 4527: 86.0 ms at 3010 ms: Driver.Packet (queue worker 0x0) 59.0, Driver.Packet.draw (queue worker 0x0) 46.9, Graphics.Draw (draw committer) 46.3, Driver.Draw (queue worker 0x0) 45.5 - present 4530: 83.9 ms at 3254 ms: Driver.Packet (queue worker 0x0) 55.8, batch (gpu) 48.3, Graphics.Draw (draw committer) 46.1, Driver.Packet.draw (queue worker 0x0) 43.1 - present 4633: 82.8 ms at 10792 ms: Graphics.Draw (draw committer) 45.3, batch (gpu) 44.5, Graphics.Draw.draw_and_resource_release (draw committer) 33.7, VideoOut.Flip (presenter) 14.3 **Persistent spikes** (frame time above the fastest frame that separates it from a longer frame; one entry per stall, not per frame) - present 4531: 91.5 ms at 3338 ms, persistence 25.8 ms - present 4633: 82.8 ms at 10792 ms, persistence 17.1 ms - present 4668: 81.1 ms at 13310 ms, persistence 14.4 ms - present 4557: 82.2 ms at 5311 ms, persistence 14.2 ms - present 4543: 82.4 ms at 4252 ms, persistence 13.3 ms - present 4590: 78.9 ms at 7657 ms, persistence 12.5 ms - present 4516: 88.0 ms at 2140 ms, persistence 12.5 ms - present 4616: 79.9 ms at 9519 ms, persistence 11.7 ms - present 4573: 77.3 ms at 6450 ms, persistence 9.9 ms - present 4627: 82.4 ms at 10335 ms, persistence 9.8 ms **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | title | 0.1 (0 %) | 11.9 (16 %) | 61.5 | 0.5 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0 | | queue worker 0x0 | 18.7 (26 %) | 0.0 (0 %) | 54.7 | 44.9 | Driver.Packet 18.0, Driver.EndSubmission 0.8 | | draw committer | 33.1 (45 %) | 0.2 (0 %) | 40.2 | 29.7 | Graphics.Draw 30.5, Recorder.Submit 1.9 | | 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.1 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | presenter | 1.1 (2 %) | 11.2 (15 %) | 61.1 | 0.1 | VideoOut.Flip 12.2, Driver.Present 0.1 | | 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.1 | 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.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.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 73.4 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | gpu | 40.9 (56 %) | 0.0 (0 %) | 32.5 | 0.0 | batch 40.9 | **Largest slices** (ms per frame, inclusive, all threads): batch 40.9, Graphics.Draw 30.5, Graphics.Draw.draw_and_resource_release 23.0, Driver.Packet 18.0, Driver.Packet.draw 14.0, Driver.Draw 13.6, VideoOut.Flip 12.2, Driver.Present 12.0, VideoOut.Flip.present 11.9, Recorder.WaitSerial 11.8 **Longest waits** - Recorder.WaitSerial (title) 20.8 ms at 614 ms, present 4496 - Driver.Present.render_fence_wait (presenter) 20.2 ms at 614 ms, present 4496 - Recorder.WaitSerial (title) 19.8 ms at 691 ms, present 4496 - Recorder.WaitSerial (title) 19.6 ms at 1384 ms, present 4505 - Driver.Present.render_fence_wait (presenter) 18.6 ms at 692 ms, present 4497 - Recorder.WaitSerial (title) 18.5 ms at 1148 ms, present 4502 - Driver.Present.render_fence_wait (presenter) 18.4 ms at 1385 ms, present 4506 - Recorder.WaitSerial (title) 17.9 ms at 1529 ms, present 4507 - Recorder.WaitSerial (title) 17.8 ms at 11026 ms, present 4635 - Driver.Present.render_fence_wait (presenter) 17.6 ms at 1149 ms, present 4503 **Largest GPU batches** (GPU ranges inside, and the CPU slices that recorded each, inclusive) - batch 1280: 13.6 ms at 1596 ms, present 4508: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 4.2, Driver.Packet.dispatch (queue worker 0x0) 3.1, Driver.Dispatch (queue worker 0x0) 2.1, Driver.Packet.draw (queue worker 0x0) 0.9 - batch 1771: 12.6 ms at 2215 ms, present 4516: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.4, Graphics.Draw.draw_and_resource_release (draw committer) 0.4, Resources.Complete (draw committer) 0.1 - batch 8459: 11.6 ms at 10243 ms, present 4625: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.4, Graphics.Draw.draw_and_resource_release (draw committer) 0.4, Resources.Complete (draw committer) 0.1 - batch 459: 11.1 ms at 574 ms, present 4495: GPU no ranges; recorded by Graphics.Draw (draw committer) 1.4, Graphics.Draw.draw_and_resource_release (draw committer) 1.4, Recorder.Submit (draw committer) 0.1, Recorder.Reap (draw committer) 0.0 - batch 4128: 11.1 ms at 5147 ms, present 4554: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 11.2, Driver.Packet.draw (queue worker 0x0) 5.4, Driver.Draw (queue worker 0x0) 5.3, Driver.Packet.dispatch (queue worker 0x0) 4.0 </details> <details><summary>tools/trace_digest.py, run 2, this pull request</summary> **seconds 200:15** from present 4438: 209 presents, frame p50 71.5 / p90 75.8 / p99 80.0 / max 88.1 ms, GPU busy 33.5 ms per present NVIDIA GeForce RTX 2080 Ti, NVIDIA 617.14, Windows 10.0.26300, 3840x2160, commit 1572e37e2756, dropped: yes ```json {"commit":"1572e37e2756","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":4438,"ms":15049.765},"presents":209,"frame_ms":{"p50":71.525,"p90":75.82,"p99":79.994,"max":88.074},"gpu_busy_ms_per_present":33.503,"worker_busy_pct":{"queue worker 0x0":96.958},"top_phases_ms_per_frame":{"Driver.Packet":67.757,"Graphics.Draw":50.89,"Driver.Packet.draw":50.606,"Driver.Draw":49.662,"Graphics.Draw.draw_and_resource_release":40.679,"Driver.Draw.shader_compile_and_link":23.806,"Shader.DrawStage":15.288,"Driver.Draw.draw_enqueued":14.782},"owned_draw_counts":{"OwnedDraw.evicted_other":19725},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":5.908,"events_lost":398955,"totals_full":false},"draw committer":{"events_full_after_s":12.49,"events_lost":55117,"totals_full":false}},"trace":"aps5-trace-1572e37e2756-16428.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: 398955 events lost; buffer full at 5908.1 ms - draw committer: 55117 events lost; buffer full at 12490.2 ms **Slowest frames** (largest slices inside each, inclusive) - present 4512: 88.1 ms at 5360 ms: Driver.Packet (queue worker 0x0) 59.4, Driver.Packet.draw (queue worker 0x0) 49.7, Driver.Draw (queue worker 0x0) 48.9, batch (gpu) 41.0 - present 4552: 82.6 ms at 8292 ms: Graphics.Draw (draw committer) 46.1, batch (gpu) 34.4, Graphics.Draw.draw_and_resource_release (draw committer) 31.9, VideoOut.Flip (presenter) 8.7 - present 4541: 80.0 ms at 7507 ms: Graphics.Draw (draw committer) 47.4, batch (gpu) 31.6, Graphics.Draw.draw_and_resource_release (draw committer) 29.1, VideoOut.Flip (presenter) 9.2 - present 4518: 78.9 ms at 5806 ms: Driver.Packet (queue worker 0x0) 53.7, Driver.Packet.draw (queue worker 0x0) 42.6, Driver.Draw (queue worker 0x0) 41.6, Graphics.Draw (draw committer) 37.0 - present 4525: 78.2 ms at 6330 ms: Graphics.Draw (draw committer) 36.5, batch (gpu) 35.1, Graphics.Draw.draw_and_resource_release (draw committer) 29.4, VideoOut.Flip (presenter) 10.8 **Persistent spikes** (frame time above the fastest frame that separates it from a longer frame; one entry per stall, not per frame) - present 4512: 88.1 ms at 5360 ms, persistence 21.3 ms - present 4552: 82.6 ms at 8292 ms, persistence 15.8 ms - present 4541: 80.0 ms at 7507 ms, persistence 11.7 ms - present 4605: 77.5 ms at 12079 ms, persistence 9.9 ms - present 4518: 78.9 ms at 5806 ms, persistence 8.9 ms - present 4481: 77.8 ms at 3114 ms, persistence 8.9 ms - present 4443: 76.7 ms at 355 ms, persistence 8.6 ms - present 4572: 76.1 ms at 9730 ms, persistence 8.3 ms - present 4588: 76.4 ms at 10874 ms, persistence 8.0 ms - present 4458: 76.8 ms at 1439 ms, persistence 7.4 ms **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | title | 0.1 (0 %) | 9.9 (14 %) | 62.0 | 0.5 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0 | | queue worker 0x0 | 18.3 (25 %) | 0.0 (0 %) | 53.8 | 47.8 | Driver.Packet 17.5, Driver.EndSubmission 0.8 | | draw committer | 32.4 (45 %) | 0.2 (0 %) | 39.4 | 30.6 | Graphics.Draw 29.8, Recorder.Submit 1.9 | | title | 0.0 (0 %) | 0.0 (0 %) | 72.0 | 0.1 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 72.0 | 0.1 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 72.0 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 72.0 | 0.1 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | presenter | 1.0 (1 %) | 9.2 (13 %) | 61.8 | 0.1 | VideoOut.Flip 10.2, Driver.Present 0.1 | | title | 0.0 (0 %) | 0.0 (0 %) | 72.0 | 0.1 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 72.0 | 0.1 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 72.0 | 0.1 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 72.0 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 72.0 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 72.0 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 72.0 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 72.0 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | gpu | 33.5 (46 %) | 0.0 (0 %) | 38.6 | 0.0 | batch 33.5 | **Largest slices** (ms per frame, inclusive, all threads): batch 33.5, Graphics.Draw 29.8, Graphics.Draw.draw_and_resource_release 23.3, Driver.Packet 17.5, Driver.Packet.draw 13.5, Driver.Draw 13.2, VideoOut.Flip 10.2, Driver.Present 10.0, VideoOut.Flip.present 10.0, Recorder.WaitSerial 9.9 **Longest waits** - Recorder.WaitSerial (title) 14.1 ms at 864 ms, present 4449 - Recorder.WaitSerial (title) 13.5 ms at 2024 ms, present 4465 - Recorder.WaitSerial (title) 13.4 ms at 2096 ms, present 4466 - Recorder.WaitSerial (title) 13.2 ms at 3626 ms, present 4487 - Recorder.WaitSerial (title) 13.2 ms at 2755 ms, present 4476 - Recorder.WaitSerial (title) 13.0 ms at 3408 ms, present 4485 - Recorder.WaitSerial (title) 12.9 ms at 3555 ms, present 4486 - Recorder.WaitSerial (title) 12.9 ms at 2684 ms, present 4475 - Recorder.WaitSerial (title) 12.8 ms at 2611 ms, present 4473 - Recorder.WaitSerial (title) 12.7 ms at 793 ms, present 4448 **Largest GPU batches** (GPU ranges inside, and the CPU slices that recorded each, inclusive) - batch 4559: 12.8 ms at 5396 ms, present 4512: GPU no ranges; recorded by Graphics.Draw (draw committer) 1.6, Graphics.Draw.draw_and_resource_release (draw committer) 1.5, Recorder.Submit (draw committer) 0.1, Graphics.Draw.validate (draw committer) 0.0 - batch 535: 11.9 ms at 642 ms, present 4446: 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 1026: 11.5 ms at 1211 ms, present 4454: 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 9819: 10.0 ms at 11641 ms, present 4598: 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 4948: 9.6 ms at 5874 ms, present 4518: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 3.2, Driver.Packet.dispatch (queue worker 0x0) 2.4, Driver.Dispatch (queue worker 0x0) 1.6, Resources.Prepare (queue worker 0x0) 0.7 </details> <details><summary>tools/trace_digest.py, run 3, main</summary> **seconds 200:15** from present 4408: 208 presents, frame p50 71.8 / p90 76.3 / p99 80.6 / max 81.2 ms, GPU busy 40.9 ms per present NVIDIA GeForce RTX 2080 Ti, NVIDIA 617.14, Windows 10.0.26300, 3840x2160, commit 17fec482248b, dropped: yes ```json {"commit":"17fec482248b","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":4408,"ms":15057.013},"presents":208,"frame_ms":{"p50":71.849,"p90":76.274,"p99":80.62,"max":81.169},"gpu_busy_ms_per_present":40.933,"worker_busy_pct":{"queue worker 0x0":96.947},"top_phases_ms_per_frame":{"Driver.Packet":68.096,"Graphics.Draw":51.083,"Driver.Packet.draw":50.845,"Driver.Draw":49.821,"Graphics.Draw.draw_and_resource_release":40.722,"Driver.Draw.shader_compile_and_link":24.434,"Shader.DrawStage":15.866,"Driver.Draw.draw_enqueued":14.646},"owned_draw_counts":{"OwnedDraw.evicted_other":19221},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":5.815,"events_lost":415716,"totals_full":false},"draw committer":{"events_full_after_s":12.157,"events_lost":62265,"totals_full":false}},"trace":"aps5-trace-17fec482248b-37160.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: 415716 events lost; buffer full at 5815.4 ms - draw committer: 62265 events lost; buffer full at 12157.0 ms **Slowest frames** (largest slices inside each, inclusive) - present 4562: 81.2 ms at 11154 ms: Graphics.Draw (draw committer) 48.8, batch (gpu) 38.2, Graphics.Draw.draw_and_resource_release (draw committer) 30.3, VideoOut.Flip (presenter) 9.9 - present 4466: 81.0 ms at 4193 ms: Driver.Packet (queue worker 0x0) 57.7, Graphics.Draw (draw committer) 50.0, Driver.Packet.draw (queue worker 0x0) 48.0, Driver.Draw (queue worker 0x0) 46.9 - present 4554: 80.6 ms at 10577 ms: Graphics.Draw (draw committer) 50.0, batch (gpu) 42.3, Graphics.Draw.draw_and_resource_release (draw committer) 31.1, VideoOut.Flip (presenter) 12.5 - present 4487: 80.3 ms at 5717 ms: Driver.Packet (queue worker 0x0) 55.4, Driver.Packet.draw (queue worker 0x0) 44.1, batch (gpu) 42.9, Driver.Draw (queue worker 0x0) 42.5 - present 4492: 79.9 ms at 6087 ms: Graphics.Draw (draw committer) 48.8, batch (gpu) 40.8, Graphics.Draw.draw_and_resource_release (draw committer) 31.9, VideoOut.Flip (presenter) 12.0 **Persistent spikes** (frame time above the fastest frame that separates it from a longer frame; one entry per stall, not per frame) - present 4562: 81.2 ms at 11154 ms, persistence 14.3 ms - present 4466: 81.0 ms at 4193 ms, persistence 12.3 ms - present 4554: 80.6 ms at 10577 ms, persistence 11.6 ms - present 4487: 80.3 ms at 5717 ms, persistence 11.2 ms - present 4612: 79.3 ms at 14761 ms, persistence 10.9 ms - present 4492: 79.9 ms at 6087 ms, persistence 9.9 ms - present 4542: 78.8 ms at 9714 ms, persistence 9.4 ms - present 4409: 76.3 ms at 75 ms, persistence 9.4 ms - present 4505: 78.4 ms at 7041 ms, persistence 9.2 ms - present 4570: 78.4 ms at 11729 ms, persistence 9.1 ms **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | title | 0.1 (0 %) | 12.3 (17 %) | 60.0 | 0.4 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0 | | queue worker 0x0 | 18.1 (25 %) | 0.0 (0 %) | 54.3 | 47.7 | Driver.Packet 17.3, Driver.EndSubmission 0.8 | | draw committer | 31.9 (44 %) | 0.2 (0 %) | 40.3 | 29.5 | Graphics.Draw 29.5, Recorder.Submit 1.7 | | title | 0.0 (0 %) | 0.0 (0 %) | 72.4 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 72.4 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 72.4 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 72.4 | 0.1 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | presenter | 1.0 (1 %) | 11.6 (16 %) | 59.8 | 0.1 | VideoOut.Flip 12.5, Driver.Present 0.1 | | title | 0.0 (0 %) | 0.0 (0 %) | 72.4 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 72.4 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 72.4 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 72.4 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 72.4 | 0.1 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 72.4 | 0.1 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 72.4 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 72.4 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | gpu | 40.9 (56 %) | 0.0 (0 %) | 31.5 | 0.0 | batch 40.9 | **Largest slices** (ms per frame, inclusive, all threads): batch 40.9, Graphics.Draw 29.5, Graphics.Draw.draw_and_resource_release 22.9, Driver.Packet 17.3, Driver.Packet.draw 13.4, Driver.Draw 13.0, VideoOut.Flip 12.5, Driver.Present 12.4, VideoOut.Flip.present 12.3, Recorder.WaitSerial 12.3 **Longest waits** - Recorder.WaitSerial (title) 14.3 ms at 8922 ms, present 4530 - Recorder.WaitSerial (title) 14.2 ms at 12305 ms, present 4577 - Recorder.WaitSerial (title) 14.1 ms at 8131 ms, present 4520 - Recorder.WaitSerial (title) 14.1 ms at 3402 ms, present 4454 - Recorder.WaitSerial (title) 14.1 ms at 1586 ms, present 4429 - Recorder.WaitSerial (title) 14.1 ms at 1873 ms, present 4433 - Recorder.WaitSerial (title) 14.0 ms at 12884 ms, present 4585 - Recorder.WaitSerial (title) 14.0 ms at 1298 ms, present 4425 - Recorder.WaitSerial (title) 14.0 ms at 13826 ms, present 4598 - Recorder.WaitSerial (title) 13.9 ms at 8419 ms, present 4523 **Largest GPU batches** (GPU ranges inside, and the CPU slices that recorded each, inclusive) - batch 11559: 12.1 ms at 13670 ms, present 4596: GPU no ranges; recorded by no CPU slices - batch 5434: 11.9 ms at 6444 ms, present 4496: 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 1452: 11.8 ms at 1716 ms, present 4431: GPU no ranges; recorded by Vulkan.DrawFromRecipe (draw committer) 0.3, Graphics.DrawWithRecipe (draw committer) 0.3, Graphics.DrawWithRecipe.draw_and_resource_release (draw committer) 0.3, Graphics.Draw (draw committer) 0.1 - batch 12539: 11.8 ms at 14829 ms, present 4612: GPU no ranges; recorded by no CPU slices - batch 6912: 11.4 ms at 8190 ms, present 4520: 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 </details> <details><summary>tools/trace_digest.py, run 4, this pull request</summary> **seconds 200:15** from present 4443: 205 presents, frame p50 72.7 / p90 77.4 / p99 80.8 / max 82.9 ms, GPU busy 37.1 ms per present NVIDIA GeForce RTX 2080 Ti, NVIDIA 617.14, Windows 10.0.26300, 3840x2160, commit 1572e37e2756, dropped: yes ```json {"commit":"1572e37e2756","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":4443,"ms":15036.657},"presents":205,"frame_ms":{"p50":72.748,"p90":77.353,"p99":80.758,"max":82.925},"gpu_busy_ms_per_present":37.055,"worker_busy_pct":{"queue worker 0x0":96.946},"top_phases_ms_per_frame":{"Driver.Packet":69.046,"Graphics.Draw":51.893,"Driver.Packet.draw":51.415,"Driver.Draw":50.455,"Graphics.Draw.draw_and_resource_release":41.382,"Driver.Draw.shader_compile_and_link":24.397,"Shader.DrawStage":15.765,"Driver.Draw.draw_enqueued":14.815},"owned_draw_counts":{"OwnedDraw.evicted_other":18661},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":5.859,"events_lost":411825,"totals_full":false},"draw committer":{"events_full_after_s":12.192,"events_lost":62368,"totals_full":false}},"trace":"aps5-trace-1572e37e2756-25716.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: 411825 events lost; buffer full at 5859.0 ms - draw committer: 62368 events lost; buffer full at 12192.3 ms **Slowest frames** (largest slices inside each, inclusive) - present 4547: 82.9 ms at 7646 ms: Graphics.Draw (draw committer) 47.5, batch (gpu) 37.4, Graphics.Draw.draw_and_resource_release (draw committer) 32.3, VideoOut.Flip (presenter) 10.2 - present 4462: 81.5 ms at 1410 ms: Driver.Packet (queue worker 0x0) 57.0, Graphics.Draw (draw committer) 48.7, Driver.Packet.draw (queue worker 0x0) 45.2, Driver.Draw (queue worker 0x0) 44.1 - present 4568: 80.8 ms at 9176 ms: Graphics.Draw (draw committer) 39.4, batch (gpu) 36.6, Graphics.Draw.draw_and_resource_release (draw committer) 29.7, VideoOut.Flip (presenter) 9.3 - present 4449: 80.1 ms at 441 ms: Driver.Packet (queue worker 0x0) 52.6, Graphics.Draw (draw committer) 40.9, Driver.Packet.draw (queue worker 0x0) 40.7, Driver.Draw (queue worker 0x0) 39.8 - present 4553: 80.0 ms at 8084 ms: Graphics.Draw (draw committer) 45.6, batch (gpu) 31.8, Graphics.Draw.draw_and_resource_release (draw committer) 27.7, VideoOut.Flip (presenter) 9.0 **Persistent spikes** (frame time above the fastest frame that separates it from a longer frame; one entry per stall, not per frame) - present 4547: 82.9 ms at 7646 ms, persistence 15.4 ms - present 4568: 80.8 ms at 9176 ms, persistence 13.2 ms - present 4462: 81.5 ms at 1410 ms, persistence 12.7 ms - present 4553: 80.0 ms at 8084 ms, persistence 11.5 ms - present 4449: 80.1 ms at 441 ms, persistence 10.4 ms - present 4486: 79.5 ms at 3162 ms, persistence 9.9 ms - present 4636: 78.5 ms at 14160 ms, persistence 9.4 ms - present 4609: 79.1 ms at 12185 ms, persistence 9.2 ms - present 4622: 78.9 ms at 13137 ms, persistence 8.7 ms - present 4517: 78.7 ms at 5432 ms, persistence 8.5 ms **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | title | 0.1 (0 %) | 11.9 (16 %) | 61.4 | 0.5 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0 | | queue worker 0x0 | 18.5 (25 %) | 0.0 (0 %) | 54.8 | 47.7 | Driver.Packet 17.8, Driver.EndSubmission 0.8 | | draw committer | 32.8 (45 %) | 0.2 (0 %) | 40.4 | 29.9 | Graphics.Draw 30.3, Recorder.Submit 1.8 | | title | 0.0 (0 %) | 0.0 (0 %) | 73.3 | 0.1 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 73.3 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 73.3 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 73.3 | 0.1 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | presenter | 1.0 (1 %) | 11.2 (15 %) | 61.2 | 0.1 | VideoOut.Flip 12.1, Driver.Present 0.1 | | title | 0.0 (0 %) | 0.0 (0 %) | 73.3 | 0.1 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 73.3 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 73.3 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 73.3 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 73.3 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 73.3 | 0.1 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 73.3 | 0.1 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 73.3 | 0.1 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | gpu | 36.8 (50 %) | 0.0 (0 %) | 36.5 | 0.0 | batch 36.8 | **Largest slices** (ms per frame, inclusive, all threads): batch 36.8, Graphics.Draw 30.3, Graphics.Draw.draw_and_resource_release 23.3, Driver.Packet 17.8, Driver.Packet.draw 13.7, Driver.Draw 13.4, VideoOut.Flip 12.1, Driver.Present 12.0, VideoOut.Flip.present 11.9, Recorder.WaitSerial 11.9 **Longest waits** - Recorder.WaitSerial (title) 14.1 ms at 14239 ms, present 4636 - Recorder.WaitSerial (title) 13.9 ms at 12264 ms, present 4609 - Recorder.WaitSerial (title) 13.7 ms at 14746 ms, present 4643 - Recorder.WaitSerial (title) 13.6 ms at 11086 ms, present 4594 - Recorder.WaitSerial (title) 13.6 ms at 11743 ms, present 4602 - Recorder.WaitSerial (title) 13.5 ms at 5288 ms, present 4514 - Driver.Present.render_fence_wait (presenter) 13.5 ms at 14239 ms, present 4637 - Recorder.WaitSerial (title) 13.5 ms at 13943 ms, present 4632 - Recorder.WaitSerial (title) 13.5 ms at 8593 ms, present 4559 - Recorder.WaitSerial (title) 13.5 ms at 6317 ms, present 4528 **Largest GPU batches** (GPU ranges inside, and the CPU slices that recorded each, inclusive) - batch 6178: 11.6 ms at 7416 ms, present 4543: 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 1397: 11.5 ms at 1696 ms, present 4465: 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 849: 11.4 ms at 1032 ms, present 4456: GPU no ranges; recorded by Vulkan.DrawFromRecipe (draw committer) 0.3, Graphics.DrawWithRecipe (draw committer) 0.3, Graphics.DrawWithRecipe.draw_and_resource_release (draw committer) 0.3, Graphics.Draw (draw committer) 0.2 - batch 10270: 10.8 ms at 12327 ms, present 4610: GPU no ranges; recorded by no CPU slices - batch 7269: 10.3 ms at 8725 ms, present 4561: GPU no ranges; recorded by no CPU slices </details> The two traces of each round are attached: [m15-review-s3k-round1-traces.zip](https://github.com/user-attachments/files/34702507/m15-review-s3k-round1-traces.zip) (runs 1 and 2) and [m15-review-s3k-round2-traces.zip](https://github.com/user-attachments/files/34702521/m15-review-s3k-round2-traces.zip) (runs 3 and 4). ### 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
gabichuuuuu commented 2026-11-07 16:50:22 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by gabichuuuuu on 2026-11-07T16:50:22Z.

Review: COMMENTED


Read against the base 72a1308d27. The mirror itself looks correct: no CPU reader touches a mirrored buffer, since HighestDrawIndex and KeepDrawInput skip reused copies and MeshRestartTable asks for cpuReads. Every removal goes through eraseDrawSnapshot, which also subtracts the mirror's bytes. Three smaller points:

  • Mesh index snapshots get mirrored but never bound. For an indexed mesh draw without a restart table, restartTable is false, so CopyDrawInput gets cpuReads = false (Draw.cpp:1763–1766). On the first reuse, mirrorDrawInput records the copy, closes the open pass and charges both budgets. But recordDrawCommandsImpl returns in the state.stages.mesh branch before vkCmdBindIndexBuffer, and the mesh shader reads its indices from guest memory through the descriptor that setMeshIndexBuffer writes. Passing restartTable || state.stages.mesh as cpuReads for the index copy would keep those snapshots on the host.
  • A full mirror budget never recovers. mirrorDrawInput returns {} once drawInputMirrorBytes + bytes > DrawInputMirrorBudget (Recorder.cpp:3286). A mirror is only dropped when its snapshot is erased: through pool pressure, a guest store or KeepDrawSnapshot. So after 512 MiB of mirrors that are never reused again, while the whole pool stays under 1 GiB, no hot vertex buffer gets a mirror again. Dropping the mirrors of least-recent entries first (mirror.reset() and the byte counts) looks safe, because a draw in the open batch keeps its buffers through Keep(mirror) and keepRecordedDraw.
  • Headroom check. Buffer::WithinDeviceLocalHeadroom (Resources.cpp:58) already checks the memory type the constructor will really pick, with the rounded allocation size. Here the check uses the first DEVICE_LOCAL type with the unrounded size, and runs before the eviction loop. So entries can be evicted even when the allocation then fails.

Read only; not built or run here.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5813783925 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/16760#pullrequestreview-5813783925). Originally posted by [gabichuuuuu](https://github.com/gabichuuuuu) on 2026-11-07T16:50:22Z. **Review:** COMMENTED --- Read against the base `72a1308d27`. The mirror itself looks correct: no CPU reader touches a mirrored buffer, since `HighestDrawIndex` and `KeepDrawInput` skip reused copies and `MeshRestartTable` asks for `cpuReads`. Every removal goes through `eraseDrawSnapshot`, which also subtracts the mirror's bytes. Three smaller points: - **Mesh index snapshots get mirrored but never bound.** For an indexed mesh draw without a restart table, `restartTable` is false, so `CopyDrawInput` gets `cpuReads = false` (`Draw.cpp:1763–1766`). On the first reuse, `mirrorDrawInput` records the copy, closes the open pass and charges both budgets. But `recordDrawCommandsImpl` returns in the `state.stages.mesh` branch before `vkCmdBindIndexBuffer`, and the mesh shader reads its indices from guest memory through the descriptor that `setMeshIndexBuffer` writes. Passing `restartTable || state.stages.mesh` as `cpuReads` for the index copy would keep those snapshots on the host. - **A full mirror budget never recovers.** `mirrorDrawInput` returns `{}` once `drawInputMirrorBytes + bytes > DrawInputMirrorBudget` (`Recorder.cpp:3286`). A mirror is only dropped when its snapshot is erased: through pool pressure, a guest store or `KeepDrawSnapshot`. So after 512 MiB of mirrors that are never reused again, while the whole pool stays under 1 GiB, no hot vertex buffer gets a mirror again. Dropping the mirrors of least-recent entries first (`mirror.reset()` and the byte counts) looks safe, because a draw in the open batch keeps its buffers through `Keep(mirror)` and `keepRecordedDraw`. - **Headroom check.** `Buffer::WithinDeviceLocalHeadroom` (`Resources.cpp:58`) already checks the memory type the constructor will really pick, with the rounded allocation size. Here the check uses the first `DEVICE_LOCAL` type with the unrounded size, and runs before the eviction loop. So entries can be evicted even when the allocation then fails. Read only; not built or run here. AI-assisted: yes.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!16760
No description provided.