perf(agc): remember structural host import misses #7457

Closed
moong15 wants to merge 7 commits from upstream-pr/7457 into main
moong15 commented 2026-10-18 08:14:34 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by moong15 on 2026-10-18T08:14:34Z.


What

HostImportFor repeats the full lookup for guest ranges that cannot be imported because no registered run covers them. Every repeat takes the guest allocations lease, refreshes the imports and walks the run (refreshImports, importRun), then falls back to the copy path with the same result.

This change remembers those structural misses in a 256-entry, 4-way set-associative table of exact [begin, end) ranges (64 sets; a range already stored is not stored again, a full set evicts its oldest entry). A repeated lookup for a stored range returns null before the lease is taken.

Each entry is stamped with the device, the host import alignment, the registry generation, the forget serial, the import epoch, the insert count and the miss policy count. A miss is stored only when the registry generation matches the refreshed generation, and only with an even forget serial. Any new import, retirement, clear, extraction, window change or failedBlocks write moves the stamp, so a stored miss is never returned for a range that has since become importable. Committing pages of a reserved heap goes through the registry and bumps its generation. APS5_NO_IMPORT_MISS_MEMO=1 disables the table.

The table only holds misses where no registered run covers the range. On main that path touches none of refusals, failedBlocks, failed or counts.remembered, which only describe ranges where a run exists, so the two do not overlap. HostImportFor and importAccess pass main's ImportRequester through. The [buffers] profile line (APS5_PROFILE_DRAW) reports hits, structural misses, stores, evictions and resets.

Tests: agc_import_miss_memo and agc_import_miss_memo_off check the proof stamp, the runtime invalidation for each bump point, set eviction, and a miss recorded over a half-committed reserved window that must import once the rest is committed, with the table on and off.

Tested

Windows 11 (10.0.26300), AMD Radeon RX 9070 XT, AMD proprietary driver 26.8.1 (LLPC), Ryzen 7 9800X3D, 3840x2160, Stellar Blade (PPSA13197, 01.014.001).

GPU tests on main 1a3a1b2e0 and on this PR bef945671, same machine, ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, ctest -j1 -V -R "^agc_(import_miss_memo|import_miss_memo_off|host_import|driver_host_import|driver_registration|sparse_run_import)": main 16 of 16, this PR 18 of 18 (the two extra are the memo tests); agc_host_import_sparse skips on both (Linux only). Neither log contains was not found but was requested, and neither has a VUID- line.

What this removes, from one diagnostic pair in the same session (main, then this PR, APS5_PROFILE_DRAW=1 and APS5_SAMPLE_WORKER; these runs are not used for the frame numbers below):

  • The table answered 490,933 of 504,382 structural misses in gameplay (97.3 %), with 12,243 stores, 1 eviction and 1,387 resets.
  • The [buffers] import lookup time at 300,000 uploads fell from 8,111 ms to 7,105 ms (27.0 to 23.7 us per upload, -12 %).
  • Queue worker 0 spent 0.44 % of its samples inside HostImportFor on main and 0.41 % with the change. In this scene the lookup is a small part of upload cost next to the guest reads, so a frame-rate change is not expected here.

Performance: Stellar Blade gameplay, APS5_TRACE_SECONDS=400:90 (90 s from 400 s after the first present), warm caches (a warm-up run first), APS5_PREBUILD_THREADS=16 on both, no APS5_PROFILE_*. main 1a3a1b2e0 and this PR bef945671 alternated in one session on the same machine, runs in order 1-6.

presents in 90 s fps frame p50 / p90 / p99 ms GPU busy ms per present Driver.Packet.memory_wait ms per frame
1 main 531 5.90 159.9 / 187.2 / 236.7 91.8 167.3
2 PR 498 5.53 179.8 / 194.8 / 248.6 93.3 178.4
3 main 465 5.17 184.8 / 247.7 / 285.7 93.8 191.7
4 PR 533 5.92 165.5 / 184.4 / 246.4 93.7 167.1
5 main 563 6.26 157.5 / 172.0 / 229.2 92.2 158.2
6 PR 633 7.03 140.0 / 154.1 / 197.9 84.9 140.7
mean main 520 5.77 167.4 / 202.3 / 250.5 92.6 172.4
mean PR 555 6.16 161.8 / 177.8 / 231.0 90.6 162.1

The difference in means (+7 %) is inside the run-to-run spread: run 2 (PR) is slower than run 1 (main), and the main runs alone range from 5.17 to 6.26 fps. GPU busy time per present is unchanged.

Summary lines, in run order:

{"commit":"1a3a1b2e0ecb","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"16384","APS5_PAD_INPUT_FILE":"<path>","APS5_PREBUILD_THREADS":"16","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"400:90"},"gpu":"AMD Radeon RX 9070 XT","driver":"AMD proprietary driver 26.8.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 9800X3D 8-Core Processor","cpu_threads":16,"memory_mib":47941,"title_id":"PPSA13197","title":"Stellar Blade","content_version":"01.014.001","resolution":"3840x2160","window":{"spec":"seconds 400:90","first_present":4210,"ms":90116.766},"presents":531,"frame_ms":{"p50":159.876,"p90":187.191,"p99":236.660,"max":1247.230},"gpu_busy_ms_per_present":91.840,"worker_busy_pct":{"queue worker 0x0":98.656,"queue worker 0x20":99.707},"top_phases_ms_per_frame":{"Driver.Packet":336.056,"Driver.Packet.memory_wait":167.298,"Graphics.Draw":82.356,"Graphics.Draw.draw_and_resource_release":72.455,"Driver.Packet.draw":71.382,"Driver.Draw":70.992,"Driver.Packet.dispatch":44.933,"Driver.Dispatch":43.116},"trace_dropped":false,"trace":"aps5-trace-1a3a1b2e0ecb-10416.json.gz"}
{"commit":"bef945671ea8","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"16384","APS5_PAD_INPUT_FILE":"<path>","APS5_PREBUILD_THREADS":"16","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"400:90"},"gpu":"AMD Radeon RX 9070 XT","driver":"AMD proprietary driver 26.8.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 9800X3D 8-Core Processor","cpu_threads":16,"memory_mib":47941,"title_id":"PPSA13197","title":"Stellar Blade","content_version":"01.014.001","resolution":"3840x2160","window":{"spec":"seconds 400:90","first_present":4388,"ms":90049.774},"presents":498,"frame_ms":{"p50":179.761,"p90":194.837,"p99":248.631,"max":310.557},"gpu_busy_ms_per_present":93.280,"worker_busy_pct":{"queue worker 0x0":98.771,"queue worker 0x20":99.776},"top_phases_ms_per_frame":{"Driver.Packet":358.375,"Driver.Packet.memory_wait":178.445,"Graphics.Draw":107.850,"Graphics.Draw.draw_and_resource_release":98.172,"Driver.Packet.draw":92.069,"Driver.Draw":91.681,"Driver.Draw.shader_compile_and_link":34.057,"Driver.Draw.draw_enqueued":33.008},"trace_dropped":false,"trace":"aps5-trace-bef945671ea8-28528.json.gz"}
{"commit":"1a3a1b2e0ecb","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"16384","APS5_PAD_INPUT_FILE":"<path>","APS5_PREBUILD_THREADS":"16","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"400:90"},"gpu":"AMD Radeon RX 9070 XT","driver":"AMD proprietary driver 26.8.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 9800X3D 8-Core Processor","cpu_threads":16,"memory_mib":47941,"title_id":"PPSA13197","title":"Stellar Blade","content_version":"01.014.001","resolution":"3840x2160","window":{"spec":"seconds 400:90","first_present":4381,"ms":90110.623},"presents":465,"frame_ms":{"p50":184.831,"p90":247.746,"p99":285.659,"max":384.426},"gpu_busy_ms_per_present":93.821,"worker_busy_pct":{"queue worker 0x0":98.789,"queue worker 0x20":99.793},"top_phases_ms_per_frame":{"Driver.Packet":383.999,"Driver.Packet.memory_wait":191.728,"Graphics.Draw":92.362,"Graphics.Draw.draw_and_resource_release":82.177,"Driver.Packet.draw":74.415,"Driver.Draw":74.006,"Driver.Packet.dispatch":56.710,"Driver.Dispatch":54.929},"trace_dropped":false,"trace":"aps5-trace-1a3a1b2e0ecb-9892.json.gz"}
{"commit":"bef945671ea8","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"16384","APS5_PAD_INPUT_FILE":"<path>","APS5_PREBUILD_THREADS":"16","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"400:90"},"gpu":"AMD Radeon RX 9070 XT","driver":"AMD proprietary driver 26.8.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 9800X3D 8-Core Processor","cpu_threads":16,"memory_mib":47941,"title_id":"PPSA13197","title":"Stellar Blade","content_version":"01.014.001","resolution":"3840x2160","window":{"spec":"seconds 400:90","first_present":3943,"ms":90078.856},"presents":533,"frame_ms":{"p50":165.526,"p90":184.365,"p99":246.369,"max":361.036},"gpu_busy_ms_per_present":93.671,"worker_busy_pct":{"queue worker 0x0":98.598,"queue worker 0x20":99.802},"top_phases_ms_per_frame":{"Driver.Packet":334.702,"Driver.Packet.memory_wait":167.060,"Graphics.Draw":91.563,"Graphics.Draw.draw_and_resource_release":81.385,"Driver.Packet.draw":74.917,"Driver.Draw":74.512,"Driver.Draw.shader_compile_and_link":37.766,"Driver.Packet.device_lock":34.693},"trace_dropped":false,"trace":"aps5-trace-bef945671ea8-5488.json.gz"}
{"commit":"1a3a1b2e0ecb","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"16384","APS5_PAD_INPUT_FILE":"<path>","APS5_PREBUILD_THREADS":"16","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"400:90"},"gpu":"AMD Radeon RX 9070 XT","driver":"AMD proprietary driver 26.8.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 9800X3D 8-Core Processor","cpu_threads":16,"memory_mib":47941,"title_id":"PPSA13197","title":"Stellar Blade","content_version":"01.014.001","resolution":"3840x2160","window":{"spec":"seconds 400:90","first_present":4312,"ms":90165.492},"presents":563,"frame_ms":{"p50":157.502,"p90":172.037,"p99":229.241,"max":317.513},"gpu_busy_ms_per_present":92.226,"worker_busy_pct":{"queue worker 0x0":98.607,"queue worker 0x20":99.797},"top_phases_ms_per_frame":{"Driver.Packet":317.162,"Driver.Packet.memory_wait":158.209,"Graphics.Draw":86.915,"Graphics.Draw.draw_and_resource_release":77.269,"Driver.Packet.draw":71.380,"Driver.Draw":70.998,"Driver.Draw.shader_compile_and_link":34.483,"Driver.Packet.device_lock":32.126},"trace_dropped":false,"trace":"aps5-trace-1a3a1b2e0ecb-19584.json.gz"}
{"commit":"bef945671ea8","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"16384","APS5_PAD_INPUT_FILE":"<path>","APS5_PREBUILD_THREADS":"16","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"400:90"},"gpu":"AMD Radeon RX 9070 XT","driver":"AMD proprietary driver 26.8.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 9800X3D 8-Core Processor","cpu_threads":16,"memory_mib":47941,"title_id":"PPSA13197","title":"Stellar Blade","content_version":"01.014.001","resolution":"3840x2160","window":{"spec":"seconds 400:90","first_present":4559,"ms":90124.891},"presents":633,"frame_ms":{"p50":140.043,"p90":154.103,"p99":197.853,"max":306.250},"gpu_busy_ms_per_present":84.949,"worker_busy_pct":{"queue worker 0x0":98.501,"queue worker 0x20":99.846},"top_phases_ms_per_frame":{"Driver.Packet":281.864,"Driver.Packet.memory_wait":140.746,"Graphics.Draw":80.600,"Graphics.Draw.draw_and_resource_release":71.421,"Driver.Packet.draw":66.748,"Driver.Draw":66.377,"Driver.Draw.shader_compile_and_link":33.094,"Driver.Packet.device_lock":29.784},"trace_dropped":false,"trace":"aps5-trace-bef945671ea8-14012.json.gz"}

Traces: 1, 2, 3, 4, 5, 6

1 main: trace_digest aps5-trace-1a3a1b2e0ecb-10416.json.gz

seconds 400:90 from present 4210: 531 presents, frame p50 159.9 / p90 187.2 / p99 236.7 / max 1247.2 ms, GPU busy 91.8 ms per present
AMD Radeon RX 9070 XT, AMD proprietary driver 26.8.1 (LLPC), Windows 10.0.26300, 3840x2160, commit 1a3a1b2e0e, dropped: no

{"commit":"1a3a1b2e0ecb","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"16384","APS5_PAD_INPUT_FILE":"<path>","APS5_PREBUILD_THREADS":"16","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"400:90"},"gpu":"AMD Radeon RX 9070 XT","driver":"AMD proprietary driver 26.8.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 9800X3D 8-Core Processor","cpu_threads":16,"memory_mib":47941,"title_id":"PPSA13197","title":"Stellar Blade","content_version":"01.014.001","resolution":"3840x2160","window":{"spec":"seconds 400:90","first_present":4210,"ms":90116.766},"presents":531,"frame_ms":{"p50":159.876,"p90":187.191,"p99":236.66,"max":1247.23},"gpu_busy_ms_per_present":91.84,"worker_busy_pct":{"queue worker 0x0":98.656,"queue worker 0x20":99.707},"top_phases_ms_per_frame":{"Driver.Packet":336.056,"Driver.Packet.memory_wait":167.298,"Graphics.Draw":82.356,"Graphics.Draw.draw_and_resource_release":72.455,"Driver.Packet.draw":71.382,"Driver.Draw":70.992,"Driver.Packet.dispatch":44.933,"Driver.Dispatch":43.116},"trace_dropped":false,"trace":"aps5-trace-1a3a1b2e0ecb-10416.json.gz"}

Slowest frames (largest slices inside each, inclusive)

  • present 4716: 1247.2 ms at 84300 ms: Driver.Packet (queue worker 0x20) 1247.1, Driver.Packet.memory_wait (queue worker 0x20) 1245.2, Driver.Packet (queue worker 0x0) 1226.2, Driver.Packet.dispatch (queue worker 0x0) 1105.9
  • present 4682: 1097.7 ms at 76535 ms: Driver.Packet (queue worker 0x20) 1097.6, Driver.Packet.memory_wait (queue worker 0x20) 1096.2, Driver.Packet (queue worker 0x0) 1076.0, Driver.Packet.dispatch (queue worker 0x0) 951.6
  • present 4701: 866.8 ms at 80796 ms: Driver.Packet (queue worker 0x20) 866.7, Driver.Packet.memory_wait (queue worker 0x20) 864.2, Driver.Packet (queue worker 0x0) 845.7, Driver.Packet.dispatch (queue worker 0x0) 728.3
  • present 4443: 335.8 ms at 37498 ms: Driver.Packet (queue worker 0x20) 335.6, Driver.Packet.memory_wait (queue worker 0x20) 333.7, Driver.Packet (queue worker 0x0) 315.1, Driver.Packet.dispatch (queue worker 0x0) 204.6
  • present 4583: 256.5 ms at 59664 ms: Driver.Packet (queue worker 0x20) 256.4, Driver.Packet.memory_wait (queue worker 0x20) 254.5, Driver.Packet (queue worker 0x0) 235.9, Driver.Packet.dispatch (queue worker 0x0) 123.9

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
shader prepare 0.3 (0 %) 0.0 (0 %) 169.5 0.0 Shader.PrepareArtifact 0.3
shader prepare 0.3 (0 %) 0.0 (0 %) 169.4 0.0 Shader.PrepareArtifact 0.3
shader prepare 0.1 (0 %) 0.0 (0 %) 169.6 0.0 Shader.PrepareArtifact 0.1
shader prepare 0.3 (0 %) 0.0 (0 %) 169.4 0.0 Shader.PrepareArtifact 0.3
shader prepare 0.2 (0 %) 0.0 (0 %) 169.5 0.0 Shader.PrepareArtifact 0.2
shader prepare 0.2 (0 %) 0.0 (0 %) 169.5 0.0 Shader.PrepareArtifact 0.2
shader prepare 0.3 (0 %) 0.0 (0 %) 169.4 0.0 Shader.PrepareArtifact 0.3
shader prepare 0.3 (0 %) 0.0 (0 %) 169.4 0.0 Shader.PrepareArtifact 0.3
queue worker 0x0 144.8 (85 %) 5.5 (3 %) 19.4 104.2 Driver.Packet 149.9, Driver.EndSubmission 0.4
draw committer 61.4 (36 %) 6.6 (4 %) 101.7 18.9 Graphics.Draw 65.9, Recorder.Submit 1.4
presenter 0.5 (0 %) 1.5 (1 %) 167.7 0.1 VideoOut.Flip 2.0, Driver.Present 0.0
title 0.0 (0 %) 0.0 (0 %) 169.7 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 169.7 0.0 Shader.Register 0.0
title 0.0 (0 %) 0.0 (0 %) 169.7 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 169.7 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 169.7 0.0 Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 169.7 0.0 Shader.ResolveGraphicsStagesAbi 0.0
queue worker 0x20 0.5 (0 %) 168.8 (99 %) 0.4 0.1 Driver.Packet 169.1, Driver.EndSubmission 0.1
gpu 91.9 (54 %) 0.0 (0 %) 77.8 0.0 batch 91.9

Largest slices (ms per frame, inclusive, all threads): Driver.Packet 319.0, Driver.Packet.memory_wait 167.3, batch 91.9, Graphics.Draw 77.0, Graphics.Draw.draw_and_resource_release 67.4, Driver.Packet.draw 66.1, Driver.Draw 65.8, Driver.Packet.dispatch 44.3, Driver.Dispatch 42.5, Driver.Draw.shader_compile_and_link 29.6

Longest waits

  • Driver.Packet.memory_wait (queue worker 0x20) 1247.2 ms at 84385 ms, present 4716
  • Driver.Packet.memory_wait (queue worker 0x20) 1097.6 ms at 76622 ms, present 4682
  • Driver.Packet.memory_wait (queue worker 0x20) 866.0 ms at 80879 ms, present 4701
  • Driver.Packet.memory_wait (queue worker 0x20) 342.4 ms at 37576 ms, present 4443
  • Driver.Packet.memory_wait (queue worker 0x20) 240.4 ms at 59544 ms, present 4582
  • Driver.Packet.memory_wait (queue worker 0x20) 230.9 ms at 1068 ms, present 4216
  • Driver.Packet.memory_wait (queue worker 0x20) 228.6 ms at 7363 ms, present 4254
  • Driver.Packet.memory_wait (queue worker 0x20) 222.7 ms at 3623 ms, present 4231
  • Driver.Packet.memory_wait (queue worker 0x20) 213.7 ms at 82709 ms, present 4707
  • Driver.Packet.memory_wait (queue worker 0x20) 212.6 ms at 87870 ms, present 4729

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

  • batch 48071: 14.9 ms at 72579 ms, present 4660: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 1.0, Driver.Packet.dispatch (queue worker 0x0) 1.0, Driver.Dispatch (queue worker 0x0) 1.0, Driver.Packet.device_lock (queue worker 0x0) 0.2
  • batch 47947: 14.4 ms at 72388 ms, present 4659: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 0.9, Driver.Packet.dispatch (queue worker 0x0) 0.9, Driver.Dispatch (queue worker 0x0) 0.9, Driver.Packet.device_lock (queue worker 0x0) 0.3
  • batch 40153: 14.2 ms at 60776 ms, present 4588: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 1.0, Driver.Packet.dispatch (queue worker 0x0) 0.9, Driver.Dispatch (queue worker 0x0) 0.9, Driver.Packet.device_lock (queue worker 0x0) 0.2
  • batch 42190: 13.5 ms at 63874 ms, present 4606: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 1.1, Driver.Packet.dispatch (queue worker 0x0) 0.8, Driver.Dispatch (queue worker 0x0) 0.8, Driver.Packet.device_lock (queue worker 0x0) 0.3
  • batch 41544: 13.4 ms at 62897 ms, present 4600: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 1.0, Driver.Packet.dispatch (queue worker 0x0) 1.0, Driver.Dispatch (queue worker 0x0) 1.0, Driver.Packet.device_lock (queue worker 0x0) 0.2
