perf(agc): leave a linear storage write-back's row padding in the import #11615

Merged
dantdmdarealguy merged 1 commit from upstream-pr/11615 into main 2026-10-30 07:49:50 +00:00
dantdmdarealguy commented 2026-10-26 22:52:56 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by dantdmdarealguy on 2026-10-26T22:52:56Z.


What

On ASTRO BOT (PPSA21564) the GPU spends most of each frame writing storage images back to guest memory. In the intro cutscene that is 41.8 ms of a 68.8 ms GPU batch per present (APS5_PROFILE_GPU, class storage-writeback, main 6ea31b4e3a with #11307 applied). Most of it goes to three 240x135 linear images with 64 layers (format 71, 16.9 MiB each), each written back once per frame before a label. Each of those write-backs took 9.0 ms of GPU, and 7.2 ms of that was spent on padding.

Why: a whole-layer GPU-direct write-back retiles the image into a device scratch buffer and copies whole ranges of the scratch into the host import. Since a3ec50aefa the bytes no element holds are first copied from where they are current (a unit shadow, else the import) into the scratch, so that copying whole ranges back stores them unchanged. For a linear surface those bytes are the pitch padding of every row and the bytes between mips. Astro Bot's images have 1920-byte rows in a 2048-byte pitch, so each write-back recorded 8640 copies of 128 bytes out of host memory, followed by a copy of the whole range back into it. The many small reads of host memory cost far more than the elements themselves.

The change: for a linear surface without tail mips, CoveredMipBytes is exactly the bytes the retile writes, which are the rows without their padding. When every uncovered byte is current in the import (no unit shadow holds any of them) and no saved copy of the stored bytes is kept (saveUnits empty, i.e. the memory is write-watched), the whole-layer write-back now leaves the padding where it is: it seeds nothing and copies only the rows from the scratch into the import. The import ends up holding the same bytes as before. Tiled surfaces, thick surfaces, surfaces with tail mips, shadowed padding and unwatched memory keep the seeded path, because there the covered bytes are not the whole retile, or the scratch's copy of the padding is needed. StorageTexture::PaddingSeedCopies() counts the padding pieces seeded into a write-back scratch, for the test.

Tested

Rebased onto main 74acfad65 as 1f7bb91682 (1 ahead, 0 behind, clean merge); the 32 focused tests (agc_storage_*, agc_driver_storage_*, agc_driver_linear_target_*, patched_libraries) pass there. The measurements below were taken on the commit before the rebase (same diff).

Windows 11 Pro, Intel Core i9-14900K, 128 GB RAM, NVIDIA GeForce RTX 5080 (driver 32.0.16.1742), WinLibs GCC 15.2.0, Release.

agc_storage_write_back (agc_driver_recorder_tests --storage-write-back-only):

  • Its write-back padding cases store an image over patterned memory and check that every byte no texel holds kept its pattern. New linear cases: 240x135 with 2 mips, 1000x700, and 1900x1100 with 2 mips.
  • In write-watched memory a linear write-back must now seed no padding piece (PaddingSeedCopies unchanged).
  • With this change's new branch disabled, the test fails: (watched) linear 1000x700: the write-back copied 700 pieces of row padding from the import through its scratch and (watched) linear 1900x1100, 2 mips: ... 1650 pieces .... The byte checks pass either way.
  • With the change it passes. The small linear cases, whose host import is compared rather than watched on Windows, keep the seeded path and pass as before.

Validation layer:

  • Focused tests ^(agc_storage_|agc_driver_storage_|agc_driver_linear_target_), 31 tests.
  • Run with ctest -V and VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, ANYPS5_NO_SHADER_CACHE=1, ANYPS5_REQUIRE_VULKAN=1, the layer from VK_ADD_LAYER_PATH.
  • main c7b4878fa8: 31/31 passed, 0 VUID-. This change: 31/31 passed, 0 VUID-.
  • VK_LOADER_DEBUG=layer shows the validation layer inserted 39 times in each log. Neither log contains was not found but was requested by env var VK_INSTANCE_LAYERS.

Other checks:

  • ctest -R "^(agc_storage_|agc_driver_storage_|agc_driver_linear_target_)|patched_libraries": 32/32 passed. patched_libraries: 368 loaded, 0 failed.
  • Full build and --target libs pass, with no warnings in the touched files.
  • tools/check_conventions.py --base origin/main and tools/check_test_registration.py pass.

ASTRO BOT (PPSA21564) 01.007.000: relinked with --windows --registry --to-intel, 3840x2160, warm caches, scripted pad input. Same executable for every run; only libs/ swapped. Runs alternated in one session.

Plain main c7b4878fa8 vs this change d1316d7cb0, logo phase, APS5_TRACE_SECONDS=5:30, APS5_TRACE_EVENTS=4194304:

round main this change
1 498 presents, p50 61.8, p99 70.4, GPU 50.7 ms 692, p50 45.5, p99 52.9, GPU 34.1 ms
2 497, p50 61.7, p99 70.8, GPU 50.8 ms 692, p50 45.6, p99 51.7, GPU 34.0 ms
3 498, p50 61.9, p99 69.8, GPU 50.6 ms 690, p50 45.8, p99 52.6, GPU 34.2 ms

Intro cutscene with #11307 applied (on plain main the intro is bound by the depth plane copy thrash #11307 fixes), main 6ea31b4e3a + #11307 (d92004fe06) vs the same + this change (0cbb504f20):

  • Windows: APS5_TRACE_SECONDS=170:30 and 135:30 respectively. The change loads the intro about 15-25 s earlier, so these put both windows 24-74 s into the intro cutscene, which the log confirms for every run.
round #11307 #11307 + this change
F 376 presents, p50 79.6, p99 90.6, GPU 65.7 ms 497, p50 60.0, p99 71.6, GPU 46.5 ms
G 381, p50 78.2, p99 91.2, GPU 64.9 ms 489, p50 60.9, p99 72.4, GPU 46.8 ms
H 381, p50 78.2, p99 88.2, GPU 65.2 ms 496, p50 60.3, p99 72.0, GPU 46.7 ms

APS5_PROFILE_GPU in the intro: storage write-back 41.8 → 22.6 ms per present, GPU batch 68.8 → 49.5 ms. Every other class is unchanged.

Traces (all dropped: no):

Every trace reports dropped: no. Summary lines (rounds 1-3 on main, then F-H with #11307):

{"commit":"c7b4878fa8bc","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TASK":"perf_astrobot","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"5:30","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"NVIDIA GeForce RTX 5080","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-14900K","cpu_threads":32,"memory_mib":130808,"title_id":"PPSA21564","title":"ASTRO BOT","content_version":"01.007.000","resolution":"3840x2160","window":{"spec":"seconds 5:30","first_present":64,"ms":30049.621},"presents":498,"frame_ms":{"p50":61.805,"p90":66.910,"p99":70.368,"max":71.922},"gpu_busy_ms_per_present":50.669,"worker_busy_pct":{"queue worker 0x0":99.572,"queue worker 0x48":100.002,"queue worker 0x40":99.940,"queue worker 0x3a":0.052},"top_phases_ms_per_frame":{"Driver.Packet":178.964,"Driver.Packet.memory_wait":101.256,"Driver.Packet.dispatch":28.229,"Driver.Dispatch":22.153,"Driver.Packet.prepare_memory":20.488,"Recorder.WaitSerial":18.707,"GpuMutex.wait.dispatch":15.104,"Recorder.Sync":9.680},"trace_dropped":false,"trace":"aps5-trace-c7b4878fa8bc-72568.json.gz"}
{"commit":"d1316d7cb094","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TASK":"perf_astrobot","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"5:30","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"NVIDIA GeForce RTX 5080","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-14900K","cpu_threads":32,"memory_mib":130808,"title_id":"PPSA21564","title":"ASTRO BOT","content_version":"01.007.000","resolution":"3840x2160","window":{"spec":"seconds 5:30","first_present":98,"ms":30035.604},"presents":692,"frame_ms":{"p50":45.528,"p90":48.881,"p99":52.895,"max":56.147},"gpu_busy_ms_per_present":34.056,"worker_busy_pct":{"queue worker 0x0":99.410,"queue worker 0x48":99.970,"queue worker 0x40":99.902,"queue worker 0x3a":0.113},"top_phases_ms_per_frame":{"Driver.Packet":128.090,"Driver.Packet.memory_wait":71.733,"Driver.Packet.dispatch":22.624,"Driver.Dispatch":16.923,"GpuMutex.wait.dispatch":11.325,"Driver.Packet.prepare_memory":9.696,"Recorder.WaitSerial":8.004,"Recorder.Sync":6.275},"trace_dropped":false,"trace":"aps5-trace-d1316d7cb094-67580.json.gz"}
{"commit":"d1316d7cb094","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TASK":"perf_astrobot","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"5:30","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"NVIDIA GeForce RTX 5080","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-14900K","cpu_threads":32,"memory_mib":130808,"title_id":"PPSA21564","title":"ASTRO BOT","content_version":"01.007.000","resolution":"3840x2160","window":{"spec":"seconds 5:30","first_present":98,"ms":30044.226},"presents":692,"frame_ms":{"p50":45.629,"p90":48.773,"p99":51.698,"max":55.221},"gpu_busy_ms_per_present":34.025,"worker_busy_pct":{"queue worker 0x0":99.414,"queue worker 0x40":99.919,"queue worker 0x48":99.975,"queue worker 0x3a":0.139},"top_phases_ms_per_frame":{"Driver.Packet":128.200,"Driver.Packet.memory_wait":71.280,"Driver.Packet.dispatch":23.048,"Driver.Dispatch":17.332,"GpuMutex.wait.dispatch":11.414,"Driver.Packet.prepare_memory":9.770,"Recorder.WaitSerial":8.068,"Recorder.Sync":6.298},"trace_dropped":false,"trace":"aps5-trace-d1316d7cb094-50520.json.gz"}
{"commit":"c7b4878fa8bc","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TASK":"perf_astrobot","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"5:30","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"NVIDIA GeForce RTX 5080","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-14900K","cpu_threads":32,"memory_mib":130808,"title_id":"PPSA21564","title":"ASTRO BOT","content_version":"01.007.000","resolution":"3840x2160","window":{"spec":"seconds 5:30","first_present":64,"ms":30015.935},"presents":497,"frame_ms":{"p50":61.695,"p90":67.378,"p99":70.796,"max":73.201},"gpu_busy_ms_per_present":50.756,"worker_busy_pct":{"queue worker 0x0":99.575,"queue worker 0x48":99.985,"queue worker 0x40":99.926,"queue worker 0x3a":0.058},"top_phases_ms_per_frame":{"Driver.Packet":179.173,"Driver.Packet.memory_wait":100.912,"Driver.Packet.dispatch":28.542,"Driver.Dispatch":22.368,"Driver.Packet.prepare_memory":20.432,"Recorder.WaitSerial":18.638,"GpuMutex.wait.dispatch":15.126,"Recorder.Sync":9.305},"trace_dropped":false,"trace":"aps5-trace-c7b4878fa8bc-64956.json.gz"}
{"commit":"c7b4878fa8bc","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TASK":"perf_astrobot","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"5:30","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"NVIDIA GeForce RTX 5080","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-14900K","cpu_threads":32,"memory_mib":130808,"title_id":"PPSA21564","title":"ASTRO BOT","content_version":"01.007.000","resolution":"3840x2160","window":{"spec":"seconds 5:30","first_present":69,"ms":30028.279},"presents":498,"frame_ms":{"p50":61.938,"p90":66.919,"p99":69.781,"max":73.978},"gpu_busy_ms_per_present":50.606,"worker_busy_pct":{"queue worker 0x0":99.577,"queue worker 0x48":99.988,"queue worker 0x40":99.922,"queue worker 0x3a":0.131},"top_phases_ms_per_frame":{"Driver.Packet":178.786,"Driver.Packet.memory_wait":101.279,"Driver.Packet.dispatch":28.278,"Driver.Dispatch":22.140,"Driver.Packet.prepare_memory":20.476,"Recorder.WaitSerial":18.665,"GpuMutex.wait.dispatch":15.305,"Recorder.Sync":9.327},"trace_dropped":false,"trace":"aps5-trace-c7b4878fa8bc-40180.json.gz"}
{"commit":"d1316d7cb094","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TASK":"perf_astrobot","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"5:30","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"NVIDIA GeForce RTX 5080","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-14900K","cpu_threads":32,"memory_mib":130808,"title_id":"PPSA21564","title":"ASTRO BOT","content_version":"01.007.000","resolution":"3840x2160","window":{"spec":"seconds 5:30","first_present":104,"ms":30011.801},"presents":690,"frame_ms":{"p50":45.831,"p90":48.750,"p99":52.646,"max":57.342},"gpu_busy_ms_per_present":34.160,"worker_busy_pct":{"queue worker 0x0":99.411,"queue worker 0x48":99.967,"queue worker 0x40":99.903,"queue worker 0x3a":0.099},"top_phases_ms_per_frame":{"Driver.Packet":128.364,"Driver.Packet.memory_wait":71.518,"Driver.Packet.dispatch":23.097,"Driver.Dispatch":17.290,"GpuMutex.wait.dispatch":11.791,"Driver.Packet.prepare_memory":9.719,"Recorder.WaitSerial":8.036,"Recorder.Sync":6.577},"trace_dropped":false,"trace":"aps5-trace-d1316d7cb094-55780.json.gz"}
{"commit":"d92004fe067c","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TASK":"perf_astrobot","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"170:30","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"NVIDIA GeForce RTX 5080","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-14900K","cpu_threads":32,"memory_mib":130808,"title_id":"PPSA21564","title":"ASTRO BOT","content_version":"01.007.000","resolution":"3840x2160","window":{"spec":"seconds 170:30","first_present":2196,"ms":30041.929},"presents":376,"frame_ms":{"p50":79.570,"p90":84.312,"p99":90.584,"max":95.434},"gpu_busy_ms_per_present":65.680,"worker_busy_pct":{"queue worker 0x0":99.406,"queue worker 0x48":99.972,"queue worker 0x40":99.931,"queue worker 0x3a":0.000,"queue worker 0x46":8.581},"top_phases_ms_per_frame":{"Driver.Packet":244.701,"Driver.Packet.memory_wait":142.600,"Driver.Packet.prepare_memory":35.647,"Driver.Packet.dispatch":29.544,"Recorder.WaitSerial":28.967,"Driver.Dispatch":20.877,"Recorder.Sync":10.854,"Graphics.Draw":9.728},"trace_dropped":false,"trace":"aps5-trace-d92004fe067c-36172.json.gz"}
{"commit":"0cbb504f2038","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TASK":"perf_astrobot","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"135:30","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"NVIDIA GeForce RTX 5080","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-14900K","cpu_threads":32,"memory_mib":130808,"title_id":"PPSA21564","title":"ASTRO BOT","content_version":"01.007.000","resolution":"3840x2160","window":{"spec":"seconds 135:30","first_present":2258,"ms":30035.232},"presents":497,"frame_ms":{"p50":59.996,"p90":64.466,"p99":71.586,"max":84.592},"gpu_busy_ms_per_present":46.468,"worker_busy_pct":{"queue worker 0x0":99.238,"queue worker 0x40":99.915,"queue worker 0x48":99.962,"queue worker 0x3a":0.000,"queue worker 0x46":8.107},"top_phases_ms_per_frame":{"Driver.Packet":184.314,"Driver.Packet.memory_wait":108.150,"Driver.Packet.dispatch":23.628,"Driver.Packet.prepare_memory":21.847,"Recorder.WaitSerial":16.542,"Driver.Dispatch":16.534,"Graphics.Draw":10.242,"Graphics.Draw.draw_and_resource_release":9.068},"trace_dropped":false,"trace":"aps5-trace-0cbb504f2038-68748.json.gz"}
{"commit":"0cbb504f2038","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TASK":"perf_astrobot","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"135:30","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"NVIDIA GeForce RTX 5080","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-14900K","cpu_threads":32,"memory_mib":130808,"title_id":"PPSA21564","title":"ASTRO BOT","content_version":"01.007.000","resolution":"3840x2160","window":{"spec":"seconds 135:30","first_present":2253,"ms":30043.725},"presents":489,"frame_ms":{"p50":60.940,"p90":66.251,"p99":72.373,"max":87.923},"gpu_busy_ms_per_present":46.801,"worker_busy_pct":{"queue worker 0x0":99.218,"queue worker 0x40":99.916,"queue worker 0x48":99.884,"queue worker 0x3a":0.000,"queue worker 0x46":7.744},"top_phases_ms_per_frame":{"Driver.Packet":187.140,"Driver.Packet.memory_wait":109.448,"Driver.Packet.prepare_memory":22.754,"Driver.Packet.dispatch":21.901,"Recorder.WaitSerial":17.409,"Driver.Dispatch":16.298,"Graphics.Draw":11.054,"Driver.Packet.draw":10.672},"trace_dropped":false,"trace":"aps5-trace-0cbb504f2038-64212.json.gz"}
{"commit":"d92004fe067c","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TASK":"perf_astrobot","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"170:30","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"NVIDIA GeForce RTX 5080","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-14900K","cpu_threads":32,"memory_mib":130808,"title_id":"PPSA21564","title":"ASTRO BOT","content_version":"01.007.000","resolution":"3840x2160","window":{"spec":"seconds 170:30","first_present":2241,"ms":30030.679},"presents":381,"frame_ms":{"p50":78.227,"p90":83.414,"p99":91.157,"max":98.731},"gpu_busy_ms_per_present":64.933,"worker_busy_pct":{"queue worker 0x0":99.417,"queue worker 0x40":99.926,"queue worker 0x48":99.963,"queue worker 0x3a":0.000,"queue worker 0x46":8.815},"top_phases_ms_per_frame":{"Driver.Packet":241.574,"Driver.Packet.memory_wait":139.483,"Driver.Packet.prepare_memory":35.306,"Driver.Packet.dispatch":28.815,"Recorder.WaitSerial":28.790,"Driver.Dispatch":21.704,"Recorder.Sync":10.489,"Graphics.Draw":9.547},"trace_dropped":false,"trace":"aps5-trace-d92004fe067c-65560.json.gz"}
{"commit":"d92004fe067c","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TASK":"perf_astrobot","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"170:30","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"NVIDIA GeForce RTX 5080","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-14900K","cpu_threads":32,"memory_mib":130808,"title_id":"PPSA21564","title":"ASTRO BOT","content_version":"01.007.000","resolution":"3840x2160","window":{"spec":"seconds 170:30","first_present":2242,"ms":30049.917},"presents":381,"frame_ms":{"p50":78.186,"p90":83.187,"p99":88.183,"max":102.684},"gpu_busy_ms_per_present":65.162,"worker_busy_pct":{"queue worker 0x0":99.410,"queue worker 0x40":99.926,"queue worker 0x48":99.965,"queue worker 0x3a":0.000,"queue worker 0x46":8.264},"top_phases_ms_per_frame":{"Driver.Packet":241.279,"Driver.Packet.memory_wait":140.718,"Driver.Packet.prepare_memory":36.070,"Recorder.WaitSerial":29.312,"Driver.Packet.dispatch":27.708,"Driver.Dispatch":20.073,"Recorder.Sync":10.676,"Graphics.Draw":9.626},"trace_dropped":false,"trace":"aps5-trace-d92004fe067c-43744.json.gz"}
{"commit":"0cbb504f2038","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TASK":"perf_astrobot","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"135:30","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"NVIDIA GeForce RTX 5080","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-14900K","cpu_threads":32,"memory_mib":130808,"title_id":"PPSA21564","title":"ASTRO BOT","content_version":"01.007.000","resolution":"3840x2160","window":{"spec":"seconds 135:30","first_present":2317,"ms":30011.420},"presents":496,"frame_ms":{"p50":60.265,"p90":64.035,"p99":72.017,"max":76.203},"gpu_busy_ms_per_present":46.659,"worker_busy_pct":{"queue worker 0x0":99.228,"queue worker 0x40":99.920,"queue worker 0x48":99.962,"queue worker 0x3a":0.000,"queue worker 0x46":8.204},"top_phases_ms_per_frame":{"Driver.Packet":184.657,"Driver.Packet.memory_wait":108.174,"Driver.Packet.dispatch":23.329,"Driver.Packet.prepare_memory":22.413,"Recorder.WaitSerial":16.838,"Driver.Dispatch":16.487,"Graphics.Draw":10.177,"Graphics.Draw.draw_and_resource_release":8.970},"trace_dropped":false,"trace":"aps5-trace-0cbb504f2038-45236.json.gz"}
Round 1 on main c7b4878fa8 vs this change, trace_digest.py --top 8

main c7b4878fa8

seconds 5:30 from present 64: 498 presents, frame p50 61.8 / p90 66.9 / p99 70.4 / max 71.9 ms, GPU busy 50.7 ms per present
NVIDIA GeForce RTX 5080, NVIDIA 617.42, Windows 10.0.26300, 3840x2160, commit c7b4878fa8, dropped: no

{"commit":"c7b4878fa8bc","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TASK":"perf_astrobot","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"5:30","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"NVIDIA GeForce RTX 5080","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-14900K","cpu_threads":32,"memory_mib":130808,"title_id":"PPSA21564","title":"ASTRO BOT","content_version":"01.007.000","resolution":"3840x2160","window":{"spec":"seconds 5:30","first_present":64,"ms":30049.621},"presents":498,"frame_ms":{"p50":61.805,"p90":66.91,"p99":70.368,"max":71.922},"gpu_busy_ms_per_present":50.669,"worker_busy_pct":{"queue worker 0x0":99.572,"queue worker 0x48":100.002,"queue worker 0x40":99.94,"queue worker 0x3a":0.052},"top_phases_ms_per_frame":{"Driver.Packet":178.964,"Driver.Packet.memory_wait":101.256,"Driver.Packet.dispatch":28.229,"Driver.Dispatch":22.153,"Driver.Packet.prepare_memory":20.488,"Recorder.WaitSerial":18.707,"GpuMutex.wait.dispatch":15.104,"Recorder.Sync":9.68},"trace_dropped":false,"trace":"aps5-trace-c7b4878fa8bc-72568.json.gz"}

Slowest frames (largest slices inside each, inclusive)

  • present 437: 71.9 ms at 21897 ms: Driver.WorkerWait (queue worker 0x3a) 71.9, Driver.Packet (queue worker 0x40) 71.3, Driver.Packet (queue worker 0x48) 71.1, Driver.Packet (queue worker 0x0) 69.2
  • present 555: 71.4 ms at 29586 ms: Driver.WorkerWait (queue worker 0x3a) 71.2, Driver.Packet (queue worker 0x40) 70.8, Driver.Packet (queue worker 0x48) 70.7, Driver.Packet (queue worker 0x0) 68.7
  • present 499: 70.5 ms at 25951 ms: Driver.WorkerWait (queue worker 0x3a) 70.4, Driver.Packet (queue worker 0x40) 70.0, Driver.Packet (queue worker 0x48) 69.7, Driver.Packet (queue worker 0x0) 67.9
  • present 311: 70.4 ms at 13672 ms: Driver.WorkerWait (queue worker 0x3a) 70.1, Driver.Packet (queue worker 0x48) 69.4, Driver.WorkerWait.dequeue_order (queue worker 0x3a) 69.4, Driver.Packet (queue worker 0x0) 68.0
  • present 478: 70.4 ms at 24576 ms: Driver.WorkerWait (queue worker 0x3a) 70.3, Driver.Packet (queue worker 0x40) 69.8, Driver.Packet (queue worker 0x48) 69.6, Driver.Packet (queue worker 0x0) 67.2

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
queue worker 0x0 30.2 (50 %) 27.8 (46 %) 2.4 4.6 Driver.Packet 57.5, Driver.EndSubmission 0.4
shader prepare 0.0 (0 %) 0.0 (0 %) 60.3 0.0 Vulkan.GraphicsPipelinePrebuild 0.0
title 0.0 (0 %) 0.0 (0 %) 60.3 0.0 Shader.ResolveGraphicsAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 60.3 0.0 Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 60.3 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 60.3 0.1 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0
queue worker 0x48 2.0 (3 %) 58.2 (97 %) 0.1 0.2 Driver.Packet 59.5, Driver.EndSubmission 0.7
draw committer 6.9 (11 %) 1.9 (3 %) 51.5 0.7 Recorder.Sync 4.2, Graphics.Draw 1.7
queue worker 0x40 8.9 (15 %) 50.9 (84 %) 0.5 1.9 Driver.Packet 59.2, Driver.EndSubmission 0.6
presenter 0.7 (1 %) 0.2 (0 %) 59.5 0.1 VideoOut.Flip 0.9
queue worker 0x3a 0.0 (0 %) 33.0 (55 %) 27.3 0.0 Driver.Packet 0.0, Driver.EndSubmission 0.0
gpu 50.7 (84 %) 0.0 (0 %) 9.6 0.0 batch 50.7

Largest slices (ms per frame, inclusive, all threads): Driver.Packet 176.2, Driver.Packet.memory_wait 101.1, batch 50.7, Driver.WorkerWait 33.0, Driver.Packet.dispatch 27.9, Driver.WorkerWait.dequeue_order 27.1, Driver.Dispatch 21.7, Driver.Packet.prepare_memory 20.3

Longest waits

  • Driver.WorkerWait (queue worker 0x3a) 85.0 ms at 27041 ms, present 515
  • Driver.WorkerWait (queue worker 0x3a) 82.7 ms at 17571 ms, present 370
  • Driver.WorkerWait (queue worker 0x3a) 82.6 ms at 25152 ms, present 486
  • Driver.WorkerWait (queue worker 0x3a) 81.3 ms at 25285 ms, present 488
  • Driver.WorkerWait (queue worker 0x3a) 81.2 ms at 14768 ms, present 327
  • Driver.WorkerWait (queue worker 0x3a) 80.9 ms at 19013 ms, present 392
  • Driver.WorkerWait (queue worker 0x3a) 80.9 ms at 25870 ms, present 497
  • Driver.WorkerWait (queue worker 0x3a) 80.9 ms at 19736 ms, present 403

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

  • batch 5576: 18.8 ms at 2300 ms, present 105: GPU no ranges; recorded by GpuMutex.wait.label (draw committer) 0.1, Recorder.Submit (draw committer) 0.0
  • batch 31667: 18.8 ms at 29153 ms, present 548: GPU no ranges; recorded by GpuMutex.wait.label (draw committer) 0.2
  • batch 15061: 18.8 ms at 11313 ms, present 268: GPU no ranges; recorded by GpuMutex.wait.fill (draw committer) 0.9, GpuMutex.wait.label (draw committer) 0.1, Recorder.Submit (draw committer) 0.0
  • batch 18855: 18.7 ms at 15133 ms, present 333: GPU no ranges; recorded by GpuMutex.wait.label (draw committer) 0.0, Recorder.Submit (draw committer) 0.0
  • batch 3661: 18.7 ms at 458 ms, present 72: GPU no ranges; recorded by Driver.Packet (queue worker 0x48) 282.8, Driver.Packet.memory_wait (queue worker 0x48) 215.3, Driver.Packet.dispatch (queue worker 0x48) 56.1, Driver.Dispatch (queue worker 0x48) 56.1

this change d1316d7cb0

seconds 5:30 from present 98: 692 presents, frame p50 45.5 / p90 48.9 / p99 52.9 / max 56.1 ms, GPU busy 34.1 ms per present
NVIDIA GeForce RTX 5080, NVIDIA 617.42, Windows 10.0.26300, 3840x2160, commit d1316d7cb094, dropped: no

{"commit":"d1316d7cb094","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TASK":"perf_astrobot","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"5:30","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"NVIDIA GeForce RTX 5080","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-14900K","cpu_threads":32,"memory_mib":130808,"title_id":"PPSA21564","title":"ASTRO BOT","content_version":"01.007.000","resolution":"3840x2160","window":{"spec":"seconds 5:30","first_present":98,"ms":30035.604},"presents":692,"frame_ms":{"p50":45.528,"p90":48.881,"p99":52.895,"max":56.147},"gpu_busy_ms_per_present":34.056,"worker_busy_pct":{"queue worker 0x0":99.41,"queue worker 0x48":99.97,"queue worker 0x40":99.902,"queue worker 0x3a":0.113},"top_phases_ms_per_frame":{"Driver.Packet":128.09,"Driver.Packet.memory_wait":71.733,"Driver.Packet.dispatch":22.624,"Driver.Dispatch":16.923,"GpuMutex.wait.dispatch":11.325,"Driver.Packet.prepare_memory":9.696,"Recorder.WaitSerial":8.004,"Recorder.Sync":6.275},"trace_dropped":false,"trace":"aps5-trace-d1316d7cb094-67580.json.gz"}

Slowest frames (largest slices inside each, inclusive)

  • present 417: 56.1 ms at 12571 ms: Driver.WorkerWait (queue worker 0x3a) 55.9, Driver.Packet (queue worker 0x48) 55.3, Driver.Packet (queue worker 0x0) 53.5, Driver.Packet (queue worker 0x40) 53.5
  • present 441: 55.6 ms at 13694 ms: Driver.WorkerWait (queue worker 0x3a) 55.6, Driver.Packet (queue worker 0x40) 55.1, Driver.Packet (queue worker 0x48) 54.7, Driver.Packet (queue worker 0x0) 52.9
  • present 491: 54.8 ms at 16039 ms: Driver.WorkerWait (queue worker 0x3a) 54.5, Driver.Packet (queue worker 0x40) 54.1, Driver.Packet (queue worker 0x48) 53.9, Driver.WorkerWait.dequeue_order (queue worker 0x3a) 53.2
  • present 700: 54.2 ms at 25807 ms: Driver.WorkerWait (queue worker 0x3a) 54.1, Driver.Packet (queue worker 0x40) 53.6, Driver.Packet (queue worker 0x48) 53.3, Driver.Packet (queue worker 0x0) 51.5
  • present 384: 54.1 ms at 11015 ms: Driver.WorkerWait (queue worker 0x3a) 54.0, Driver.Packet (queue worker 0x40) 53.4, Driver.Packet (queue worker 0x48) 53.2, Driver.Packet (queue worker 0x0) 51.4

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
queue worker 0x0 25.2 (58 %) 15.8 (36 %) 2.4 4.6 Driver.Packet 40.7, Driver.EndSubmission 0.2
shader prepare 0.0 (0 %) 0.0 (0 %) 43.4 0.0 Vulkan.GraphicsPipelinePrebuild 0.0
title 0.0 (0 %) 0.0 (0 %) 43.4 0.0 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 43.4 0.0 Shader.ResolveGraphicsAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 43.4 0.0 Shader.ResolveGraphicsStagesAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 43.4 0.1 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
queue worker 0x48 1.5 (3 %) 41.8 (96 %) 0.1 0.2 Driver.Packet 42.5, Driver.EndSubmission 0.8
queue worker 0x40 7.7 (18 %) 35.2 (81 %) 0.5 1.9 Driver.Packet 42.1, Driver.EndSubmission 0.7
draw committer 5.3 (12 %) 1.5 (3 %) 36.6 0.7 Recorder.Sync 2.6, Graphics.Draw 1.8
presenter 0.7 (2 %) 0.2 (1 %) 42.5 0.1 VideoOut.Flip 0.9
queue worker 0x3a 0.0 (0 %) 30.9 (71 %) 12.5 0.0 Driver.Packet 0.0, Driver.EndSubmission 0.0
gpu 34.1 (79 %) 0.0 (0 %) 9.3 0.0 batch 34.1

Largest slices (ms per frame, inclusive, all threads): Driver.Packet 125.4, Driver.Packet.memory_wait 71.7, batch 34.1, Driver.WorkerWait 30.9, Driver.WorkerWait.dequeue_order 24.2, Driver.Packet.dispatch 22.3, Driver.Dispatch 16.5, GpuMutex.wait.dispatch 11.3

Longest waits

  • Driver.WorkerWait (queue worker 0x3a) 67.8 ms at 29639 ms, present 781
  • Driver.WorkerWait (queue worker 0x3a) 67.5 ms at 17158 ms, present 514
  • Driver.WorkerWait (queue worker 0x3a) 66.4 ms at 14905 ms, present 466
  • Driver.WorkerWait (queue worker 0x3a) 64.2 ms at 23480 ms, present 650
  • Driver.WorkerWait (queue worker 0x3a) 62.4 ms at 12609 ms, present 417
  • Driver.WorkerWait (queue worker 0x3a) 62.3 ms at 9381 ms, present 349
  • Driver.WorkerWait (queue worker 0x3a) 62.2 ms at 11481 ms, present 393
  • Driver.WorkerWait (queue worker 0x3a) 62.2 ms at 9527 ms, present 352

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

  • batch 43694: 12.1 ms at 28386 ms, present 755: GPU no ranges; recorded by Vulkan.DrawFromRecipe (draw committer) 0.1, Graphics.DrawWithRecipe (draw committer) 0.1, Graphics.DrawWithRecipe.draw_and_resource_release (draw committer) 0.1, GpuMutex.wait.label (draw committer) 0.0
  • batch 22249: 12.0 ms at 11544 ms, present 395: GPU no ranges; recorded by Driver.WorkerWait (queue worker 0x3a) 34.1, Driver.WorkerWait.dequeue_order (queue worker 0x3a) 33.7, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x3a) 0.4, Driver.Packet (queue worker 0x3a) 0.1
  • batch 41735: 11.9 ms at 26845 ms, present 722: GPU no ranges; recorded by Driver.WorkerWait (queue worker 0x3a) 35.2, Driver.WorkerWait.dequeue_order (queue worker 0x3a) 34.8, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x3a) 0.4, Driver.Packet (queue worker 0x3a) 0.0
  • batch 22003: 11.9 ms at 11350 ms, present 391: GPU no ranges; recorded by Driver.WorkerWait (queue worker 0x3a) 34.9, Driver.WorkerWait.dequeue_order (queue worker 0x3a) 33.8, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x3a) 1.0, Driver.Packet (queue worker 0x3a) 0.1
  • batch 26224: 11.9 ms at 14682 ms, present 462: GPU no ranges; recorded by Vulkan.DrawFromRecipe (draw committer) 0.2, Graphics.DrawWithRecipe (draw committer) 0.2, Graphics.DrawWithRecipe.draw_and_resource_release (draw committer) 0.2, GpuMutex.wait.label (draw committer) 0.0
