perf(agc): patch the cached address space after an import change instead of rebuilding it #15919

Merged
QRMOE merged 2 commits from upstream-pr/15919 into main 2026-11-07 17:07:46 +00:00
QRMOE commented 2026-11-05 00:08:28 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by QRMOE on 2026-11-05T00:08:28Z.


What

Every import retire or join moves the host imports epoch, and the cached address space keys on it, so the next address-based build after any import change rebuilt the whole space: one importAllocation per readable registered range, under the imports lock. In RESIDENT EVIL requiem that is about 35,000 ranges and 23 ms per rebuild, and with imports changing all the time it rebuilt about 100 times per 10 s ([address] line: imports pass 2,300–2,900 µs per build, epoch rebuilds 80–113 per 10 s). That was most of the "other" share of the draw resource builds, on the committer's critical path.

When only the epoch moved and the registry generation is unchanged, the space's lease is still the one a build would acquire, so a build now copies the space and re-resolves each in-place region to the import that covers it now (peekImport). It recomputes the BDA ranges and the mirror plan and keeps the heap runs' verified generations. If any region has lost its import, it rebuilds as before. The heap and sparse mirrors are checked as on a plain hit. The patched space is published with a compare-exchange against the space it replaced, so a pin waiter's drop in between keeps it unpublished. APS5_NO_SPACE_PATCH=1 restores the rebuild, and the [address] line counts the patched hits.

Tested

Windows 11 (10.0.26200), AMD Radeon RX 9070 XT, AMD proprietary driver 26.6.2.

  • New spacePatchedAfterImportChangeTests in agc_driver_graphics: a budget eviction of an import outside the space moves the epoch, and the next build must take a patched space (hit, patchedEpoch + 1, no epoch rebuild) whose BDA ranges point into the blocks' current imports. With APS5_NO_SPACE_PATCH=1 it fails, as expected.
  • ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ctest --test-dir build -R "^agc_driver_graphics$|^agc_driver_recorder$|bda|address|host_import|address_draw_space_reuse" -V on main and on this PR, same machine: the same results on both, 0 VUID- lines on both, and neither log has the layer-not-found line. agc_driver_address_draw_space_reuse (all 5 modes) passes on both. agc_driver_host_import_failure_handles and agc_driver_bda_device exit 0xc0000409 on main as well.
  • RESIDENT EVIL requiem (PPSA31246): the same save, Continue path, pad input and env, 14 min from boot each, with APS5_TRACE_SUMMARY_EVERY=30.
    • Builds: the title needs fixes that are not on main yet to reach this scene. The baseline is my test tree f4a3b64a6f (main plus those fixes). The PR build is the same tree plus this PR's two commits (03e4e8025d). The summaries say dirty because two submodules (freetype, vorbis) have local changes; the libraries come from those commits.
    • Runs: three of each, alternating. One of each aborted at about 2 min with registered image range changed after resource capture, which #15971 fixes; that fix is merged but not in this tree. Two of each are left.
    • [address] counters: per 10 s, over the windows after the first 150 s with at least 20 epoch rebuilds (median, then range):