2 PR: trace_digest aps5-trace-bef945671ea8-28528.json.gz

seconds 400:90 from present 4388: 498 presents, frame p50 179.8 / p90 194.8 / p99 248.6 / max 310.6 ms, GPU busy 93.3 ms per present
AMD Radeon RX 9070 XT, AMD proprietary driver 26.8.1 (LLPC), Windows 10.0.26300, 3840x2160, commit bef945671ea8, dropped: no

{"commit":"bef945671ea8","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"16384","APS5_PAD_INPUT_FILE":"<path>","APS5_PREBUILD_THREADS":"16","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"400:90"},"gpu":"AMD Radeon RX 9070 XT","driver":"AMD proprietary driver 26.8.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 9800X3D 8-Core Processor","cpu_threads":16,"memory_mib":47941,"title_id":"PPSA13197","title":"Stellar Blade","content_version":"01.014.001","resolution":"3840x2160","window":{"spec":"seconds 400:90","first_present":4388,"ms":90049.774},"presents":498,"frame_ms":{"p50":179.761,"p90":194.837,"p99":248.631,"max":310.557},"gpu_busy_ms_per_present":93.28,"worker_busy_pct":{"queue worker 0x0":98.771,"queue worker 0x20":99.776},"top_phases_ms_per_frame":{"Driver.Packet":358.375,"Driver.Packet.memory_wait":178.445,"Graphics.Draw":107.85,"Graphics.Draw.draw_and_resource_release":98.172,"Driver.Packet.draw":92.069,"Driver.Draw":91.681,"Driver.Draw.shader_compile_and_link":34.057,"Driver.Draw.draw_enqueued":33.008},"trace_dropped":false,"trace":"aps5-trace-bef945671ea8-28528.json.gz"}

Slowest frames (largest slices inside each, inclusive)

  • present 4688: 310.6 ms at 54861 ms: Driver.Packet (queue worker 0x20) 309.8, Driver.Packet.memory_wait (queue worker 0x20) 307.9, Driver.Packet (queue worker 0x0) 290.9, Driver.Packet.dispatch (queue worker 0x0) 162.0
  • present 4454: 273.3 ms at 12353 ms: Driver.Packet (queue worker 0x20) 273.3, Driver.Packet.memory_wait (queue worker 0x20) 272.0, Driver.Packet (queue worker 0x0) 253.5, Driver.Packet.draw (queue worker 0x0) 106.2
  • present 4567: 251.4 ms at 32892 ms: Driver.Packet (queue worker 0x20) 251.2, Driver.Packet.memory_wait (queue worker 0x20) 249.9, Driver.Packet (queue worker 0x0) 234.5, Graphics.Draw (draw committer) 93.0
  • present 4453: 249.5 ms at 12103 ms: Driver.Packet (queue worker 0x20) 249.3, Driver.Packet.memory_wait (queue worker 0x20) 246.9, Driver.Packet (queue worker 0x0) 232.6, batch (gpu) 98.2
  • present 4437: 248.6 ms at 9086 ms: Driver.Packet (queue worker 0x20) 248.6, Driver.Packet.memory_wait (queue worker 0x20) 247.2, Driver.Packet (queue worker 0x0) 231.8, Graphics.Draw (draw committer) 104.2

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
shader prepare 0.1 (0 %) 0.0 (0 %) 180.8 0.0 Shader.PrepareArtifact 0.1
shader prepare 0.0 (0 %) 0.0 (0 %) 180.8 0.0 Shader.PrepareArtifact 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 180.8 0.0 Shader.PrepareArtifact 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 180.8 0.0 Shader.PrepareArtifact 0.0
shader prepare 0.1 (0 %) 0.0 (0 %) 180.8 0.0 Shader.PrepareArtifact 0.1
shader prepare 0.1 (0 %) 0.0 (0 %) 180.8 0.0 Shader.PrepareArtifact 0.1
shader prepare 0.0 (0 %) 0.0 (0 %) 180.8 0.0 Shader.PrepareArtifact 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 180.8 0.0 Shader.PrepareArtifact 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 180.8 0.0 Vulkan.GraphicsPipelinePrebuild 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 180.8 0.0 Vulkan.GraphicsPipelinePrebuild 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 180.8 0.0 Vulkan.GraphicsPipelinePrebuild 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 180.8 0.0 Vulkan.GraphicsPipelinePrebuild 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 180.8 0.0 Vulkan.GraphicsPipelinePrebuild 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 180.8 0.0 Vulkan.GraphicsPipelinePrebuild 0.0
queue worker 0x0 156.2 (86 %) 6.9 (4 %) 17.7 98.9 Driver.Packet 162.6, Driver.EndSubmission 0.5
draw committer 90.3 (50 %) 3.4 (2 %) 87.1 18.0 Graphics.Draw 91.3, Recorder.Submit 1.7
presenter 0.5 (0 %) 0.2 (0 %) 180.1 0.1 VideoOut.Flip 0.7, Driver.Present 0.0
title 0.0 (0 %) 0.0 (0 %) 180.8 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 180.8 0.0 Shader.Register 0.0
title 0.0 (0 %) 0.0 (0 %) 180.8 0.0 Shader.ResolveAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 180.8 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
queue worker 0x20 0.5 (0 %) 179.9 (99 %) 0.4 0.1 Driver.Packet 180.3, Driver.EndSubmission 0.1
title 0.0 (0 %) 0.0 (0 %) 180.8 0.0 Shader.Register 0.0
gpu 93.0 (51 %) 0.0 (0 %) 87.8 0.0 batch 93.0

Largest slices (ms per frame, inclusive, all threads): Driver.Packet 342.9, Driver.Packet.memory_wait 178.4, Graphics.Draw 103.4, Graphics.Draw.draw_and_resource_release 93.0, batch 93.0, Driver.Packet.draw 87.1, Driver.Draw 86.8, Driver.Draw.draw_enqueued 31.1, Driver.Packet.dispatch 29.1, Driver.Packet.device_lock 28.5

Longest waits

  • Driver.Packet.memory_wait (queue worker 0x20) 316.1 ms at 54931 ms, present 4688
  • Driver.Packet.memory_wait (queue worker 0x20) 281.0 ms at 12422 ms, present 4454
  • Driver.Packet.memory_wait (queue worker 0x20) 249.6 ms at 32964 ms, present 4567
  • Driver.Packet.memory_wait (queue worker 0x20) 242.0 ms at 8986 ms, present 4436
  • Driver.Packet.memory_wait (queue worker 0x20) 241.6 ms at 12179 ms, present 4453
  • Driver.Packet.memory_wait (queue worker 0x20) 238.1 ms at 25552 ms, present 4526
  • Driver.Packet.memory_wait (queue worker 0x20) 224.2 ms at 10178 ms, present 4442
  • Driver.Packet.memory_wait (queue worker 0x20) 219.1 ms at 15057 ms, present 4468
  • Driver.Packet.memory_wait (queue worker 0x20) 209.5 ms at 298 ms, present 4389
  • Driver.Packet.memory_wait (queue worker 0x20) 207.9 ms at 55249 ms, present 4689

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

  • batch 6756: 17.6 ms at 12603 ms, present 4454: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 1.1, Driver.Packet.dispatch (queue worker 0x0) 1.0, Driver.Dispatch (queue worker 0x0) 1.0, Driver.Packet.device_lock (queue worker 0x0) 0.3
  • batch 46442: 14.1 ms at 84338 ms, present 4853: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 1.2, Driver.Packet.dispatch (queue worker 0x0) 1.1, Driver.Dispatch (queue worker 0x0) 1.1, Driver.Packet.device_lock (queue worker 0x0) 0.3
  • batch 18759: 13.9 ms at 34212 ms, present 4573: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 1.1, Driver.Packet.dispatch (queue worker 0x0) 1.0, Driver.Dispatch (queue worker 0x0) 1.0, Driver.Packet.device_lock (queue worker 0x0) 0.3
  • batch 44818: 13.8 ms at 81389 ms, present 4837: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 1.0, Driver.Packet.dispatch (queue worker 0x0) 0.9, Driver.Dispatch (queue worker 0x0) 0.9, Driver.Packet.device_lock (queue worker 0x0) 0.2
  • batch 34109: 13.6 ms at 62080 ms, present 4727: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 1.0, Driver.Packet.dispatch (queue worker 0x0) 1.0, Driver.Dispatch (queue worker 0x0) 1.0, Driver.Packet.device_lock (queue worker 0x0) 0.2
3 main: trace_digest aps5-trace-1a3a1b2e0ecb-9892.json.gz

seconds 400:90 from present 4381: 465 presents, frame p50 184.8 / p90 247.7 / p99 285.7 / max 384.4 ms, GPU busy 93.8 ms per present
AMD Radeon RX 9070 XT, AMD proprietary driver 26.8.1 (LLPC), Windows 10.0.26300, 3840x2160, commit 1a3a1b2e0e, dropped: no

{"commit":"1a3a1b2e0ecb","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"16384","APS5_PAD_INPUT_FILE":"<path>","APS5_PREBUILD_THREADS":"16","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"400:90"},"gpu":"AMD Radeon RX 9070 XT","driver":"AMD proprietary driver 26.8.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 9800X3D 8-Core Processor","cpu_threads":16,"memory_mib":47941,"title_id":"PPSA13197","title":"Stellar Blade","content_version":"01.014.001","resolution":"3840x2160","window":{"spec":"seconds 400:90","first_present":4381,"ms":90110.623},"presents":465,"frame_ms":{"p50":184.831,"p90":247.746,"p99":285.659,"max":384.426},"gpu_busy_ms_per_present":93.821,"worker_busy_pct":{"queue worker 0x0":98.789,"queue worker 0x20":99.793},"top_phases_ms_per_frame":{"Driver.Packet":383.999,"Driver.Packet.memory_wait":191.728,"Graphics.Draw":92.362,"Graphics.Draw.draw_and_resource_release":82.177,"Driver.Packet.draw":74.415,"Driver.Draw":74.006,"Driver.Packet.dispatch":56.71,"Driver.Dispatch":54.929},"trace_dropped":false,"trace":"aps5-trace-1a3a1b2e0ecb-9892.json.gz"}

Slowest frames (largest slices inside each, inclusive)

  • present 4798: 384.4 ms at 80093 ms: Driver.Packet (queue worker 0x20) 384.3, Driver.Packet.memory_wait (queue worker 0x20) 382.7, Driver.Packet (queue worker 0x0) 364.6, Driver.Packet.draw (queue worker 0x0) 267.9
  • present 4508: 329.6 ms at 26999 ms: Driver.Packet (queue worker 0x20) 329.4, Driver.Packet.memory_wait (queue worker 0x20) 328.0, Driver.Packet (queue worker 0x0) 307.0, Driver.Packet.dispatch (queue worker 0x0) 162.0
  • present 4740: 325.6 ms at 68872 ms: Driver.Packet (queue worker 0x20) 325.5, Driver.Packet.memory_wait (queue worker 0x20) 324.1, Driver.Packet (queue worker 0x0) 303.0, Driver.Packet.dispatch (queue worker 0x0) 153.5
  • present 4739: 310.1 ms at 68562 ms: Driver.Packet (queue worker 0x20) 309.9, Driver.Packet.memory_wait (queue worker 0x20) 308.0, Driver.Packet (queue worker 0x0) 287.0, Driver.Packet.dispatch (queue worker 0x0) 144.8
  • present 4474: 285.7 ms at 18776 ms: Driver.Packet (queue worker 0x20) 285.5, Driver.Packet.memory_wait (queue worker 0x20) 283.1, Driver.Packet (queue worker 0x0) 263.4, Graphics.Draw (draw committer) 133.2

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
shader prepare 0.0 (0 %) 0.0 (0 %) 193.8 0.0 Shader.PrepareArtifact 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 193.8 0.0 Shader.PrepareArtifact 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 193.8 0.0 Shader.PrepareArtifact 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 193.7 0.0 Shader.PrepareArtifact 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 193.8 0.0 Shader.PrepareArtifact 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 193.8 0.0 Shader.PrepareArtifact 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 193.8 0.0 Shader.PrepareArtifact 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 193.8 0.0 Vulkan.GraphicsPipelinePrebuild 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 193.8 0.0 Vulkan.GraphicsPipelinePrebuild 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 193.8 0.0 Vulkan.GraphicsPipelinePrebuild 0.0
queue worker 0x0 168.8 (87 %) 5.0 (3 %) 20.0 105.2 Driver.Packet 173.1, Driver.EndSubmission 0.7
draw committer 69.5 (36 %) 9.3 (5 %) 114.9 19.0 Graphics.Draw 76.7, Recorder.Submit 1.5
presenter 0.5 (0 %) 1.6 (1 %) 191.7 0.1 VideoOut.Flip 2.1, Driver.Present 0.0
title 0.0 (0 %) 0.0 (0 %) 193.8 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 193.8 0.0 Shader.Register 0.0
queue worker 0x20 0.5 (0 %) 192.9 (100 %) 0.4 0.1 Driver.Packet 193.3, Driver.EndSubmission 0.1
gpu 93.9 (48 %) 0.0 (0 %) 99.9 0.0 batch 93.9

Largest slices (ms per frame, inclusive, all threads): Driver.Packet 366.3, Driver.Packet.memory_wait 191.7, batch 93.9, Graphics.Draw 87.0, Graphics.Draw.draw_and_resource_release 77.2, Driver.Packet.draw 69.2, Driver.Draw 68.8, Driver.Packet.dispatch 55.8, Driver.Dispatch 54.0, Vulkan.Dispatch 37.6

Longest waits

  • Driver.Packet.memory_wait (queue worker 0x20) 366.1 ms at 80203 ms, present 4798
  • Driver.Packet.memory_wait (queue worker 0x20) 324.5 ms at 68711 ms, present 4739
  • Driver.Packet.memory_wait (queue worker 0x20) 322.3 ms at 26920 ms, present 4507
  • Driver.Packet.memory_wait (queue worker 0x20) 278.6 ms at 18962 ms, present 4474
  • Driver.Packet.memory_wait (queue worker 0x20) 276.7 ms at 67324 ms, present 4733
  • Driver.Packet.memory_wait (queue worker 0x20) 268.9 ms at 14563 ms, present 4455
  • Driver.Packet.memory_wait (queue worker 0x20) 268.5 ms at 12771 ms, present 4448
  • Driver.Packet.memory_wait (queue worker 0x20) 267.5 ms at 18163 ms, present 4471
  • Driver.Packet.memory_wait (queue worker 0x20) 266.4 ms at 13041 ms, present 4449
  • Driver.Packet.memory_wait (queue worker 0x20) 266.0 ms at 18694 ms, present 4473

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

  • batch 54682: 13.8 ms at 81747 ms, present 4805: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 1.0, Driver.Packet.dispatch (queue worker 0x0) 1.0, Driver.Dispatch (queue worker 0x0) 1.0, Driver.Packet.device_lock (queue worker 0x0) 0.3
  • batch 55999: 13.5 ms at 83796 ms, present 4815: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 1.5, Driver.Packet.dispatch (queue worker 0x0) 1.1, Driver.Dispatch (queue worker 0x0) 1.1, Driver.Packet.device_lock (queue worker 0x0) 0.3
  • batch 45189: 13.4 ms at 66184 ms, present 4728: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 1.0, Driver.Packet.dispatch (queue worker 0x0) 0.9, Driver.Dispatch (queue worker 0x0) 0.9, Driver.Packet.device_lock (queue worker 0x0) 0.2
  • batch 59257: 13.4 ms at 89000 ms, present 4840: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 1.5, Driver.Packet.dispatch (queue worker 0x0) 1.0, Driver.Dispatch (queue worker 0x0) 1.0, Driver.Packet.device_lock (queue worker 0x0) 0.3
  • batch 55071: 13.3 ms at 82350 ms, present 4808: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 1.4, Driver.Packet.dispatch (queue worker 0x0) 1.0, Driver.Dispatch (queue worker 0x0) 1.0, Driver.Packet.device_lock (queue worker 0x0) 0.3
4 PR: trace_digest aps5-trace-bef945671ea8-5488.json.gz

seconds 400:90 from present 3943: 533 presents, frame p50 165.5 / p90 184.4 / p99 246.4 / max 361.0 ms, GPU busy 93.7 ms per present
AMD Radeon RX 9070 XT, AMD proprietary driver 26.8.1 (LLPC), Windows 10.0.26300, 3840x2160, commit bef945671ea8, dropped: no

{"commit":"bef945671ea8","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"16384","APS5_PAD_INPUT_FILE":"<path>","APS5_PREBUILD_THREADS":"16","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"400:90"},"gpu":"AMD Radeon RX 9070 XT","driver":"AMD proprietary driver 26.8.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 9800X3D 8-Core Processor","cpu_threads":16,"memory_mib":47941,"title_id":"PPSA13197","title":"Stellar Blade","content_version":"01.014.001","resolution":"3840x2160","window":{"spec":"seconds 400:90","first_present":3943,"ms":90078.856},"presents":533,"frame_ms":{"p50":165.526,"p90":184.365,"p99":246.369,"max":361.036},"gpu_busy_ms_per_present":93.671,"worker_busy_pct":{"queue worker 0x0":98.598,"queue worker 0x20":99.802},"top_phases_ms_per_frame":{"Driver.Packet":334.702,"Driver.Packet.memory_wait":167.06,"Graphics.Draw":91.563,"Graphics.Draw.draw_and_resource_release":81.385,"Driver.Packet.draw":74.917,"Driver.Draw":74.512,"Driver.Draw.shader_compile_and_link":37.766,"Driver.Packet.device_lock":34.693},"trace_dropped":false,"trace":"aps5-trace-bef945671ea8-5488.json.gz"}