Round F, intro with #11307: d92004fe06 vs 0cbb504f20, trace_digest.py --top 8

#11307 (d92004fe06)

seconds 170:30 from present 2196: 376 presents, frame p50 79.6 / p90 84.3 / p99 90.6 / max 95.4 ms, GPU busy 65.7 ms per present
NVIDIA GeForce RTX 5080, NVIDIA 617.42, Windows 10.0.26300, 3840x2160, commit d92004fe067c, dropped: no

{"commit":"d92004fe067c","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TASK":"perf_astrobot","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"170:30","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"NVIDIA GeForce RTX 5080","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-14900K","cpu_threads":32,"memory_mib":130808,"title_id":"PPSA21564","title":"ASTRO BOT","content_version":"01.007.000","resolution":"3840x2160","window":{"spec":"seconds 170:30","first_present":2196,"ms":30041.929},"presents":376,"frame_ms":{"p50":79.57,"p90":84.312,"p99":90.584,"max":95.434},"gpu_busy_ms_per_present":65.68,"worker_busy_pct":{"queue worker 0x0":99.406,"queue worker 0x48":99.972,"queue worker 0x40":99.931,"queue worker 0x3a":0.0,"queue worker 0x46":8.581},"top_phases_ms_per_frame":{"Driver.Packet":244.701,"Driver.Packet.memory_wait":142.6,"Driver.Packet.prepare_memory":35.647,"Driver.Packet.dispatch":29.544,"Recorder.WaitSerial":28.967,"Driver.Dispatch":20.877,"Recorder.Sync":10.854,"Graphics.Draw":9.728},"trace_dropped":false,"trace":"aps5-trace-d92004fe067c-36172.json.gz"}

