Repository navigation
perf(agc): defer small host imports until first GPU use - #7465
Conversation
Complete the publication checklist and series cross-links for boykopovar#7465. No source or test changes.
|
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
|
@Dripl1x thanks, this looks correct: first-use import is the existing fallback, so deferring only drops an optimisation. The +9% rests on one capture, though. Could you repeat it interleaved (main, PR, PR, main) in the same scene, or post the count of imports avoided? Also, together with #7464, a small GPU-mapped label page would never be imported, so every label to it would wait for all recorded GPU work. We'll measure the two together if both go in. |
|
Intel and AMD Windows data: with this PR the 56 tests built from Windows 11 Pro 26300, WinLibs GCC 15.2.0 r7, Release, every execution test built,
This is a correctness check only; I measured no speed. I also ran full CTest with this PR and the 13 other open AGC and shader PRs I tested in the same batch merged together (#7668, #7659, #7504, #7432, #7426, #7413, #7480, #7466, #7464, #7449, #7489, #7673, #7560). Neither GPU showed a failure beyond AI-assisted: yes (Claude Code) |
|
AMD/Linux data point on a second title, for this PR and #8622 side by side. Setup
On
So on this title this PR's size gate is the larger win of the two. This is one machine and one scene, three alternated pairs. AI-assisted: yes (Claude Code); results above were run on this machine. |
…PU use The import-requester test now counts the map requester on a 128 KiB range and asserts that a 64 KiB range is not imported at map time and is imported, for the access requester, at its first use. The over-budget map test maps 128 KiB so it still reaches the budget check. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…time importMappedFailureGenerationTests (boykopovar#8802) maps a single 64 KiB range and expects ImportMappedRanges to try its import. Ranges of 64 KiB are now left to their first GPU use, so the probe saw no allocation. The fixture maps 128 KiB as one window, which is still imported at map time. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
f752bb6 to
a1cee90
Compare
|
Updated on 2026-10-22; the description is rewritten to match.
|
|
Protocol note on my measurement above (comment 6328228766): it does not meet the performance-report protocol's "do not redirect the log" rule. The game ran under AI-assisted: yes (Claude Code) |
|
Lodoss rerun under the performance-report protocol. It replaces my earlier Lodoss comment above, whose game output was captured to files (see my protocol note). The direction is the same. Setup
Both PR runs hold the title's 60 FPS cap. Both AI-assisted: yes (Claude Code); results above were run on this machine. |
|
Composition data for this PR with #8091, measured on Lodoss under the performance-report protocol on one pinned
#8091 alone regresses Lodoss to about 34–35 FPS on its own merge base; with this PR present it holds the cap. AI-assisted: yes (Claude Code); results above were run on this machine. |
…ves guest memory alone An unimported queue-0 label synced the recorder before its CPU store, so every batch had finished first. Only what that work does to guest memory can tell the two orders apart: a batch that reads guest memory in place (a store landing first would be read), writes it (the guest would read the old bytes after seeing the label), or has completion actions. Work that leaves guest memory alone, such as draws from copied inputs into host-side targets, cannot be observed by the guest before or after the label. Recorder::UnfinishedGuestTouch reports what the open batch and the in-flight batches whose fences have not signaled still do: in-place reads, noted writes and labels, stores or sample dumps still to record, and completion actions (also of signaled batches, and of batches another thread is finishing). WriteLabelOnGpu stores the label at once (reason 7) when nothing is reported, and syncs as before otherwise. APS5_NO_EARLY_LABELS=1 always syncs. APS5_PROFILE_DRAW prints an [early-labels] line with the counts by reason. The open batch is left open and the reap of finished batches is put off: nothing depends on either before the store. The caller submits and reaps through SubmitAfterEarlyLabel once the label is stored, its waiters woken and an end-of-pipe interrupt delivered; every caller that stores a reason-7 label calls it (the committer's label commit through submitDueAfterCommit). With no completion action in any unfinished batch the reap neither changes the import table nor what the label waits for. Draws noted every in-place region of their resources as read, also the regions of read-only elements that PrepareDrawBindings bound to snapshots, which the GPU never reads in place. MarkGpuWrites now leaves out a region that only snapshotted allocations overlap (every buffer element is a descriptor of one allocation; a BDA build gets no draw bindings and keeps noting every region). SuperTuxKart (PPSA69421) main menu without the tutorial prompt (about 33 draws a frame) on Windows 11, RTX 3070 Laptop, Ryzen 7 5800H; main 9d4fb4f with boykopovar#7464 and boykopovar#9402, this commit and three other local changes (an idle spin of the queue worker and committer, Windows imports over 64 KiB settled at the import, import refresh spans diffed in place); protocol runs interleaved, 3 each. With APS5_NO_EARLY_LABELS=1: 58.69 / 59.28 / 57.44 FPS, 8 / 7 / 18 present intervals over 20 ms, and 38 / 171 / 8 of about 470 frames waited for their vblank. With early labels: 59.94 FPS in all three (the title's vblank cap), no interval over 20 ms, every frame waited for its vblank, and the longest idle gap of queue worker 0 and the committer per frame went from 0.4 ms to 6.7-7.0 ms (median). APS5_PROFILE_DRAW, cumulative over a run: 27090 labels stored at once, 58 waited (42 for an in-place read, 1 for a write, 15 for completion actions). boykopovar#7464's branch on the same main (with boykopovar#7465 under it, without boykopovar#9402 and the other changes): 48.75-49.89 FPS. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # core/libs/prx/libSceAgcDriver/tests/BdaResources.cpp
|
Merged current
AI-assisted: yes (Claude Code). |
Resolve ImportMappedRanges onto the lazy lease from boykopovar#7465: ranges of 0x10000 bytes or less still take no lease, the first larger range takes the narrow lease over the mapped runs instead of a full one, and an import that would replace another (with the GPU mutex held) re-acquires a full lease. The adopting path keeps its full lease for refreshImports. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ves guest memory alone An unimported queue-0 label synced the recorder before its CPU store, so every batch had finished first. Only what that work does to guest memory can tell the two orders apart: a batch that reads guest memory in place (a store landing first would be read), writes it (the guest would read the old bytes after seeing the label), or has completion actions. Work that leaves guest memory alone, such as draws from copied inputs into host-side targets, cannot be observed by the guest before or after the label. Recorder::UnfinishedGuestTouch reports what the open batch and the in-flight batches whose fences have not signaled still do: in-place reads, noted writes and labels, stores or sample dumps still to record, and completion actions (also of signaled batches, and of batches another thread is finishing). WriteLabelOnGpu stores the label at once (reason 7) when nothing is reported, and syncs as before otherwise. APS5_NO_EARLY_LABELS=1 always syncs. APS5_PROFILE_DRAW prints an [early-labels] line with the counts by reason. The open batch is left open and the reap of finished batches is put off: nothing depends on either before the store. The caller submits and reaps through SubmitAfterEarlyLabel once the label is stored, its waiters woken and an end-of-pipe interrupt delivered; every caller that stores a reason-7 label calls it (the committer's label commit through submitDueAfterCommit). With no completion action in any unfinished batch the reap neither changes the import table nor what the label waits for. Draws noted every in-place region of their resources as read, also the regions of read-only elements that PrepareDrawBindings bound to snapshots, which the GPU never reads in place. MarkGpuWrites now leaves out a region that only snapshotted allocations overlap (every buffer element is a descriptor of one allocation; a BDA build gets no draw bindings and keeps noting every region). SuperTuxKart (PPSA69421) main menu without the tutorial prompt (about 33 draws a frame) on Windows 11, RTX 3070 Laptop, Ryzen 7 5800H; main 9d4fb4f with boykopovar#7464 and boykopovar#9402, this commit and three other local changes (an idle spin of the queue worker and committer, Windows imports over 64 KiB settled at the import, import refresh spans diffed in place); protocol runs interleaved, 3 each. With APS5_NO_EARLY_LABELS=1: 58.69 / 59.28 / 57.44 FPS, 8 / 7 / 18 present intervals over 20 ms, and 38 / 171 / 8 of about 470 frames waited for their vblank. With early labels: 59.94 FPS in all three (the title's vblank cap), no interval over 20 ms, every frame waited for its vblank, and the longest idle gap of queue worker 0 and the committer per frame went from 0.4 ms to 6.7-7.0 ms (median). APS5_PROFILE_DRAW, cumulative over a run: 27090 labels stored at once, 58 waited (42 for an in-place read, 1 for a write, 15 for completion actions). boykopovar#7464's branch on the same main (with boykopovar#7465 under it, without boykopovar#9402 and the other changes): 48.75-49.89 FPS.
…ves guest memory alone An unimported queue-0 label synced the recorder before its CPU store, so every batch had finished first. Only what that work does to guest memory can tell the two orders apart: a batch that reads guest memory in place (a store landing first would be read), writes it (the guest would read the old bytes after seeing the label), or has completion actions. Work that leaves guest memory alone, such as draws from copied inputs into host-side targets, cannot be observed by the guest before or after the label. Recorder::UnfinishedGuestTouch reports what the open batch and the in-flight batches whose fences have not signaled still do: in-place reads, noted writes and labels, stores or sample dumps still to record, and completion actions (also of signaled batches, and of batches another thread is finishing). WriteLabelOnGpu stores the label at once (reason 7) when nothing is reported, and syncs as before otherwise. APS5_NO_EARLY_LABELS=1 always syncs. APS5_PROFILE_DRAW prints an [early-labels] line with the counts by reason. The open batch is left open and the reap of finished batches is put off: nothing depends on either before the store. The caller submits and reaps through SubmitAfterEarlyLabel once the label is stored, its waiters woken and an end-of-pipe interrupt delivered; every caller that stores a reason-7 label calls it (the committer's label commit through submitDueAfterCommit). With no completion action in any unfinished batch the reap neither changes the import table nor what the label waits for. Draws noted every in-place region of their resources as read, also the regions of read-only elements that PrepareDrawBindings bound to snapshots, which the GPU never reads in place. MarkGpuWrites now leaves out a region that only snapshotted allocations overlap (every buffer element is a descriptor of one allocation; a BDA build gets no draw bindings and keeps noting every region). SuperTuxKart (PPSA69421) main menu without the tutorial prompt (about 33 draws a frame) on Windows 11, RTX 3070 Laptop, Ryzen 7 5800H; main 9d4fb4f with boykopovar#7464 and boykopovar#9402, this commit and three other local changes (an idle spin of the queue worker and committer, Windows imports over 64 KiB settled at the import, import refresh spans diffed in place); protocol runs interleaved, 3 each. With APS5_NO_EARLY_LABELS=1: 58.69 / 59.28 / 57.44 FPS, 8 / 7 / 18 present intervals over 20 ms, and 38 / 171 / 8 of about 470 frames waited for their vblank. With early labels: 59.94 FPS in all three (the title's vblank cap), no interval over 20 ms, every frame waited for its vblank, and the longest idle gap of queue worker 0 and the committer per frame went from 0.4 ms to 6.7-7.0 ms (median). APS5_PROFILE_DRAW, cumulative over a run: 27090 labels stored at once, 58 waited (42 for an in-place read, 1 for a write, 15 for completion actions). boykopovar#7464's branch on the same main (with boykopovar#7465 under it, without boykopovar#9402 and the other changes): 48.75-49.89 FPS.
What
ImportMappedRangesinGraphics/src/GuestBufferMemory.cpp, the observer that runs when a title maps memory for the GPU, imports every such range at map time (#1961). A title that maps and unmaps small ranges over and over pays a whole host import on the mapping thread at every map, and retires it at every unmap.This PR leaves ranges of 64 KiB or less to their first GPU use:
ImportMappedRangesskips a mapped range of 64 KiB or less, and takes the registry lease only when a range in the batch still needs an eager import (five changed lines).HostImportFor, counted for theaccessrequester), as before fix(agc): import GPU-mapped guest memory when it is mapped #1961; a small range the GPU never uses is never imported. As @oneandonlydean noted above, that path is the existing fallback, so the change moves when a small range is imported, not whether it can be.Where it helps
mainb5d763770a, ordermain, this PR, perf(agc): import a range mapped again on first use instead of at map #8622, perf(agc): import a range mapped again on first use instead of at map #8622, this PR,main): onmainthe title attempts about 1.2 million map-time imports per run and has them refused once earlyINVALID_EXTERNAL_HANDLEfailures lower the import budget (1,252,731 and 1,183,020 refusals). With this PR, 59 refusals; the frame rate goes from 47.86 / 53.95 FPS to 59.94 / 59.94, the title's 60 FPS cap, with p99 16.7 ms in both runs. This is the PR's standalone gain. I could not reproduce it: I do not have the title.main2185dbf92eagainstmainwith the eleven PRs of that series, which include this one; a local counter build withAPS5_PROFILE_DRAW=1, not used for FPS):ImportMappedRanges784 µs to 0.26 µs per call andsceKernelMapDirectMemory869 µs to 23 µs per call, about 48 calls of each per frame.main94fbb8cea8main+ this PRa1cee90f52main+ this PR + #7464223f2469f5Tested
Update 2026-10-24. The head is now
de24508db4: currentmaine2b9700a98merged into this branch, with one conflict intests/BdaResources.cpp(importAtMapOverBudgetTests:main'sClearHostImports(context.device)from #8622 is kept together with this PR's 128 KiB range, as in #7464's merge). On that head, Windows 11 Pro 26300, RTX 3070 Laptop GPU, NVIDIA 621.01: the 133 ctest entries of the set below pass; under the validation layer (same switches as below) 133/133 pass onmaine2b9700a98and on the head, neither log reportswas not found but was requested by env var VK_INSTANCE_LAYERS, and neither reports aVUID-. Linux (WSL Ubuntu 26.04, lavapipe):agc_driver_graphics,agc_driver_host_import_at_mapand the 69 entries ofagc_driver_recorder_tests(63 pass, the same 6 skip as below). The SuperTuxKart captures below were not repeated on this head. The rest of this section is about the previous head.The previous head was
a1cee90f52onmain94fbb8cea8: the change (789a5f686f), its map-time import test update (e0764b9e14), and a test fixture fix (a1cee90f52). Windows 11 Pro 26300, Ryzen 7 5800H, WinLibs GCC 15.2.0 r7, Release.importMappedFailureGenerationTestsintests/BdaResources.cpp, added tomainby fix(agc): retain map import failures across unrelated mappings #8802 after this PR's last rebase, maps one 64 KiB range and expectsImportMappedRangesto try its import; with this PR's previous head merged into currentmain,agc_driver_graphicsfailed with "the map failure fixture did not mutate an unrelated range during allocation". The fixture now maps 128 KiB as one window, which is still imported at map time. On plainmainthe updated test passes, and with fix(agc): retain map import failures across unrelated mappings #8802's fix reverted it fails at "an unrelated mapping during a failed import discarded its owner failure memo", so it still checks what fix(agc): retain map import failures across unrelated mappings #8802 added.ANYPS5_NO_SHADER_CACHE=1, three runs each: the 74 tests built fromtests/Recorder.cpp, andagc_driver_graphics,agc_driver_host_import_windows,agc_driver_host_import_at_map,agc_driver_host_import_teardown,agc_driver_indirect_arguments_pending_producer,agc_driver_unimported_label_order,agc_driver_same_queue_label_wait,agc_driver_alias_copy_label,agc_driver_pipelined_dma,guest_sleep_wake,guest_sleep_wake_coarse,guest_nanosleep,precise_wait: 87/87 on this head and onmain.main94fbb8cea8and on this head (VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation,ANYPS5_NO_SHADER_CACHE=1,ANYPS5_REQUIRE_VULKAN=1,ctest -V, RTX 3070 Laptop GPU, NVIDIA 617.42;DISABLE_LAYER=1turns off a third-party implicit layer installed here, FPS Monitor, whosevkDestroyInstancehook crashes later instance lookups): 87/87 on both, neither log reportswas not found but was requested by env var VK_INSTANCE_LAYERS, and both report the same VUIDs the same number of times (VUID-VkImageViewCreateInfo-usage-022754,VUID-vkCmdCopyBuffer-srcBuffer-001182). The change adds none.ANYPS5_GPU=AMD), the same set once and once under the validation layer: 84/87 on this head and onmain. The same three tests fail on both (agc_sample_dumps,agc_driver_vertex_target_range_copied,agc_driver_vertex_target_range_imported), so they aremain's; the validation logs report the same VUIDs as on NVIDIA and none new.llvmpipe (LLVM 21.1.8)): 71 tests of the set are registered there; 65 pass, among themagc_driver_graphics,agc_driver_host_import_windows,agc_driver_host_import_at_mapandagc_driver_host_import_teardown, and 6 skip themselves with exit 77 (agc_pipeline_cache_file,agc_storage_clear_hand_over,agc_unit_shadow,agc_shadowed_key_stores,agc_driver_unit_shadow,agc_driver_unit_shadow_budget).384652a52(the same five changed lines, merged intomain07377573f): the 56 tests built fromtests/Recorder.cppandHostImportWindows.cpppass on an Intel UHD 770 (49 pass, 7 skip without a second queue family) and an AMD RX 9070 XT; with this PR's tests onmainwithout its change, 9 fail on both.tools/check_conventions.pypasses for this range.SuperTuxKart captures. RTX 3070 Laptop GPU, NVIDIA 617.42, same machine and build as above; SuperTuxKart (PPSA69421) tutorial prompt over the main menu, 1920x1080 internal rendering in a maximized 2560x1369 window, warm shader caches, audio muted, no input;
APS5_TRACE_SECONDS=20:8withAPS5_TRACE_EVENTS=1048576, console output not redirected, no otherAPS5_*switch; 2026-10-22, one session, ordermain, this PR, this PR + #7464 (twice; its lines are in #7464), this PR,main; every run kept the window in the foreground, and every summary line reportsdirty: falseandtrace_dropped: false.Summary lines (main, this PR, this PR, main)
{"commit":"94fbb8cea80a","dirty":false,"env":{"APS5_TRACE_EVENTS":"1048576","APS5_TRACE_SECONDS":"20:8"},"gpu":"NVIDIA GeForce RTX 3070 Laptop GPU","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 5800H with Radeon Graphics","cpu_threads":16,"memory_mib":64863,"title_id":"PPSA69421","title":"SuperTuxKart","content_version":"00.001.000","resolution":"1920x1080","window":{"spec":"seconds 20:8","first_present":38,"ms":8076.426},"presents":80,"frame_ms":{"p50":99.757,"p90":110.517,"p99":128.310,"max":128.310},"gpu_busy_ms_per_present":5.610,"worker_busy_pct":{"queue worker 0x0":2.846},"top_phases_ms_per_frame":{"Graphics.Draw":7.873,"Graphics.Draw.draw_and_resource_release":7.574,"Vulkan.DrawFromRecipe":6.254,"Graphics.DrawWithRecipe":6.229,"Graphics.DrawWithRecipe.draw_and_resource_release":6.216,"Recorder.Submit":2.908,"Driver.Packet":2.834,"Driver.Packet.draw":2.260},"trace_dropped":false,"trace":"aps5-trace-94fbb8cea80a-424.json.gz"} {"commit":"a1cee90f52cc","dirty":false,"env":{"APS5_TRACE_EVENTS":"1048576","APS5_TRACE_SECONDS":"20:8"},"gpu":"NVIDIA GeForce RTX 3070 Laptop GPU","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 5800H with Radeon Graphics","cpu_threads":16,"memory_mib":64863,"title_id":"PPSA69421","title":"SuperTuxKart","content_version":"00.001.000","resolution":"1920x1080","window":{"spec":"seconds 20:8","first_present":55,"ms":8065.429},"presents":83,"frame_ms":{"p50":94.730,"p90":106.217,"p99":129.954,"max":129.954},"gpu_busy_ms_per_present":5.650,"worker_busy_pct":{"queue worker 0x0":2.889},"top_phases_ms_per_frame":{"Graphics.Draw":8.166,"Graphics.Draw.draw_and_resource_release":7.877,"Vulkan.DrawFromRecipe":6.616,"Graphics.DrawWithRecipe":6.589,"Graphics.DrawWithRecipe.draw_and_resource_release":6.576,"Recorder.Submit":2.785,"Driver.Packet":2.769,"Driver.Packet.draw":2.207},"trace_dropped":false,"trace":"aps5-trace-a1cee90f52cc-21452.json.gz"} {"commit":"a1cee90f52cc","dirty":false,"env":{"APS5_TRACE_EVENTS":"1048576","APS5_TRACE_SECONDS":"20:8"},"gpu":"NVIDIA GeForce RTX 3070 Laptop GPU","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 5800H with Radeon Graphics","cpu_threads":16,"memory_mib":64863,"title_id":"PPSA69421","title":"SuperTuxKart","content_version":"00.001.000","resolution":"1920x1080","window":{"spec":"seconds 20:8","first_present":60,"ms":8047.206},"presents":82,"frame_ms":{"p50":95.592,"p90":109.603,"p99":121.282,"max":121.282},"gpu_busy_ms_per_present":5.638,"worker_busy_pct":{"queue worker 0x0":2.804},"top_phases_ms_per_frame":{"Graphics.Draw":8.185,"Graphics.Draw.draw_and_resource_release":7.900,"Vulkan.DrawFromRecipe":6.988,"Graphics.DrawWithRecipe":6.962,"Graphics.DrawWithRecipe.draw_and_resource_release":6.949,"Recorder.Submit":2.777,"Driver.Packet":2.710,"Driver.Packet.draw":2.157},"trace_dropped":false,"trace":"aps5-trace-a1cee90f52cc-30808.json.gz"} {"commit":"94fbb8cea80a","dirty":false,"env":{"APS5_TRACE_EVENTS":"1048576","APS5_TRACE_SECONDS":"20:8"},"gpu":"NVIDIA GeForce RTX 3070 Laptop GPU","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 5800H with Radeon Graphics","cpu_threads":16,"memory_mib":64863,"title_id":"PPSA69421","title":"SuperTuxKart","content_version":"00.001.000","resolution":"1920x1080","window":{"spec":"seconds 20:8","first_present":60,"ms":8004.322},"presents":82,"frame_ms":{"p50":94.350,"p90":108.262,"p99":142.124,"max":142.124},"gpu_busy_ms_per_present":5.714,"worker_busy_pct":{"queue worker 0x0":2.913},"top_phases_ms_per_frame":{"Graphics.Draw":7.571,"Graphics.Draw.draw_and_resource_release":7.276,"Vulkan.DrawFromRecipe":6.235,"Graphics.DrawWithRecipe":6.207,"Graphics.DrawWithRecipe.draw_and_resource_release":6.194,"Recorder.Submit":2.886,"Driver.Packet":2.803,"Driver.Packet.draw":2.235},"trace_dropped":false,"trace":"aps5-trace-94fbb8cea80a-36604.json.gz"}tools/performance_compare.py(first capture ofmainagainst the first capture of this PR)**Performance comparison
**
**Configuration differences
**
**Frame and GPU times (ms)
**
**Top phases (ms per frame)
**
tools/trace_digest.py(first capture ofmain, then of this PR; every digest is in the evidence archive)v23-s01-mainseconds 20:8 from present 38: 80 presents, frame p50 99.8 / p90 110.5 / p99 128.3 / max 128.3 ms, GPU busy 5.6 ms per present
NVIDIA GeForce RTX 3070 Laptop GPU, NVIDIA 617.42, Windows 10.0.26300, 1920x1080, commit 94fbb8c, dropped: no
{"commit":"94fbb8cea80a","dirty":false,"env":{"APS5_TRACE_EVENTS":"1048576","APS5_TRACE_SECONDS":"20:8"},"gpu":"NVIDIA GeForce RTX 3070 Laptop GPU","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 5800H with Radeon Graphics","cpu_threads":16,"memory_mib":64863,"title_id":"PPSA69421","title":"SuperTuxKart","content_version":"00.001.000","resolution":"1920x1080","window":{"spec":"seconds 20:8","first_present":38,"ms":8076.426},"presents":80,"frame_ms":{"p50":99.757,"p90":110.517,"p99":128.31,"max":128.31},"gpu_busy_ms_per_present":5.61,"worker_busy_pct":{"queue worker 0x0":2.846},"top_phases_ms_per_frame":{"Graphics.Draw":7.873,"Graphics.Draw.draw_and_resource_release":7.574,"Vulkan.DrawFromRecipe":6.254,"Graphics.DrawWithRecipe":6.229,"Graphics.DrawWithRecipe.draw_and_resource_release":6.216,"Recorder.Submit":2.908,"Driver.Packet":2.834,"Driver.Packet.draw":2.26},"trace_dropped":false,"trace":"aps5-trace-94fbb8cea80a-424.json.gz"}Slowest frames (largest slices inside each, inclusive)
Threads (ms per frame)
Largest slices (ms per frame, inclusive, all threads): Driver.WorkerWait 97.8, Driver.WorkerWait.idle_and_completion_poll 97.7, Graphics.Draw 7.9, Graphics.Draw.draw_and_resource_release 7.6, Vulkan.DrawFromRecipe 6.3, Graphics.DrawWithRecipe 6.2
Longest waits
Largest GPU batches (GPU ranges inside, and the CPU slices that recorded each, inclusive)
v23-s02-7465seconds 20:8 from present 55: 83 presents, frame p50 94.7 / p90 106.2 / p99 130.0 / max 130.0 ms, GPU busy 5.7 ms per present
NVIDIA GeForce RTX 3070 Laptop GPU, NVIDIA 617.42, Windows 10.0.26300, 1920x1080, commit a1cee90, dropped: no
{"commit":"a1cee90f52cc","dirty":false,"env":{"APS5_TRACE_EVENTS":"1048576","APS5_TRACE_SECONDS":"20:8"},"gpu":"NVIDIA GeForce RTX 3070 Laptop GPU","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 5800H with Radeon Graphics","cpu_threads":16,"memory_mib":64863,"title_id":"PPSA69421","title":"SuperTuxKart","content_version":"00.001.000","resolution":"1920x1080","window":{"spec":"seconds 20:8","first_present":55,"ms":8065.429},"presents":83,"frame_ms":{"p50":94.73,"p90":106.217,"p99":129.954,"max":129.954},"gpu_busy_ms_per_present":5.65,"worker_busy_pct":{"queue worker 0x0":2.889},"top_phases_ms_per_frame":{"Graphics.Draw":8.166,"Graphics.Draw.draw_and_resource_release":7.877,"Vulkan.DrawFromRecipe":6.616,"Graphics.DrawWithRecipe":6.589,"Graphics.DrawWithRecipe.draw_and_resource_release":6.576,"Recorder.Submit":2.785,"Driver.Packet":2.769,"Driver.Packet.draw":2.207},"trace_dropped":false,"trace":"aps5-trace-a1cee90f52cc-21452.json.gz"}Slowest frames (largest slices inside each, inclusive)
Threads (ms per frame)
Largest slices (ms per frame, inclusive, all threads): Driver.WorkerWait 94.0, Driver.WorkerWait.idle_and_completion_poll 94.0, Graphics.Draw 8.2, Graphics.Draw.draw_and_resource_release 7.9, Vulkan.DrawFromRecipe 6.6, Graphics.DrawWithRecipe 6.6
Longest waits
Largest GPU batches (GPU ranges inside, and the CPU slices that recorded each, inclusive)
Evidence: 7465-evidence-20261022.zip (traces, summary lines, digests and comparisons, test and validation-layer logs).
Known limitations
Dependencies and overlap
tests/BdaResources.cpponly (map-time import expectations). perf(agc): import a range mapped again on first use instead of at map #8622 is inmainsince 2026-10-23, and the merge ofmaininto this branch runs both rules together.ImportMappedRangesleases the registry, at the lines this PR changes; they conflict textually inGuestBufferMemory.cpp, and either order needs a small rebase. Neither depends on the other.Checklist
main(e2b9700a98merged in); no other open PR implements the same functions (perf(agc): lease mapped readable runs for import events #9011 above; perf(agc): import a range mapped again on first use instead of at map #8622 is inmainnow)NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code