Slowest frames (largest slices inside each, inclusive)

  • present 4309: 361.0 ms at 61534 ms: Driver.Packet (queue worker 0x20) 360.9, Driver.Packet.memory_wait (queue worker 0x20) 359.0, Driver.Packet (queue worker 0x0) 339.9, Driver.Packet.dispatch (queue worker 0x0) 214.5
  • present 4072: 303.1 ms at 21930 ms: Driver.Packet (queue worker 0x20) 302.9, Driver.Packet.memory_wait (queue worker 0x20) 301.2, Driver.Packet (queue worker 0x0) 284.4, Driver.Packet.dispatch (queue worker 0x0) 169.3
  • present 4122: 271.3 ms at 30609 ms: Driver.Packet (queue worker 0x20) 271.1, Driver.Packet.memory_wait (queue worker 0x20) 269.2, Driver.Packet (queue worker 0x0) 250.4, batch (gpu) 99.8
  • present 3995: 260.6 ms at 9190 ms: Driver.Packet (queue worker 0x20) 260.4, Driver.Packet.memory_wait (queue worker 0x20) 259.0, Driver.Packet (queue worker 0x0) 239.9, batch (gpu) 103.9
  • present 4099: 259.4 ms at 26512 ms: Driver.Packet (queue worker 0x20) 259.3, Driver.Packet.memory_wait (queue worker 0x20) 257.1, Driver.Packet (queue worker 0x0) 239.2, Driver.Packet.dispatch (queue worker 0x0) 111.9

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
shader prepare 0.1 (0 %) 0.0 (0 %) 168.9 0.0 Shader.PrepareArtifact 0.1
shader prepare 0.1 (0 %) 0.0 (0 %) 168.9 0.0 Shader.PrepareArtifact 0.1
shader prepare 0.1 (0 %) 0.0 (0 %) 168.9 0.0 Shader.PrepareArtifact 0.1
shader prepare 0.1 (0 %) 0.0 (0 %) 168.9 0.0 Shader.PrepareArtifact 0.1
shader prepare 0.0 (0 %) 0.0 (0 %) 169.0 0.0 Shader.PrepareArtifact 0.0
shader prepare 0.1 (0 %) 0.0 (0 %) 168.9 0.0 Shader.PrepareArtifact 0.1
shader prepare 0.1 (0 %) 0.0 (0 %) 169.0 0.0 Shader.PrepareArtifact 0.1
shader prepare 0.1 (0 %) 0.0 (0 %) 168.9 0.0 Shader.PrepareArtifact 0.1
shader prepare 0.0 (0 %) 0.0 (0 %) 169.0 0.0 Vulkan.GraphicsPipelinePrebuild 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 169.0 0.0 Vulkan.GraphicsPipelinePrebuild 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 169.0 0.0 Vulkan.GraphicsPipelinePrebuild 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 169.0 0.0 Vulkan.GraphicsPipelinePrebuild 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 169.0 0.0 Vulkan.GraphicsPipelinePrebuild 0.0
shader prepare 0.0 (0 %) 0.0 (0 %) 169.0 0.0 Vulkan.GraphicsPipelinePrebuild 0.0
queue worker 0x0 144.7 (86 %) 4.8 (3 %) 19.5 104.6 Driver.Packet 148.9, Driver.EndSubmission 0.5
draw committer 73.2 (43 %) 3.6 (2 %) 92.1 18.6 Graphics.Draw 74.7, Recorder.Submit 1.6
presenter 0.5 (0 %) 2.0 (1 %) 166.4 0.1 VideoOut.Flip 2.6, Driver.Present 0.0
title 0.0 (0 %) 0.0 (0 %) 169.0 0.0 Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 169.0 0.0 Shader.Register 0.0
title 0.0 (0 %) 0.0 (0 %) 169.0 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 169.0 0.0 Shader.Register 0.0
queue worker 0x20 0.6 (0 %) 168.1 (99 %) 0.4 0.1 Driver.Packet 168.6, Driver.EndSubmission 0.1
gpu 93.7 (55 %) 0.0 (0 %) 75.4 0.0 batch 93.7

Largest slices (ms per frame, inclusive, all threads): Driver.Packet 317.5, Driver.Packet.memory_wait 167.0, batch 93.7, Graphics.Draw 86.5, Graphics.Draw.draw_and_resource_release 76.5, Driver.Packet.draw 69.8, Driver.Draw 69.4, Driver.Packet.dispatch 32.3, Driver.Draw.shader_compile_and_link 32.2, Driver.Packet.device_lock 30.6

Longest waits

  • Driver.Packet.memory_wait (queue worker 0x20) 373.2 ms at 61619 ms, present 4309
  • Driver.Packet.memory_wait (queue worker 0x20) 306.2 ms at 22006 ms, present 4072
  • Driver.Packet.memory_wait (queue worker 0x20) 262.9 ms at 30687 ms, present 4122
  • Driver.Packet.memory_wait (queue worker 0x20) 262.6 ms at 6873 ms, present 3982
  • Driver.Packet.memory_wait (queue worker 0x20) 256.7 ms at 26418 ms, present 4098
  • Driver.Packet.memory_wait (queue worker 0x20) 250.8 ms at 9286 ms, present 3995
  • Driver.Packet.memory_wait (queue worker 0x20) 228.2 ms at 56160 ms, present 4278
  • Driver.Packet.memory_wait (queue worker 0x20) 227.6 ms at 61993 ms, present 4310
  • Driver.Packet.memory_wait (queue worker 0x20) 217.5 ms at 25813 ms, present 4095
  • Driver.Packet.memory_wait (queue worker 0x20) 216.2 ms at 23281 ms, present 4079

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

  • batch 37543: 15.7 ms at 62299 ms, present 4311: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 1.2, Driver.Packet.dispatch (queue worker 0x0) 1.1, Driver.Dispatch (queue worker 0x0) 1.1, Driver.Packet.device_lock (queue worker 0x0) 0.2
  • batch 13407: 15.1 ms at 22413 ms, present 4073: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 1.1, Driver.Packet.dispatch (queue worker 0x0) 1.0, Driver.Dispatch (queue worker 0x0) 1.0, Driver.Packet.device_lock (queue worker 0x0) 0.2
  • batch 48220: 14.8 ms at 79969 ms, present 4415: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 1.4, Driver.Packet.dispatch (queue worker 0x0) 0.9, Driver.Dispatch (queue worker 0x0) 0.9, Driver.Packet.device_lock (queue worker 0x0) 0.4
  • batch 26777: 14.0 ms at 44373 ms, present 4205: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 1.0, Driver.Packet.dispatch (queue worker 0x0) 0.8, Driver.Dispatch (queue worker 0x0) 0.8, Driver.Packet.device_lock (queue worker 0x0) 0.3
  • batch 25734: 13.7 ms at 42688 ms, present 4195: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 1.3, Driver.Packet.dispatch (queue worker 0x0) 0.8, Driver.Dispatch (queue worker 0x0) 0.8, Driver.Packet.device_lock (queue worker 0x0) 0.4
5 main: trace_digest aps5-trace-1a3a1b2e0ecb-19584.json.gz

seconds 400:90 from present 4312: 563 presents, frame p50 157.5 / p90 172.0 / p99 229.2 / max 317.5 ms, GPU busy 92.2 ms per present
AMD Radeon RX 9070 XT, AMD proprietary driver 26.8.1 (LLPC), Windows 10.0.26300, 3840x2160, commit 1a3a1b2e0e, dropped: no

{"commit":"1a3a1b2e0ecb","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"16384","APS5_PAD_INPUT_FILE":"<path>","APS5_PREBUILD_THREADS":"16","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"400:90"},"gpu":"AMD Radeon RX 9070 XT","driver":"AMD proprietary driver 26.8.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 9800X3D 8-Core Processor","cpu_threads":16,"memory_mib":47941,"title_id":"PPSA13197","title":"Stellar Blade","content_version":"01.014.001","resolution":"3840x2160","window":{"spec":"seconds 400:90","first_present":4312,"ms":90165.492},"presents":563,"frame_ms":{"p50":157.502,"p90":172.037,"p99":229.241,"max":317.513},"gpu_busy_ms_per_present":92.226,"worker_busy_pct":{"queue worker 0x0":98.607,"queue worker 0x20":99.797},"top_phases_ms_per_frame":{"Driver.Packet":317.162,"Driver.Packet.memory_wait":158.209,"Graphics.Draw":86.915,"Graphics.Draw.draw_and_resource_release":77.269,"Driver.Packet.draw":71.38,"Driver.Draw":70.998,"Driver.Draw.shader_compile_and_link":34.483,"Driver.Packet.device_lock":32.126},"trace_dropped":false,"trace":"aps5-trace-1a3a1b2e0ecb-19584.json.gz"}

Slowest frames (largest slices inside each, inclusive)

  • present 4544: 317.5 ms at 36786 ms: Driver.Packet (queue worker 0x20) 317.3, Driver.Packet.memory_wait (queue worker 0x20) 315.9, Driver.Packet (queue worker 0x0) 297.7, Driver.Packet.dispatch (queue worker 0x0) 181.5
  • present 4873: 285.1 ms at 89695 ms: Driver.Packet (queue worker 0x20) 284.9, Driver.Packet.memory_wait (queue worker 0x20) 283.4, Driver.Packet (queue worker 0x0) 265.2, Driver.Packet.dispatch (queue worker 0x0) 134.6
  • present 4601: 252.5 ms at 45904 ms: Driver.Packet (queue worker 0x20) 252.4, Driver.Packet.memory_wait (queue worker 0x20) 250.8, Driver.Packet (queue worker 0x0) 231.7, Driver.Packet.dispatch (queue worker 0x0) 107.3
  • present 4846: 244.1 ms at 85232 ms: Driver.Packet (queue worker 0x20) 244.0, Driver.Packet.memory_wait (queue worker 0x20) 242.5, Driver.Packet (queue worker 0x0) 225.3, Driver.Packet.dispatch (queue worker 0x0) 118.6
  • present 4602: 241.4 ms at 46157 ms: Driver.Packet (queue worker 0x20) 241.3, Driver.Packet.memory_wait (queue worker 0x20) 239.8, Driver.Packet (queue worker 0x0) 221.8, Driver.Packet.dispatch (queue worker 0x0) 112.5

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
shader prepare 0.1 (0 %) 0.0 (0 %) 160.1 0.0 Shader.PrepareArtifact 0.1
shader prepare 0.1 (0 %) 0.0 (0 %) 160.1 0.0 Shader.PrepareArtifact 0.1
shader prepare 0.1 (0 %) 0.0 (0 %) 160.0 0.0 Shader.PrepareArtifact 0.1
shader prepare 0.1 (0 %) 0.0 (0 %) 160.1 0.0 Shader.PrepareArtifact 0.1
shader prepare 0.1 (0 %) 0.0 (0 %) 160.1 0.0 Shader.PrepareArtifact 0.1
shader prepare 0.1 (0 %) 0.0 (0 %) 160.1 0.0 Shader.PrepareArtifact 0.1
shader prepare 0.1 (0 %) 0.0 (0 %) 160.1 0.0 Shader.PrepareArtifact 0.1
shader prepare 0.1 (0 %) 0.0 (0 %) 160.1 0.0 Shader.PrepareArtifact 0.1
queue worker 0x0 135.2 (84 %) 5.8 (4 %) 19.1 103.5 Driver.Packet 140.6, Driver.EndSubmission 0.4
draw committer 69.4 (43 %) 3.6 (2 %) 87.1 18.7 Graphics.Draw 70.9, Recorder.Submit 1.5
presenter 0.5 (0 %) 1.3 (1 %) 158.3 0.1 VideoOut.Flip 1.8, Driver.Present 0.0
title 0.0 (0 %) 0.0 (0 %) 160.2 0.0 Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 160.1 0.0 Shader.Register 0.0
queue worker 0x20 0.5 (0 %) 159.3 (99 %) 0.3 0.1 Driver.Packet 159.7, Driver.EndSubmission 0.1
gpu 92.4 (58 %) 0.0 (0 %) 67.7 0.0 batch 92.4

Largest slices (ms per frame, inclusive, all threads): Driver.Packet 300.3, Driver.Packet.memory_wait 158.2, batch 92.4, Graphics.Draw 81.5, Graphics.Draw.draw_and_resource_release 72.2, Driver.Packet.draw 66.2, Driver.Draw 65.9, Driver.Packet.dispatch 30.3, Driver.Draw.shader_compile_and_link 28.8, Driver.Dispatch 28.3

Longest waits

  • Driver.Packet.memory_wait (queue worker 0x20) 318.6 ms at 36858 ms, present 4544
  • Driver.Packet.memory_wait (queue worker 0x20) 288.0 ms at 89785 ms, present 4873
  • Driver.Packet.memory_wait (queue worker 0x20) 252.0 ms at 85300 ms, present 4846
  • Driver.Packet.memory_wait (queue worker 0x20) 243.9 ms at 46031 ms, present 4601
  • Driver.Packet.memory_wait (queue worker 0x20) 226.6 ms at 87406 ms, present 4859
  • Driver.Packet.memory_wait (queue worker 0x20) 225.4 ms at 73 ms, present 4312
  • Driver.Packet.memory_wait (queue worker 0x20) 211.3 ms at 45818 ms, present 4600
  • Driver.Packet.memory_wait (queue worker 0x20) 205.5 ms at 37178 ms, present 4545
  • Driver.Packet.memory_wait (queue worker 0x20) 192.8 ms at 2994 ms, present 4329
  • Driver.Packet.memory_wait (queue worker 0x20) 191.7 ms at 46277 ms, present 4602

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

  • batch 53347: 14.1 ms at 85458 ms, present 4846: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 1.0, Driver.Packet.dispatch (queue worker 0x0) 0.9, Driver.Dispatch (queue worker 0x0) 0.9, Driver.Packet.device_lock (queue worker 0x0) 0.2
  • batch 37138: 13.8 ms at 59765 ms, present 4684: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 1.1, Driver.Packet.dispatch (queue worker 0x0) 1.0, Driver.Dispatch (queue worker 0x0) 1.0, Driver.Packet.device_lock (queue worker 0x0) 0.3
  • batch 29346: 13.7 ms at 47212 ms, present 4607: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 1.4, Driver.Packet.dispatch (queue worker 0x0) 0.9, Driver.Dispatch (queue worker 0x0) 0.9, Driver.Packet.device_lock (queue worker 0x0) 0.4
  • batch 43906: 13.4 ms at 70414 ms, present 4752: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 1.0, Driver.Packet.dispatch (queue worker 0x0) 1.0, Driver.Dispatch (queue worker 0x0) 1.0, Driver.Packet.device_lock (queue worker 0x0) 0.2
  • batch 28423: 13.3 ms at 45551 ms, present 4598: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 2.1, Driver.Packet.dispatch (queue worker 0x0) 0.9, Driver.Dispatch (queue worker 0x0) 0.9, Driver.Packet.device_lock (queue worker 0x0) 0.6
6 PR: trace_digest aps5-trace-bef945671ea8-14012.json.gz

seconds 400:90 from present 4559: 633 presents, frame p50 140.0 / p90 154.1 / p99 197.9 / max 306.2 ms, GPU busy 84.9 ms per present
AMD Radeon RX 9070 XT, AMD proprietary driver 26.8.1 (LLPC), Windows 10.0.26300, 3840x2160, commit bef945671ea8, dropped: no

{"commit":"bef945671ea8","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"16384","APS5_PAD_INPUT_FILE":"<path>","APS5_PREBUILD_THREADS":"16","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"400:90"},"gpu":"AMD Radeon RX 9070 XT","driver":"AMD proprietary driver 26.8.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 9800X3D 8-Core Processor","cpu_threads":16,"memory_mib":47941,"title_id":"PPSA13197","title":"Stellar Blade","content_version":"01.014.001","resolution":"3840x2160","window":{"spec":"seconds 400:90","first_present":4559,"ms":90124.891},"presents":633,"frame_ms":{"p50":140.043,"p90":154.103,"p99":197.853,"max":306.25},"gpu_busy_ms_per_present":84.949,"worker_busy_pct":{"queue worker 0x0":98.501,"queue worker 0x20":99.846},"top_phases_ms_per_frame":{"Driver.Packet":281.864,"Driver.Packet.memory_wait":140.746,"Graphics.Draw":80.6,"Graphics.Draw.draw_and_resource_release":71.421,"Driver.Packet.draw":66.748,"Driver.Draw":66.377,"Driver.Draw.shader_compile_and_link":33.094,"Driver.Packet.device_lock":29.784},"trace_dropped":false,"trace":"aps5-trace-bef945671ea8-14012.json.gz"}

Slowest frames (largest slices inside each, inclusive)

  • present 4644: 306.2 ms at 12071 ms: Driver.Packet (queue worker 0x20) 306.2, Driver.Packet.memory_wait (queue worker 0x20) 304.8, Driver.Packet (queue worker 0x0) 286.7, Driver.Packet.dispatch (queue worker 0x0) 176.5
  • present 5178: 294.0 ms at 88030 ms: Driver.Packet (queue worker 0x20) 293.9, Driver.Packet.memory_wait (queue worker 0x20) 292.5, Driver.Packet (queue worker 0x0) 276.7, Driver.Packet.dispatch (queue worker 0x0) 185.1
  • present 4970: 242.3 ms at 58573 ms: Driver.Packet (queue worker 0x20) 242.2, Driver.Packet.memory_wait (queue worker 0x20) 241.0, Driver.Packet (queue worker 0x0) 223.6, Driver.Packet.dispatch (queue worker 0x0) 118.4
  • present 4993: 240.3 ms at 61819 ms: Driver.Packet (queue worker 0x20) 240.2, Driver.Packet.memory_wait (queue worker 0x20) 238.9, Driver.Packet (queue worker 0x0) 221.6, Driver.Packet.dispatch (queue worker 0x0) 124.4
  • present 4995: 225.1 ms at 62196 ms: Driver.Packet (queue worker 0x20) 225.0, Driver.Packet.memory_wait (queue worker 0x20) 223.3, Driver.Packet (queue worker 0x0) 204.9, batch (gpu) 108.4

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
shader prepare 0.1 (0 %) 0.0 (0 %) 142.3 0.0 Shader.PrepareArtifact 0.1
shader prepare 0.0 (0 %) 0.0 (0 %) 142.3 0.0 Shader.PrepareArtifact 0.0
shader prepare 0.1 (0 %) 0.0 (0 %) 142.3 0.0 Shader.PrepareArtifact 0.1
shader prepare 0.1 (0 %) 0.0 (0 %) 142.3 0.0 Shader.PrepareArtifact 0.1
shader prepare 0.1 (0 %) 0.0 (0 %) 142.3 0.0 Shader.PrepareArtifact 0.1
shader prepare 0.0 (0 %) 0.0 (0 %) 142.3 0.0 Shader.PrepareArtifact 0.0
shader prepare 0.1 (0 %) 0.0 (0 %) 142.3 0.0 Shader.PrepareArtifact 0.1
shader prepare 0.1 (0 %) 0.0 (0 %) 142.3 0.0 Shader.PrepareArtifact 0.1
shader prepare 0.0 (0 %) 0.0 (0 %) 142.4 0.0 Vulkan.GraphicsPipelinePrebuild 0.0
queue worker 0x0 119.4 (84 %) 4.0 (3 %) 19.0 102.0 Driver.Packet 123.0, Driver.EndSubmission 0.4
draw committer 62.9 (44 %) 3.2 (2 %) 76.2 18.5 Graphics.Draw 64.4, Recorder.Submit 1.3
presenter 0.5 (0 %) 1.3 (1 %) 140.5 0.1 VideoOut.Flip 1.8, Driver.Present 0.0
title 0.0 (0 %) 0.0 (0 %) 142.4 0.0 Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 142.4 0.0 Shader.Register 0.0
queue worker 0x20 0.6 (0 %) 141.5 (99 %) 0.2 0.1 Driver.Packet 142.1, Driver.EndSubmission 0.0
gpu 85.1 (60 %) 0.0 (0 %) 57.3 0.0 batch 85.1

Largest slices (ms per frame, inclusive, all threads): Driver.Packet 265.1, Driver.Packet.memory_wait 140.7, batch 85.1, Graphics.Draw 75.3, Graphics.Draw.draw_and_resource_release 66.3, Driver.Packet.draw 61.4, Driver.Draw 61.1, Driver.Draw.shader_compile_and_link 27.4, Driver.Packet.device_lock 25.9, Driver.Packet.dispatch 24.0