Slowest frames (largest slices inside each, inclusive)

  • present 2220: 95.4 ms at 1948 ms: Driver.Packet (queue worker 0x48) 95.3, Driver.Packet (queue worker 0x40) 94.4, Driver.Packet (queue worker 0x0) 90.9, Driver.Packet.memory_wait (queue worker 0x48) 80.0
  • present 2553: 94.3 ms at 28417 ms: Driver.WorkerWait (queue worker 0x46) 94.3, Driver.Packet (queue worker 0x40) 93.7, Driver.Packet (queue worker 0x48) 93.5, Driver.WorkerWait.dequeue_order (queue worker 0x46) 93.4
  • present 2488: 91.6 ms at 23089 ms: Driver.Packet (queue worker 0x40) 90.9, Driver.Packet (queue worker 0x48) 90.8, Driver.WorkerWait (queue worker 0x46) 89.1, Driver.WorkerWait.dequeue_order (queue worker 0x46) 86.8
  • present 2435: 90.6 ms at 18803 ms: Driver.Packet (queue worker 0x40) 90.1, Driver.Packet (queue worker 0x48) 89.8, Driver.Packet (queue worker 0x0) 86.6, Driver.WorkerWait (queue worker 0x46) 86.4
  • present 2372: 89.5 ms at 13845 ms: Driver.Packet (queue worker 0x40) 88.9, Driver.Packet (queue worker 0x48) 88.7, Driver.Packet (queue worker 0x0) 85.4, Driver.WorkerWait (queue worker 0x46) 79.1

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
queue worker 0x0 39.8 (50 %) 35.9 (45 %) 4.2 13.4 Driver.Packet 75.5, Driver.Completion 0.1
shader prepare 0.0 (0 %) 0.0 (0 %) 79.9 0.0 Vulkan.GraphicsPipelinePrebuild 0.0
title 0.1 (0 %) 0.0 (0 %) 79.8 0.1 Shader.ResolveGraphicsStagesAbi 0.1, Shader.ResolveGraphicsAbi 0.0
title 0.1 (0 %) 0.0 (0 %) 79.8 0.1 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0
title 0.1 (0 %) 0.0 (0 %) 79.8 0.1 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 79.9 0.2 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
draw committer 13.0 (16 %) 9.3 (12 %) 57.6 3.7 Graphics.Draw 8.6, Recorder.Sync 3.1
queue worker 0x48 7.0 (9 %) 72.6 (91 %) 0.3 0.2 Driver.Packet 78.9, Driver.EndSubmission 0.8
queue worker 0x40 10.2 (13 %) 69.1 (87 %) 0.5 2.0 Driver.Packet 79.2, Driver.EndSubmission 0.1
presenter 0.8 (1 %) 0.0 (0 %) 79.1 0.1 VideoOut.Flip 0.8
title 0.0 (0 %) 0.0 (0 %) 79.9 0.0 Shader.ResolveGraphicsStagesAbi 0.0
queue worker 0x46 2.5 (3 %) 77.2 (97 %) 0.3 0.8 Driver.Packet 6.5, Driver.EndSubmission 0.2
gpu 65.9 (82 %) 0.0 (0 %) 14.0 0.0 batch 65.9