run build epoch rebuilds patched imports pass, µs per build address-based builds
sb1 baseline 36 (27–102) 0 351 (259–1,087) 2,144 (1,374–3,277)
sb2 baseline 131 (43–162) 0 1,736 (944–3,148) 1,176 (862–2,111)
sp2 this PR 102 (41–127) 25 (8–33) 1,139 (694–1,345) 1,290 (1,154–2,015)
sp3 this PR 56 (24–67) 18 (6–25) 559 (278–1,380) 1,521 (598–2,167)
  • Frame time: the runs don't follow the same scene path. sb2 and sp2 reach the heavy street scene at about 3 min. sb1 and sp3 stay several minutes in lighter scenes and reach it only near the end.
    • sb2 against sp2: street p50 is about 8.0 s against 5.3 s.
    • sb1 against sp3: the last 2 min are 6.8–7.0 s against 8.6 s.
    • I can't claim a frame-time change from these runs.
  • Correction: the numbers I posted before (epoch rebuilds about 100 down to 13–24, street p50 8.5 s down to 3.4–5.5 s) came from a build with only the first commit, measured against the same build with APS5_NO_SPACE_PATCH=1.
    • With the second commit (rebuild when a heap mirror is now imported), the patch covers about a fifth of the epoch rebuilds in this title. The rest still rebuild.
    • The imports pass per build drops by about a third in the street scene (sb2 against sp2).
  • Not in this PR: two local follow-ups (split a patched space's merged regions at import edges; re-import lost regions instead of rebuilding).
    • They took epoch rebuilds to 0 and the imports pass to 60–150 µs, but street p50 stayed at about 5.3 s.
    • One of their two runs aborted in sceAgcCreateShader (sh_registers missing), which I hadn't seen in any earlier run, so I left them out.
  • Traces: none attached. These runs set APS5_NO_PROFILE, so the summaries carry an empty trace.

Summary lines from the street scene, interval 20 of sb2 (baseline) and sp2 (this PR):

{"commit":"f4a3b64a6f5a","dirty":true,"env":{"APS5_DRAW_CACHE_INDIRECT":"1","APS5_DRAW_CACHE_PUSH_WORD":"1","APS5_DUMP_FRAMES":"100000","APS5_DUMP_FRAMES_EVERY":"20","APS5_LAZY_SHADER_PREPARE":"1","APS5_LOG_TIMESTAMPS":"1","APS5_LOOP_GUARD":"100000","APS5_MIMALLOC":"1","APS5_NO_GPL":"1","APS5_NO_PROFILE":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_PROFILE_DRAW":"1","APS5_RESULT_MEMO_MB":"256","APS5_TMP_MSAA_LINES":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SUMMARY_EVERY":"30"},"gpu":"AMD Radeon RX 9070 XT","driver":"AMD proprietary driver 26.6.2 (LLPC)","os":"Windows 10.0.26200","cpu":"AMD Ryzen 7 9800X3D 8-Core Processor","cpu_threads":16,"memory_mib":32313,"title_id":"PPSA31246","title":"RESIDENT EVIL requiem","content_version":"01.200.000","resolution":"3840x2160","window":{"spec":"summary_every 30","first_present":984,"ms":32158.491},"interval_start_s":590.880,"interval_end_s":623.039,"presents":4,"frame_ms":{"p50":8098.790,"p90":8267.933,"p99":8267.933,"max":8267.933},"gpu_busy_ms_per_present":232.262,"worker_busy_pct":{"queue worker 0x38":1.285,"queue worker 0x20":58.428,"queue worker 0x0":98.683,"queue worker 0x28":98.910},"top_phases_ms_per_frame":{"Driver.Packet":20644.500,"Driver.Packet.memory_wait":12345.060,"Driver.Packet.draw":7294.996,"Driver.Draw":7294.020,"Graphics.Draw":6501.614,"Graphics.Draw.draw_and_resource_release":6475.945,"Resources.Complete":4319.046,"Driver.Draw.draw_and_resource_release":2924.236},"trace_dropped":false,"trace":""}
{"commit":"03e4e8025d0b","dirty":true,"env":{"APS5_DRAW_CACHE_INDIRECT":"1","APS5_DRAW_CACHE_PUSH_WORD":"1","APS5_DUMP_FRAMES":"100000","APS5_DUMP_FRAMES_EVERY":"20","APS5_LAZY_SHADER_PREPARE":"1","APS5_LOG_TIMESTAMPS":"1","APS5_LOOP_GUARD":"100000","APS5_MIMALLOC":"1","APS5_NO_GPL":"1","APS5_NO_PROFILE":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_PROFILE_DRAW":"1","APS5_RESULT_MEMO_MB":"256","APS5_TMP_MSAA_LINES":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SUMMARY_EVERY":"30"},"gpu":"AMD Radeon RX 9070 XT","driver":"AMD proprietary driver 26.6.2 (LLPC)","os":"Windows 10.0.26200","cpu":"AMD Ryzen 7 9800X3D 8-Core Processor","cpu_threads":16,"memory_mib":32313,"title_id":"PPSA31246","title":"RESIDENT EVIL requiem","content_version":"01.200.000","resolution":"3840x2160","window":{"spec":"summary_every 30","first_present":1169,"ms":31276.954},"interval_start_s":602.891,"interval_end_s":634.168,"presents":6,"frame_ms":{"p50":5248.040,"p90":5306.297,"p99":5306.297,"max":5306.297},"gpu_busy_ms_per_present":209.429,"worker_busy_pct":{"queue worker 0x38":1.611,"queue worker 0x20":74.541,"queue worker 0x0":98.344,"queue worker 0x28":99.201},"top_phases_ms_per_frame":{"Driver.Packet":14261.085,"Driver.Packet.memory_wait":8637.069,"Driver.Packet.draw":4588.788,"Driver.Draw":4588.075,"Graphics.Draw":4466.542,"Graphics.Draw.draw_and_resource_release":4454.124,"Resources.Complete":3444.361,"Driver.Draw.draw_and_resource_release":1805.756},"trace_dropped":false,"trace":""}
Full digests

sb1, baseline

26 intervals, 0.0 to 819.3 s, 1276 presents
AMD Radeon RX 9070 XT, AMD proprietary driver 26.6.2 (LLPC), Windows 10.0.26200, 3840x2160, commit f4a3b64a6f5a (dirty)

# seconds presents p50 p90 p99 max GPU busy busiest worker largest phase
1 0-30 395 16.9 57.6 1584.3 3664.6 11.9 92 % Driver.Packet 122.7
2 30-60 324 58.5 128.1 410.2 929.6 35.9 96 % Driver.Packet 188.3
3 60-90 194 133.1 250.5 570.4 876.6 59.9 99 % Driver.Packet 331.7
4 90-121 99 186.6 733.2 1247.8 1247.8 43.4 87 % Driver.Packet 729.6
5 121-152 21 1339.8 2050.7 4098.0 4098.0 81.7 96 % Driver.Packet 4075.8
6 152-183 11 2800.7 4566.2 6039.4 6039.4 148.6 97 % Driver.Packet 7571.9
7 183-213 14 2119.6 2484.2 2783.2 2783.2 178.4 98 % Driver.Packet 6025.3
8 213-245 14 2264.6 2634.7 2647.9 2647.9 146.6 98 % Driver.Packet 6182.4
9 245-277 14 2208.7 2626.1 2878.0 2878.0 169.8 98 % Driver.Packet 6244.7
10 277-308 14 2192.3 2486.2 2661.3 2661.3 158.9 98 % Driver.Packet 6170.9
11 308-339 13 2300.0 2576.4 2595.9 2595.9 157.8 98 % Driver.Packet 6513.9
12 339-370 13 2392.6 2639.7 2881.8 2881.8 158.7 98 % Driver.Packet 6687.3
13 370-403 14 2305.5 2400.4 2532.3 2532.3 157.0 98 % Driver.Packet 6343.4
14 403-433 13 2322.0 2608.7 2789.4 2789.4 147.3 98 % Driver.Packet 6499.9
15 433-464 13 2290.4 2495.8 2557.7 2557.7 169.4 98 % Driver.Packet 6397.8
16 464-495 13 2402.4 2534.7 3034.9 3034.9 144.9 98 % Driver.Packet 6677.5
17 495-526 12 2484.9 2865.5 3186.4 3186.4 172.6 98 % Driver.Packet 6966.1
18 526-557 13 2398.9 2630.7 2630.8 2630.8 148.2 98 % Driver.Packet 6671.5
19 557-588 12 2654.5 2869.4 3099.1 3099.1 156.5 98 % Driver.Packet 7097.8
20 588-620 12 2574.0 2853.6 3258.6 3258.6 165.2 98 % Driver.Packet 7130.0
21 620-650 12 2486.9 2666.1 2836.1 2836.1 177.5 98 % Driver.Packet 6813.0
22 650-680 12 2507.6 2774.8 3209.3 3209.3 163.3 98 % Driver.Packet 6913.0
23 680-714 9 3689.8 5768.1 5768.1 5768.1 157.3 99 % Driver.Packet 10594.6
24 714-750 5 7044.0 8213.8 8213.8 8213.8 237.3 98 % Driver.Packet 19198.2
25 750-786 5 6785.6 8112.8 8112.8 8112.8 308.9 99 % Driver.Packet 19971.9
26 786-819 5 6774.1 7197.4 7197.4 7197.4 196.9 99 % Driver.Packet 18518.5
p99 ms  :.__=#-------------=-=*@@%  0-8213.8
gpu ms  ._:_:=+=+++++=+=+=+++++#@*  0-308.9

sb2, baseline

26 intervals, 0.0 to 820.2 s, 1012 presents
AMD Radeon RX 9070 XT, AMD proprietary driver 26.6.2 (LLPC), Windows 10.0.26200, 3840x2160, commit f4a3b64a6f5a (dirty)

# seconds presents p50 p90 p99 max GPU busy busiest worker largest phase
1 0-30 311 55.8 81.4 1167.3 2794.4 22.7 92 % Driver.Packet 173.6
2 30-60 270 111.9 157.8 724.8 990.9 40.9 97 % Driver.Packet 231.5
3 60-90 194 134.4 260.5 359.1 465.7 58.8 99 % Driver.Packet 341.8
4 90-121 121 144.3 542.5 1142.9 1361.7 45.7 94 % Driver.Packet 595.8
5 121-151 27 816.0 2764.9 3627.1 3627.1 73.9 95 % Driver.Packet 3122.4
6 151-184 8 4292.4 8747.5 8747.5 8747.5 127.6 98 % Driver.Packet 10806.5
7 184-216 5 6387.2 7192.2 7192.2 7192.2 218.4 99 % Driver.Packet 16711.9
8 216-247 4 7736.4 8066.0 8066.0 8066.0 239.4 99 % Driver.Packet 19438.8
9 247-277 4 7659.1 7922.3 7922.3 7922.3 239.2 99 % Driver.Packet 19691.9
10 277-308 4 7780.3 7807.1 7807.1 7807.1 233.3 99 % Driver.Packet 19667.1
11 308-338 4 7684.3 7880.1 7880.1 7880.1 230.3 99 % Driver.Packet 19690.8
12 338-369 4 7847.6 7913.9 7913.9 7913.9 292.6 99 % Driver.Packet 19784.4
13 369-400 4 7897.1 8002.8 8002.8 8002.8 174.6 99 % Driver.Packet 20113.6
14 400-432 4 8142.6 8240.3 8240.3 8240.3 233.2 99 % Driver.Packet 20109.6
15 432-463 4 7956.1 8104.3 8104.3 8104.3 231.7 99 % Driver.Packet 19948.3
16 463-495 4 8045.0 8160.6 8160.6 8160.6 233.7 99 % Driver.Packet 20392.8
17 495-527 4 8161.4 8530.6 8530.6 8530.6 227.2 99 % Driver.Packet 20639.4
18 527-559 4 7946.0 8049.8 8049.8 8049.8 234.5 99 % Driver.Packet 20339.3
19 559-591 4 8090.3 8244.6 8244.6 8244.6 232.2 99 % Driver.Packet 20653.9
20 591-623 4 8098.8 8267.9 8267.9 8267.9 232.3 99 % Driver.Packet 20644.5
21 623-655 4 7928.3 8197.2 8197.2 8197.2 230.6 99 % Driver.Packet 20464.8
22 655-687 4 8300.4 8350.4 8350.4 8350.4 229.5 99 % Driver.Packet 20783.5
23 687-720 4 8261.1 8330.0 8330.0 8330.0 283.3 99 % Driver.Packet 20798.3
24 720-753 4 8356.4 8454.3 8454.3 8454.3 171.5 99 % Driver.Packet 21269.8
25 753-786 4 8286.1 8663.8 8663.8 8663.8 287.5 99 % Driver.Packet 21585.6
26 786-820 4 8512.6 8644.4 8644.4 8644.4 232.5 99 % Driver.Packet 21623.0
p99 ms  __._=@#%%%%%%%%%@%%@%@@@@@  0-8747.5
gpu ms  __:_:=#####@+#########@+@#  0-292.6

sp2, this PR

26 intervals, 0.0 to 826.1 s, 1211 presents
AMD Radeon RX 9070 XT, AMD proprietary driver 26.6.2 (LLPC), Windows 10.0.26200, 3840x2160, commit 03e4e8025d0b (dirty)

# seconds presents p50 p90 p99 max GPU busy busiest worker largest phase
1 0-30 410 48.2 82.3 896.2 2660.2 13.5 90 % Driver.Packet 113.0
2 30-60 311 58.7 126.7 420.2 1037.0 37.6 96 % Driver.Packet 195.2
3 60-90 191 136.3 268.5 459.0 604.1 61.8 98 % Driver.Packet 340.5
4 90-121 126 146.0 507.3 1186.2 1413.5 50.3 91 % Driver.Packet 549.6
5 121-154 28 851.5 2951.3 4205.3 4205.3 71.6 95 % Driver.Packet 3256.3
6 154-186 14 1756.5 4527.6 6098.8 6098.8 135.6 97 % Driver.Packet 6389.2
7 186-218 7 4597.7 5227.2 5227.2 5227.2 200.8 99 % Driver.Packet 12371.9
8 218-250 8 4057.6 4232.4 4232.4 4232.4 229.8 99 % Driver.Packet 10954.1
9 250-283 8 4108.9 4522.0 4522.0 4522.0 179.5 99 % Driver.Packet 11152.9
10 283-317 8 4177.7 4305.2 4305.2 4305.2 227.2 99 % Driver.Packet 11263.1
11 317-351 8 4253.4 4622.3 4622.3 4622.3 177.7 99 % Driver.Packet 11508.9
12 351-382 7 4588.0 4990.0 4990.0 4990.0 203.3 99 % Driver.Packet 12270.2
13 382-416 7 4899.5 5239.2 5239.2 5239.2 210.0 99 % Driver.Packet 13258.3
14 416-447 6 5136.7 5486.4 5486.4 5486.4 247.8 99 % Driver.Packet 13841.4
15 447-477 6 5348.7 5454.6 5454.6 5454.6 209.9 99 % Driver.Packet 13788.3
16 477-508 6 5353.2 5468.3 5468.3 5468.3 208.5 99 % Driver.Packet 13998.4
17 508-540 6 5506.9 5854.3 5854.3 5854.3 211.9 99 % Driver.Packet 14387.5
18 540-571 6 5314.6 5539.3 5539.3 5539.3 209.9 99 % Driver.Packet 14276.9
19 571-603 6 5376.8 5446.7 5446.7 5446.7 211.3 99 % Driver.Packet 14552.6
20 603-634 6 5248.0 5306.3 5306.3 5306.3 209.4 99 % Driver.Packet 14261.1
21 634-666 6 5390.7 5484.8 5484.8 5484.8 177.3 99 % Driver.Packet 14400.2
22 666-698 6 5341.6 5561.1 5561.1 5561.1 211.2 99 % Driver.Packet 14458.8
23 698-729 6 5360.9 5770.9 5770.9 5770.9 208.4 99 % Driver.Packet 14424.2
24 729-761 6 5311.8 5618.2 5618.2 5618.2 244.5 99 % Driver.Packet 14608.5
25 761-794 6 5458.3 5541.4 5541.4 5541.4 206.0 99 % Driver.Packet 14674.6
26 794-826 6 5382.2 5792.8 5792.8 5792.8 212.0 99 % Driver.Packet 14874.7
p99 ms  ___:*@%*#*##%%%%@%%%%%@%%@  0-6098.8
gpu ms  ._::-+#%#%*#%@%%%%%%*%%@#%  0-247.8

sp3, this PR

26 intervals, 0.0 to 820.1 s, 1380 presents
AMD Radeon RX 9070 XT, AMD proprietary driver 26.6.2 (LLPC), Windows 10.0.26200, 3840x2160, commit 03e4e8025d0b (dirty)

# seconds presents p50 p90 p99 max GPU busy busiest worker largest phase
1 0-30 365 16.8 62.1 1735.6 2538.1 9.4 92 % Driver.Packet 120.8
2 30-60 367 54.7 120.0 465.8 1242.7 30.3 96 % Driver.Packet 159.7
3 60-90 203 128.4 257.0 405.6 583.4 58.6 99 % Driver.Packet 319.5
4 90-120 128 137.1 570.3 1160.1 1646.6 49.3 91 % Driver.Packet 528.7
5 120-152 35 630.2 1545.6 3106.5 3106.5 69.7 95 % Driver.Packet 2487.7
6 152-183 26 1120.3 1526.8 2356.7 2356.7 125.9 94 % Driver.Packet 3178.8
7 183-214 30 987.0 1298.0 1366.9 1366.9 134.8 97 % Driver.Packet 2802.0
8 214-245 30 933.8 1195.3 1490.3 1490.3 129.2 97 % Driver.Packet 2722.7
9 245-275 30 1016.6 1192.4 1487.7 1487.7 127.2 96 % Driver.Packet 2754.9
10 275-306 29 1076.4 1306.7 1340.9 1340.9 128.3 97 % Driver.Packet 2893.7
11 306-337 20 1125.2 4562.9 5457.8 5457.8 131.4 97 % Driver.Packet 4081.8
12 337-367 13 2324.8 2678.5 2726.2 2726.2 136.0 98 % Driver.Packet 6380.9
13 367-398 14 2227.1 2410.3 2489.8 2489.8 162.4 98 % Driver.Packet 6083.1
14 398-430 13 2376.9 2886.9 2991.8 2991.8 173.6 98 % Driver.Packet 6624.3
15 430-460 13 2323.5 2575.3 2577.0 2577.0 161.2 98 % Driver.Packet 6363.7
16 460-491 13 2339.9 2641.2 2645.9 2645.9 160.2 98 % Driver.Packet 6454.7
17 491-525 12 2470.8 3539.2 4820.0 4820.0 147.8 98 % Driver.Packet 7802.7
18 525-556 5 6249.4 6681.8 6681.8 6681.8 204.8 99 % Driver.Packet 17135.4
19 556-588 5 6575.5 6904.3 6904.3 6904.3 237.8 99 % Driver.Packet 18222.9
20 588-620 5 6287.3 6689.4 6689.4 6689.4 231.8 99 % Driver.Packet 17590.0
21 620-652 5 6383.8 6811.7 6811.7 6811.7 271.4 99 % Driver.Packet 18000.1
22 652-683 5 6587.7 7036.2 7036.2 7036.2 225.4 99 % Driver.Packet 16653.5
23 683-721 3 13294.8 20820.4 20820.4 20820.4 106.8 98 % Driver.Packet 34036.9
24 721-751 3 9701.3 11387.1 11387.1 11387.1 336.0 99 % Driver.Packet 28166.4
25 751-786 4 8604.6 9631.8 9631.8 9631.8 289.3 99 % Driver.Packet 24643.8
26 786-820 4 8574.6 8841.9 8841.9 8841.9 290.9 99 % Driver.Packet 23781.5
p99 ms  _.._______:_____:-----@+==  0-20820.4
gpu ms  ._:_:-=---===+===+**#*-@%%  0-336.0

Checklist

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

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5163714691 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15919). Originally posted by [QRMOE](https://github.com/QRMOE) on 2026-11-05T00:08:28Z. --- ### What Every import retire or join moves the host imports epoch, and the cached address space keys on it, so the next address-based build after any import change rebuilt the whole space: one `importAllocation` per readable registered range, under the imports lock. In RESIDENT EVIL requiem that is about 35,000 ranges and 23 ms per rebuild, and with imports changing all the time it rebuilt about 100 times per 10 s (`[address]` line: imports pass 2,300–2,900 µs per build, epoch rebuilds 80–113 per 10 s). That was most of the "other" share of the draw resource builds, on the committer's critical path. When only the epoch moved and the registry generation is unchanged, the space's lease is still the one a build would acquire, so a build now copies the space and re-resolves each in-place region to the import that covers it now (`peekImport`). It recomputes the BDA ranges and the mirror plan and keeps the heap runs' verified generations. If any region has lost its import, it rebuilds as before. The heap and sparse mirrors are checked as on a plain hit. The patched space is published with a compare-exchange against the space it replaced, so a pin waiter's drop in between keeps it unpublished. `APS5_NO_SPACE_PATCH=1` restores the rebuild, and the `[address]` line counts the patched hits. ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> Windows 11 (10.0.26200), AMD Radeon RX 9070 XT, AMD proprietary driver 26.6.2. - New `spacePatchedAfterImportChangeTests` in `agc_driver_graphics`: a budget eviction of an import outside the space moves the epoch, and the next build must take a patched space (hit, `patchedEpoch` + 1, no epoch rebuild) whose BDA ranges point into the blocks' current imports. With `APS5_NO_SPACE_PATCH=1` it fails, as expected. - `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ctest --test-dir build -R "^agc_driver_graphics$|^agc_driver_recorder$|bda|address|host_import|address_draw_space_reuse" -V` on `main` and on this PR, same machine: the same results on both, 0 `VUID-` lines on both, and neither log has the layer-not-found line. `agc_driver_address_draw_space_reuse` (all 5 modes) passes on both. `agc_driver_host_import_failure_handles` and `agc_driver_bda_device` exit 0xc0000409 on `main` as well. - RESIDENT EVIL requiem (PPSA31246): the same save, Continue path, pad input and env, 14 min from boot each, with `APS5_TRACE_SUMMARY_EVERY=30`. - **Builds:** the title needs fixes that are not on `main` yet to reach this scene. The baseline is my test tree f4a3b64a6f (`main` plus those fixes). The PR build is the same tree plus this PR's two commits (03e4e8025d). The summaries say `dirty` because two submodules (freetype, vorbis) have local changes; the libraries come from those commits. - **Runs:** three of each, alternating. One of each aborted at about 2 min with `registered image range changed after resource capture`, which #15971 fixes; that fix is merged but not in this tree. Two of each are left. - **`[address]` counters:** per 10 s, over the windows after the first 150 s with at least 20 epoch rebuilds (median, then range): | run | build | epoch rebuilds | patched | imports pass, µs per build | address-based builds | |---|---|---|---|---|---| | sb1 | baseline | 36 (27–102) | 0 | 351 (259–1,087) | 2,144 (1,374–3,277) | | sb2 | baseline | 131 (43–162) | 0 | 1,736 (944–3,148) | 1,176 (862–2,111) | | sp2 | this PR | 102 (41–127) | 25 (8–33) | 1,139 (694–1,345) | 1,290 (1,154–2,015) | | sp3 | this PR | 56 (24–67) | 18 (6–25) | 559 (278–1,380) | 1,521 (598–2,167) | - **Frame time:** the runs don't follow the same scene path. sb2 and sp2 reach the heavy street scene at about 3 min. sb1 and sp3 stay several minutes in lighter scenes and reach it only near the end. - sb2 against sp2: street p50 is about 8.0 s against 5.3 s. - sb1 against sp3: the last 2 min are 6.8–7.0 s against 8.6 s. - I can't claim a frame-time change from these runs. - **Correction:** the numbers I posted before (epoch rebuilds about 100 down to 13–24, street p50 8.5 s down to 3.4–5.5 s) came from a build with only the first commit, measured against the same build with `APS5_NO_SPACE_PATCH=1`. - With the second commit (rebuild when a heap mirror is now imported), the patch covers about a fifth of the epoch rebuilds in this title. The rest still rebuild. - The imports pass per build drops by about a third in the street scene (sb2 against sp2). - **Not in this PR:** two local follow-ups (split a patched space's merged regions at import edges; re-import lost regions instead of rebuilding). - They took epoch rebuilds to 0 and the imports pass to 60–150 µs, but street p50 stayed at about 5.3 s. - One of their two runs aborted in `sceAgcCreateShader` (`sh_registers missing`), which I hadn't seen in any earlier run, so I left them out. - **Traces:** none attached. These runs set `APS5_NO_PROFILE`, so the summaries carry an empty `trace`. Summary lines from the street scene, interval 20 of sb2 (baseline) and sp2 (this PR): ``` {"commit":"f4a3b64a6f5a","dirty":true,"env":{"APS5_DRAW_CACHE_INDIRECT":"1","APS5_DRAW_CACHE_PUSH_WORD":"1","APS5_DUMP_FRAMES":"100000","APS5_DUMP_FRAMES_EVERY":"20","APS5_LAZY_SHADER_PREPARE":"1","APS5_LOG_TIMESTAMPS":"1","APS5_LOOP_GUARD":"100000","APS5_MIMALLOC":"1","APS5_NO_GPL":"1","APS5_NO_PROFILE":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_PROFILE_DRAW":"1","APS5_RESULT_MEMO_MB":"256","APS5_TMP_MSAA_LINES":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SUMMARY_EVERY":"30"},"gpu":"AMD Radeon RX 9070 XT","driver":"AMD proprietary driver 26.6.2 (LLPC)","os":"Windows 10.0.26200","cpu":"AMD Ryzen 7 9800X3D 8-Core Processor","cpu_threads":16,"memory_mib":32313,"title_id":"PPSA31246","title":"RESIDENT EVIL requiem","content_version":"01.200.000","resolution":"3840x2160","window":{"spec":"summary_every 30","first_present":984,"ms":32158.491},"interval_start_s":590.880,"interval_end_s":623.039,"presents":4,"frame_ms":{"p50":8098.790,"p90":8267.933,"p99":8267.933,"max":8267.933},"gpu_busy_ms_per_present":232.262,"worker_busy_pct":{"queue worker 0x38":1.285,"queue worker 0x20":58.428,"queue worker 0x0":98.683,"queue worker 0x28":98.910},"top_phases_ms_per_frame":{"Driver.Packet":20644.500,"Driver.Packet.memory_wait":12345.060,"Driver.Packet.draw":7294.996,"Driver.Draw":7294.020,"Graphics.Draw":6501.614,"Graphics.Draw.draw_and_resource_release":6475.945,"Resources.Complete":4319.046,"Driver.Draw.draw_and_resource_release":2924.236},"trace_dropped":false,"trace":""} ``` ``` {"commit":"03e4e8025d0b","dirty":true,"env":{"APS5_DRAW_CACHE_INDIRECT":"1","APS5_DRAW_CACHE_PUSH_WORD":"1","APS5_DUMP_FRAMES":"100000","APS5_DUMP_FRAMES_EVERY":"20","APS5_LAZY_SHADER_PREPARE":"1","APS5_LOG_TIMESTAMPS":"1","APS5_LOOP_GUARD":"100000","APS5_MIMALLOC":"1","APS5_NO_GPL":"1","APS5_NO_PROFILE":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_PROFILE_DRAW":"1","APS5_RESULT_MEMO_MB":"256","APS5_TMP_MSAA_LINES":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SUMMARY_EVERY":"30"},"gpu":"AMD Radeon RX 9070 XT","driver":"AMD proprietary driver 26.6.2 (LLPC)","os":"Windows 10.0.26200","cpu":"AMD Ryzen 7 9800X3D 8-Core Processor","cpu_threads":16,"memory_mib":32313,"title_id":"PPSA31246","title":"RESIDENT EVIL requiem","content_version":"01.200.000","resolution":"3840x2160","window":{"spec":"summary_every 30","first_present":1169,"ms":31276.954},"interval_start_s":602.891,"interval_end_s":634.168,"presents":6,"frame_ms":{"p50":5248.040,"p90":5306.297,"p99":5306.297,"max":5306.297},"gpu_busy_ms_per_present":209.429,"worker_busy_pct":{"queue worker 0x38":1.611,"queue worker 0x20":74.541,"queue worker 0x0":98.344,"queue worker 0x28":99.201},"top_phases_ms_per_frame":{"Driver.Packet":14261.085,"Driver.Packet.memory_wait":8637.069,"Driver.Packet.draw":4588.788,"Driver.Draw":4588.075,"Graphics.Draw":4466.542,"Graphics.Draw.draw_and_resource_release":4454.124,"Resources.Complete":3444.361,"Driver.Draw.draw_and_resource_release":1805.756},"trace_dropped":false,"trace":""} ``` <details><summary>Full digests</summary> `sb1, baseline` **26 intervals**, 0.0 to 819.3 s, 1276 presents AMD Radeon RX 9070 XT, AMD proprietary driver 26.6.2 (LLPC), Windows 10.0.26200, 3840x2160, commit f4a3b64a6f5a (dirty) | # | seconds | presents | p50 | p90 | p99 | max | GPU busy | busiest worker | largest phase | |---|---|---|---|---|---|---|---|---|---| | 1 | 0-30 | 395 | 16.9 | 57.6 | 1584.3 | 3664.6 | 11.9 | 92 % | Driver.Packet 122.7 | | 2 | 30-60 | 324 | 58.5 | 128.1 | 410.2 | 929.6 | 35.9 | 96 % | Driver.Packet 188.3 | | 3 | 60-90 | 194 | 133.1 | 250.5 | 570.4 | 876.6 | 59.9 | 99 % | Driver.Packet 331.7 | | 4 | 90-121 | 99 | 186.6 | 733.2 | 1247.8 | 1247.8 | 43.4 | 87 % | Driver.Packet 729.6 | | 5 | 121-152 | 21 | 1339.8 | 2050.7 | 4098.0 | 4098.0 | 81.7 | 96 % | Driver.Packet 4075.8 | | 6 | 152-183 | 11 | 2800.7 | 4566.2 | 6039.4 | 6039.4 | 148.6 | 97 % | Driver.Packet 7571.9 | | 7 | 183-213 | 14 | 2119.6 | 2484.2 | 2783.2 | 2783.2 | 178.4 | 98 % | Driver.Packet 6025.3 | | 8 | 213-245 | 14 | 2264.6 | 2634.7 | 2647.9 | 2647.9 | 146.6 | 98 % | Driver.Packet 6182.4 | | 9 | 245-277 | 14 | 2208.7 | 2626.1 | 2878.0 | 2878.0 | 169.8 | 98 % | Driver.Packet 6244.7 | | 10 | 277-308 | 14 | 2192.3 | 2486.2 | 2661.3 | 2661.3 | 158.9 | 98 % | Driver.Packet 6170.9 | | 11 | 308-339 | 13 | 2300.0 | 2576.4 | 2595.9 | 2595.9 | 157.8 | 98 % | Driver.Packet 6513.9 | | 12 | 339-370 | 13 | 2392.6 | 2639.7 | 2881.8 | 2881.8 | 158.7 | 98 % | Driver.Packet 6687.3 | | 13 | 370-403 | 14 | 2305.5 | 2400.4 | 2532.3 | 2532.3 | 157.0 | 98 % | Driver.Packet 6343.4 | | 14 | 403-433 | 13 | 2322.0 | 2608.7 | 2789.4 | 2789.4 | 147.3 | 98 % | Driver.Packet 6499.9 | | 15 | 433-464 | 13 | 2290.4 | 2495.8 | 2557.7 | 2557.7 | 169.4 | 98 % | Driver.Packet 6397.8 | | 16 | 464-495 | 13 | 2402.4 | 2534.7 | 3034.9 | 3034.9 | 144.9 | 98 % | Driver.Packet 6677.5 | | 17 | 495-526 | 12 | 2484.9 | 2865.5 | 3186.4 | 3186.4 | 172.6 | 98 % | Driver.Packet 6966.1 | | 18 | 526-557 | 13 | 2398.9 | 2630.7 | 2630.8 | 2630.8 | 148.2 | 98 % | Driver.Packet 6671.5 | | 19 | 557-588 | 12 | 2654.5 | 2869.4 | 3099.1 | 3099.1 | 156.5 | 98 % | Driver.Packet 7097.8 | | 20 | 588-620 | 12 | 2574.0 | 2853.6 | 3258.6 | 3258.6 | 165.2 | 98 % | Driver.Packet 7130.0 | | 21 | 620-650 | 12 | 2486.9 | 2666.1 | 2836.1 | 2836.1 | 177.5 | 98 % | Driver.Packet 6813.0 | | 22 | 650-680 | 12 | 2507.6 | 2774.8 | 3209.3 | 3209.3 | 163.3 | 98 % | Driver.Packet 6913.0 | | 23 | 680-714 | 9 | 3689.8 | 5768.1 | 5768.1 | 5768.1 | 157.3 | 99 % | Driver.Packet 10594.6 | | 24 | 714-750 | 5 | 7044.0 | 8213.8 | 8213.8 | 8213.8 | 237.3 | 98 % | Driver.Packet 19198.2 | | 25 | 750-786 | 5 | 6785.6 | 8112.8 | 8112.8 | 8112.8 | 308.9 | 99 % | Driver.Packet 19971.9 | | 26 | 786-819 | 5 | 6774.1 | 7197.4 | 7197.4 | 7197.4 | 196.9 | 99 % | Driver.Packet 18518.5 | ``` p99 ms :.__=#-------------=-=*@@% 0-8213.8 gpu ms ._:_:=+=+++++=+=+=+++++#@* 0-308.9 ``` `sb2, baseline` **26 intervals**, 0.0 to 820.2 s, 1012 presents AMD Radeon RX 9070 XT, AMD proprietary driver 26.6.2 (LLPC), Windows 10.0.26200, 3840x2160, commit f4a3b64a6f5a (dirty) | # | seconds | presents | p50 | p90 | p99 | max | GPU busy | busiest worker | largest phase | |---|---|---|---|---|---|---|---|---|---| | 1 | 0-30 | 311 | 55.8 | 81.4 | 1167.3 | 2794.4 | 22.7 | 92 % | Driver.Packet 173.6 | | 2 | 30-60 | 270 | 111.9 | 157.8 | 724.8 | 990.9 | 40.9 | 97 % | Driver.Packet 231.5 | | 3 | 60-90 | 194 | 134.4 | 260.5 | 359.1 | 465.7 | 58.8 | 99 % | Driver.Packet 341.8 | | 4 | 90-121 | 121 | 144.3 | 542.5 | 1142.9 | 1361.7 | 45.7 | 94 % | Driver.Packet 595.8 | | 5 | 121-151 | 27 | 816.0 | 2764.9 | 3627.1 | 3627.1 | 73.9 | 95 % | Driver.Packet 3122.4 | | 6 | 151-184 | 8 | 4292.4 | 8747.5 | 8747.5 | 8747.5 | 127.6 | 98 % | Driver.Packet 10806.5 | | 7 | 184-216 | 5 | 6387.2 | 7192.2 | 7192.2 | 7192.2 | 218.4 | 99 % | Driver.Packet 16711.9 | | 8 | 216-247 | 4 | 7736.4 | 8066.0 | 8066.0 | 8066.0 | 239.4 | 99 % | Driver.Packet 19438.8 | | 9 | 247-277 | 4 | 7659.1 | 7922.3 | 7922.3 | 7922.3 | 239.2 | 99 % | Driver.Packet 19691.9 | | 10 | 277-308 | 4 | 7780.3 | 7807.1 | 7807.1 | 7807.1 | 233.3 | 99 % | Driver.Packet 19667.1 | | 11 | 308-338 | 4 | 7684.3 | 7880.1 | 7880.1 | 7880.1 | 230.3 | 99 % | Driver.Packet 19690.8 | | 12 | 338-369 | 4 | 7847.6 | 7913.9 | 7913.9 | 7913.9 | 292.6 | 99 % | Driver.Packet 19784.4 | | 13 | 369-400 | 4 | 7897.1 | 8002.8 | 8002.8 | 8002.8 | 174.6 | 99 % | Driver.Packet 20113.6 | | 14 | 400-432 | 4 | 8142.6 | 8240.3 | 8240.3 | 8240.3 | 233.2 | 99 % | Driver.Packet 20109.6 | | 15 | 432-463 | 4 | 7956.1 | 8104.3 | 8104.3 | 8104.3 | 231.7 | 99 % | Driver.Packet 19948.3 | | 16 | 463-495 | 4 | 8045.0 | 8160.6 | 8160.6 | 8160.6 | 233.7 | 99 % | Driver.Packet 20392.8 | | 17 | 495-527 | 4 | 8161.4 | 8530.6 | 8530.6 | 8530.6 | 227.2 | 99 % | Driver.Packet 20639.4 | | 18 | 527-559 | 4 | 7946.0 | 8049.8 | 8049.8 | 8049.8 | 234.5 | 99 % | Driver.Packet 20339.3 | | 19 | 559-591 | 4 | 8090.3 | 8244.6 | 8244.6 | 8244.6 | 232.2 | 99 % | Driver.Packet 20653.9 | | 20 | 591-623 | 4 | 8098.8 | 8267.9 | 8267.9 | 8267.9 | 232.3 | 99 % | Driver.Packet 20644.5 | | 21 | 623-655 | 4 | 7928.3 | 8197.2 | 8197.2 | 8197.2 | 230.6 | 99 % | Driver.Packet 20464.8 | | 22 | 655-687 | 4 | 8300.4 | 8350.4 | 8350.4 | 8350.4 | 229.5 | 99 % | Driver.Packet 20783.5 | | 23 | 687-720 | 4 | 8261.1 | 8330.0 | 8330.0 | 8330.0 | 283.3 | 99 % | Driver.Packet 20798.3 | | 24 | 720-753 | 4 | 8356.4 | 8454.3 | 8454.3 | 8454.3 | 171.5 | 99 % | Driver.Packet 21269.8 | | 25 | 753-786 | 4 | 8286.1 | 8663.8 | 8663.8 | 8663.8 | 287.5 | 99 % | Driver.Packet 21585.6 | | 26 | 786-820 | 4 | 8512.6 | 8644.4 | 8644.4 | 8644.4 | 232.5 | 99 % | Driver.Packet 21623.0 | ``` p99 ms __._=@#%%%%%%%%%@%%@%@@@@@ 0-8747.5 gpu ms __:_:=#####@+#########@+@# 0-292.6 ``` `sp2, this PR` **26 intervals**, 0.0 to 826.1 s, 1211 presents AMD Radeon RX 9070 XT, AMD proprietary driver 26.6.2 (LLPC), Windows 10.0.26200, 3840x2160, commit 03e4e8025d0b (dirty) | # | seconds | presents | p50 | p90 | p99 | max | GPU busy | busiest worker | largest phase | |---|---|---|---|---|---|---|---|---|---| | 1 | 0-30 | 410 | 48.2 | 82.3 | 896.2 | 2660.2 | 13.5 | 90 % | Driver.Packet 113.0 | | 2 | 30-60 | 311 | 58.7 | 126.7 | 420.2 | 1037.0 | 37.6 | 96 % | Driver.Packet 195.2 | | 3 | 60-90 | 191 | 136.3 | 268.5 | 459.0 | 604.1 | 61.8 | 98 % | Driver.Packet 340.5 | | 4 | 90-121 | 126 | 146.0 | 507.3 | 1186.2 | 1413.5 | 50.3 | 91 % | Driver.Packet 549.6 | | 5 | 121-154 | 28 | 851.5 | 2951.3 | 4205.3 | 4205.3 | 71.6 | 95 % | Driver.Packet 3256.3 | | 6 | 154-186 | 14 | 1756.5 | 4527.6 | 6098.8 | 6098.8 | 135.6 | 97 % | Driver.Packet 6389.2 | | 7 | 186-218 | 7 | 4597.7 | 5227.2 | 5227.2 | 5227.2 | 200.8 | 99 % | Driver.Packet 12371.9 | | 8 | 218-250 | 8 | 4057.6 | 4232.4 | 4232.4 | 4232.4 | 229.8 | 99 % | Driver.Packet 10954.1 | | 9 | 250-283 | 8 | 4108.9 | 4522.0 | 4522.0 | 4522.0 | 179.5 | 99 % | Driver.Packet 11152.9 | | 10 | 283-317 | 8 | 4177.7 | 4305.2 | 4305.2 | 4305.2 | 227.2 | 99 % | Driver.Packet 11263.1 | | 11 | 317-351 | 8 | 4253.4 | 4622.3 | 4622.3 | 4622.3 | 177.7 | 99 % | Driver.Packet 11508.9 | | 12 | 351-382 | 7 | 4588.0 | 4990.0 | 4990.0 | 4990.0 | 203.3 | 99 % | Driver.Packet 12270.2 | | 13 | 382-416 | 7 | 4899.5 | 5239.2 | 5239.2 | 5239.2 | 210.0 | 99 % | Driver.Packet 13258.3 | | 14 | 416-447 | 6 | 5136.7 | 5486.4 | 5486.4 | 5486.4 | 247.8 | 99 % | Driver.Packet 13841.4 | | 15 | 447-477 | 6 | 5348.7 | 5454.6 | 5454.6 | 5454.6 | 209.9 | 99 % | Driver.Packet 13788.3 | | 16 | 477-508 | 6 | 5353.2 | 5468.3 | 5468.3 | 5468.3 | 208.5 | 99 % | Driver.Packet 13998.4 | | 17 | 508-540 | 6 | 5506.9 | 5854.3 | 5854.3 | 5854.3 | 211.9 | 99 % | Driver.Packet 14387.5 | | 18 | 540-571 | 6 | 5314.6 | 5539.3 | 5539.3 | 5539.3 | 209.9 | 99 % | Driver.Packet 14276.9 | | 19 | 571-603 | 6 | 5376.8 | 5446.7 | 5446.7 | 5446.7 | 211.3 | 99 % | Driver.Packet 14552.6 | | 20 | 603-634 | 6 | 5248.0 | 5306.3 | 5306.3 | 5306.3 | 209.4 | 99 % | Driver.Packet 14261.1 | | 21 | 634-666 | 6 | 5390.7 | 5484.8 | 5484.8 | 5484.8 | 177.3 | 99 % | Driver.Packet 14400.2 | | 22 | 666-698 | 6 | 5341.6 | 5561.1 | 5561.1 | 5561.1 | 211.2 | 99 % | Driver.Packet 14458.8 | | 23 | 698-729 | 6 | 5360.9 | 5770.9 | 5770.9 | 5770.9 | 208.4 | 99 % | Driver.Packet 14424.2 | | 24 | 729-761 | 6 | 5311.8 | 5618.2 | 5618.2 | 5618.2 | 244.5 | 99 % | Driver.Packet 14608.5 | | 25 | 761-794 | 6 | 5458.3 | 5541.4 | 5541.4 | 5541.4 | 206.0 | 99 % | Driver.Packet 14674.6 | | 26 | 794-826 | 6 | 5382.2 | 5792.8 | 5792.8 | 5792.8 | 212.0 | 99 % | Driver.Packet 14874.7 | ``` p99 ms ___:*@%*#*##%%%%@%%%%%@%%@ 0-6098.8 gpu ms ._::-+#%#%*#%@%%%%%%*%%@#% 0-247.8 ``` `sp3, this PR` **26 intervals**, 0.0 to 820.1 s, 1380 presents AMD Radeon RX 9070 XT, AMD proprietary driver 26.6.2 (LLPC), Windows 10.0.26200, 3840x2160, commit 03e4e8025d0b (dirty) | # | seconds | presents | p50 | p90 | p99 | max | GPU busy | busiest worker | largest phase | |---|---|---|---|---|---|---|---|---|---| | 1 | 0-30 | 365 | 16.8 | 62.1 | 1735.6 | 2538.1 | 9.4 | 92 % | Driver.Packet 120.8 | | 2 | 30-60 | 367 | 54.7 | 120.0 | 465.8 | 1242.7 | 30.3 | 96 % | Driver.Packet 159.7 | | 3 | 60-90 | 203 | 128.4 | 257.0 | 405.6 | 583.4 | 58.6 | 99 % | Driver.Packet 319.5 | | 4 | 90-120 | 128 | 137.1 | 570.3 | 1160.1 | 1646.6 | 49.3 | 91 % | Driver.Packet 528.7 | | 5 | 120-152 | 35 | 630.2 | 1545.6 | 3106.5 | 3106.5 | 69.7 | 95 % | Driver.Packet 2487.7 | | 6 | 152-183 | 26 | 1120.3 | 1526.8 | 2356.7 | 2356.7 | 125.9 | 94 % | Driver.Packet 3178.8 | | 7 | 183-214 | 30 | 987.0 | 1298.0 | 1366.9 | 1366.9 | 134.8 | 97 % | Driver.Packet 2802.0 | | 8 | 214-245 | 30 | 933.8 | 1195.3 | 1490.3 | 1490.3 | 129.2 | 97 % | Driver.Packet 2722.7 | | 9 | 245-275 | 30 | 1016.6 | 1192.4 | 1487.7 | 1487.7 | 127.2 | 96 % | Driver.Packet 2754.9 | | 10 | 275-306 | 29 | 1076.4 | 1306.7 | 1340.9 | 1340.9 | 128.3 | 97 % | Driver.Packet 2893.7 | | 11 | 306-337 | 20 | 1125.2 | 4562.9 | 5457.8 | 5457.8 | 131.4 | 97 % | Driver.Packet 4081.8 | | 12 | 337-367 | 13 | 2324.8 | 2678.5 | 2726.2 | 2726.2 | 136.0 | 98 % | Driver.Packet 6380.9 | | 13 | 367-398 | 14 | 2227.1 | 2410.3 | 2489.8 | 2489.8 | 162.4 | 98 % | Driver.Packet 6083.1 | | 14 | 398-430 | 13 | 2376.9 | 2886.9 | 2991.8 | 2991.8 | 173.6 | 98 % | Driver.Packet 6624.3 | | 15 | 430-460 | 13 | 2323.5 | 2575.3 | 2577.0 | 2577.0 | 161.2 | 98 % | Driver.Packet 6363.7 | | 16 | 460-491 | 13 | 2339.9 | 2641.2 | 2645.9 | 2645.9 | 160.2 | 98 % | Driver.Packet 6454.7 | | 17 | 491-525 | 12 | 2470.8 | 3539.2 | 4820.0 | 4820.0 | 147.8 | 98 % | Driver.Packet 7802.7 | | 18 | 525-556 | 5 | 6249.4 | 6681.8 | 6681.8 | 6681.8 | 204.8 | 99 % | Driver.Packet 17135.4 | | 19 | 556-588 | 5 | 6575.5 | 6904.3 | 6904.3 | 6904.3 | 237.8 | 99 % | Driver.Packet 18222.9 | | 20 | 588-620 | 5 | 6287.3 | 6689.4 | 6689.4 | 6689.4 | 231.8 | 99 % | Driver.Packet 17590.0 | | 21 | 620-652 | 5 | 6383.8 | 6811.7 | 6811.7 | 6811.7 | 271.4 | 99 % | Driver.Packet 18000.1 | | 22 | 652-683 | 5 | 6587.7 | 7036.2 | 7036.2 | 7036.2 | 225.4 | 99 % | Driver.Packet 16653.5 | | 23 | 683-721 | 3 | 13294.8 | 20820.4 | 20820.4 | 20820.4 | 106.8 | 98 % | Driver.Packet 34036.9 | | 24 | 721-751 | 3 | 9701.3 | 11387.1 | 11387.1 | 11387.1 | 336.0 | 99 % | Driver.Packet 28166.4 | | 25 | 751-786 | 4 | 8604.6 | 9631.8 | 9631.8 | 9631.8 | 289.3 | 99 % | Driver.Packet 24643.8 | | 26 | 786-820 | 4 | 8574.6 | 8841.9 | 8841.9 | 8841.9 | 290.9 | 99 % | Driver.Packet 23781.5 | ``` p99 ms _.._______:_____:-----@+== 0-20820.4 gpu ms ._:_:-=---===+===+**#*-@%% 0-336.0 ``` </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: AMD Radeon RX 9070 XT, AMD proprietary driver 26.6.2, Windows 11 10.0.26200 - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
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!15919
No description provided.