Longest waits

  • Driver.Packet.memory_wait (queue worker 0x20) 292.9 ms at 87963 ms, present 5177
  • Driver.Packet.memory_wait (queue worker 0x20) 292.5 ms at 12145 ms, present 4644
  • Driver.Packet.memory_wait (queue worker 0x20) 239.9 ms at 58641 ms, present 4970
  • Driver.Packet.memory_wait (queue worker 0x20) 236.0 ms at 61753 ms, present 4992
  • Driver.Packet.memory_wait (queue worker 0x20) 222.4 ms at 62266 ms, present 4995
  • Driver.Packet.memory_wait (queue worker 0x20) 211.8 ms at 74747 ms, present 5081
  • Driver.Packet.memory_wait (queue worker 0x20) 190.6 ms at 12439 ms, present 4645
  • Driver.Packet.memory_wait (queue worker 0x20) 177.0 ms at 52118 ms, present 4925
  • Driver.Packet.memory_wait (queue worker 0x20) 175.0 ms at 51941 ms, present 4924
  • Driver.Packet.memory_wait (queue worker 0x20) 174.4 ms at 52457 ms, present 4927

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

  • batch 29326: 12.6 ms at 42966 ms, present 4862: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 2.3, Driver.Packet.dispatch (queue worker 0x0) 0.9, Driver.Dispatch (queue worker 0x0) 0.9, Driver.Packet.device_lock (queue worker 0x0) 0.8
  • batch 50897: 11.9 ms at 75049 ms, present 5082: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 1.0, Driver.Packet.dispatch (queue worker 0x0) 1.0, Driver.Dispatch (queue worker 0x0) 0.9, Driver.Packet.device_lock (queue worker 0x0) 0.2
  • batch 50799: 11.2 ms at 74833 ms, present 5081: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 0.9, Driver.Packet.dispatch (queue worker 0x0) 0.8, Driver.Dispatch (queue worker 0x0) 0.8, Driver.Packet.device_lock (queue worker 0x0) 0.2
  • batch 2765: 9.3 ms at 4012 ms, present 4587: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 1.0, Driver.Packet.dispatch (queue worker 0x0) 1.0, Driver.Dispatch (queue worker 0x0) 0.9, Driver.Packet.device_lock (queue worker 0x0) 0.2
  • batch 36621: 9.1 ms at 53768 ms, present 4935: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 0.8, Driver.Packet.dispatch (queue worker 0x0) 0.7, Driver.Dispatch (queue worker 0x0) 0.7, Driver.Packet.device_lock (queue worker 0x0) 0.2