Largest slices (ms per frame, inclusive, all threads): Driver.Packet 240.1, Driver.Packet.memory_wait 142.4, Driver.WorkerWait 73.0, batch 65.9, Driver.WorkerWait.dequeue_order 52.2, Driver.Packet.prepare_memory 35.4, Driver.Packet.dispatch 29.2, Recorder.WaitSerial 29.0

Longest waits

  • Driver.WorkerWait (queue worker 0x46) 142.8 ms at 3292 ms, present 2236
  • Driver.WorkerWait (queue worker 0x46) 140.8 ms at 1445 ms, present 2213
  • Driver.WorkerWait (queue worker 0x46) 136.4 ms at 4092 ms, present 2246
  • Driver.WorkerWait (queue worker 0x46) 122.5 ms at 28937 ms, present 2559
  • Driver.WorkerWait (queue worker 0x46) 122.3 ms at 1966 ms, present 2220
  • Driver.WorkerWait (queue worker 0x46) 121.6 ms at 28390 ms, present 2552
  • Driver.WorkerWait (queue worker 0x46) 121.0 ms at 27668 ms, present 2544
  • Driver.WorkerWait (queue worker 0x46) 120.8 ms at 639 ms, present 2204

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

  • batch 164275: 18.6 ms at 2854 ms, present 2231: GPU no ranges; recorded by Driver.Packet (queue worker 0x48) 82.2, Driver.Packet.memory_wait (queue worker 0x48) 69.5, Driver.Packet.flush_between_packets (queue worker 0x48) 12.1, Driver.EndSubmission (queue worker 0x48) 0.7
  • batch 178909: 18.6 ms at 17312 ms, present 2416: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.7, GpuMutex.wait.draw (draw committer) 0.6, Graphics.Draw.draw_and_resource_release (draw committer) 0.6, Recorder.Submit (draw committer) 0.1
  • batch 163471: 18.6 ms at 2061 ms, present 2221: GPU no ranges; recorded by Driver.Packet (queue worker 0x48) 87.5, Driver.Packet.memory_wait (queue worker 0x48) 72.8, Driver.Packet.dispatch (queue worker 0x48) 14.7, Driver.Dispatch (queue worker 0x48) 14.7
  • batch 186642: 18.4 ms at 24656 ms, present 2507: GPU no ranges; recorded by Driver.WorkerWait (queue worker 0x46) 36.8, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x46) 19.8, Driver.WorkerWait.dequeue_order (queue worker 0x46) 16.9, Driver.Packet (queue worker 0x46) 13.3
  • batch 177142: 18.4 ms at 15577 ms, present 2394: GPU no ranges; recorded by Driver.Packet (queue worker 0x48) 150.9, Driver.Packet.memory_wait (queue worker 0x48) 126.5, Driver.Packet.dispatch (queue worker 0x48) 12.9, Driver.Dispatch (queue worker 0x48) 12.9

#11307 + this change (0cbb504f20)

seconds 135:30 from present 2258: 497 presents, frame p50 60.0 / p90 64.5 / p99 71.6 / max 84.6 ms, GPU busy 46.5 ms per present
NVIDIA GeForce RTX 5080, NVIDIA 617.42, Windows 10.0.26300, 3840x2160, commit 0cbb504f2038, dropped: no

{"commit":"0cbb504f2038","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TASK":"perf_astrobot","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"135:30","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"NVIDIA GeForce RTX 5080","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-14900K","cpu_threads":32,"memory_mib":130808,"title_id":"PPSA21564","title":"ASTRO BOT","content_version":"01.007.000","resolution":"3840x2160","window":{"spec":"seconds 135:30","first_present":2258,"ms":30035.232},"presents":497,"frame_ms":{"p50":59.996,"p90":64.466,"p99":71.586,"max":84.592},"gpu_busy_ms_per_present":46.468,"worker_busy_pct":{"queue worker 0x0":99.238,"queue worker 0x40":99.915,"queue worker 0x48":99.962,"queue worker 0x3a":0.0,"queue worker 0x46":8.107},"top_phases_ms_per_frame":{"Driver.Packet":184.314,"Driver.Packet.memory_wait":108.15,"Driver.Packet.dispatch":23.628,"Driver.Packet.prepare_memory":21.847,"Recorder.WaitSerial":16.542,"Driver.Dispatch":16.534,"Graphics.Draw":10.242,"Graphics.Draw.draw_and_resource_release":9.068},"trace_dropped":false,"trace":"aps5-trace-0cbb504f2038-68748.json.gz"}

Slowest frames (largest slices inside each, inclusive)

  • present 2733: 84.6 ms at 28598 ms: Driver.Packet (queue worker 0x40) 84.0, Driver.Packet (queue worker 0x48) 83.6, Driver.WorkerWait (queue worker 0x46) 81.7, Driver.Packet (queue worker 0x0) 79.7
  • present 2664: 77.9 ms at 24365 ms: Driver.Packet (queue worker 0x40) 77.1, Driver.Packet (queue worker 0x48) 77.0, Driver.WorkerWait (queue worker 0x46) 74.1, Driver.Packet (queue worker 0x0) 72.9
  • present 2288: 75.0 ms at 1893 ms: Driver.Packet (queue worker 0x40) 74.1, Driver.Packet (queue worker 0x48) 74.1, Driver.Packet (queue worker 0x0) 70.8, Driver.Packet.memory_wait (queue worker 0x48) 65.3
  • present 2615: 72.5 ms at 21403 ms: Driver.Packet (queue worker 0x40) 71.9, Driver.Packet (queue worker 0x48) 71.6, Driver.Packet (queue worker 0x0) 68.2, Driver.WorkerWait (queue worker 0x46) 65.0
  • present 2270: 71.6 ms at 755 ms: Driver.Packet (queue worker 0x40) 70.9, Driver.Packet (queue worker 0x48) 70.5, Driver.WorkerWait (queue worker 0x46) 68.5, Driver.Packet (queue worker 0x0) 67.3

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
queue worker 0x0 33.9 (56 %) 22.5 (37 %) 4.1 13.2 Driver.Packet 56.2, Driver.Completion 0.1
shader prepare 0.0 (0 %) 0.0 (0 %) 60.4 0.0 Vulkan.GraphicsPipelinePrebuild 0.0
title 0.1 (0 %) 0.0 (0 %) 60.4 0.1 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0
title 0.1 (0 %) 0.0 (0 %) 60.4 0.1 Shader.ResolveGraphicsStagesAbi 0.1, Shader.ResolveGraphicsAbi 0.0
title 0.1 (0 %) 0.0 (0 %) 60.4 0.1 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0
title 0.0 (0 %) 0.0 (0 %) 60.4 0.2 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0
queue worker 0x40 9.5 (16 %) 50.5 (83 %) 0.5 2.1 Driver.Packet 59.8, Driver.EndSubmission 0.1
draw committer 12.5 (21 %) 6.7 (11 %) 41.3 3.8 Graphics.Draw 9.2, Recorder.Sync 2.1
queue worker 0x48 4.3 (7 %) 55.9 (93 %) 0.2 0.2 Driver.Packet 59.4, Driver.EndSubmission 0.8
presenter 0.8 (1 %) 0.0 (0 %) 59.6 0.1 VideoOut.Flip 0.8
title 0.0 (0 %) 0.0 (0 %) 60.4 0.0 Shader.ResolveGraphicsStagesAbi 0.0
queue worker 0x46 1.9 (3 %) 58.4 (97 %) 0.2 0.8 Driver.Packet 4.6, Driver.EndSubmission 0.2
gpu 46.5 (77 %) 0.0 (0 %) 14.0 0.0 batch 46.5

Largest slices (ms per frame, inclusive, all threads): Driver.Packet 180.0, Driver.Packet.memory_wait 108.0, Driver.WorkerWait 55.5, batch 46.5, Driver.WorkerWait.dequeue_order 37.0, Driver.Packet.dispatch 23.3, Driver.Packet.prepare_memory 21.6, Driver.WorkerWait.idle_and_completion_poll 18.4