Diagnostic pair summary lines (profiled, not used above)
{"commit":"1a3a1b2e0ecb","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"16384","APS5_PAD_INPUT_FILE":"<path>","APS5_PREBUILD_THREADS":"16","APS5_PROFILE_DRAW":"1","APS5_SAMPLE_WORKER":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"400:90"},"gpu":"AMD Radeon RX 9070 XT","driver":"AMD proprietary driver 26.8.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 9800X3D 8-Core Processor","cpu_threads":16,"memory_mib":47941,"title_id":"PPSA13197","title":"Stellar Blade","content_version":"01.014.001","resolution":"3840x2160","window":{"spec":"seconds 400:90","first_present":4149,"ms":90019.990},"presents":521,"frame_ms":{"p50":168.737,"p90":186.267,"p99":266.264,"max":415.243},"gpu_busy_ms_per_present":93.992,"worker_busy_pct":{"queue worker 0x0":98.276,"queue worker 0x20":99.789},"top_phases_ms_per_frame":{"Driver.Packet":341.480,"Driver.Packet.memory_wait":170.056,"Graphics.Draw":86.508,"Graphics.Draw.draw_and_resource_release":76.333,"Driver.Packet.draw":73.150,"Driver.Draw":72.633,"Driver.Packet.dispatch":41.818,"Driver.Dispatch":39.681},"trace_dropped":false,"trace":"aps5-trace-1a3a1b2e0ecb-18900.json.gz"}
{"commit":"bef945671ea8","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"16384","APS5_PAD_INPUT_FILE":"<path>","APS5_PREBUILD_THREADS":"16","APS5_PROFILE_DRAW":"1","APS5_SAMPLE_WORKER":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"400:90"},"gpu":"AMD Radeon RX 9070 XT","driver":"AMD proprietary driver 26.8.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 9800X3D 8-Core Processor","cpu_threads":16,"memory_mib":47941,"title_id":"PPSA13197","title":"Stellar Blade","content_version":"01.014.001","resolution":"3840x2160","window":{"spec":"seconds 400:90","first_present":4440,"ms":90117.161},"presents":557,"frame_ms":{"p50":158.612,"p90":171.904,"p99":234.715,"max":480.362},"gpu_busy_ms_per_present":91.447,"worker_busy_pct":{"queue worker 0x0":98.203,"queue worker 0x20":99.790},"top_phases_ms_per_frame":{"Driver.Packet":319.786,"Driver.Packet.memory_wait":159.666,"Graphics.Draw":79.447,"Driver.Packet.draw":69.711,"Graphics.Draw.draw_and_resource_release":69.706,"Driver.Draw":69.214,"Driver.Packet.dispatch":38.941,"Driver.Dispatch":37.275},"trace_dropped":false,"trace":"aps5-trace-bef945671ea8-6728.json.gz"}

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: AMD Radeon RX 9070 XT, AMD proprietary driver 26.8.1 (LLPC), Windows 11 (10.0.26300)
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4907514485 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7457). Originally posted by [moong15](https://github.com/moong15) on 2026-10-18T08:14:34Z. --- ### What `HostImportFor` repeats the full lookup for guest ranges that cannot be imported because no registered run covers them. Every repeat takes the guest allocations lease, refreshes the imports and walks the run (`refreshImports`, `importRun`), then falls back to the copy path with the same result. This change remembers those structural misses in a 256-entry, 4-way set-associative table of exact `[begin, end)` ranges (64 sets; a range already stored is not stored again, a full set evicts its oldest entry). A repeated lookup for a stored range returns null before the lease is taken. Each entry is stamped with the device, the host import alignment, the registry generation, the forget serial, the import epoch, the insert count and the miss policy count. A miss is stored only when the registry generation matches the refreshed generation, and only with an even forget serial. Any new import, retirement, clear, extraction, window change or `failedBlocks` write moves the stamp, so a stored miss is never returned for a range that has since become importable. Committing pages of a reserved heap goes through the registry and bumps its generation. `APS5_NO_IMPORT_MISS_MEMO=1` disables the table. The table only holds misses where no registered run covers the range. On `main` that path touches none of `refusals`, `failedBlocks`, `failed` or `counts.remembered`, which only describe ranges where a run exists, so the two do not overlap. `HostImportFor` and `importAccess` pass `main`'s `ImportRequester` through. The `[buffers]` profile line (`APS5_PROFILE_DRAW`) reports hits, structural misses, stores, evictions and resets. Tests: `agc_import_miss_memo` and `agc_import_miss_memo_off` check the proof stamp, the runtime invalidation for each bump point, set eviction, and a miss recorded over a half-committed reserved window that must import once the rest is committed, with the table on and off. ### Tested Windows 11 (10.0.26300), AMD Radeon RX 9070 XT, AMD proprietary driver 26.8.1 (LLPC), Ryzen 7 9800X3D, 3840x2160, Stellar Blade (PPSA13197, 01.014.001). GPU tests on `main` 1a3a1b2e0 and on this PR bef945671, same machine, `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`, `ctest -j1 -V -R "^agc_(import_miss_memo|import_miss_memo_off|host_import|driver_host_import|driver_registration|sparse_run_import)"`: `main` 16 of 16, this PR 18 of 18 (the two extra are the memo tests); `agc_host_import_sparse` skips on both (Linux only). Neither log contains `was not found but was requested`, and neither has a `VUID-` line. What this removes, from one diagnostic pair in the same session (`main`, then this PR, `APS5_PROFILE_DRAW=1` and `APS5_SAMPLE_WORKER`; these runs are not used for the frame numbers below): - The table answered 490,933 of 504,382 structural misses in gameplay (97.3 %), with 12,243 stores, 1 eviction and 1,387 resets. - The `[buffers]` import lookup time at 300,000 uploads fell from 8,111 ms to 7,105 ms (27.0 to 23.7 us per upload, -12 %). - Queue worker 0 spent 0.44 % of its samples inside `HostImportFor` on `main` and 0.41 % with the change. In this scene the lookup is a small part of upload cost next to the guest reads, so a frame-rate change is not expected here. Performance: Stellar Blade gameplay, `APS5_TRACE_SECONDS=400:90` (90 s from 400 s after the first present), warm caches (a warm-up run first), `APS5_PREBUILD_THREADS=16` on both, no `APS5_PROFILE_*`. `main` 1a3a1b2e0 and this PR bef945671 alternated in one session on the same machine, runs in order 1-6. | | presents in 90 s | fps | frame p50 / p90 / p99 ms | GPU busy ms per present | `Driver.Packet.memory_wait` ms per frame | |---|---|---|---|---|---| | 1 `main` | 531 | 5.90 | 159.9 / 187.2 / 236.7 | 91.8 | 167.3 | | 2 PR | 498 | 5.53 | 179.8 / 194.8 / 248.6 | 93.3 | 178.4 | | 3 `main` | 465 | 5.17 | 184.8 / 247.7 / 285.7 | 93.8 | 191.7 | | 4 PR | 533 | 5.92 | 165.5 / 184.4 / 246.4 | 93.7 | 167.1 | | 5 `main` | 563 | 6.26 | 157.5 / 172.0 / 229.2 | 92.2 | 158.2 | | 6 PR | 633 | 7.03 | 140.0 / 154.1 / 197.9 | 84.9 | 140.7 | | mean `main` | 520 | 5.77 | 167.4 / 202.3 / 250.5 | 92.6 | 172.4 | | mean PR | 555 | 6.16 | 161.8 / 177.8 / 231.0 | 90.6 | 162.1 | The difference in means (+7 %) is inside the run-to-run spread: run 2 (PR) is slower than run 1 (`main`), and the `main` runs alone range from 5.17 to 6.26 fps. GPU busy time per present is unchanged. Summary lines, in run order: ```json {"commit":"1a3a1b2e0ecb","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"16384","APS5_PAD_INPUT_FILE":"<path>","APS5_PREBUILD_THREADS":"16","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"400:90"},"gpu":"AMD Radeon RX 9070 XT","driver":"AMD proprietary driver 26.8.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 9800X3D 8-Core Processor","cpu_threads":16,"memory_mib":47941,"title_id":"PPSA13197","title":"Stellar Blade","content_version":"01.014.001","resolution":"3840x2160","window":{"spec":"seconds 400:90","first_present":4210,"ms":90116.766},"presents":531,"frame_ms":{"p50":159.876,"p90":187.191,"p99":236.660,"max":1247.230},"gpu_busy_ms_per_present":91.840,"worker_busy_pct":{"queue worker 0x0":98.656,"queue worker 0x20":99.707},"top_phases_ms_per_frame":{"Driver.Packet":336.056,"Driver.Packet.memory_wait":167.298,"Graphics.Draw":82.356,"Graphics.Draw.draw_and_resource_release":72.455,"Driver.Packet.draw":71.382,"Driver.Draw":70.992,"Driver.Packet.dispatch":44.933,"Driver.Dispatch":43.116},"trace_dropped":false,"trace":"aps5-trace-1a3a1b2e0ecb-10416.json.gz"} {"commit":"bef945671ea8","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"16384","APS5_PAD_INPUT_FILE":"<path>","APS5_PREBUILD_THREADS":"16","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"400:90"},"gpu":"AMD Radeon RX 9070 XT","driver":"AMD proprietary driver 26.8.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 9800X3D 8-Core Processor","cpu_threads":16,"memory_mib":47941,"title_id":"PPSA13197","title":"Stellar Blade","content_version":"01.014.001","resolution":"3840x2160","window":{"spec":"seconds 400:90","first_present":4388,"ms":90049.774},"presents":498,"frame_ms":{"p50":179.761,"p90":194.837,"p99":248.631,"max":310.557},"gpu_busy_ms_per_present":93.280,"worker_busy_pct":{"queue worker 0x0":98.771,"queue worker 0x20":99.776},"top_phases_ms_per_frame":{"Driver.Packet":358.375,"Driver.Packet.memory_wait":178.445,"Graphics.Draw":107.850,"Graphics.Draw.draw_and_resource_release":98.172,"Driver.Packet.draw":92.069,"Driver.Draw":91.681,"Driver.Draw.shader_compile_and_link":34.057,"Driver.Draw.draw_enqueued":33.008},"trace_dropped":false,"trace":"aps5-trace-bef945671ea8-28528.json.gz"} {"commit":"1a3a1b2e0ecb","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"16384","APS5_PAD_INPUT_FILE":"<path>","APS5_PREBUILD_THREADS":"16","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"400:90"},"gpu":"AMD Radeon RX 9070 XT","driver":"AMD proprietary driver 26.8.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 9800X3D 8-Core Processor","cpu_threads":16,"memory_mib":47941,"title_id":"PPSA13197","title":"Stellar Blade","content_version":"01.014.001","resolution":"3840x2160","window":{"spec":"seconds 400:90","first_present":4381,"ms":90110.623},"presents":465,"frame_ms":{"p50":184.831,"p90":247.746,"p99":285.659,"max":384.426},"gpu_busy_ms_per_present":93.821,"worker_busy_pct":{"queue worker 0x0":98.789,"queue worker 0x20":99.793},"top_phases_ms_per_frame":{"Driver.Packet":383.999,"Driver.Packet.memory_wait":191.728,"Graphics.Draw":92.362,"Graphics.Draw.draw_and_resource_release":82.177,"Driver.Packet.draw":74.415,"Driver.Draw":74.006,"Driver.Packet.dispatch":56.710,"Driver.Dispatch":54.929},"trace_dropped":false,"trace":"aps5-trace-1a3a1b2e0ecb-9892.json.gz"} {"commit":"bef945671ea8","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"16384","APS5_PAD_INPUT_FILE":"<path>","APS5_PREBUILD_THREADS":"16","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"400:90"},"gpu":"AMD Radeon RX 9070 XT","driver":"AMD proprietary driver 26.8.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 9800X3D 8-Core Processor","cpu_threads":16,"memory_mib":47941,"title_id":"PPSA13197","title":"Stellar Blade","content_version":"01.014.001","resolution":"3840x2160","window":{"spec":"seconds 400:90","first_present":3943,"ms":90078.856},"presents":533,"frame_ms":{"p50":165.526,"p90":184.365,"p99":246.369,"max":361.036},"gpu_busy_ms_per_present":93.671,"worker_busy_pct":{"queue worker 0x0":98.598,"queue worker 0x20":99.802},"top_phases_ms_per_frame":{"Driver.Packet":334.702,"Driver.Packet.memory_wait":167.060,"Graphics.Draw":91.563,"Graphics.Draw.draw_and_resource_release":81.385,"Driver.Packet.draw":74.917,"Driver.Draw":74.512,"Driver.Draw.shader_compile_and_link":37.766,"Driver.Packet.device_lock":34.693},"trace_dropped":false,"trace":"aps5-trace-bef945671ea8-5488.json.gz"} {"commit":"1a3a1b2e0ecb","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"16384","APS5_PAD_INPUT_FILE":"<path>","APS5_PREBUILD_THREADS":"16","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"400:90"},"gpu":"AMD Radeon RX 9070 XT","driver":"AMD proprietary driver 26.8.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 9800X3D 8-Core Processor","cpu_threads":16,"memory_mib":47941,"title_id":"PPSA13197","title":"Stellar Blade","content_version":"01.014.001","resolution":"3840x2160","window":{"spec":"seconds 400:90","first_present":4312,"ms":90165.492},"presents":563,"frame_ms":{"p50":157.502,"p90":172.037,"p99":229.241,"max":317.513},"gpu_busy_ms_per_present":92.226,"worker_busy_pct":{"queue worker 0x0":98.607,"queue worker 0x20":99.797},"top_phases_ms_per_frame":{"Driver.Packet":317.162,"Driver.Packet.memory_wait":158.209,"Graphics.Draw":86.915,"Graphics.Draw.draw_and_resource_release":77.269,"Driver.Packet.draw":71.380,"Driver.Draw":70.998,"Driver.Draw.shader_compile_and_link":34.483,"Driver.Packet.device_lock":32.126},"trace_dropped":false,"trace":"aps5-trace-1a3a1b2e0ecb-19584.json.gz"} {"commit":"bef945671ea8","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"16384","APS5_PAD_INPUT_FILE":"<path>","APS5_PREBUILD_THREADS":"16","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"400:90"},"gpu":"AMD Radeon RX 9070 XT","driver":"AMD proprietary driver 26.8.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 9800X3D 8-Core Processor","cpu_threads":16,"memory_mib":47941,"title_id":"PPSA13197","title":"Stellar Blade","content_version":"01.014.001","resolution":"3840x2160","window":{"spec":"seconds 400:90","first_present":4559,"ms":90124.891},"presents":633,"frame_ms":{"p50":140.043,"p90":154.103,"p99":197.853,"max":306.250},"gpu_busy_ms_per_present":84.949,"worker_busy_pct":{"queue worker 0x0":98.501,"queue worker 0x20":99.846},"top_phases_ms_per_frame":{"Driver.Packet":281.864,"Driver.Packet.memory_wait":140.746,"Graphics.Draw":80.600,"Graphics.Draw.draw_and_resource_release":71.421,"Driver.Packet.draw":66.748,"Driver.Draw":66.377,"Driver.Draw.shader_compile_and_link":33.094,"Driver.Packet.device_lock":29.784},"trace_dropped":false,"trace":"aps5-trace-bef945671ea8-14012.json.gz"} ``` Traces: [1](https://github.com/moong15/AnyPS5/releases/download/pr7457-evidence/aps5-trace-1a3a1b2e0ecb-10416.json.gz), [2](https://github.com/moong15/AnyPS5/releases/download/pr7457-evidence/aps5-trace-bef945671ea8-28528.json.gz), [3](https://github.com/moong15/AnyPS5/releases/download/pr7457-evidence/aps5-trace-1a3a1b2e0ecb-9892.json.gz), [4](https://github.com/moong15/AnyPS5/releases/download/pr7457-evidence/aps5-trace-bef945671ea8-5488.json.gz), [5](https://github.com/moong15/AnyPS5/releases/download/pr7457-evidence/aps5-trace-1a3a1b2e0ecb-19584.json.gz), [6](https://github.com/moong15/AnyPS5/releases/download/pr7457-evidence/aps5-trace-bef945671ea8-14012.json.gz) <details><summary>1 main: trace_digest aps5-trace-1a3a1b2e0ecb-10416.json.gz</summary> **seconds 400:90** from present 4210: 531 presents, frame p50 159.9 / p90 187.2 / p99 236.7 / max 1247.2 ms, GPU busy 91.8 ms per present AMD Radeon RX 9070 XT, AMD proprietary driver 26.8.1 (LLPC), Windows 10.0.26300, 3840x2160, commit 1a3a1b2e0ecb, dropped: no ```json {"commit":"1a3a1b2e0ecb","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"16384","APS5_PAD_INPUT_FILE":"<path>","APS5_PREBUILD_THREADS":"16","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"400:90"},"gpu":"AMD Radeon RX 9070 XT","driver":"AMD proprietary driver 26.8.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 9800X3D 8-Core Processor","cpu_threads":16,"memory_mib":47941,"title_id":"PPSA13197","title":"Stellar Blade","content_version":"01.014.001","resolution":"3840x2160","window":{"spec":"seconds 400:90","first_present":4210,"ms":90116.766},"presents":531,"frame_ms":{"p50":159.876,"p90":187.191,"p99":236.66,"max":1247.23},"gpu_busy_ms_per_present":91.84,"worker_busy_pct":{"queue worker 0x0":98.656,"queue worker 0x20":99.707},"top_phases_ms_per_frame":{"Driver.Packet":336.056,"Driver.Packet.memory_wait":167.298,"Graphics.Draw":82.356,"Graphics.Draw.draw_and_resource_release":72.455,"Driver.Packet.draw":71.382,"Driver.Draw":70.992,"Driver.Packet.dispatch":44.933,"Driver.Dispatch":43.116},"trace_dropped":false,"trace":"aps5-trace-1a3a1b2e0ecb-10416.json.gz"} ``` **Slowest frames** (largest slices inside each, inclusive) - present 4716: 1247.2 ms at 84300 ms: Driver.Packet (queue worker 0x20) 1247.1, Driver.Packet.memory_wait (queue worker 0x20) 1245.2, Driver.Packet (queue worker 0x0) 1226.2, Driver.Packet.dispatch (queue worker 0x0) 1105.9 - present 4682: 1097.7 ms at 76535 ms: Driver.Packet (queue worker 0x20) 1097.6, Driver.Packet.memory_wait (queue worker 0x20) 1096.2, Driver.Packet (queue worker 0x0) 1076.0, Driver.Packet.dispatch (queue worker 0x0) 951.6 - present 4701: 866.8 ms at 80796 ms: Driver.Packet (queue worker 0x20) 866.7, Driver.Packet.memory_wait (queue worker 0x20) 864.2, Driver.Packet (queue worker 0x0) 845.7, Driver.Packet.dispatch (queue worker 0x0) 728.3 - present 4443: 335.8 ms at 37498 ms: Driver.Packet (queue worker 0x20) 335.6, Driver.Packet.memory_wait (queue worker 0x20) 333.7, Driver.Packet (queue worker 0x0) 315.1, Driver.Packet.dispatch (queue worker 0x0) 204.6 - present 4583: 256.5 ms at 59664 ms: Driver.Packet (queue worker 0x20) 256.4, Driver.Packet.memory_wait (queue worker 0x20) 254.5, Driver.Packet (queue worker 0x0) 235.9, Driver.Packet.dispatch (queue worker 0x0) 123.9 **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | shader prepare | 0.3 (0 %) | 0.0 (0 %) | 169.5 | 0.0 | Shader.PrepareArtifact 0.3 | | shader prepare | 0.3 (0 %) | 0.0 (0 %) | 169.4 | 0.0 | Shader.PrepareArtifact 0.3 | | shader prepare | 0.1 (0 %) | 0.0 (0 %) | 169.6 | 0.0 | Shader.PrepareArtifact 0.1 | | shader prepare | 0.3 (0 %) | 0.0 (0 %) | 169.4 | 0.0 | Shader.PrepareArtifact 0.3 | | shader prepare | 0.2 (0 %) | 0.0 (0 %) | 169.5 | 0.0 | Shader.PrepareArtifact 0.2 | | shader prepare | 0.2 (0 %) | 0.0 (0 %) | 169.5 | 0.0 | Shader.PrepareArtifact 0.2 | | shader prepare | 0.3 (0 %) | 0.0 (0 %) | 169.4 | 0.0 | Shader.PrepareArtifact 0.3 | | shader prepare | 0.3 (0 %) | 0.0 (0 %) | 169.4 | 0.0 | Shader.PrepareArtifact 0.3 | | queue worker 0x0 | 144.8 (85 %) | 5.5 (3 %) | 19.4 | 104.2 | Driver.Packet 149.9, Driver.EndSubmission 0.4 | | draw committer | 61.4 (36 %) | 6.6 (4 %) | 101.7 | 18.9 | Graphics.Draw 65.9, Recorder.Submit 1.4 | | presenter | 0.5 (0 %) | 1.5 (1 %) | 167.7 | 0.1 | VideoOut.Flip 2.0, Driver.Present 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 169.7 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 169.7 | 0.0 | Shader.Register 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 169.7 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 169.7 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 169.7 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 169.7 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0 | | queue worker 0x20 | 0.5 (0 %) | 168.8 (99 %) | 0.4 | 0.1 | Driver.Packet 169.1, Driver.EndSubmission 0.1 | | gpu | 91.9 (54 %) | 0.0 (0 %) | 77.8 | 0.0 | batch 91.9 | **Largest slices** (ms per frame, inclusive, all threads): Driver.Packet 319.0, Driver.Packet.memory_wait 167.3, batch 91.9, Graphics.Draw 77.0, Graphics.Draw.draw_and_resource_release 67.4, Driver.Packet.draw 66.1, Driver.Draw 65.8, Driver.Packet.dispatch 44.3, Driver.Dispatch 42.5, Driver.Draw.shader_compile_and_link 29.6 **Longest waits** - Driver.Packet.memory_wait (queue worker 0x20) 1247.2 ms at 84385 ms, present 4716 - Driver.Packet.memory_wait (queue worker 0x20) 1097.6 ms at 76622 ms, present 4682 - Driver.Packet.memory_wait (queue worker 0x20) 866.0 ms at 80879 ms, present 4701 - Driver.Packet.memory_wait (queue worker 0x20) 342.4 ms at 37576 ms, present 4443 - Driver.Packet.memory_wait (queue worker 0x20) 240.4 ms at 59544 ms, present 4582 - Driver.Packet.memory_wait (queue worker 0x20) 230.9 ms at 1068 ms, present 4216 - Driver.Packet.memory_wait (queue worker 0x20) 228.6 ms at 7363 ms, present 4254 - Driver.Packet.memory_wait (queue worker 0x20) 222.7 ms at 3623 ms, present 4231 - Driver.Packet.memory_wait (queue worker 0x20) 213.7 ms at 82709 ms, present 4707 - Driver.Packet.memory_wait (queue worker 0x20) 212.6 ms at 87870 ms, present 4729 **Largest GPU batches** (GPU ranges inside, and the CPU slices that recorded each, inclusive) - batch 48071: 14.9 ms at 72579 ms, present 4660: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 1.0, Driver.Packet.dispatch (queue worker 0x0) 1.0, Driver.Dispatch (queue worker 0x0) 1.0, Driver.Packet.device_lock (queue worker 0x0) 0.2 - batch 47947: 14.4 ms at 72388 ms, present 4659: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 0.9, Driver.Packet.dispatch (queue worker 0x0) 0.9, Driver.Dispatch (queue worker 0x0) 0.9, Driver.Packet.device_lock (queue worker 0x0) 0.3 - batch 40153: 14.2 ms at 60776 ms, present 4588: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 1.0, Driver.Packet.dispatch (queue worker 0x0) 0.9, Driver.Dispatch (queue worker 0x0) 0.9, Driver.Packet.device_lock (queue worker 0x0) 0.2 - batch 42190: 13.5 ms at 63874 ms, present 4606: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 1.1, Driver.Packet.dispatch (queue worker 0x0) 0.8, Driver.Dispatch (queue worker 0x0) 0.8, Driver.Packet.device_lock (queue worker 0x0) 0.3 - batch 41544: 13.4 ms at 62897 ms, present 4600: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 1.0, Driver.Packet.dispatch (queue worker 0x0) 1.0, Driver.Dispatch (queue worker 0x0) 1.0, Driver.Packet.device_lock (queue worker 0x0) 0.2 </details> <details><summary>2 PR: trace_digest aps5-trace-bef945671ea8-28528.json.gz</summary> **seconds 400:90** from present 4388: 498 presents, frame p50 179.8 / p90 194.8 / p99 248.6 / max 310.6 ms, GPU busy 93.3 ms per present AMD Radeon RX 9070 XT, AMD proprietary driver 26.8.1 (LLPC), Windows 10.0.26300, 3840x2160, commit bef945671ea8, dropped: no ```json {"commit":"bef945671ea8","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"16384","APS5_PAD_INPUT_FILE":"<path>","APS5_PREBUILD_THREADS":"16","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"400:90"},"gpu":"AMD Radeon RX 9070 XT","driver":"AMD proprietary driver 26.8.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 9800X3D 8-Core Processor","cpu_threads":16,"memory_mib":47941,"title_id":"PPSA13197","title":"Stellar Blade","content_version":"01.014.001","resolution":"3840x2160","window":{"spec":"seconds 400:90","first_present":4388,"ms":90049.774},"presents":498,"frame_ms":{"p50":179.761,"p90":194.837,"p99":248.631,"max":310.557},"gpu_busy_ms_per_present":93.28,"worker_busy_pct":{"queue worker 0x0":98.771,"queue worker 0x20":99.776},"top_phases_ms_per_frame":{"Driver.Packet":358.375,"Driver.Packet.memory_wait":178.445,"Graphics.Draw":107.85,"Graphics.Draw.draw_and_resource_release":98.172,"Driver.Packet.draw":92.069,"Driver.Draw":91.681,"Driver.Draw.shader_compile_and_link":34.057,"Driver.Draw.draw_enqueued":33.008},"trace_dropped":false,"trace":"aps5-trace-bef945671ea8-28528.json.gz"} ``` **Slowest frames** (largest slices inside each, inclusive) - present 4688: 310.6 ms at 54861 ms: Driver.Packet (queue worker 0x20) 309.8, Driver.Packet.memory_wait (queue worker 0x20) 307.9, Driver.Packet (queue worker 0x0) 290.9, Driver.Packet.dispatch (queue worker 0x0) 162.0 - present 4454: 273.3 ms at 12353 ms: Driver.Packet (queue worker 0x20) 273.3, Driver.Packet.memory_wait (queue worker 0x20) 272.0, Driver.Packet (queue worker 0x0) 253.5, Driver.Packet.draw (queue worker 0x0) 106.2 - present 4567: 251.4 ms at 32892 ms: Driver.Packet (queue worker 0x20) 251.2, Driver.Packet.memory_wait (queue worker 0x20) 249.9, Driver.Packet (queue worker 0x0) 234.5, Graphics.Draw (draw committer) 93.0 - present 4453: 249.5 ms at 12103 ms: Driver.Packet (queue worker 0x20) 249.3, Driver.Packet.memory_wait (queue worker 0x20) 246.9, Driver.Packet (queue worker 0x0) 232.6, batch (gpu) 98.2 - present 4437: 248.6 ms at 9086 ms: Driver.Packet (queue worker 0x20) 248.6, Driver.Packet.memory_wait (queue worker 0x20) 247.2, Driver.Packet (queue worker 0x0) 231.8, Graphics.Draw (draw committer) 104.2 **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | shader prepare | 0.1 (0 %) | 0.0 (0 %) | 180.8 | 0.0 | Shader.PrepareArtifact 0.1 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 180.8 | 0.0 | Shader.PrepareArtifact 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 180.8 | 0.0 | Shader.PrepareArtifact 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 180.8 | 0.0 | Shader.PrepareArtifact 0.0 | | shader prepare | 0.1 (0 %) | 0.0 (0 %) | 180.8 | 0.0 | Shader.PrepareArtifact 0.1 | | shader prepare | 0.1 (0 %) | 0.0 (0 %) | 180.8 | 0.0 | Shader.PrepareArtifact 0.1 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 180.8 | 0.0 | Shader.PrepareArtifact 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 180.8 | 0.0 | Shader.PrepareArtifact 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 180.8 | 0.0 | Vulkan.GraphicsPipelinePrebuild 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 180.8 | 0.0 | Vulkan.GraphicsPipelinePrebuild 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 180.8 | 0.0 | Vulkan.GraphicsPipelinePrebuild 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 180.8 | 0.0 | Vulkan.GraphicsPipelinePrebuild 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 180.8 | 0.0 | Vulkan.GraphicsPipelinePrebuild 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 180.8 | 0.0 | Vulkan.GraphicsPipelinePrebuild 0.0 | | queue worker 0x0 | 156.2 (86 %) | 6.9 (4 %) | 17.7 | 98.9 | Driver.Packet 162.6, Driver.EndSubmission 0.5 | | draw committer | 90.3 (50 %) | 3.4 (2 %) | 87.1 | 18.0 | Graphics.Draw 91.3, Recorder.Submit 1.7 | | presenter | 0.5 (0 %) | 0.2 (0 %) | 180.1 | 0.1 | VideoOut.Flip 0.7, Driver.Present 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 180.8 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 180.8 | 0.0 | Shader.Register 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 180.8 | 0.0 | Shader.ResolveAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 180.8 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | queue worker 0x20 | 0.5 (0 %) | 179.9 (99 %) | 0.4 | 0.1 | Driver.Packet 180.3, Driver.EndSubmission 0.1 | | title | 0.0 (0 %) | 0.0 (0 %) | 180.8 | 0.0 | Shader.Register 0.0 | | gpu | 93.0 (51 %) | 0.0 (0 %) | 87.8 | 0.0 | batch 93.0 | **Largest slices** (ms per frame, inclusive, all threads): Driver.Packet 342.9, Driver.Packet.memory_wait 178.4, Graphics.Draw 103.4, Graphics.Draw.draw_and_resource_release 93.0, batch 93.0, Driver.Packet.draw 87.1, Driver.Draw 86.8, Driver.Draw.draw_enqueued 31.1, Driver.Packet.dispatch 29.1, Driver.Packet.device_lock 28.5 **Longest waits** - Driver.Packet.memory_wait (queue worker 0x20) 316.1 ms at 54931 ms, present 4688 - Driver.Packet.memory_wait (queue worker 0x20) 281.0 ms at 12422 ms, present 4454 - Driver.Packet.memory_wait (queue worker 0x20) 249.6 ms at 32964 ms, present 4567 - Driver.Packet.memory_wait (queue worker 0x20) 242.0 ms at 8986 ms, present 4436 - Driver.Packet.memory_wait (queue worker 0x20) 241.6 ms at 12179 ms, present 4453 - Driver.Packet.memory_wait (queue worker 0x20) 238.1 ms at 25552 ms, present 4526 - Driver.Packet.memory_wait (queue worker 0x20) 224.2 ms at 10178 ms, present 4442 - Driver.Packet.memory_wait (queue worker 0x20) 219.1 ms at 15057 ms, present 4468 - Driver.Packet.memory_wait (queue worker 0x20) 209.5 ms at 298 ms, present 4389 - Driver.Packet.memory_wait (queue worker 0x20) 207.9 ms at 55249 ms, present 4689 **Largest GPU batches** (GPU ranges inside, and the CPU slices that recorded each, inclusive) - batch 6756: 17.6 ms at 12603 ms, present 4454: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 1.1, Driver.Packet.dispatch (queue worker 0x0) 1.0, Driver.Dispatch (queue worker 0x0) 1.0, Driver.Packet.device_lock (queue worker 0x0) 0.3 - batch 46442: 14.1 ms at 84338 ms, present 4853: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 1.2, Driver.Packet.dispatch (queue worker 0x0) 1.1, Driver.Dispatch (queue worker 0x0) 1.1, Driver.Packet.device_lock (queue worker 0x0) 0.3 - batch 18759: 13.9 ms at 34212 ms, present 4573: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 1.1, Driver.Packet.dispatch (queue worker 0x0) 1.0, Driver.Dispatch (queue worker 0x0) 1.0, Driver.Packet.device_lock (queue worker 0x0) 0.3 - batch 44818: 13.8 ms at 81389 ms, present 4837: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 1.0, Driver.Packet.dispatch (queue worker 0x0) 0.9, Driver.Dispatch (queue worker 0x0) 0.9, Driver.Packet.device_lock (queue worker 0x0) 0.2 - batch 34109: 13.6 ms at 62080 ms, present 4727: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 1.0, Driver.Packet.dispatch (queue worker 0x0) 1.0, Driver.Dispatch (queue worker 0x0) 1.0, Driver.Packet.device_lock (queue worker 0x0) 0.2 </details> <details><summary>3 main: trace_digest aps5-trace-1a3a1b2e0ecb-9892.json.gz</summary> **seconds 400:90** from present 4381: 465 presents, frame p50 184.8 / p90 247.7 / p99 285.7 / max 384.4 ms, GPU busy 93.8 ms per present AMD Radeon RX 9070 XT, AMD proprietary driver 26.8.1 (LLPC), Windows 10.0.26300, 3840x2160, commit 1a3a1b2e0ecb, dropped: no ```json {"commit":"1a3a1b2e0ecb","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"16384","APS5_PAD_INPUT_FILE":"<path>","APS5_PREBUILD_THREADS":"16","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"400:90"},"gpu":"AMD Radeon RX 9070 XT","driver":"AMD proprietary driver 26.8.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 9800X3D 8-Core Processor","cpu_threads":16,"memory_mib":47941,"title_id":"PPSA13197","title":"Stellar Blade","content_version":"01.014.001","resolution":"3840x2160","window":{"spec":"seconds 400:90","first_present":4381,"ms":90110.623},"presents":465,"frame_ms":{"p50":184.831,"p90":247.746,"p99":285.659,"max":384.426},"gpu_busy_ms_per_present":93.821,"worker_busy_pct":{"queue worker 0x0":98.789,"queue worker 0x20":99.793},"top_phases_ms_per_frame":{"Driver.Packet":383.999,"Driver.Packet.memory_wait":191.728,"Graphics.Draw":92.362,"Graphics.Draw.draw_and_resource_release":82.177,"Driver.Packet.draw":74.415,"Driver.Draw":74.006,"Driver.Packet.dispatch":56.71,"Driver.Dispatch":54.929},"trace_dropped":false,"trace":"aps5-trace-1a3a1b2e0ecb-9892.json.gz"} ``` **Slowest frames** (largest slices inside each, inclusive) - present 4798: 384.4 ms at 80093 ms: Driver.Packet (queue worker 0x20) 384.3, Driver.Packet.memory_wait (queue worker 0x20) 382.7, Driver.Packet (queue worker 0x0) 364.6, Driver.Packet.draw (queue worker 0x0) 267.9 - present 4508: 329.6 ms at 26999 ms: Driver.Packet (queue worker 0x20) 329.4, Driver.Packet.memory_wait (queue worker 0x20) 328.0, Driver.Packet (queue worker 0x0) 307.0, Driver.Packet.dispatch (queue worker 0x0) 162.0 - present 4740: 325.6 ms at 68872 ms: Driver.Packet (queue worker 0x20) 325.5, Driver.Packet.memory_wait (queue worker 0x20) 324.1, Driver.Packet (queue worker 0x0) 303.0, Driver.Packet.dispatch (queue worker 0x0) 153.5 - present 4739: 310.1 ms at 68562 ms: Driver.Packet (queue worker 0x20) 309.9, Driver.Packet.memory_wait (queue worker 0x20) 308.0, Driver.Packet (queue worker 0x0) 287.0, Driver.Packet.dispatch (queue worker 0x0) 144.8 - present 4474: 285.7 ms at 18776 ms: Driver.Packet (queue worker 0x20) 285.5, Driver.Packet.memory_wait (queue worker 0x20) 283.1, Driver.Packet (queue worker 0x0) 263.4, Graphics.Draw (draw committer) 133.2 **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 193.8 | 0.0 | Shader.PrepareArtifact 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 193.8 | 0.0 | Shader.PrepareArtifact 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 193.8 | 0.0 | Shader.PrepareArtifact 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 193.7 | 0.0 | Shader.PrepareArtifact 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 193.8 | 0.0 | Shader.PrepareArtifact 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 193.8 | 0.0 | Shader.PrepareArtifact 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 193.8 | 0.0 | Shader.PrepareArtifact 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 193.8 | 0.0 | Vulkan.GraphicsPipelinePrebuild 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 193.8 | 0.0 | Vulkan.GraphicsPipelinePrebuild 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 193.8 | 0.0 | Vulkan.GraphicsPipelinePrebuild 0.0 | | queue worker 0x0 | 168.8 (87 %) | 5.0 (3 %) | 20.0 | 105.2 | Driver.Packet 173.1, Driver.EndSubmission 0.7 | | draw committer | 69.5 (36 %) | 9.3 (5 %) | 114.9 | 19.0 | Graphics.Draw 76.7, Recorder.Submit 1.5 | | presenter | 0.5 (0 %) | 1.6 (1 %) | 191.7 | 0.1 | VideoOut.Flip 2.1, Driver.Present 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 193.8 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 193.8 | 0.0 | Shader.Register 0.0 | | queue worker 0x20 | 0.5 (0 %) | 192.9 (100 %) | 0.4 | 0.1 | Driver.Packet 193.3, Driver.EndSubmission 0.1 | | gpu | 93.9 (48 %) | 0.0 (0 %) | 99.9 | 0.0 | batch 93.9 | **Largest slices** (ms per frame, inclusive, all threads): Driver.Packet 366.3, Driver.Packet.memory_wait 191.7, batch 93.9, Graphics.Draw 87.0, Graphics.Draw.draw_and_resource_release 77.2, Driver.Packet.draw 69.2, Driver.Draw 68.8, Driver.Packet.dispatch 55.8, Driver.Dispatch 54.0, Vulkan.Dispatch 37.6 **Longest waits** - Driver.Packet.memory_wait (queue worker 0x20) 366.1 ms at 80203 ms, present 4798 - Driver.Packet.memory_wait (queue worker 0x20) 324.5 ms at 68711 ms, present 4739 - Driver.Packet.memory_wait (queue worker 0x20) 322.3 ms at 26920 ms, present 4507 - Driver.Packet.memory_wait (queue worker 0x20) 278.6 ms at 18962 ms, present 4474 - Driver.Packet.memory_wait (queue worker 0x20) 276.7 ms at 67324 ms, present 4733 - Driver.Packet.memory_wait (queue worker 0x20) 268.9 ms at 14563 ms, present 4455 - Driver.Packet.memory_wait (queue worker 0x20) 268.5 ms at 12771 ms, present 4448 - Driver.Packet.memory_wait (queue worker 0x20) 267.5 ms at 18163 ms, present 4471 - Driver.Packet.memory_wait (queue worker 0x20) 266.4 ms at 13041 ms, present 4449 - Driver.Packet.memory_wait (queue worker 0x20) 266.0 ms at 18694 ms, present 4473 **Largest GPU batches** (GPU ranges inside, and the CPU slices that recorded each, inclusive) - batch 54682: 13.8 ms at 81747 ms, present 4805: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 1.0, Driver.Packet.dispatch (queue worker 0x0) 1.0, Driver.Dispatch (queue worker 0x0) 1.0, Driver.Packet.device_lock (queue worker 0x0) 0.3 - batch 55999: 13.5 ms at 83796 ms, present 4815: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 1.5, Driver.Packet.dispatch (queue worker 0x0) 1.1, Driver.Dispatch (queue worker 0x0) 1.1, Driver.Packet.device_lock (queue worker 0x0) 0.3 - batch 45189: 13.4 ms at 66184 ms, present 4728: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 1.0, Driver.Packet.dispatch (queue worker 0x0) 0.9, Driver.Dispatch (queue worker 0x0) 0.9, Driver.Packet.device_lock (queue worker 0x0) 0.2 - batch 59257: 13.4 ms at 89000 ms, present 4840: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 1.5, Driver.Packet.dispatch (queue worker 0x0) 1.0, Driver.Dispatch (queue worker 0x0) 1.0, Driver.Packet.device_lock (queue worker 0x0) 0.3 - batch 55071: 13.3 ms at 82350 ms, present 4808: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 1.4, Driver.Packet.dispatch (queue worker 0x0) 1.0, Driver.Dispatch (queue worker 0x0) 1.0, Driver.Packet.device_lock (queue worker 0x0) 0.3 </details> <details><summary>4 PR: trace_digest aps5-trace-bef945671ea8-5488.json.gz</summary> **seconds 400:90** from present 3943: 533 presents, frame p50 165.5 / p90 184.4 / p99 246.4 / max 361.0 ms, GPU busy 93.7 ms per present AMD Radeon RX 9070 XT, AMD proprietary driver 26.8.1 (LLPC), Windows 10.0.26300, 3840x2160, commit bef945671ea8, dropped: no ```json {"commit":"bef945671ea8","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"16384","APS5_PAD_INPUT_FILE":"<path>","APS5_PREBUILD_THREADS":"16","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"400:90"},"gpu":"AMD Radeon RX 9070 XT","driver":"AMD proprietary driver 26.8.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 9800X3D 8-Core Processor","cpu_threads":16,"memory_mib":47941,"title_id":"PPSA13197","title":"Stellar Blade","content_version":"01.014.001","resolution":"3840x2160","window":{"spec":"seconds 400:90","first_present":3943,"ms":90078.856},"presents":533,"frame_ms":{"p50":165.526,"p90":184.365,"p99":246.369,"max":361.036},"gpu_busy_ms_per_present":93.671,"worker_busy_pct":{"queue worker 0x0":98.598,"queue worker 0x20":99.802},"top_phases_ms_per_frame":{"Driver.Packet":334.702,"Driver.Packet.memory_wait":167.06,"Graphics.Draw":91.563,"Graphics.Draw.draw_and_resource_release":81.385,"Driver.Packet.draw":74.917,"Driver.Draw":74.512,"Driver.Draw.shader_compile_and_link":37.766,"Driver.Packet.device_lock":34.693},"trace_dropped":false,"trace":"aps5-trace-bef945671ea8-5488.json.gz"} ``` **Slowest frames** (largest slices inside each, inclusive) - present 4309: 361.0 ms at 61534 ms: Driver.Packet (queue worker 0x20) 360.9, Driver.Packet.memory_wait (queue worker 0x20) 359.0, Driver.Packet (queue worker 0x0) 339.9, Driver.Packet.dispatch (queue worker 0x0) 214.5 - present 4072: 303.1 ms at 21930 ms: Driver.Packet (queue worker 0x20) 302.9, Driver.Packet.memory_wait (queue worker 0x20) 301.2, Driver.Packet (queue worker 0x0) 284.4, Driver.Packet.dispatch (queue worker 0x0) 169.3 - present 4122: 271.3 ms at 30609 ms: Driver.Packet (queue worker 0x20) 271.1, Driver.Packet.memory_wait (queue worker 0x20) 269.2, Driver.Packet (queue worker 0x0) 250.4, batch (gpu) 99.8 - present 3995: 260.6 ms at 9190 ms: Driver.Packet (queue worker 0x20) 260.4, Driver.Packet.memory_wait (queue worker 0x20) 259.0, Driver.Packet (queue worker 0x0) 239.9, batch (gpu) 103.9 - present 4099: 259.4 ms at 26512 ms: Driver.Packet (queue worker 0x20) 259.3, Driver.Packet.memory_wait (queue worker 0x20) 257.1, Driver.Packet (queue worker 0x0) 239.2, Driver.Packet.dispatch (queue worker 0x0) 111.9 **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | shader prepare | 0.1 (0 %) | 0.0 (0 %) | 168.9 | 0.0 | Shader.PrepareArtifact 0.1 | | shader prepare | 0.1 (0 %) | 0.0 (0 %) | 168.9 | 0.0 | Shader.PrepareArtifact 0.1 | | shader prepare | 0.1 (0 %) | 0.0 (0 %) | 168.9 | 0.0 | Shader.PrepareArtifact 0.1 | | shader prepare | 0.1 (0 %) | 0.0 (0 %) | 168.9 | 0.0 | Shader.PrepareArtifact 0.1 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 169.0 | 0.0 | Shader.PrepareArtifact 0.0 | | shader prepare | 0.1 (0 %) | 0.0 (0 %) | 168.9 | 0.0 | Shader.PrepareArtifact 0.1 | | shader prepare | 0.1 (0 %) | 0.0 (0 %) | 169.0 | 0.0 | Shader.PrepareArtifact 0.1 | | shader prepare | 0.1 (0 %) | 0.0 (0 %) | 168.9 | 0.0 | Shader.PrepareArtifact 0.1 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 169.0 | 0.0 | Vulkan.GraphicsPipelinePrebuild 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 169.0 | 0.0 | Vulkan.GraphicsPipelinePrebuild 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 169.0 | 0.0 | Vulkan.GraphicsPipelinePrebuild 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 169.0 | 0.0 | Vulkan.GraphicsPipelinePrebuild 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 169.0 | 0.0 | Vulkan.GraphicsPipelinePrebuild 0.0 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 169.0 | 0.0 | Vulkan.GraphicsPipelinePrebuild 0.0 | | queue worker 0x0 | 144.7 (86 %) | 4.8 (3 %) | 19.5 | 104.6 | Driver.Packet 148.9, Driver.EndSubmission 0.5 | | draw committer | 73.2 (43 %) | 3.6 (2 %) | 92.1 | 18.6 | Graphics.Draw 74.7, Recorder.Submit 1.6 | | presenter | 0.5 (0 %) | 2.0 (1 %) | 166.4 | 0.1 | VideoOut.Flip 2.6, Driver.Present 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 169.0 | 0.0 | Shader.ResolveAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 169.0 | 0.0 | Shader.Register 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 169.0 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 169.0 | 0.0 | Shader.Register 0.0 | | queue worker 0x20 | 0.6 (0 %) | 168.1 (99 %) | 0.4 | 0.1 | Driver.Packet 168.6, Driver.EndSubmission 0.1 | | gpu | 93.7 (55 %) | 0.0 (0 %) | 75.4 | 0.0 | batch 93.7 | **Largest slices** (ms per frame, inclusive, all threads): Driver.Packet 317.5, Driver.Packet.memory_wait 167.0, batch 93.7, Graphics.Draw 86.5, Graphics.Draw.draw_and_resource_release 76.5, Driver.Packet.draw 69.8, Driver.Draw 69.4, Driver.Packet.dispatch 32.3, Driver.Draw.shader_compile_and_link 32.2, Driver.Packet.device_lock 30.6 **Longest waits** - Driver.Packet.memory_wait (queue worker 0x20) 373.2 ms at 61619 ms, present 4309 - Driver.Packet.memory_wait (queue worker 0x20) 306.2 ms at 22006 ms, present 4072 - Driver.Packet.memory_wait (queue worker 0x20) 262.9 ms at 30687 ms, present 4122 - Driver.Packet.memory_wait (queue worker 0x20) 262.6 ms at 6873 ms, present 3982 - Driver.Packet.memory_wait (queue worker 0x20) 256.7 ms at 26418 ms, present 4098 - Driver.Packet.memory_wait (queue worker 0x20) 250.8 ms at 9286 ms, present 3995 - Driver.Packet.memory_wait (queue worker 0x20) 228.2 ms at 56160 ms, present 4278 - Driver.Packet.memory_wait (queue worker 0x20) 227.6 ms at 61993 ms, present 4310 - Driver.Packet.memory_wait (queue worker 0x20) 217.5 ms at 25813 ms, present 4095 - Driver.Packet.memory_wait (queue worker 0x20) 216.2 ms at 23281 ms, present 4079 **Largest GPU batches** (GPU ranges inside, and the CPU slices that recorded each, inclusive) - batch 37543: 15.7 ms at 62299 ms, present 4311: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 1.2, Driver.Packet.dispatch (queue worker 0x0) 1.1, Driver.Dispatch (queue worker 0x0) 1.1, Driver.Packet.device_lock (queue worker 0x0) 0.2 - batch 13407: 15.1 ms at 22413 ms, present 4073: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 1.1, Driver.Packet.dispatch (queue worker 0x0) 1.0, Driver.Dispatch (queue worker 0x0) 1.0, Driver.Packet.device_lock (queue worker 0x0) 0.2 - batch 48220: 14.8 ms at 79969 ms, present 4415: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 1.4, Driver.Packet.dispatch (queue worker 0x0) 0.9, Driver.Dispatch (queue worker 0x0) 0.9, Driver.Packet.device_lock (queue worker 0x0) 0.4 - batch 26777: 14.0 ms at 44373 ms, present 4205: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 1.0, Driver.Packet.dispatch (queue worker 0x0) 0.8, Driver.Dispatch (queue worker 0x0) 0.8, Driver.Packet.device_lock (queue worker 0x0) 0.3 - batch 25734: 13.7 ms at 42688 ms, present 4195: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 1.3, Driver.Packet.dispatch (queue worker 0x0) 0.8, Driver.Dispatch (queue worker 0x0) 0.8, Driver.Packet.device_lock (queue worker 0x0) 0.4 </details> <details><summary>5 main: trace_digest aps5-trace-1a3a1b2e0ecb-19584.json.gz</summary> **seconds 400:90** from present 4312: 563 presents, frame p50 157.5 / p90 172.0 / p99 229.2 / max 317.5 ms, GPU busy 92.2 ms per present AMD Radeon RX 9070 XT, AMD proprietary driver 26.8.1 (LLPC), Windows 10.0.26300, 3840x2160, commit 1a3a1b2e0ecb, dropped: no ```json {"commit":"1a3a1b2e0ecb","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"16384","APS5_PAD_INPUT_FILE":"<path>","APS5_PREBUILD_THREADS":"16","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"400:90"},"gpu":"AMD Radeon RX 9070 XT","driver":"AMD proprietary driver 26.8.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 9800X3D 8-Core Processor","cpu_threads":16,"memory_mib":47941,"title_id":"PPSA13197","title":"Stellar Blade","content_version":"01.014.001","resolution":"3840x2160","window":{"spec":"seconds 400:90","first_present":4312,"ms":90165.492},"presents":563,"frame_ms":{"p50":157.502,"p90":172.037,"p99":229.241,"max":317.513},"gpu_busy_ms_per_present":92.226,"worker_busy_pct":{"queue worker 0x0":98.607,"queue worker 0x20":99.797},"top_phases_ms_per_frame":{"Driver.Packet":317.162,"Driver.Packet.memory_wait":158.209,"Graphics.Draw":86.915,"Graphics.Draw.draw_and_resource_release":77.269,"Driver.Packet.draw":71.38,"Driver.Draw":70.998,"Driver.Draw.shader_compile_and_link":34.483,"Driver.Packet.device_lock":32.126},"trace_dropped":false,"trace":"aps5-trace-1a3a1b2e0ecb-19584.json.gz"} ``` **Slowest frames** (largest slices inside each, inclusive) - present 4544: 317.5 ms at 36786 ms: Driver.Packet (queue worker 0x20) 317.3, Driver.Packet.memory_wait (queue worker 0x20) 315.9, Driver.Packet (queue worker 0x0) 297.7, Driver.Packet.dispatch (queue worker 0x0) 181.5 - present 4873: 285.1 ms at 89695 ms: Driver.Packet (queue worker 0x20) 284.9, Driver.Packet.memory_wait (queue worker 0x20) 283.4, Driver.Packet (queue worker 0x0) 265.2, Driver.Packet.dispatch (queue worker 0x0) 134.6 - present 4601: 252.5 ms at 45904 ms: Driver.Packet (queue worker 0x20) 252.4, Driver.Packet.memory_wait (queue worker 0x20) 250.8, Driver.Packet (queue worker 0x0) 231.7, Driver.Packet.dispatch (queue worker 0x0) 107.3 - present 4846: 244.1 ms at 85232 ms: Driver.Packet (queue worker 0x20) 244.0, Driver.Packet.memory_wait (queue worker 0x20) 242.5, Driver.Packet (queue worker 0x0) 225.3, Driver.Packet.dispatch (queue worker 0x0) 118.6 - present 4602: 241.4 ms at 46157 ms: Driver.Packet (queue worker 0x20) 241.3, Driver.Packet.memory_wait (queue worker 0x20) 239.8, Driver.Packet (queue worker 0x0) 221.8, Driver.Packet.dispatch (queue worker 0x0) 112.5 **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | shader prepare | 0.1 (0 %) | 0.0 (0 %) | 160.1 | 0.0 | Shader.PrepareArtifact 0.1 | | shader prepare | 0.1 (0 %) | 0.0 (0 %) | 160.1 | 0.0 | Shader.PrepareArtifact 0.1 | | shader prepare | 0.1 (0 %) | 0.0 (0 %) | 160.0 | 0.0 | Shader.PrepareArtifact 0.1 | | shader prepare | 0.1 (0 %) | 0.0 (0 %) | 160.1 | 0.0 | Shader.PrepareArtifact 0.1 | | shader prepare | 0.1 (0 %) | 0.0 (0 %) | 160.1 | 0.0 | Shader.PrepareArtifact 0.1 | | shader prepare | 0.1 (0 %) | 0.0 (0 %) | 160.1 | 0.0 | Shader.PrepareArtifact 0.1 | | shader prepare | 0.1 (0 %) | 0.0 (0 %) | 160.1 | 0.0 | Shader.PrepareArtifact 0.1 | | shader prepare | 0.1 (0 %) | 0.0 (0 %) | 160.1 | 0.0 | Shader.PrepareArtifact 0.1 | | queue worker 0x0 | 135.2 (84 %) | 5.8 (4 %) | 19.1 | 103.5 | Driver.Packet 140.6, Driver.EndSubmission 0.4 | | draw committer | 69.4 (43 %) | 3.6 (2 %) | 87.1 | 18.7 | Graphics.Draw 70.9, Recorder.Submit 1.5 | | presenter | 0.5 (0 %) | 1.3 (1 %) | 158.3 | 0.1 | VideoOut.Flip 1.8, Driver.Present 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 160.2 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 160.1 | 0.0 | Shader.Register 0.0 | | queue worker 0x20 | 0.5 (0 %) | 159.3 (99 %) | 0.3 | 0.1 | Driver.Packet 159.7, Driver.EndSubmission 0.1 | | gpu | 92.4 (58 %) | 0.0 (0 %) | 67.7 | 0.0 | batch 92.4 | **Largest slices** (ms per frame, inclusive, all threads): Driver.Packet 300.3, Driver.Packet.memory_wait 158.2, batch 92.4, Graphics.Draw 81.5, Graphics.Draw.draw_and_resource_release 72.2, Driver.Packet.draw 66.2, Driver.Draw 65.9, Driver.Packet.dispatch 30.3, Driver.Draw.shader_compile_and_link 28.8, Driver.Dispatch 28.3 **Longest waits** - Driver.Packet.memory_wait (queue worker 0x20) 318.6 ms at 36858 ms, present 4544 - Driver.Packet.memory_wait (queue worker 0x20) 288.0 ms at 89785 ms, present 4873 - Driver.Packet.memory_wait (queue worker 0x20) 252.0 ms at 85300 ms, present 4846 - Driver.Packet.memory_wait (queue worker 0x20) 243.9 ms at 46031 ms, present 4601 - Driver.Packet.memory_wait (queue worker 0x20) 226.6 ms at 87406 ms, present 4859 - Driver.Packet.memory_wait (queue worker 0x20) 225.4 ms at 73 ms, present 4312 - Driver.Packet.memory_wait (queue worker 0x20) 211.3 ms at 45818 ms, present 4600 - Driver.Packet.memory_wait (queue worker 0x20) 205.5 ms at 37178 ms, present 4545 - Driver.Packet.memory_wait (queue worker 0x20) 192.8 ms at 2994 ms, present 4329 - Driver.Packet.memory_wait (queue worker 0x20) 191.7 ms at 46277 ms, present 4602 **Largest GPU batches** (GPU ranges inside, and the CPU slices that recorded each, inclusive) - batch 53347: 14.1 ms at 85458 ms, present 4846: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 1.0, Driver.Packet.dispatch (queue worker 0x0) 0.9, Driver.Dispatch (queue worker 0x0) 0.9, Driver.Packet.device_lock (queue worker 0x0) 0.2 - batch 37138: 13.8 ms at 59765 ms, present 4684: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 1.1, Driver.Packet.dispatch (queue worker 0x0) 1.0, Driver.Dispatch (queue worker 0x0) 1.0, Driver.Packet.device_lock (queue worker 0x0) 0.3 - batch 29346: 13.7 ms at 47212 ms, present 4607: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 1.4, Driver.Packet.dispatch (queue worker 0x0) 0.9, Driver.Dispatch (queue worker 0x0) 0.9, Driver.Packet.device_lock (queue worker 0x0) 0.4 - batch 43906: 13.4 ms at 70414 ms, present 4752: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 1.0, Driver.Packet.dispatch (queue worker 0x0) 1.0, Driver.Dispatch (queue worker 0x0) 1.0, Driver.Packet.device_lock (queue worker 0x0) 0.2 - batch 28423: 13.3 ms at 45551 ms, present 4598: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 2.1, Driver.Packet.dispatch (queue worker 0x0) 0.9, Driver.Dispatch (queue worker 0x0) 0.9, Driver.Packet.device_lock (queue worker 0x0) 0.6 </details> <details><summary>6 PR: trace_digest aps5-trace-bef945671ea8-14012.json.gz</summary> **seconds 400:90** from present 4559: 633 presents, frame p50 140.0 / p90 154.1 / p99 197.9 / max 306.2 ms, GPU busy 84.9 ms per present AMD Radeon RX 9070 XT, AMD proprietary driver 26.8.1 (LLPC), Windows 10.0.26300, 3840x2160, commit bef945671ea8, dropped: no ```json {"commit":"bef945671ea8","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"16384","APS5_PAD_INPUT_FILE":"<path>","APS5_PREBUILD_THREADS":"16","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"400:90"},"gpu":"AMD Radeon RX 9070 XT","driver":"AMD proprietary driver 26.8.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 9800X3D 8-Core Processor","cpu_threads":16,"memory_mib":47941,"title_id":"PPSA13197","title":"Stellar Blade","content_version":"01.014.001","resolution":"3840x2160","window":{"spec":"seconds 400:90","first_present":4559,"ms":90124.891},"presents":633,"frame_ms":{"p50":140.043,"p90":154.103,"p99":197.853,"max":306.25},"gpu_busy_ms_per_present":84.949,"worker_busy_pct":{"queue worker 0x0":98.501,"queue worker 0x20":99.846},"top_phases_ms_per_frame":{"Driver.Packet":281.864,"Driver.Packet.memory_wait":140.746,"Graphics.Draw":80.6,"Graphics.Draw.draw_and_resource_release":71.421,"Driver.Packet.draw":66.748,"Driver.Draw":66.377,"Driver.Draw.shader_compile_and_link":33.094,"Driver.Packet.device_lock":29.784},"trace_dropped":false,"trace":"aps5-trace-bef945671ea8-14012.json.gz"} ``` **Slowest frames** (largest slices inside each, inclusive) - present 4644: 306.2 ms at 12071 ms: Driver.Packet (queue worker 0x20) 306.2, Driver.Packet.memory_wait (queue worker 0x20) 304.8, Driver.Packet (queue worker 0x0) 286.7, Driver.Packet.dispatch (queue worker 0x0) 176.5 - present 5178: 294.0 ms at 88030 ms: Driver.Packet (queue worker 0x20) 293.9, Driver.Packet.memory_wait (queue worker 0x20) 292.5, Driver.Packet (queue worker 0x0) 276.7, Driver.Packet.dispatch (queue worker 0x0) 185.1 - present 4970: 242.3 ms at 58573 ms: Driver.Packet (queue worker 0x20) 242.2, Driver.Packet.memory_wait (queue worker 0x20) 241.0, Driver.Packet (queue worker 0x0) 223.6, Driver.Packet.dispatch (queue worker 0x0) 118.4 - present 4993: 240.3 ms at 61819 ms: Driver.Packet (queue worker 0x20) 240.2, Driver.Packet.memory_wait (queue worker 0x20) 238.9, Driver.Packet (queue worker 0x0) 221.6, Driver.Packet.dispatch (queue worker 0x0) 124.4 - present 4995: 225.1 ms at 62196 ms: Driver.Packet (queue worker 0x20) 225.0, Driver.Packet.memory_wait (queue worker 0x20) 223.3, Driver.Packet (queue worker 0x0) 204.9, batch (gpu) 108.4 **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | shader prepare | 0.1 (0 %) | 0.0 (0 %) | 142.3 | 0.0 | Shader.PrepareArtifact 0.1 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 142.3 | 0.0 | Shader.PrepareArtifact 0.0 | | shader prepare | 0.1 (0 %) | 0.0 (0 %) | 142.3 | 0.0 | Shader.PrepareArtifact 0.1 | | shader prepare | 0.1 (0 %) | 0.0 (0 %) | 142.3 | 0.0 | Shader.PrepareArtifact 0.1 | | shader prepare | 0.1 (0 %) | 0.0 (0 %) | 142.3 | 0.0 | Shader.PrepareArtifact 0.1 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 142.3 | 0.0 | Shader.PrepareArtifact 0.0 | | shader prepare | 0.1 (0 %) | 0.0 (0 %) | 142.3 | 0.0 | Shader.PrepareArtifact 0.1 | | shader prepare | 0.1 (0 %) | 0.0 (0 %) | 142.3 | 0.0 | Shader.PrepareArtifact 0.1 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 142.4 | 0.0 | Vulkan.GraphicsPipelinePrebuild 0.0 | | queue worker 0x0 | 119.4 (84 %) | 4.0 (3 %) | 19.0 | 102.0 | Driver.Packet 123.0, Driver.EndSubmission 0.4 | | draw committer | 62.9 (44 %) | 3.2 (2 %) | 76.2 | 18.5 | Graphics.Draw 64.4, Recorder.Submit 1.3 | | presenter | 0.5 (0 %) | 1.3 (1 %) | 140.5 | 0.1 | VideoOut.Flip 1.8, Driver.Present 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 142.4 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 142.4 | 0.0 | Shader.Register 0.0 | | queue worker 0x20 | 0.6 (0 %) | 141.5 (99 %) | 0.2 | 0.1 | Driver.Packet 142.1, Driver.EndSubmission 0.0 | | gpu | 85.1 (60 %) | 0.0 (0 %) | 57.3 | 0.0 | batch 85.1 | **Largest slices** (ms per frame, inclusive, all threads): Driver.Packet 265.1, Driver.Packet.memory_wait 140.7, batch 85.1, Graphics.Draw 75.3, Graphics.Draw.draw_and_resource_release 66.3, Driver.Packet.draw 61.4, Driver.Draw 61.1, Driver.Draw.shader_compile_and_link 27.4, Driver.Packet.device_lock 25.9, Driver.Packet.dispatch 24.0 **Longest waits** - Driver.Packet.memory_wait (queue worker 0x20) 292.9 ms at 87963 ms, present 5177 - Driver.Packet.memory_wait (queue worker 0x20) 292.5 ms at 12145 ms, present 4644 - Driver.Packet.memory_wait (queue worker 0x20) 239.9 ms at 58641 ms, present 4970 - Driver.Packet.memory_wait (queue worker 0x20) 236.0 ms at 61753 ms, present 4992 - Driver.Packet.memory_wait (queue worker 0x20) 222.4 ms at 62266 ms, present 4995 - Driver.Packet.memory_wait (queue worker 0x20) 211.8 ms at 74747 ms, present 5081 - Driver.Packet.memory_wait (queue worker 0x20) 190.6 ms at 12439 ms, present 4645 - Driver.Packet.memory_wait (queue worker 0x20) 177.0 ms at 52118 ms, present 4925 - Driver.Packet.memory_wait (queue worker 0x20) 175.0 ms at 51941 ms, present 4924 - Driver.Packet.memory_wait (queue worker 0x20) 174.4 ms at 52457 ms, present 4927 **Largest GPU batches** (GPU ranges inside, and the CPU slices that recorded each, inclusive) - batch 29326: 12.6 ms at 42966 ms, present 4862: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 2.3, Driver.Packet.dispatch (queue worker 0x0) 0.9, Driver.Dispatch (queue worker 0x0) 0.9, Driver.Packet.device_lock (queue worker 0x0) 0.8 - batch 50897: 11.9 ms at 75049 ms, present 5082: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 1.0, Driver.Packet.dispatch (queue worker 0x0) 1.0, Driver.Dispatch (queue worker 0x0) 0.9, Driver.Packet.device_lock (queue worker 0x0) 0.2 - batch 50799: 11.2 ms at 74833 ms, present 5081: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 0.9, Driver.Packet.dispatch (queue worker 0x0) 0.8, Driver.Dispatch (queue worker 0x0) 0.8, Driver.Packet.device_lock (queue worker 0x0) 0.2 - batch 2765: 9.3 ms at 4012 ms, present 4587: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 1.0, Driver.Packet.dispatch (queue worker 0x0) 1.0, Driver.Dispatch (queue worker 0x0) 0.9, Driver.Packet.device_lock (queue worker 0x0) 0.2 - batch 36621: 9.1 ms at 53768 ms, present 4935: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 0.8, Driver.Packet.dispatch (queue worker 0x0) 0.7, Driver.Dispatch (queue worker 0x0) 0.7, Driver.Packet.device_lock (queue worker 0x0) 0.2 </details> <details><summary>Diagnostic pair summary lines (profiled, not used above)</summary> ```json {"commit":"1a3a1b2e0ecb","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"16384","APS5_PAD_INPUT_FILE":"<path>","APS5_PREBUILD_THREADS":"16","APS5_PROFILE_DRAW":"1","APS5_SAMPLE_WORKER":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"400:90"},"gpu":"AMD Radeon RX 9070 XT","driver":"AMD proprietary driver 26.8.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 9800X3D 8-Core Processor","cpu_threads":16,"memory_mib":47941,"title_id":"PPSA13197","title":"Stellar Blade","content_version":"01.014.001","resolution":"3840x2160","window":{"spec":"seconds 400:90","first_present":4149,"ms":90019.990},"presents":521,"frame_ms":{"p50":168.737,"p90":186.267,"p99":266.264,"max":415.243},"gpu_busy_ms_per_present":93.992,"worker_busy_pct":{"queue worker 0x0":98.276,"queue worker 0x20":99.789},"top_phases_ms_per_frame":{"Driver.Packet":341.480,"Driver.Packet.memory_wait":170.056,"Graphics.Draw":86.508,"Graphics.Draw.draw_and_resource_release":76.333,"Driver.Packet.draw":73.150,"Driver.Draw":72.633,"Driver.Packet.dispatch":41.818,"Driver.Dispatch":39.681},"trace_dropped":false,"trace":"aps5-trace-1a3a1b2e0ecb-18900.json.gz"} {"commit":"bef945671ea8","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"16384","APS5_PAD_INPUT_FILE":"<path>","APS5_PREBUILD_THREADS":"16","APS5_PROFILE_DRAW":"1","APS5_SAMPLE_WORKER":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"400:90"},"gpu":"AMD Radeon RX 9070 XT","driver":"AMD proprietary driver 26.8.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 9800X3D 8-Core Processor","cpu_threads":16,"memory_mib":47941,"title_id":"PPSA13197","title":"Stellar Blade","content_version":"01.014.001","resolution":"3840x2160","window":{"spec":"seconds 400:90","first_present":4440,"ms":90117.161},"presents":557,"frame_ms":{"p50":158.612,"p90":171.904,"p99":234.715,"max":480.362},"gpu_busy_ms_per_present":91.447,"worker_busy_pct":{"queue worker 0x0":98.203,"queue worker 0x20":99.790},"top_phases_ms_per_frame":{"Driver.Packet":319.786,"Driver.Packet.memory_wait":159.666,"Graphics.Draw":79.447,"Driver.Packet.draw":69.711,"Graphics.Draw.draw_and_resource_release":69.706,"Driver.Draw":69.214,"Driver.Packet.dispatch":38.941,"Driver.Dispatch":37.275},"trace_dropped":false,"trace":"aps5-trace-bef945671ea8-6728.json.gz"} ``` </details> ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: AMD Radeon RX 9070 XT, AMD proprietary driver 26.8.1 (LLPC), Windows 11 (10.0.26300) - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
screamm commented 2026-10-18 15:50:58 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by screamm on 2026-10-18T15:50:58Z.


Cross-validation on Windows 11 Pro 26220, NVIDIA GeForce RTX 4070 (driver 596.21), Ryzen 7 5700X, WinLibs MinGW-w64 GCC 15.2 r7, Release. Head ec12c0bd0 merged on main a62c724c3 (clean). The main runs use the same tree with GuestBufferMemory.cpp/.hpp taken from a62c724c3.

  • Build: full build and libs pass.
  • The 8 tests in the PR body: 3 of 3 each. On this device agc_import_miss_memo and agc_import_miss_memo_off run the runtime part (import miss memo runtime invalidation: ok); neither skips on alignment.
  • Negative control, tests kept:
    • Memo switched off inside HostImportFor: agc_import_miss_memo fails with a repeated import miss did not follow the memo switch; _off passes.
    • ++state.inserted removed: it fails with import creation left a structural miss memo standing.
    • Restored: 3 of 3.
  • GPU tests -R '^agc_(host_import|driver_host_import|driver_registration)' (-j1): 12 pass, 1 skipped (agc_host_import_sparse, Linux only). Non-GPU suite: 933 of 939, 2 skipped; 4 load timeouts (check_main_sync, configure_seed, hardware_oracle_compare, conventions_env_reference) pass serially.
  • git diff --check is clean, but check_conventions.py --base origin/main reports one error on current main: [env-reference] ... APS5_NO_IMPORT_MISS_MEMO is read here but has no row in docs/dev/ENVIRONMENT.md. The branch's base predates that rule, which is why CI passed. A row in docs/dev/ENVIRONMENT.md fixes it.

Stale answers: I read the invalidation paths.

  • Unmap, remap and protection changes all end a GuestAllocations::Mutation, which bumps the monotonic registry generation, so a remap never returns to an old stamp.
  • Contains is consulted only under the !importsStale gate, the condition main already uses for lock-free hits.
  • New imports move inserted; retirements, eviction, clear and device changes move epoch; window changes and new unaliased spans move missPolicy.
  • A memo hit can only return nullptr, so the worst case of a stale entry is the copy path, never wrong memory.
  • The PR tests do not cover an unmap followed by a remap of the same range, or a protection change. I added both locally to the runtime test (not posted):
    • unmap, memoize a miss on the range (a memo hit is required), map it again: imported;
    • make it unreadable (miss memoized: 2 hits, 1 store), then readable again: imported.
    • 3 of 3 with the memo on and off.

Titles: PPSA13197 is not available to me. I ran the two local homebrews that use host imports: 60 s each, no input, order PR / PR with APS5_NO_IMPORT_MISS_MEMO=1 / main, twice, with APS5_PROFILE_DRAW=1 APS5_PROFILE_GPU=1 APS5_TRACE_SUMMARY_EVERY=10. Medians over the 10 s windows. The PR prints no memo counter, so I used main's [buffers] ... import lookup X ms line.

Title Arm Frames p50 / p90 ms GPU busy / present ms Import lookup per upload
PPSA99420 PS5MC PR 2939 / 2611 16.7 / 16.9, 17.8 / 19.6 7.0 / 6.9 2.3 / 3.5 us
PPSA99420 PS5MC memo off 2769 / 2557 16.7 / 17.1, 16.7 / 16.9 7.0 / 6.9 2.3 / 2.1 us
PPSA99420 PS5MC main 2494 / 2874 17.6 / 19.9, 16.7 / 21.1 6.8 / 8.1 3.9 / 2.0 us
PPSA99005 Showcase PR 393 / 255 / 501 / 436 152.6 / 171.3, 125.8 / 149.7, 114.5 / 120.1, 113.6 / 124.5 71.7 / 47.9 / 45.4 / 46.2 36.5 / 40.0 / 26.2 / 20.5 us
PPSA99005 Showcase memo off 394 / 418 / 416 134.9 / 152.4, 128.4 / 151.5, 124.8 / 174.0 48.0 / 49.5 / 54.3 38.2 / 56.8 / 29.5 us
PPSA99005 Showcase main 408 / 363 / 377 138.2 / 152.9, 131.7 / 165.2, 170.8 / 183.6 50.3 / 50.4 / 74.3 55.5 / 60.0 / 70.0 us
  • PS5MC sits at the 60 Hz limit, and import lookup is 2-4 us per upload on every arm.
  • Showcase was disturbed by other GPU work on the host: windows are about 113 ms or about 170 ms on every arm. The memo-off arm does not track main either, so I see no difference I can attribute to the change. I could not reproduce the +31 % here; neither title spends much time in structural misses.
  • Frame dumps: none black. PS5MC is identical in brightness across arms (0.02-0.06 % pixels differ, the same between two main runs). Showcase brightness sequences match dump by dump (animated scene).
  • No stop line and no [gpu] errors in any of the 16 runs.
  • One Showcase run with the memo on (the 4th of 10, PR) ended at 45.6 s, exit 0x1. The homebrew's own [ps5-agc] submission retirement failed; terminating application before cleanup came with no driver error before it. The other three PR runs and all six memo-off/main runs ran the full 60 s. I cannot tie it to this change from 4 runs, but I am reporting it.

Suggestion: a 10 s profile field for ImportMissMemoCounters() hits and stores would let testers confirm the memo is answering on a title.

Not checked: AMD, Intel, Linux; PPSA13197; the full ^agc_driver_ pass; the open PRs the overlap bot lists on the same lines.

Written with Claude Code assistance (validation by a subagent, reviewed in this session).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6251913203 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7457#issuecomment-6251913203). Originally posted by [screamm](https://github.com/screamm) on 2026-10-18T15:50:58Z. --- Cross-validation on Windows 11 Pro 26220, NVIDIA GeForce RTX 4070 (driver 596.21), Ryzen 7 5700X, WinLibs MinGW-w64 GCC 15.2 r7, Release. Head `ec12c0bd0` merged on main `a62c724c3` (clean). The main runs use the same tree with `GuestBufferMemory.cpp/.hpp` taken from `a62c724c3`. - Build: full build and `libs` pass. - The 8 tests in the PR body: 3 of 3 each. On this device `agc_import_miss_memo` and `agc_import_miss_memo_off` run the runtime part (`import miss memo runtime invalidation: ok`); neither skips on alignment. - Negative control, tests kept: - Memo switched off inside `HostImportFor`: `agc_import_miss_memo` fails with `a repeated import miss did not follow the memo switch`; `_off` passes. - `++state.inserted` removed: it fails with `import creation left a structural miss memo standing`. - Restored: 3 of 3. - GPU tests `-R '^agc_(host_import|driver_host_import|driver_registration)'` (`-j1`): 12 pass, 1 skipped (`agc_host_import_sparse`, Linux only). Non-GPU suite: 933 of 939, 2 skipped; 4 load timeouts (`check_main_sync`, `configure_seed`, `hardware_oracle_compare`, `conventions_env_reference`) pass serially. - `git diff --check` is clean, but `check_conventions.py --base origin/main` reports one error on current main: `[env-reference] ... APS5_NO_IMPORT_MISS_MEMO is read here but has no row in docs/dev/ENVIRONMENT.md`. The branch's base predates that rule, which is why CI passed. A row in `docs/dev/ENVIRONMENT.md` fixes it. Stale answers: I read the invalidation paths. - Unmap, remap and protection changes all end a `GuestAllocations::Mutation`, which bumps the monotonic registry generation, so a remap never returns to an old stamp. - `Contains` is consulted only under the `!importsStale` gate, the condition main already uses for lock-free hits. - New imports move `inserted`; retirements, eviction, clear and device changes move `epoch`; window changes and new unaliased spans move `missPolicy`. - A memo hit can only return `nullptr`, so the worst case of a stale entry is the copy path, never wrong memory. - The PR tests do not cover an unmap followed by a remap of the same range, or a protection change. I added both locally to the runtime test (not posted): - unmap, memoize a miss on the range (a memo hit is required), map it again: imported; - make it unreadable (miss memoized: 2 hits, 1 store), then readable again: imported. - 3 of 3 with the memo on and off. Titles: PPSA13197 is not available to me. I ran the two local homebrews that use host imports: 60 s each, no input, order PR / PR with `APS5_NO_IMPORT_MISS_MEMO=1` / main, twice, with `APS5_PROFILE_DRAW=1 APS5_PROFILE_GPU=1 APS5_TRACE_SUMMARY_EVERY=10`. Medians over the 10 s windows. The PR prints no memo counter, so I used main's `[buffers] ... import lookup X ms` line. | Title | Arm | Frames | p50 / p90 ms | GPU busy / present ms | Import lookup per upload | |---|---|---|---|---|---| | PPSA99420 PS5MC | PR | 2939 / 2611 | 16.7 / 16.9, 17.8 / 19.6 | 7.0 / 6.9 | 2.3 / 3.5 us | | PPSA99420 PS5MC | memo off | 2769 / 2557 | 16.7 / 17.1, 16.7 / 16.9 | 7.0 / 6.9 | 2.3 / 2.1 us | | PPSA99420 PS5MC | main | 2494 / 2874 | 17.6 / 19.9, 16.7 / 21.1 | 6.8 / 8.1 | 3.9 / 2.0 us | | PPSA99005 Showcase | PR | 393 / 255 / 501 / 436 | 152.6 / 171.3, 125.8 / 149.7, 114.5 / 120.1, 113.6 / 124.5 | 71.7 / 47.9 / 45.4 / 46.2 | 36.5 / 40.0 / 26.2 / 20.5 us | | PPSA99005 Showcase | memo off | 394 / 418 / 416 | 134.9 / 152.4, 128.4 / 151.5, 124.8 / 174.0 | 48.0 / 49.5 / 54.3 | 38.2 / 56.8 / 29.5 us | | PPSA99005 Showcase | main | 408 / 363 / 377 | 138.2 / 152.9, 131.7 / 165.2, 170.8 / 183.6 | 50.3 / 50.4 / 74.3 | 55.5 / 60.0 / 70.0 us | - PS5MC sits at the 60 Hz limit, and import lookup is 2-4 us per upload on every arm. - Showcase was disturbed by other GPU work on the host: windows are about 113 ms or about 170 ms on every arm. The memo-off arm does not track main either, so I see no difference I can attribute to the change. I could not reproduce the +31 % here; neither title spends much time in structural misses. - Frame dumps: none black. PS5MC is identical in brightness across arms (0.02-0.06 % pixels differ, the same between two main runs). Showcase brightness sequences match dump by dump (animated scene). - No stop line and no `[gpu]` errors in any of the 16 runs. - One Showcase run with the memo on (the 4th of 10, PR) ended at 45.6 s, exit 0x1. The homebrew's own `[ps5-agc] submission retirement failed; terminating application before cleanup` came with no driver error before it. The other three PR runs and all six memo-off/main runs ran the full 60 s. I cannot tie it to this change from 4 runs, but I am reporting it. Suggestion: a 10 s profile field for `ImportMissMemoCounters()` hits and stores would let testers confirm the memo is answering on a title. Not checked: AMD, Intel, Linux; PPSA13197; the full `^agc_driver_` pass; the open PRs the overlap bot lists on the same lines. Written with Claude Code assistance (validation by a subagent, reviewed in this session).
github-actions[bot] commented 2026-10-19 01:50:12 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-19T01:50:12Z.


This pull request is labeled perf, so it needs the summary line of a capture on main and one with the change, from the same title, scene and machine, as the Performance report form asks. Please paste both aps5-summary.jsonl lines, attach the two traces and add the output of tools/trace_digest.py.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6257938711 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7457#issuecomment-6257938711). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-19T01:50:12Z. --- <!-- pr-labels-perf --> This pull request is labeled `perf`, so it needs the summary line of a capture on `main` and one with the change, from the same title, scene and machine, as the Performance report form asks. Please paste both `aps5-summary.jsonl` lines, attach the two traces and add the output of `tools/trace_digest.py`.
CnRJay commented 2026-10-19 17:51:00 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by CnRJay on 2026-10-19T17:51:00Z.

Review: COMMENTED


Good PR: the cost is shown at the source (lease time 4.13 s to 0.07 s, import step 6.81 s to 1.30 s, 1.05M of 1.05M structural misses answered) and the frame result is an ABBA over a cutscene that is the same each run, +31% and +32% in each adjacent pair. The invalidation list (device, alignment, registry generation, forget serial, import epoch, insert count, miss policy count) is thorough. Questions on what it doesn't list.

  • "No single allocation covers the range" is a statement about the registry, but a range can also fail to import because part of a reserved heap isn't committed yet (the sparse-run and committed-span cases #6918 and agc_sparse_run_import deal with). Pages committed on demand do not change the registry generation. Does committing pages bump one of the stamps? If not, a miss recorded while the tail of a reserved heap was uncommitted keeps being served after the title commits it, and that range goes down the copy path for good. Please add a test: record a miss over a half-committed reserved window, commit the rest, and require the next lookup to import.
  • 256 slots of exact [begin, end). A title with more than 256 distinct missing ranges per generation evicts continuously and pays the lookup plus the cache cost. State the replacement policy and the hit rate on a scene with many ranges; the one profiled number is 100% on a fixed spot.
  • The four runs drift upward with time (off 6.32 then 7.31, on 8.27 then 9.62), so the ABBA order is doing real work. Good. A second ABBA, or a longer one, would show the +31% is not partly a warm-up trend.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5575521944 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7457#pullrequestreview-5575521944). Originally posted by [CnRJay](https://github.com/CnRJay) on 2026-10-19T17:51:00Z. **Review:** COMMENTED --- Good PR: the cost is shown at the source (lease time 4.13 s to 0.07 s, import step 6.81 s to 1.30 s, 1.05M of 1.05M structural misses answered) and the frame result is an ABBA over a cutscene that is the same each run, +31% and +32% in each adjacent pair. The invalidation list (device, alignment, registry generation, forget serial, import epoch, insert count, miss policy count) is thorough. Questions on what it doesn't list. - "No single allocation covers the range" is a statement about the registry, but a range can also fail to import because part of a reserved heap isn't committed yet (the sparse-run and committed-span cases #6918 and `agc_sparse_run_import` deal with). Pages committed on demand do not change the registry generation. Does committing pages bump one of the stamps? If not, a miss recorded while the tail of a reserved heap was uncommitted keeps being served after the title commits it, and that range goes down the copy path for good. Please add a test: record a miss over a half-committed reserved window, commit the rest, and require the next lookup to import. - 256 slots of exact `[begin, end)`. A title with more than 256 distinct missing ranges per generation evicts continuously and pays the lookup plus the cache cost. State the replacement policy and the hit rate on a scene with many ranges; the one profiled number is 100% on a fixed spot. - The four runs drift upward with time (off 6.32 then 7.31, on 8.27 then 9.62), so the ABBA order is doing real work. Good. A second ABBA, or a longer one, would show the +31% is not partly a warm-up trend.
adriadam10 commented 2026-10-20 09:02:54 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-20T09:02:54Z.

Review: CHANGES_REQUESTED


Thanks for the work and the numbers. This needs a rebase on current main that involves logic, so we can't do it mechanically:

  • Conflicts in GuestBufferMemory.cpp/.hpp after #6457/#6479/#6730: HostImportFor and importAccess now take an ImportRequester, the catch in importAllocation returns failedImport()/failedBlockImport(), and main already remembers refusals and failed blocks (state.refusals, state.failedBlocks, counts.remembered). Please rebase and decide how the miss memo composes with those: pass requester through, keep the unaliased-span missPolicy bump in the new failedBlockImport path, and say what the memo covers that the existing remembered failures don't.
  • Please answer CnRJay's questions: does committing pages of a reserved heap move a stamp (with a test: miss over a half-committed window, commit the rest, next lookup imports)? What is the replacement policy and hit rate when a scene has more than 256 distinct ranges? A second/longer ABBA to rule out warm-up drift.
  • The perf label bot asks for the aps5-summary.jsonl lines of main and of the change, traces, and tools/trace_digest.py output.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5582957561 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7457#pullrequestreview-5582957561). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-20T09:02:54Z. **Review:** CHANGES_REQUESTED --- Thanks for the work and the numbers. This needs a rebase on current main that involves logic, so we can't do it mechanically: - Conflicts in `GuestBufferMemory.cpp`/`.hpp` after #6457/#6479/#6730: `HostImportFor` and `importAccess` now take an `ImportRequester`, the catch in `importAllocation` returns `failedImport()`/`failedBlockImport()`, and main already remembers refusals and failed blocks (`state.refusals`, `state.failedBlocks`, `counts.remembered`). Please rebase and decide how the miss memo composes with those: pass `requester` through, keep the unaliased-span `missPolicy` bump in the new `failedBlockImport` path, and say what the memo covers that the existing remembered failures don't. - Please answer CnRJay's questions: does committing pages of a reserved heap move a stamp (with a test: miss over a half-committed window, commit the rest, next lookup imports)? What is the replacement policy and hit rate when a scene has more than 256 distinct ranges? A second/longer ABBA to rule out warm-up drift. - The `perf` label bot asks for the `aps5-summary.jsonl` lines of main and of the change, traces, and `tools/trace_digest.py` output.
moong15 commented 2026-10-20 17:31:19 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by moong15 on 2026-10-20T17:31:19Z.


Rebased onto main 1a3a1b2e0 (head bef945671). Answers in order.

@adriadam10: composition with the remembered failures

  • HostImportFor and importAccess take main's ImportRequester and pass it through.
  • The catch in importAllocation uses failedImport()/failedBlockImport(). The missPolicy bump that sat on the old unaliased-span path now sits inside failedBlockImport, so it moves on every failedBlocks write.
  • What the memo covers that refusals/failedBlocks don't: it only stores misses where no registered run covers the range (!runCovers). On main that path calls findImport and touches none of refusals, failedBlocks, failed or counts.remembered. So every such lookup still pays for the lease, refreshImports and importRun; the memo returns before all three. Refusals and failed blocks only ever describe ranges where a run exists, so the two sets don't overlap.
  • runCovers depends on the registry lease, the import window and failedBlocks. Each of these moves a stamp field, so a memo entry can't outlive the state it was computed from. It does not depend on refusals: runCovers passes budget 0, so stillRefused is false.

@CnRJay: committing pages of a reserved heap

  • It moves a stamp. A reserved heap is registered unreadable, and the import lookup only sees readable ranges. Mapping or committing pages goes through mutation.Add in DirectMemory.cpp, which bumps the registry generation, and the generation is part of the stamp.
  • Uncommitted pages inside a range that is already registered fail at the VirtualQuery check. That is the path where a run exists, so they are never memoized.
  • New test importMissMemoCommitTests:
    • It records a miss over a half-committed reserved window, commits the rest, and requires the next lookup to import with no memo hit.
    • A second case requires the memo counters not to move for a registered window with uncommitted pages.
  • Unrelated to this change: on main, an import that failed on uncommitted pages stays in state.failed until the registry changes, so committing those pages alone never retries the import. I left that alone here.

@CnRJay: replacement policy and hit rate

  • It was direct-mapped: 256 slots, and each store overwrote its slot.
  • It is now 4-way set-associative: 64 sets × 4 ways, 256 entries.
    • A range already stored is not stored again.
    • A full set evicts its oldest entry.
    • A lookup or eviction is at most 4 compares.
    • A stamp change clears the table once (4 KiB), and only when it has entries.
  • The [buffers] profile line (APS5_PROFILE_DRAW) now prints H hits of N structural misses (P%), S stores, E evictions, R resets.
  • Gameplay hit rate (Stellar Blade, one profiled run): 490,933 of 504,382 structural misses answered (97.3 %), 12,243 stores, 1 eviction, 1,387 resets. So in that scene the working set fits in 256 entries, and eviction barely happens.

Numbers

The body now has main 1a3a1b2e0 against this PR bef945671, three alternating pairs in one session (runs 1-6). The scene is Stellar Blade gameplay, a 90 s window from 400 s after the first present, with whole traces, summary lines and trace_digest.py output. This replaces the old off-switch ABBA and covers the longer-ABBA question. Means: main 5.77 fps, PR 6.16 fps. That difference is inside the run-to-run spread (run 2, PR, is slower than run 1, main), so I'm not claiming a frame-rate gain from this scene. The old +31% came from the off switch on one build, and I'd discount it.

What the change removes is shown at the source in the body. The [buffers] import lookup time falls 12% per upload (27.0 to 23.7 us at 300,000 uploads). In this scene the lookup is a small part of upload cost: queue worker 0 spends about 0.4% of its samples in HostImportFor.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6297045438 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7457#issuecomment-6297045438). Originally posted by [moong15](https://github.com/moong15) on 2026-10-20T17:31:19Z. --- Rebased onto `main` 1a3a1b2e0 (head bef945671). Answers in order. **@adriadam10: composition with the remembered failures** - `HostImportFor` and `importAccess` take main's `ImportRequester` and pass it through. - The catch in `importAllocation` uses `failedImport()`/`failedBlockImport()`. The `missPolicy` bump that sat on the old unaliased-span path now sits inside `failedBlockImport`, so it moves on every `failedBlocks` write. - What the memo covers that `refusals`/`failedBlocks` don't: it only stores misses where no registered run covers the range (`!runCovers`). On `main` that path calls `findImport` and touches none of `refusals`, `failedBlocks`, `failed` or `counts.remembered`. So every such lookup still pays for the lease, `refreshImports` and `importRun`; the memo returns before all three. Refusals and failed blocks only ever describe ranges where a run exists, so the two sets don't overlap. - `runCovers` depends on the registry lease, the import window and `failedBlocks`. Each of these moves a stamp field, so a memo entry can't outlive the state it was computed from. It does not depend on refusals: `runCovers` passes budget 0, so `stillRefused` is false. **@CnRJay: committing pages of a reserved heap** - It moves a stamp. A reserved heap is registered unreadable, and the import lookup only sees readable ranges. Mapping or committing pages goes through `mutation.Add` in `DirectMemory.cpp`, which bumps the registry generation, and the generation is part of the stamp. - Uncommitted pages inside a range that is already registered fail at the `VirtualQuery` check. That is the path where a run exists, so they are never memoized. - New test `importMissMemoCommitTests`: - It records a miss over a half-committed reserved window, commits the rest, and requires the next lookup to import with no memo hit. - A second case requires the memo counters not to move for a registered window with uncommitted pages. - Unrelated to this change: on `main`, an import that failed on uncommitted pages stays in `state.failed` until the registry changes, so committing those pages alone never retries the import. I left that alone here. **@CnRJay: replacement policy and hit rate** - It was direct-mapped: 256 slots, and each store overwrote its slot. - It is now 4-way set-associative: 64 sets × 4 ways, 256 entries. - A range already stored is not stored again. - A full set evicts its oldest entry. - A lookup or eviction is at most 4 compares. - A stamp change clears the table once (4 KiB), and only when it has entries. - The `[buffers]` profile line (`APS5_PROFILE_DRAW`) now prints `H hits of N structural misses (P%), S stores, E evictions, R resets`. - Gameplay hit rate (Stellar Blade, one profiled run): 490,933 of 504,382 structural misses answered (97.3 %), 12,243 stores, 1 eviction, 1,387 resets. So in that scene the working set fits in 256 entries, and eviction barely happens. **Numbers** The body now has `main` 1a3a1b2e0 against this PR bef945671, three alternating pairs in one session (runs 1-6). The scene is Stellar Blade gameplay, a 90 s window from 400 s after the first present, with whole traces, summary lines and `trace_digest.py` output. This replaces the old off-switch ABBA and covers the longer-ABBA question. Means: `main` 5.77 fps, PR 6.16 fps. That difference is inside the run-to-run spread (run 2, PR, is slower than run 1, `main`), so I'm not claiming a frame-rate gain from this scene. The old +31% came from the off switch on one build, and I'd discount it. What the change removes is shown at the source in the body. The `[buffers]` import lookup time falls 12% per upload (27.0 to 23.7 us at 300,000 uploads). In this scene the lookup is a small part of upload cost: queue worker 0 spends about 0.4% of its samples in `HostImportFor`.
adriadam10 commented 2026-10-20 20:19:23 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-20T20:19:23Z.

Review: CHANGES_REQUESTED


Thanks for the rebase and for answering each point; the composition with failedBlocks/refusals, the stamp fields, the commit test and the 4-way table all read correctly.

The remaining problem is the benefit:

  • Your own measurement no longer shows a gain: Stellar Blade gameplay is 5.77 fps on main vs 6.16 fps here, inside the run-to-run spread, and HostImportFor goes from 0.44 % to 0.41 % of queue worker 0 samples. You also discount the earlier +31 %, which came from the off switch on a single build.
  • The change adds ~500 lines (a stamped memo with its invalidation rules, a profile line and two new ctest entries) that every later change to the import registry has to keep consistent. For a lookup that is ~0.4 % of a worker's samples, the risk of a stale nullptr import from a missed stamp field outweighs a 12 % per-upload lookup saving.

Please either show a scene or workload where the structural-miss lookup is a measurable share of frame time, with tools/trace_digest.py summaries of main and of the change from the same machine and scene, or close this PR. If you find such a scene, the implementation itself needs nothing else from us.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5591179670 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7457#pullrequestreview-5591179670). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-20T20:19:23Z. **Review:** CHANGES_REQUESTED --- Thanks for the rebase and for answering each point; the composition with `failedBlocks`/`refusals`, the stamp fields, the commit test and the 4-way table all read correctly. The remaining problem is the benefit: - Your own measurement no longer shows a gain: Stellar Blade gameplay is 5.77 fps on `main` vs 6.16 fps here, inside the run-to-run spread, and `HostImportFor` goes from 0.44 % to 0.41 % of queue worker 0 samples. You also discount the earlier +31 %, which came from the off switch on a single build. - The change adds ~500 lines (a stamped memo with its invalidation rules, a profile line and two new ctest entries) that every later change to the import registry has to keep consistent. For a lookup that is ~0.4 % of a worker's samples, the risk of a stale `nullptr` import from a missed stamp field outweighs a 12 % per-upload lookup saving. Please either show a scene or workload where the structural-miss lookup is a measurable share of frame time, with `tools/trace_digest.py` summaries of `main` and of the change from the same machine and scene, or close this PR. If you find such a scene, the implementation itself needs nothing else from us.
adriadam10 commented 2026-10-24 01:59:56 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-24T01:59:56Z.

Review: CHANGES_REQUESTED


Still blocked on the benefit from the previous review, and nothing changed since:

  • Your own gameplay measurement on Stellar Blade shows 5.77 fps on main vs 6.16 fps here, inside the run-to-run spread, and HostImportFor is 0.44 % vs 0.41 % of queue worker 0 samples. The earlier +31 % came from the off switch on a single build.
  • ~500 lines (stamped memo, invalidation rules, profile line, two ctest entries) must stay consistent with every later change to the import registry; for a ~0.4 % lookup the risk of a stale nullptr import from a missed stamp field outweighs the 12 % per-upload lookup saving.

Please show a scene or workload where the structural-miss lookup is a measurable share of frame time, with tools/trace_digest.py summaries of main and of the change from the same machine and scene, or close this PR. The branch also conflicts with main now; rebase once there is a case for the change. If one is found, the implementation itself needs nothing else from us.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5636314108 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7457#pullrequestreview-5636314108). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-24T01:59:56Z. **Review:** CHANGES_REQUESTED --- Still blocked on the benefit from the previous review, and nothing changed since: - Your own gameplay measurement on Stellar Blade shows 5.77 fps on `main` vs 6.16 fps here, inside the run-to-run spread, and `HostImportFor` is 0.44 % vs 0.41 % of queue worker 0 samples. The earlier +31 % came from the off switch on a single build. - ~500 lines (stamped memo, invalidation rules, profile line, two ctest entries) must stay consistent with every later change to the import registry; for a ~0.4 % lookup the risk of a stale `nullptr` import from a missed stamp field outweighs the 12 % per-upload lookup saving. Please show a scene or workload where the structural-miss lookup is a measurable share of frame time, with `tools/trace_digest.py` summaries of `main` and of the change from the same machine and scene, or close this PR. The branch also conflicts with `main` now; rebase once there is a case for the change. If one is found, the implementation itself needs nothing else from us.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!7457
No description provided.