Longest waits

  • Driver.WorkerWait (queue worker 0x46) 109.2 ms at 38 ms, present 2258
  • Driver.WorkerWait (queue worker 0x46) 104.4 ms at 20804 ms, present 2604
  • Driver.WorkerWait (queue worker 0x46) 104.0 ms at 8890 ms, present 2400
  • Driver.WorkerWait (queue worker 0x46) 103.2 ms at 9012 ms, present 2402
  • Driver.WorkerWait (queue worker 0x46) 102.4 ms at 11571 ms, present 2445
  • Driver.WorkerWait (queue worker 0x46) 96.2 ms at 10811 ms, present 2432
  • Driver.WorkerWait (queue worker 0x46) 95.1 ms at 759 ms, present 2270
  • Driver.WorkerWait (queue worker 0x46) 95.0 ms at 2992 ms, present 2305

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

  • batch 201663: 8.5 ms at 25432 ms, present 2681: GPU no ranges; recorded by Graphics.Draw (draw committer) 6.0, Graphics.Draw.draw_and_resource_release (draw committer) 5.4, Resources.Complete (draw committer) 4.1, GpuMutex.wait.draw (draw committer) 0.9
  • batch 167383: 8.4 ms at 1087 ms, present 2275: GPU no ranges; recorded by GpuMutex.wait.draw (draw committer) 5.3, Graphics.Draw (draw committer) 1.0, Graphics.Draw.draw_and_resource_release (draw committer) 0.9, Graphics.Draw.validate (draw committer) 0.1
  • batch 203696: 8.2 ms at 26825 ms, present 2704: GPU no ranges; recorded by Driver.Packet (queue worker 0x48) 64.6, Driver.Packet.memory_wait (queue worker 0x48) 57.0, Driver.Packet.flush_between_packets (queue worker 0x48) 7.1, Driver.EndSubmission (queue worker 0x48) 0.9
  • batch 168268: 8.2 ms at 1708 ms, present 2285: GPU no ranges; recorded by Driver.Packet (queue worker 0x48) 126.5, Driver.Packet.memory_wait (queue worker 0x48) 109.6, Driver.Packet.dispatch (queue worker 0x48) 13.5, Driver.Dispatch (queue worker 0x48) 13.4
  • batch 199290: 8.1 ms at 23779 ms, present 2654: GPU no ranges; recorded by Driver.WorkerWait (queue worker 0x46) 23.5, Driver.WorkerWait.dequeue_order (queue worker 0x46) 13.5, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x46) 10.0, Driver.Packet (queue worker 0x46) 5.5

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: NVIDIA GeForce RTX 5080, driver 32.0.16.1742, Windows 11 Pro
  • AI-assisted: yes, some AI assistance was used
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5025854276 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11615). Originally posted by [dantdmdarealguy](https://github.com/dantdmdarealguy) on 2026-10-26T22:52:56Z. --- ### What On ASTRO BOT (PPSA21564) the GPU spends most of each frame writing storage images back to guest memory. In the intro cutscene that is 41.8 ms of a 68.8 ms GPU batch per present (`APS5_PROFILE_GPU`, class `storage-writeback`, `main` 6ea31b4e3a with #11307 applied). Most of it goes to three 240x135 linear images with 64 layers (format 71, 16.9 MiB each), each written back once per frame before a label. Each of those write-backs took 9.0 ms of GPU, and 7.2 ms of that was spent on padding. **Why:** a whole-layer GPU-direct write-back retiles the image into a device scratch buffer and copies whole ranges of the scratch into the host import. Since a3ec50aefa the bytes no element holds are first copied from where they are current (a unit shadow, else the import) into the scratch, so that copying whole ranges back stores them unchanged. For a linear surface those bytes are the pitch padding of every row and the bytes between mips. Astro Bot's images have 1920-byte rows in a 2048-byte pitch, so each write-back recorded 8640 copies of 128 bytes out of host memory, followed by a copy of the whole range back into it. The many small reads of host memory cost far more than the elements themselves. **The change:** for a linear surface without tail mips, `CoveredMipBytes` is exactly the bytes the retile writes, which are the rows without their padding. When every uncovered byte is current in the import (no unit shadow holds any of them) and no saved copy of the stored bytes is kept (`saveUnits` empty, i.e. the memory is write-watched), the whole-layer write-back now leaves the padding where it is: it seeds nothing and copies only the rows from the scratch into the import. The import ends up holding the same bytes as before. Tiled surfaces, thick surfaces, surfaces with tail mips, shadowed padding and unwatched memory keep the seeded path, because there the covered bytes are not the whole retile, or the scratch's copy of the padding is needed. `StorageTexture::PaddingSeedCopies()` counts the padding pieces seeded into a write-back scratch, for the test. ### Tested Rebased onto `main` 74acfad65 as 1f7bb91682 (1 ahead, 0 behind, clean merge); the 32 focused tests (`agc_storage_*`, `agc_driver_storage_*`, `agc_driver_linear_target_*`, `patched_libraries`) pass there. The measurements below were taken on the commit before the rebase (same diff). Windows 11 Pro, Intel Core i9-14900K, 128 GB RAM, NVIDIA GeForce RTX 5080 (driver 32.0.16.1742), WinLibs GCC 15.2.0, Release. **`agc_storage_write_back`** (`agc_driver_recorder_tests --storage-write-back-only`): - Its write-back padding cases store an image over patterned memory and check that every byte no texel holds kept its pattern. New linear cases: 240x135 with 2 mips, 1000x700, and 1900x1100 with 2 mips. - In write-watched memory a linear write-back must now seed no padding piece (`PaddingSeedCopies` unchanged). - With this change's new branch disabled, the test fails: `(watched) linear 1000x700: the write-back copied 700 pieces of row padding from the import through its scratch` and `(watched) linear 1900x1100, 2 mips: ... 1650 pieces ...`. The byte checks pass either way. - With the change it passes. The small linear cases, whose host import is compared rather than watched on Windows, keep the seeded path and pass as before. **Validation layer:** - Focused tests `^(agc_storage_|agc_driver_storage_|agc_driver_linear_target_)`, 31 tests. - Run with `ctest -V` and `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`, `ANYPS5_NO_SHADER_CACHE=1`, `ANYPS5_REQUIRE_VULKAN=1`, the layer from `VK_ADD_LAYER_PATH`. - `main` c7b4878fa8: 31/31 passed, 0 `VUID-`. This change: 31/31 passed, 0 `VUID-`. - `VK_LOADER_DEBUG=layer` shows the validation layer inserted 39 times in each log. Neither log contains `was not found but was requested by env var VK_INSTANCE_LAYERS`. **Other checks:** - `ctest -R "^(agc_storage_|agc_driver_storage_|agc_driver_linear_target_)|patched_libraries"`: 32/32 passed. `patched_libraries`: 368 loaded, 0 failed. - Full build and `--target libs` pass, with no warnings in the touched files. - `tools/check_conventions.py --base origin/main` and `tools/check_test_registration.py` pass. **ASTRO BOT (PPSA21564) 01.007.000:** relinked with `--windows --registry --to-intel`, 3840x2160, warm caches, scripted pad input. Same executable for every run; only `libs/` swapped. Runs alternated in one session. Plain `main` c7b4878fa8 vs this change d1316d7cb0, logo phase, `APS5_TRACE_SECONDS=5:30`, `APS5_TRACE_EVENTS=4194304`: | round | `main` | this change | |---|---|---| | 1 | 498 presents, p50 61.8, p99 70.4, GPU 50.7 ms | 692, p50 45.5, p99 52.9, GPU 34.1 ms | | 2 | 497, p50 61.7, p99 70.8, GPU 50.8 ms | 692, p50 45.6, p99 51.7, GPU 34.0 ms | | 3 | 498, p50 61.9, p99 69.8, GPU 50.6 ms | 690, p50 45.8, p99 52.6, GPU 34.2 ms | Intro cutscene with #11307 applied (on plain `main` the intro is bound by the depth plane copy thrash #11307 fixes), `main` 6ea31b4e3a + #11307 (d92004fe06) vs the same + this change (0cbb504f20): - Windows: `APS5_TRACE_SECONDS=170:30` and `135:30` respectively. The change loads the intro about 15-25 s earlier, so these put both windows 24-74 s into the intro cutscene, which the log confirms for every run. | round | #11307 | #11307 + this change | |---|---|---| | F | 376 presents, p50 79.6, p99 90.6, GPU 65.7 ms | 497, p50 60.0, p99 71.6, GPU 46.5 ms | | G | 381, p50 78.2, p99 91.2, GPU 64.9 ms | 489, p50 60.9, p99 72.4, GPU 46.8 ms | | H | 381, p50 78.2, p99 88.2, GPU 65.2 ms | 496, p50 60.3, p99 72.0, GPU 46.7 ms | `APS5_PROFILE_GPU` in the intro: storage write-back 41.8 → 22.6 ms per present, GPU batch 68.8 → 49.5 ms. Every other class is unchanged. **Traces** (all `dropped: no`): - round M1: [main](https://github.com/dantdmdarealguy/AnyPS5/raw/pr-assets/traces/linear-padding/aps5-trace-c7b4878fa8bc-72568.json.gz) / [change](https://github.com/dantdmdarealguy/AnyPS5/raw/pr-assets/traces/linear-padding/aps5-trace-d1316d7cb094-67580.json.gz) - round M2: [main](https://github.com/dantdmdarealguy/AnyPS5/raw/pr-assets/traces/linear-padding/aps5-trace-c7b4878fa8bc-64956.json.gz) / [change](https://github.com/dantdmdarealguy/AnyPS5/raw/pr-assets/traces/linear-padding/aps5-trace-d1316d7cb094-50520.json.gz) - round M3: [main](https://github.com/dantdmdarealguy/AnyPS5/raw/pr-assets/traces/linear-padding/aps5-trace-c7b4878fa8bc-40180.json.gz) / [change](https://github.com/dantdmdarealguy/AnyPS5/raw/pr-assets/traces/linear-padding/aps5-trace-d1316d7cb094-55780.json.gz) - round F: [base](https://github.com/dantdmdarealguy/AnyPS5/raw/pr-assets/traces/linear-padding/aps5-trace-d92004fe067c-36172.json.gz) / [change](https://github.com/dantdmdarealguy/AnyPS5/raw/pr-assets/traces/linear-padding/aps5-trace-0cbb504f2038-68748.json.gz) - round G: [base](https://github.com/dantdmdarealguy/AnyPS5/raw/pr-assets/traces/linear-padding/aps5-trace-d92004fe067c-65560.json.gz) / [change](https://github.com/dantdmdarealguy/AnyPS5/raw/pr-assets/traces/linear-padding/aps5-trace-0cbb504f2038-64212.json.gz) - round H: [base](https://github.com/dantdmdarealguy/AnyPS5/raw/pr-assets/traces/linear-padding/aps5-trace-d92004fe067c-43744.json.gz) / [change](https://github.com/dantdmdarealguy/AnyPS5/raw/pr-assets/traces/linear-padding/aps5-trace-0cbb504f2038-45236.json.gz) Every trace reports `dropped: no`. Summary lines (rounds 1-3 on `main`, then F-H with #11307): ```json {"commit":"c7b4878fa8bc","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TASK":"perf_astrobot","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"5:30","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"NVIDIA GeForce RTX 5080","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-14900K","cpu_threads":32,"memory_mib":130808,"title_id":"PPSA21564","title":"ASTRO BOT","content_version":"01.007.000","resolution":"3840x2160","window":{"spec":"seconds 5:30","first_present":64,"ms":30049.621},"presents":498,"frame_ms":{"p50":61.805,"p90":66.910,"p99":70.368,"max":71.922},"gpu_busy_ms_per_present":50.669,"worker_busy_pct":{"queue worker 0x0":99.572,"queue worker 0x48":100.002,"queue worker 0x40":99.940,"queue worker 0x3a":0.052},"top_phases_ms_per_frame":{"Driver.Packet":178.964,"Driver.Packet.memory_wait":101.256,"Driver.Packet.dispatch":28.229,"Driver.Dispatch":22.153,"Driver.Packet.prepare_memory":20.488,"Recorder.WaitSerial":18.707,"GpuMutex.wait.dispatch":15.104,"Recorder.Sync":9.680},"trace_dropped":false,"trace":"aps5-trace-c7b4878fa8bc-72568.json.gz"} {"commit":"d1316d7cb094","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TASK":"perf_astrobot","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"5:30","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"NVIDIA GeForce RTX 5080","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-14900K","cpu_threads":32,"memory_mib":130808,"title_id":"PPSA21564","title":"ASTRO BOT","content_version":"01.007.000","resolution":"3840x2160","window":{"spec":"seconds 5:30","first_present":98,"ms":30035.604},"presents":692,"frame_ms":{"p50":45.528,"p90":48.881,"p99":52.895,"max":56.147},"gpu_busy_ms_per_present":34.056,"worker_busy_pct":{"queue worker 0x0":99.410,"queue worker 0x48":99.970,"queue worker 0x40":99.902,"queue worker 0x3a":0.113},"top_phases_ms_per_frame":{"Driver.Packet":128.090,"Driver.Packet.memory_wait":71.733,"Driver.Packet.dispatch":22.624,"Driver.Dispatch":16.923,"GpuMutex.wait.dispatch":11.325,"Driver.Packet.prepare_memory":9.696,"Recorder.WaitSerial":8.004,"Recorder.Sync":6.275},"trace_dropped":false,"trace":"aps5-trace-d1316d7cb094-67580.json.gz"} {"commit":"d1316d7cb094","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TASK":"perf_astrobot","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"5:30","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"NVIDIA GeForce RTX 5080","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-14900K","cpu_threads":32,"memory_mib":130808,"title_id":"PPSA21564","title":"ASTRO BOT","content_version":"01.007.000","resolution":"3840x2160","window":{"spec":"seconds 5:30","first_present":98,"ms":30044.226},"presents":692,"frame_ms":{"p50":45.629,"p90":48.773,"p99":51.698,"max":55.221},"gpu_busy_ms_per_present":34.025,"worker_busy_pct":{"queue worker 0x0":99.414,"queue worker 0x40":99.919,"queue worker 0x48":99.975,"queue worker 0x3a":0.139},"top_phases_ms_per_frame":{"Driver.Packet":128.200,"Driver.Packet.memory_wait":71.280,"Driver.Packet.dispatch":23.048,"Driver.Dispatch":17.332,"GpuMutex.wait.dispatch":11.414,"Driver.Packet.prepare_memory":9.770,"Recorder.WaitSerial":8.068,"Recorder.Sync":6.298},"trace_dropped":false,"trace":"aps5-trace-d1316d7cb094-50520.json.gz"} {"commit":"c7b4878fa8bc","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TASK":"perf_astrobot","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"5:30","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"NVIDIA GeForce RTX 5080","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-14900K","cpu_threads":32,"memory_mib":130808,"title_id":"PPSA21564","title":"ASTRO BOT","content_version":"01.007.000","resolution":"3840x2160","window":{"spec":"seconds 5:30","first_present":64,"ms":30015.935},"presents":497,"frame_ms":{"p50":61.695,"p90":67.378,"p99":70.796,"max":73.201},"gpu_busy_ms_per_present":50.756,"worker_busy_pct":{"queue worker 0x0":99.575,"queue worker 0x48":99.985,"queue worker 0x40":99.926,"queue worker 0x3a":0.058},"top_phases_ms_per_frame":{"Driver.Packet":179.173,"Driver.Packet.memory_wait":100.912,"Driver.Packet.dispatch":28.542,"Driver.Dispatch":22.368,"Driver.Packet.prepare_memory":20.432,"Recorder.WaitSerial":18.638,"GpuMutex.wait.dispatch":15.126,"Recorder.Sync":9.305},"trace_dropped":false,"trace":"aps5-trace-c7b4878fa8bc-64956.json.gz"} {"commit":"c7b4878fa8bc","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TASK":"perf_astrobot","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"5:30","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"NVIDIA GeForce RTX 5080","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-14900K","cpu_threads":32,"memory_mib":130808,"title_id":"PPSA21564","title":"ASTRO BOT","content_version":"01.007.000","resolution":"3840x2160","window":{"spec":"seconds 5:30","first_present":69,"ms":30028.279},"presents":498,"frame_ms":{"p50":61.938,"p90":66.919,"p99":69.781,"max":73.978},"gpu_busy_ms_per_present":50.606,"worker_busy_pct":{"queue worker 0x0":99.577,"queue worker 0x48":99.988,"queue worker 0x40":99.922,"queue worker 0x3a":0.131},"top_phases_ms_per_frame":{"Driver.Packet":178.786,"Driver.Packet.memory_wait":101.279,"Driver.Packet.dispatch":28.278,"Driver.Dispatch":22.140,"Driver.Packet.prepare_memory":20.476,"Recorder.WaitSerial":18.665,"GpuMutex.wait.dispatch":15.305,"Recorder.Sync":9.327},"trace_dropped":false,"trace":"aps5-trace-c7b4878fa8bc-40180.json.gz"} {"commit":"d1316d7cb094","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TASK":"perf_astrobot","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"5:30","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"NVIDIA GeForce RTX 5080","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-14900K","cpu_threads":32,"memory_mib":130808,"title_id":"PPSA21564","title":"ASTRO BOT","content_version":"01.007.000","resolution":"3840x2160","window":{"spec":"seconds 5:30","first_present":104,"ms":30011.801},"presents":690,"frame_ms":{"p50":45.831,"p90":48.750,"p99":52.646,"max":57.342},"gpu_busy_ms_per_present":34.160,"worker_busy_pct":{"queue worker 0x0":99.411,"queue worker 0x48":99.967,"queue worker 0x40":99.903,"queue worker 0x3a":0.099},"top_phases_ms_per_frame":{"Driver.Packet":128.364,"Driver.Packet.memory_wait":71.518,"Driver.Packet.dispatch":23.097,"Driver.Dispatch":17.290,"GpuMutex.wait.dispatch":11.791,"Driver.Packet.prepare_memory":9.719,"Recorder.WaitSerial":8.036,"Recorder.Sync":6.577},"trace_dropped":false,"trace":"aps5-trace-d1316d7cb094-55780.json.gz"} {"commit":"d92004fe067c","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TASK":"perf_astrobot","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"170:30","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"NVIDIA GeForce RTX 5080","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-14900K","cpu_threads":32,"memory_mib":130808,"title_id":"PPSA21564","title":"ASTRO BOT","content_version":"01.007.000","resolution":"3840x2160","window":{"spec":"seconds 170:30","first_present":2196,"ms":30041.929},"presents":376,"frame_ms":{"p50":79.570,"p90":84.312,"p99":90.584,"max":95.434},"gpu_busy_ms_per_present":65.680,"worker_busy_pct":{"queue worker 0x0":99.406,"queue worker 0x48":99.972,"queue worker 0x40":99.931,"queue worker 0x3a":0.000,"queue worker 0x46":8.581},"top_phases_ms_per_frame":{"Driver.Packet":244.701,"Driver.Packet.memory_wait":142.600,"Driver.Packet.prepare_memory":35.647,"Driver.Packet.dispatch":29.544,"Recorder.WaitSerial":28.967,"Driver.Dispatch":20.877,"Recorder.Sync":10.854,"Graphics.Draw":9.728},"trace_dropped":false,"trace":"aps5-trace-d92004fe067c-36172.json.gz"} {"commit":"0cbb504f2038","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TASK":"perf_astrobot","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"135:30","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"NVIDIA GeForce RTX 5080","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-14900K","cpu_threads":32,"memory_mib":130808,"title_id":"PPSA21564","title":"ASTRO BOT","content_version":"01.007.000","resolution":"3840x2160","window":{"spec":"seconds 135:30","first_present":2258,"ms":30035.232},"presents":497,"frame_ms":{"p50":59.996,"p90":64.466,"p99":71.586,"max":84.592},"gpu_busy_ms_per_present":46.468,"worker_busy_pct":{"queue worker 0x0":99.238,"queue worker 0x40":99.915,"queue worker 0x48":99.962,"queue worker 0x3a":0.000,"queue worker 0x46":8.107},"top_phases_ms_per_frame":{"Driver.Packet":184.314,"Driver.Packet.memory_wait":108.150,"Driver.Packet.dispatch":23.628,"Driver.Packet.prepare_memory":21.847,"Recorder.WaitSerial":16.542,"Driver.Dispatch":16.534,"Graphics.Draw":10.242,"Graphics.Draw.draw_and_resource_release":9.068},"trace_dropped":false,"trace":"aps5-trace-0cbb504f2038-68748.json.gz"} {"commit":"0cbb504f2038","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TASK":"perf_astrobot","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"135:30","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"NVIDIA GeForce RTX 5080","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-14900K","cpu_threads":32,"memory_mib":130808,"title_id":"PPSA21564","title":"ASTRO BOT","content_version":"01.007.000","resolution":"3840x2160","window":{"spec":"seconds 135:30","first_present":2253,"ms":30043.725},"presents":489,"frame_ms":{"p50":60.940,"p90":66.251,"p99":72.373,"max":87.923},"gpu_busy_ms_per_present":46.801,"worker_busy_pct":{"queue worker 0x0":99.218,"queue worker 0x40":99.916,"queue worker 0x48":99.884,"queue worker 0x3a":0.000,"queue worker 0x46":7.744},"top_phases_ms_per_frame":{"Driver.Packet":187.140,"Driver.Packet.memory_wait":109.448,"Driver.Packet.prepare_memory":22.754,"Driver.Packet.dispatch":21.901,"Recorder.WaitSerial":17.409,"Driver.Dispatch":16.298,"Graphics.Draw":11.054,"Driver.Packet.draw":10.672},"trace_dropped":false,"trace":"aps5-trace-0cbb504f2038-64212.json.gz"} {"commit":"d92004fe067c","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TASK":"perf_astrobot","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"170:30","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"NVIDIA GeForce RTX 5080","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-14900K","cpu_threads":32,"memory_mib":130808,"title_id":"PPSA21564","title":"ASTRO BOT","content_version":"01.007.000","resolution":"3840x2160","window":{"spec":"seconds 170:30","first_present":2241,"ms":30030.679},"presents":381,"frame_ms":{"p50":78.227,"p90":83.414,"p99":91.157,"max":98.731},"gpu_busy_ms_per_present":64.933,"worker_busy_pct":{"queue worker 0x0":99.417,"queue worker 0x40":99.926,"queue worker 0x48":99.963,"queue worker 0x3a":0.000,"queue worker 0x46":8.815},"top_phases_ms_per_frame":{"Driver.Packet":241.574,"Driver.Packet.memory_wait":139.483,"Driver.Packet.prepare_memory":35.306,"Driver.Packet.dispatch":28.815,"Recorder.WaitSerial":28.790,"Driver.Dispatch":21.704,"Recorder.Sync":10.489,"Graphics.Draw":9.547},"trace_dropped":false,"trace":"aps5-trace-d92004fe067c-65560.json.gz"} {"commit":"d92004fe067c","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TASK":"perf_astrobot","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"170:30","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"NVIDIA GeForce RTX 5080","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-14900K","cpu_threads":32,"memory_mib":130808,"title_id":"PPSA21564","title":"ASTRO BOT","content_version":"01.007.000","resolution":"3840x2160","window":{"spec":"seconds 170:30","first_present":2242,"ms":30049.917},"presents":381,"frame_ms":{"p50":78.186,"p90":83.187,"p99":88.183,"max":102.684},"gpu_busy_ms_per_present":65.162,"worker_busy_pct":{"queue worker 0x0":99.410,"queue worker 0x40":99.926,"queue worker 0x48":99.965,"queue worker 0x3a":0.000,"queue worker 0x46":8.264},"top_phases_ms_per_frame":{"Driver.Packet":241.279,"Driver.Packet.memory_wait":140.718,"Driver.Packet.prepare_memory":36.070,"Recorder.WaitSerial":29.312,"Driver.Packet.dispatch":27.708,"Driver.Dispatch":20.073,"Recorder.Sync":10.676,"Graphics.Draw":9.626},"trace_dropped":false,"trace":"aps5-trace-d92004fe067c-43744.json.gz"} {"commit":"0cbb504f2038","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TASK":"perf_astrobot","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"135:30","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"NVIDIA GeForce RTX 5080","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-14900K","cpu_threads":32,"memory_mib":130808,"title_id":"PPSA21564","title":"ASTRO BOT","content_version":"01.007.000","resolution":"3840x2160","window":{"spec":"seconds 135:30","first_present":2317,"ms":30011.420},"presents":496,"frame_ms":{"p50":60.265,"p90":64.035,"p99":72.017,"max":76.203},"gpu_busy_ms_per_present":46.659,"worker_busy_pct":{"queue worker 0x0":99.228,"queue worker 0x40":99.920,"queue worker 0x48":99.962,"queue worker 0x3a":0.000,"queue worker 0x46":8.204},"top_phases_ms_per_frame":{"Driver.Packet":184.657,"Driver.Packet.memory_wait":108.174,"Driver.Packet.dispatch":23.329,"Driver.Packet.prepare_memory":22.413,"Recorder.WaitSerial":16.838,"Driver.Dispatch":16.487,"Graphics.Draw":10.177,"Graphics.Draw.draw_and_resource_release":8.970},"trace_dropped":false,"trace":"aps5-trace-0cbb504f2038-45236.json.gz"} ``` <details><summary>Round 1 on <code>main</code> c7b4878fa8 vs this change, <code>trace_digest.py --top 8</code></summary> **main c7b4878fa8** **seconds 5:30** from present 64: 498 presents, frame p50 61.8 / p90 66.9 / p99 70.4 / max 71.9 ms, GPU busy 50.7 ms per present NVIDIA GeForce RTX 5080, NVIDIA 617.42, Windows 10.0.26300, 3840x2160, commit c7b4878fa8bc, dropped: no ```json {"commit":"c7b4878fa8bc","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TASK":"perf_astrobot","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"5:30","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"NVIDIA GeForce RTX 5080","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-14900K","cpu_threads":32,"memory_mib":130808,"title_id":"PPSA21564","title":"ASTRO BOT","content_version":"01.007.000","resolution":"3840x2160","window":{"spec":"seconds 5:30","first_present":64,"ms":30049.621},"presents":498,"frame_ms":{"p50":61.805,"p90":66.91,"p99":70.368,"max":71.922},"gpu_busy_ms_per_present":50.669,"worker_busy_pct":{"queue worker 0x0":99.572,"queue worker 0x48":100.002,"queue worker 0x40":99.94,"queue worker 0x3a":0.052},"top_phases_ms_per_frame":{"Driver.Packet":178.964,"Driver.Packet.memory_wait":101.256,"Driver.Packet.dispatch":28.229,"Driver.Dispatch":22.153,"Driver.Packet.prepare_memory":20.488,"Recorder.WaitSerial":18.707,"GpuMutex.wait.dispatch":15.104,"Recorder.Sync":9.68},"trace_dropped":false,"trace":"aps5-trace-c7b4878fa8bc-72568.json.gz"} ``` **Slowest frames** (largest slices inside each, inclusive) - present 437: 71.9 ms at 21897 ms: Driver.WorkerWait (queue worker 0x3a) 71.9, Driver.Packet (queue worker 0x40) 71.3, Driver.Packet (queue worker 0x48) 71.1, Driver.Packet (queue worker 0x0) 69.2 - present 555: 71.4 ms at 29586 ms: Driver.WorkerWait (queue worker 0x3a) 71.2, Driver.Packet (queue worker 0x40) 70.8, Driver.Packet (queue worker 0x48) 70.7, Driver.Packet (queue worker 0x0) 68.7 - present 499: 70.5 ms at 25951 ms: Driver.WorkerWait (queue worker 0x3a) 70.4, Driver.Packet (queue worker 0x40) 70.0, Driver.Packet (queue worker 0x48) 69.7, Driver.Packet (queue worker 0x0) 67.9 - present 311: 70.4 ms at 13672 ms: Driver.WorkerWait (queue worker 0x3a) 70.1, Driver.Packet (queue worker 0x48) 69.4, Driver.WorkerWait.dequeue_order (queue worker 0x3a) 69.4, Driver.Packet (queue worker 0x0) 68.0 - present 478: 70.4 ms at 24576 ms: Driver.WorkerWait (queue worker 0x3a) 70.3, Driver.Packet (queue worker 0x40) 69.8, Driver.Packet (queue worker 0x48) 69.6, Driver.Packet (queue worker 0x0) 67.2 **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | queue worker 0x0 | 30.2 (50 %) | 27.8 (46 %) | 2.4 | 4.6 | Driver.Packet 57.5, Driver.EndSubmission 0.4 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 60.3 | 0.0 | Vulkan.GraphicsPipelinePrebuild 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 60.3 | 0.0 | Shader.ResolveGraphicsAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 60.3 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 60.3 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 60.3 | 0.1 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0 | | queue worker 0x48 | 2.0 (3 %) | 58.2 (97 %) | 0.1 | 0.2 | Driver.Packet 59.5, Driver.EndSubmission 0.7 | | draw committer | 6.9 (11 %) | 1.9 (3 %) | 51.5 | 0.7 | Recorder.Sync 4.2, Graphics.Draw 1.7 | | queue worker 0x40 | 8.9 (15 %) | 50.9 (84 %) | 0.5 | 1.9 | Driver.Packet 59.2, Driver.EndSubmission 0.6 | | presenter | 0.7 (1 %) | 0.2 (0 %) | 59.5 | 0.1 | VideoOut.Flip 0.9 | | queue worker 0x3a | 0.0 (0 %) | 33.0 (55 %) | 27.3 | 0.0 | Driver.Packet 0.0, Driver.EndSubmission 0.0 | | gpu | 50.7 (84 %) | 0.0 (0 %) | 9.6 | 0.0 | batch 50.7 | **Largest slices** (ms per frame, inclusive, all threads): Driver.Packet 176.2, Driver.Packet.memory_wait 101.1, batch 50.7, Driver.WorkerWait 33.0, Driver.Packet.dispatch 27.9, Driver.WorkerWait.dequeue_order 27.1, Driver.Dispatch 21.7, Driver.Packet.prepare_memory 20.3 **Longest waits** - Driver.WorkerWait (queue worker 0x3a) 85.0 ms at 27041 ms, present 515 - Driver.WorkerWait (queue worker 0x3a) 82.7 ms at 17571 ms, present 370 - Driver.WorkerWait (queue worker 0x3a) 82.6 ms at 25152 ms, present 486 - Driver.WorkerWait (queue worker 0x3a) 81.3 ms at 25285 ms, present 488 - Driver.WorkerWait (queue worker 0x3a) 81.2 ms at 14768 ms, present 327 - Driver.WorkerWait (queue worker 0x3a) 80.9 ms at 19013 ms, present 392 - Driver.WorkerWait (queue worker 0x3a) 80.9 ms at 25870 ms, present 497 - Driver.WorkerWait (queue worker 0x3a) 80.9 ms at 19736 ms, present 403 **Largest GPU batches** (GPU ranges inside, and the CPU slices that recorded each, inclusive) - batch 5576: 18.8 ms at 2300 ms, present 105: GPU no ranges; recorded by GpuMutex.wait.label (draw committer) 0.1, Recorder.Submit (draw committer) 0.0 - batch 31667: 18.8 ms at 29153 ms, present 548: GPU no ranges; recorded by GpuMutex.wait.label (draw committer) 0.2 - batch 15061: 18.8 ms at 11313 ms, present 268: GPU no ranges; recorded by GpuMutex.wait.fill (draw committer) 0.9, GpuMutex.wait.label (draw committer) 0.1, Recorder.Submit (draw committer) 0.0 - batch 18855: 18.7 ms at 15133 ms, present 333: GPU no ranges; recorded by GpuMutex.wait.label (draw committer) 0.0, Recorder.Submit (draw committer) 0.0 - batch 3661: 18.7 ms at 458 ms, present 72: GPU no ranges; recorded by Driver.Packet (queue worker 0x48) 282.8, Driver.Packet.memory_wait (queue worker 0x48) 215.3, Driver.Packet.dispatch (queue worker 0x48) 56.1, Driver.Dispatch (queue worker 0x48) 56.1 **this change d1316d7cb0** **seconds 5:30** from present 98: 692 presents, frame p50 45.5 / p90 48.9 / p99 52.9 / max 56.1 ms, GPU busy 34.1 ms per present NVIDIA GeForce RTX 5080, NVIDIA 617.42, Windows 10.0.26300, 3840x2160, commit d1316d7cb094, dropped: no ```json {"commit":"d1316d7cb094","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TASK":"perf_astrobot","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"5:30","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"NVIDIA GeForce RTX 5080","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-14900K","cpu_threads":32,"memory_mib":130808,"title_id":"PPSA21564","title":"ASTRO BOT","content_version":"01.007.000","resolution":"3840x2160","window":{"spec":"seconds 5:30","first_present":98,"ms":30035.604},"presents":692,"frame_ms":{"p50":45.528,"p90":48.881,"p99":52.895,"max":56.147},"gpu_busy_ms_per_present":34.056,"worker_busy_pct":{"queue worker 0x0":99.41,"queue worker 0x48":99.97,"queue worker 0x40":99.902,"queue worker 0x3a":0.113},"top_phases_ms_per_frame":{"Driver.Packet":128.09,"Driver.Packet.memory_wait":71.733,"Driver.Packet.dispatch":22.624,"Driver.Dispatch":16.923,"GpuMutex.wait.dispatch":11.325,"Driver.Packet.prepare_memory":9.696,"Recorder.WaitSerial":8.004,"Recorder.Sync":6.275},"trace_dropped":false,"trace":"aps5-trace-d1316d7cb094-67580.json.gz"} ``` **Slowest frames** (largest slices inside each, inclusive) - present 417: 56.1 ms at 12571 ms: Driver.WorkerWait (queue worker 0x3a) 55.9, Driver.Packet (queue worker 0x48) 55.3, Driver.Packet (queue worker 0x0) 53.5, Driver.Packet (queue worker 0x40) 53.5 - present 441: 55.6 ms at 13694 ms: Driver.WorkerWait (queue worker 0x3a) 55.6, Driver.Packet (queue worker 0x40) 55.1, Driver.Packet (queue worker 0x48) 54.7, Driver.Packet (queue worker 0x0) 52.9 - present 491: 54.8 ms at 16039 ms: Driver.WorkerWait (queue worker 0x3a) 54.5, Driver.Packet (queue worker 0x40) 54.1, Driver.Packet (queue worker 0x48) 53.9, Driver.WorkerWait.dequeue_order (queue worker 0x3a) 53.2 - present 700: 54.2 ms at 25807 ms: Driver.WorkerWait (queue worker 0x3a) 54.1, Driver.Packet (queue worker 0x40) 53.6, Driver.Packet (queue worker 0x48) 53.3, Driver.Packet (queue worker 0x0) 51.5 - present 384: 54.1 ms at 11015 ms: Driver.WorkerWait (queue worker 0x3a) 54.0, Driver.Packet (queue worker 0x40) 53.4, Driver.Packet (queue worker 0x48) 53.2, Driver.Packet (queue worker 0x0) 51.4 **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | queue worker 0x0 | 25.2 (58 %) | 15.8 (36 %) | 2.4 | 4.6 | Driver.Packet 40.7, Driver.EndSubmission 0.2 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 43.4 | 0.0 | Vulkan.GraphicsPipelinePrebuild 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 43.4 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 43.4 | 0.0 | Shader.ResolveGraphicsAbi 0.0, Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 43.4 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 43.4 | 0.1 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0 | | queue worker 0x48 | 1.5 (3 %) | 41.8 (96 %) | 0.1 | 0.2 | Driver.Packet 42.5, Driver.EndSubmission 0.8 | | queue worker 0x40 | 7.7 (18 %) | 35.2 (81 %) | 0.5 | 1.9 | Driver.Packet 42.1, Driver.EndSubmission 0.7 | | draw committer | 5.3 (12 %) | 1.5 (3 %) | 36.6 | 0.7 | Recorder.Sync 2.6, Graphics.Draw 1.8 | | presenter | 0.7 (2 %) | 0.2 (1 %) | 42.5 | 0.1 | VideoOut.Flip 0.9 | | queue worker 0x3a | 0.0 (0 %) | 30.9 (71 %) | 12.5 | 0.0 | Driver.Packet 0.0, Driver.EndSubmission 0.0 | | gpu | 34.1 (79 %) | 0.0 (0 %) | 9.3 | 0.0 | batch 34.1 | **Largest slices** (ms per frame, inclusive, all threads): Driver.Packet 125.4, Driver.Packet.memory_wait 71.7, batch 34.1, Driver.WorkerWait 30.9, Driver.WorkerWait.dequeue_order 24.2, Driver.Packet.dispatch 22.3, Driver.Dispatch 16.5, GpuMutex.wait.dispatch 11.3 **Longest waits** - Driver.WorkerWait (queue worker 0x3a) 67.8 ms at 29639 ms, present 781 - Driver.WorkerWait (queue worker 0x3a) 67.5 ms at 17158 ms, present 514 - Driver.WorkerWait (queue worker 0x3a) 66.4 ms at 14905 ms, present 466 - Driver.WorkerWait (queue worker 0x3a) 64.2 ms at 23480 ms, present 650 - Driver.WorkerWait (queue worker 0x3a) 62.4 ms at 12609 ms, present 417 - Driver.WorkerWait (queue worker 0x3a) 62.3 ms at 9381 ms, present 349 - Driver.WorkerWait (queue worker 0x3a) 62.2 ms at 11481 ms, present 393 - Driver.WorkerWait (queue worker 0x3a) 62.2 ms at 9527 ms, present 352 **Largest GPU batches** (GPU ranges inside, and the CPU slices that recorded each, inclusive) - batch 43694: 12.1 ms at 28386 ms, present 755: GPU no ranges; recorded by Vulkan.DrawFromRecipe (draw committer) 0.1, Graphics.DrawWithRecipe (draw committer) 0.1, Graphics.DrawWithRecipe.draw_and_resource_release (draw committer) 0.1, GpuMutex.wait.label (draw committer) 0.0 - batch 22249: 12.0 ms at 11544 ms, present 395: GPU no ranges; recorded by Driver.WorkerWait (queue worker 0x3a) 34.1, Driver.WorkerWait.dequeue_order (queue worker 0x3a) 33.7, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x3a) 0.4, Driver.Packet (queue worker 0x3a) 0.1 - batch 41735: 11.9 ms at 26845 ms, present 722: GPU no ranges; recorded by Driver.WorkerWait (queue worker 0x3a) 35.2, Driver.WorkerWait.dequeue_order (queue worker 0x3a) 34.8, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x3a) 0.4, Driver.Packet (queue worker 0x3a) 0.0 - batch 22003: 11.9 ms at 11350 ms, present 391: GPU no ranges; recorded by Driver.WorkerWait (queue worker 0x3a) 34.9, Driver.WorkerWait.dequeue_order (queue worker 0x3a) 33.8, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x3a) 1.0, Driver.Packet (queue worker 0x3a) 0.1 - batch 26224: 11.9 ms at 14682 ms, present 462: GPU no ranges; recorded by Vulkan.DrawFromRecipe (draw committer) 0.2, Graphics.DrawWithRecipe (draw committer) 0.2, Graphics.DrawWithRecipe.draw_and_resource_release (draw committer) 0.2, GpuMutex.wait.label (draw committer) 0.0 </details> <details><summary>Round F, intro with #11307: d92004fe06 vs 0cbb504f20, <code>trace_digest.py --top 8</code></summary> **#11307 (d92004fe06)** **seconds 170:30** from present 2196: 376 presents, frame p50 79.6 / p90 84.3 / p99 90.6 / max 95.4 ms, GPU busy 65.7 ms per present NVIDIA GeForce RTX 5080, NVIDIA 617.42, Windows 10.0.26300, 3840x2160, commit d92004fe067c, dropped: no ```json {"commit":"d92004fe067c","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TASK":"perf_astrobot","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"170:30","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"NVIDIA GeForce RTX 5080","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-14900K","cpu_threads":32,"memory_mib":130808,"title_id":"PPSA21564","title":"ASTRO BOT","content_version":"01.007.000","resolution":"3840x2160","window":{"spec":"seconds 170:30","first_present":2196,"ms":30041.929},"presents":376,"frame_ms":{"p50":79.57,"p90":84.312,"p99":90.584,"max":95.434},"gpu_busy_ms_per_present":65.68,"worker_busy_pct":{"queue worker 0x0":99.406,"queue worker 0x48":99.972,"queue worker 0x40":99.931,"queue worker 0x3a":0.0,"queue worker 0x46":8.581},"top_phases_ms_per_frame":{"Driver.Packet":244.701,"Driver.Packet.memory_wait":142.6,"Driver.Packet.prepare_memory":35.647,"Driver.Packet.dispatch":29.544,"Recorder.WaitSerial":28.967,"Driver.Dispatch":20.877,"Recorder.Sync":10.854,"Graphics.Draw":9.728},"trace_dropped":false,"trace":"aps5-trace-d92004fe067c-36172.json.gz"} ``` **Slowest frames** (largest slices inside each, inclusive) - present 2220: 95.4 ms at 1948 ms: Driver.Packet (queue worker 0x48) 95.3, Driver.Packet (queue worker 0x40) 94.4, Driver.Packet (queue worker 0x0) 90.9, Driver.Packet.memory_wait (queue worker 0x48) 80.0 - present 2553: 94.3 ms at 28417 ms: Driver.WorkerWait (queue worker 0x46) 94.3, Driver.Packet (queue worker 0x40) 93.7, Driver.Packet (queue worker 0x48) 93.5, Driver.WorkerWait.dequeue_order (queue worker 0x46) 93.4 - present 2488: 91.6 ms at 23089 ms: Driver.Packet (queue worker 0x40) 90.9, Driver.Packet (queue worker 0x48) 90.8, Driver.WorkerWait (queue worker 0x46) 89.1, Driver.WorkerWait.dequeue_order (queue worker 0x46) 86.8 - present 2435: 90.6 ms at 18803 ms: Driver.Packet (queue worker 0x40) 90.1, Driver.Packet (queue worker 0x48) 89.8, Driver.Packet (queue worker 0x0) 86.6, Driver.WorkerWait (queue worker 0x46) 86.4 - present 2372: 89.5 ms at 13845 ms: Driver.Packet (queue worker 0x40) 88.9, Driver.Packet (queue worker 0x48) 88.7, Driver.Packet (queue worker 0x0) 85.4, Driver.WorkerWait (queue worker 0x46) 79.1 **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | queue worker 0x0 | 39.8 (50 %) | 35.9 (45 %) | 4.2 | 13.4 | Driver.Packet 75.5, Driver.Completion 0.1 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 79.9 | 0.0 | Vulkan.GraphicsPipelinePrebuild 0.0 | | title | 0.1 (0 %) | 0.0 (0 %) | 79.8 | 0.1 | Shader.ResolveGraphicsStagesAbi 0.1, Shader.ResolveGraphicsAbi 0.0 | | title | 0.1 (0 %) | 0.0 (0 %) | 79.8 | 0.1 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0 | | title | 0.1 (0 %) | 0.0 (0 %) | 79.8 | 0.1 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 79.9 | 0.2 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0 | | draw committer | 13.0 (16 %) | 9.3 (12 %) | 57.6 | 3.7 | Graphics.Draw 8.6, Recorder.Sync 3.1 | | queue worker 0x48 | 7.0 (9 %) | 72.6 (91 %) | 0.3 | 0.2 | Driver.Packet 78.9, Driver.EndSubmission 0.8 | | queue worker 0x40 | 10.2 (13 %) | 69.1 (87 %) | 0.5 | 2.0 | Driver.Packet 79.2, Driver.EndSubmission 0.1 | | presenter | 0.8 (1 %) | 0.0 (0 %) | 79.1 | 0.1 | VideoOut.Flip 0.8 | | title | 0.0 (0 %) | 0.0 (0 %) | 79.9 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0 | | queue worker 0x46 | 2.5 (3 %) | 77.2 (97 %) | 0.3 | 0.8 | Driver.Packet 6.5, Driver.EndSubmission 0.2 | | gpu | 65.9 (82 %) | 0.0 (0 %) | 14.0 | 0.0 | batch 65.9 | **Largest slices** (ms per frame, inclusive, all threads): Driver.Packet 240.1, Driver.Packet.memory_wait 142.4, Driver.WorkerWait 73.0, batch 65.9, Driver.WorkerWait.dequeue_order 52.2, Driver.Packet.prepare_memory 35.4, Driver.Packet.dispatch 29.2, Recorder.WaitSerial 29.0 **Longest waits** - Driver.WorkerWait (queue worker 0x46) 142.8 ms at 3292 ms, present 2236 - Driver.WorkerWait (queue worker 0x46) 140.8 ms at 1445 ms, present 2213 - Driver.WorkerWait (queue worker 0x46) 136.4 ms at 4092 ms, present 2246 - Driver.WorkerWait (queue worker 0x46) 122.5 ms at 28937 ms, present 2559 - Driver.WorkerWait (queue worker 0x46) 122.3 ms at 1966 ms, present 2220 - Driver.WorkerWait (queue worker 0x46) 121.6 ms at 28390 ms, present 2552 - Driver.WorkerWait (queue worker 0x46) 121.0 ms at 27668 ms, present 2544 - Driver.WorkerWait (queue worker 0x46) 120.8 ms at 639 ms, present 2204 **Largest GPU batches** (GPU ranges inside, and the CPU slices that recorded each, inclusive) - batch 164275: 18.6 ms at 2854 ms, present 2231: GPU no ranges; recorded by Driver.Packet (queue worker 0x48) 82.2, Driver.Packet.memory_wait (queue worker 0x48) 69.5, Driver.Packet.flush_between_packets (queue worker 0x48) 12.1, Driver.EndSubmission (queue worker 0x48) 0.7 - batch 178909: 18.6 ms at 17312 ms, present 2416: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.7, GpuMutex.wait.draw (draw committer) 0.6, Graphics.Draw.draw_and_resource_release (draw committer) 0.6, Recorder.Submit (draw committer) 0.1 - batch 163471: 18.6 ms at 2061 ms, present 2221: GPU no ranges; recorded by Driver.Packet (queue worker 0x48) 87.5, Driver.Packet.memory_wait (queue worker 0x48) 72.8, Driver.Packet.dispatch (queue worker 0x48) 14.7, Driver.Dispatch (queue worker 0x48) 14.7 - batch 186642: 18.4 ms at 24656 ms, present 2507: GPU no ranges; recorded by Driver.WorkerWait (queue worker 0x46) 36.8, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x46) 19.8, Driver.WorkerWait.dequeue_order (queue worker 0x46) 16.9, Driver.Packet (queue worker 0x46) 13.3 - batch 177142: 18.4 ms at 15577 ms, present 2394: GPU no ranges; recorded by Driver.Packet (queue worker 0x48) 150.9, Driver.Packet.memory_wait (queue worker 0x48) 126.5, Driver.Packet.dispatch (queue worker 0x48) 12.9, Driver.Dispatch (queue worker 0x48) 12.9 **#11307 + this change (0cbb504f20)** **seconds 135:30** from present 2258: 497 presents, frame p50 60.0 / p90 64.5 / p99 71.6 / max 84.6 ms, GPU busy 46.5 ms per present NVIDIA GeForce RTX 5080, NVIDIA 617.42, Windows 10.0.26300, 3840x2160, commit 0cbb504f2038, dropped: no ```json {"commit":"0cbb504f2038","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TASK":"perf_astrobot","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"135:30","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"NVIDIA GeForce RTX 5080","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-14900K","cpu_threads":32,"memory_mib":130808,"title_id":"PPSA21564","title":"ASTRO BOT","content_version":"01.007.000","resolution":"3840x2160","window":{"spec":"seconds 135:30","first_present":2258,"ms":30035.232},"presents":497,"frame_ms":{"p50":59.996,"p90":64.466,"p99":71.586,"max":84.592},"gpu_busy_ms_per_present":46.468,"worker_busy_pct":{"queue worker 0x0":99.238,"queue worker 0x40":99.915,"queue worker 0x48":99.962,"queue worker 0x3a":0.0,"queue worker 0x46":8.107},"top_phases_ms_per_frame":{"Driver.Packet":184.314,"Driver.Packet.memory_wait":108.15,"Driver.Packet.dispatch":23.628,"Driver.Packet.prepare_memory":21.847,"Recorder.WaitSerial":16.542,"Driver.Dispatch":16.534,"Graphics.Draw":10.242,"Graphics.Draw.draw_and_resource_release":9.068},"trace_dropped":false,"trace":"aps5-trace-0cbb504f2038-68748.json.gz"} ``` **Slowest frames** (largest slices inside each, inclusive) - present 2733: 84.6 ms at 28598 ms: Driver.Packet (queue worker 0x40) 84.0, Driver.Packet (queue worker 0x48) 83.6, Driver.WorkerWait (queue worker 0x46) 81.7, Driver.Packet (queue worker 0x0) 79.7 - present 2664: 77.9 ms at 24365 ms: Driver.Packet (queue worker 0x40) 77.1, Driver.Packet (queue worker 0x48) 77.0, Driver.WorkerWait (queue worker 0x46) 74.1, Driver.Packet (queue worker 0x0) 72.9 - present 2288: 75.0 ms at 1893 ms: Driver.Packet (queue worker 0x40) 74.1, Driver.Packet (queue worker 0x48) 74.1, Driver.Packet (queue worker 0x0) 70.8, Driver.Packet.memory_wait (queue worker 0x48) 65.3 - present 2615: 72.5 ms at 21403 ms: Driver.Packet (queue worker 0x40) 71.9, Driver.Packet (queue worker 0x48) 71.6, Driver.Packet (queue worker 0x0) 68.2, Driver.WorkerWait (queue worker 0x46) 65.0 - present 2270: 71.6 ms at 755 ms: Driver.Packet (queue worker 0x40) 70.9, Driver.Packet (queue worker 0x48) 70.5, Driver.WorkerWait (queue worker 0x46) 68.5, Driver.Packet (queue worker 0x0) 67.3 **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | queue worker 0x0 | 33.9 (56 %) | 22.5 (37 %) | 4.1 | 13.2 | Driver.Packet 56.2, Driver.Completion 0.1 | | shader prepare | 0.0 (0 %) | 0.0 (0 %) | 60.4 | 0.0 | Vulkan.GraphicsPipelinePrebuild 0.0 | | title | 0.1 (0 %) | 0.0 (0 %) | 60.4 | 0.1 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0 | | title | 0.1 (0 %) | 0.0 (0 %) | 60.4 | 0.1 | Shader.ResolveGraphicsStagesAbi 0.1, Shader.ResolveGraphicsAbi 0.0 | | title | 0.1 (0 %) | 0.0 (0 %) | 60.4 | 0.1 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0 | | title | 0.0 (0 %) | 0.0 (0 %) | 60.4 | 0.2 | Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveGraphicsAbi 0.0 | | queue worker 0x40 | 9.5 (16 %) | 50.5 (83 %) | 0.5 | 2.1 | Driver.Packet 59.8, Driver.EndSubmission 0.1 | | draw committer | 12.5 (21 %) | 6.7 (11 %) | 41.3 | 3.8 | Graphics.Draw 9.2, Recorder.Sync 2.1 | | queue worker 0x48 | 4.3 (7 %) | 55.9 (93 %) | 0.2 | 0.2 | Driver.Packet 59.4, Driver.EndSubmission 0.8 | | presenter | 0.8 (1 %) | 0.0 (0 %) | 59.6 | 0.1 | VideoOut.Flip 0.8 | | title | 0.0 (0 %) | 0.0 (0 %) | 60.4 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0 | | queue worker 0x46 | 1.9 (3 %) | 58.4 (97 %) | 0.2 | 0.8 | Driver.Packet 4.6, Driver.EndSubmission 0.2 | | gpu | 46.5 (77 %) | 0.0 (0 %) | 14.0 | 0.0 | batch 46.5 | **Largest slices** (ms per frame, inclusive, all threads): Driver.Packet 180.0, Driver.Packet.memory_wait 108.0, Driver.WorkerWait 55.5, batch 46.5, Driver.WorkerWait.dequeue_order 37.0, Driver.Packet.dispatch 23.3, Driver.Packet.prepare_memory 21.6, Driver.WorkerWait.idle_and_completion_poll 18.4 **Longest waits** - Driver.WorkerWait (queue worker 0x46) 109.2 ms at 38 ms, present 2258 - Driver.WorkerWait (queue worker 0x46) 104.4 ms at 20804 ms, present 2604 - Driver.WorkerWait (queue worker 0x46) 104.0 ms at 8890 ms, present 2400 - Driver.WorkerWait (queue worker 0x46) 103.2 ms at 9012 ms, present 2402 - Driver.WorkerWait (queue worker 0x46) 102.4 ms at 11571 ms, present 2445 - Driver.WorkerWait (queue worker 0x46) 96.2 ms at 10811 ms, present 2432 - Driver.WorkerWait (queue worker 0x46) 95.1 ms at 759 ms, present 2270 - Driver.WorkerWait (queue worker 0x46) 95.0 ms at 2992 ms, present 2305 **Largest GPU batches** (GPU ranges inside, and the CPU slices that recorded each, inclusive) - batch 201663: 8.5 ms at 25432 ms, present 2681: GPU no ranges; recorded by Graphics.Draw (draw committer) 6.0, Graphics.Draw.draw_and_resource_release (draw committer) 5.4, Resources.Complete (draw committer) 4.1, GpuMutex.wait.draw (draw committer) 0.9 - batch 167383: 8.4 ms at 1087 ms, present 2275: GPU no ranges; recorded by GpuMutex.wait.draw (draw committer) 5.3, Graphics.Draw (draw committer) 1.0, Graphics.Draw.draw_and_resource_release (draw committer) 0.9, Graphics.Draw.validate (draw committer) 0.1 - batch 203696: 8.2 ms at 26825 ms, present 2704: GPU no ranges; recorded by Driver.Packet (queue worker 0x48) 64.6, Driver.Packet.memory_wait (queue worker 0x48) 57.0, Driver.Packet.flush_between_packets (queue worker 0x48) 7.1, Driver.EndSubmission (queue worker 0x48) 0.9 - batch 168268: 8.2 ms at 1708 ms, present 2285: GPU no ranges; recorded by Driver.Packet (queue worker 0x48) 126.5, Driver.Packet.memory_wait (queue worker 0x48) 109.6, Driver.Packet.dispatch (queue worker 0x48) 13.5, Driver.Dispatch (queue worker 0x48) 13.4 - batch 199290: 8.1 ms at 23779 ms, present 2654: GPU no ranges; recorded by Driver.WorkerWait (queue worker 0x46) 23.5, Driver.WorkerWait.dequeue_order (queue worker 0x46) 13.5, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x46) 10.0, Driver.Packet (queue worker 0x46) 5.5 </details> ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: NVIDIA GeForce RTX 5080, driver 32.0.16.1742, Windows 11 Pro - [x] AI-assisted: yes, some AI assistance was used
MarcZX10 commented 2026-10-26 23:02:10 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-26T23:02:10Z.

Review: APPROVED


Reviewed exact head 1f7bb916827e933dc8968649c6f029eb801f96d1; no actionable findings. The optimization is gated to linear, non-thick surfaces without tail mips, saved units or shadow-sourced padding. It writes back only ranges containing texel data and leaves the import’s current row padding in place; the tests check both byte preservation and that watched linear cases no longer seed padding pieces. Other layouts retain the existing seeded path.

I independently downloaded and digested the round M1 main/change trace pair with tools/trace_digest.py. Both identify ASTRO BOT PPSA21564 on the same RTX 5080 / NVIDIA 617.42 / Windows host, with no dropped events. The digest reproduces the report: main 498 presents, p50/p99 61.8/70.4 ms, GPU 50.7 ms/present; change 692 presents, p50/p99 45.5/52.9 ms, GPU 34.1 ms/present. The author reports the focused write-back and validation-layer suites, full build and repeated title runs; I did not rerun the GPU tests locally. Hosted eligibility, conventions, intake, labels and report checks pass; build/relinker/product checks are skipped by path policy.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5660244328 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11615#pullrequestreview-5660244328). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-26T23:02:10Z. **Review:** APPROVED --- Reviewed exact head `1f7bb916827e933dc8968649c6f029eb801f96d1`; no actionable findings. The optimization is gated to linear, non-thick surfaces without tail mips, saved units or shadow-sourced padding. It writes back only ranges containing texel data and leaves the import’s current row padding in place; the tests check both byte preservation and that watched linear cases no longer seed padding pieces. Other layouts retain the existing seeded path. I independently downloaded and digested the round M1 main/change trace pair with `tools/trace_digest.py`. Both identify ASTRO BOT PPSA21564 on the same RTX 5080 / NVIDIA 617.42 / Windows host, with no dropped events. The digest reproduces the report: main 498 presents, p50/p99 61.8/70.4 ms, GPU 50.7 ms/present; change 692 presents, p50/p99 45.5/52.9 ms, GPU 34.1 ms/present. The author reports the focused write-back and validation-layer suites, full build and repeated title runs; I did not rerun the GPU tests locally. Hosted eligibility, conventions, intake, labels and report checks pass; build/relinker/product checks are skipped by path policy.
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!11615
No description provided.