perf(libkernel): find direct-memory aliases through the physical index #7468

Merged
Dripl1x merged 2 commits from upstream-pr/7468 into main 2026-10-21 00:57:13 +00:00
Dripl1x commented 2026-10-18 08:47:11 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Dripl1x on 2026-10-18T08:47:11Z.


What

This PR is part of a series of graphics and memory-management performance improvements for AnyPS5, with SuperTuxKart as the main profiling workload. This is item 05/10; the UI Lab startup/cache fix follows as a separate eleventh PR. Each topic's measurements are distinguished from the combined result.

Use the existing physical-span index to select direct-memory aliases that must be unpinned before a mapping changes. Collect overlapping virtual mappings under the existing lock and wait for their leases outside that lock.

Tested

Pinned benchmark base: 6447ed1ed7fd11c7eef60df336e8d66fac271188. Tested topic snapshot: d2ca227e8f3230cb0b733608ab3fd84cdd9336a9. Windows 11 Pro build 26300, Ryzen 7 5800H, RTX 3070 Laptop, NVIDIA 617.42. Frozen runtime module hashes and raw traces were verified. No opt-in optimization flags are required.

2/2 targeted memory cases passed. Coverage includes a live lease delaying physical alias creation, coherence of overlapping aliases, partial removal, release across 48 reverse-ordered pieces and concurrent access while resident runs split.

SuperTuxKart captures for the bot's before/after requirement: Windows 11 Pro build 26300, Ryzen 7 5800H, RTX 3070 Laptop GPU, NVIDIA 617.42, WinLibs GCC 15.2.0 r7, Release; 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:8 with APS5_TRACE_EVENTS=1048576, console output not redirected, no profiling switches; 2026-10-18, two captures per side, order main, PR, main, PR.

Capture Build Commit FPS p50 / p90 / p99 ms
required1018-main-6447 main 6447ed1ed7fd 6447ed1ed7fd 9.584 103.2 / 111.2 / 116.8
required1018-main-6447-awake-r2 main 6447ed1ed7fd 6447ed1ed7fd 9.528 103.9 / 112.2 / 121.1
required1018-7468 this PR 709520ddabbe 8.701 101.3 / 162.0 / 256.7
required1018-7468-awake-r2 this PR 709520ddabbe 9.863 101.1 / 104.8 / 111.3

The FPS difference is within the run-to-run spread of main; this PR claims no FPS change. What it saves is shown under Where it helps.

Summary lines (main first, then this PR)
{"commit":"6447ed1ed7fd","dirty":false,"env":{"APS5_TRACE_SECONDS":"20:8"},"gpu":"NVIDIA GeForce RTX 3070 Laptop GPU","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","resolution":"1920x1080","window":{"spec":"seconds 20:8","first_present":42,"ms":8034.483},"presents":77,"frame_ms":{"p50":103.246,"p90":111.156,"p99":116.826,"max":116.826},"gpu_busy_ms_per_present":5.271,"worker_busy_pct":{"queue worker 0x0":3.148},"top_phases_ms_per_frame":{"Driver.Packet":3.234,"Driver.Packet.draw":2.618,"Driver.Draw":2.562,"Driver.Draw.shader_compile_and_link":1.512,"Driver.Present":0.815,"Shader.DrawStage":0.813,"Driver.Present.queue_present":0.547,"Vulkan.QueuePresent":0.545},"trace_dropped":false,"trace":"aps5-trace-6447ed1ed7fd-21748.json.gz"}
{"commit":"6447ed1ed7fd","dirty":false,"env":{"APS5_TRACE_SECONDS":"20:8"},"gpu":"NVIDIA GeForce RTX 3070 Laptop GPU","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","resolution":"1920x1080","window":{"spec":"seconds 20:8","first_present":45,"ms":8081.323},"presents":77,"frame_ms":{"p50":103.882,"p90":112.153,"p99":121.116,"max":121.116},"gpu_busy_ms_per_present":5.214,"worker_busy_pct":{"queue worker 0x0":3.193},"top_phases_ms_per_frame":{"Driver.Packet":3.301,"Driver.Packet.draw":2.672,"Driver.Draw":2.617,"Driver.Draw.shader_compile_and_link":1.540,"Driver.Present":0.839,"Shader.DrawStage":0.828,"Driver.Present.queue_present":0.571,"Vulkan.QueuePresent":0.566},"trace_dropped":false,"trace":"aps5-trace-6447ed1ed7fd-38428.json.gz"}
{"commit":"709520ddabbe","dirty":false,"env":{"APS5_TRACE_SECONDS":"20:8"},"gpu":"NVIDIA GeForce RTX 3070 Laptop GPU","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","resolution":"1920x1080","window":{"spec":"seconds 20:8","first_present":47,"ms":8044.630},"presents":70,"frame_ms":{"p50":101.312,"p90":161.968,"p99":256.690,"max":256.690},"gpu_busy_ms_per_present":5.368,"worker_busy_pct":{"queue worker 0x0":3.482},"top_phases_ms_per_frame":{"Driver.Packet":3.938,"Driver.Packet.draw":3.205,"Driver.Draw":3.131,"Driver.Draw.shader_compile_and_link":1.833,"GpuMutex.wait.flush":1.349,"Shader.DrawStage":0.965,"Driver.Present":0.926,"Shader.DrawStage.capture_resources":0.637},"trace_dropped":false,"trace":"aps5-trace-709520ddabbe-30776.json.gz"}
{"commit":"709520ddabbe","dirty":false,"env":{"APS5_TRACE_SECONDS":"20:8"},"gpu":"NVIDIA GeForce RTX 3070 Laptop GPU","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","resolution":"1920x1080","window":{"spec":"seconds 20:8","first_present":47,"ms":8009.642},"presents":79,"frame_ms":{"p50":101.097,"p90":104.770,"p99":111.269,"max":111.269},"gpu_busy_ms_per_present":5.357,"worker_busy_pct":{"queue worker 0x0":3.090},"top_phases_ms_per_frame":{"Driver.Packet":3.087,"Driver.Packet.draw":2.497,"Driver.Draw":2.447,"Driver.Draw.shader_compile_and_link":1.462,"Driver.Present":0.862,"Shader.DrawStage":0.803,"Driver.Present.queue_present":0.549,"Vulkan.QueuePresent":0.547},"trace_dropped":false,"trace":"aps5-trace-709520ddabbe-42088.json.gz"}
tools/performance_compare.py (first capture of each side)

Performance comparison

Capture Commit Trace Presents Window (ms)
baseline 6447ed1ed7 aps5-trace-6447ed1ed7fd-21748.json.gz 77 8034.483
candidate 709520ddab aps5-trace-709520ddabbe-30776.json.gz 70 8044.630
  • Compare captures from the same machine, title and scene; summaries do not record the CPU, title or scene.
  • Changes are candidate minus baseline. A negative frame-time change means a shorter frame interval.
  • A missing top phase is unreported, not zero; its change is unavailable.
  • Recorded configuration differs; these measurements do not isolate the code change.

Configuration differences

Setting Baseline Candidate
window.first_present 42 47

Frame and GPU times (ms)

Metric Baseline Candidate Change Change (%)
frame_ms.p50 103.246 101.312 -1.934 -1.873
frame_ms.p90 111.156 161.968 +50.812 +45.712
frame_ms.p99 116.826 256.690 +139.864 +119.720
frame_ms.max 116.826 256.690 +139.864 +119.720
mean_frame_ms 104.344 114.923 +10.579 +10.139
gpu_busy_ms_per_present 5.271 5.368 +0.097 +1.840

Top phases (ms per frame)

Metric Baseline Candidate Change Change (%)
Driver.Draw 2.562 3.131 +0.569 +22.209
Driver.Draw.shader_compile_and_link 1.512 1.833 +0.321 +21.230
Driver.Packet 3.234 3.938 +0.704 +21.769
Driver.Packet.draw 2.618 3.205 +0.587 +22.422
Driver.Present 0.815 0.926 +0.111 +13.620
Driver.Present.queue_present 0.547 n/a n/a n/a
GpuMutex.wait.flush n/a 1.349 n/a n/a
Shader.DrawStage 0.813 0.965 +0.152 +18.696
Shader.DrawStage.capture_resources n/a 0.637 n/a n/a
Vulkan.QueuePresent 0.545 n/a n/a n/a
tools/trace_digest.py output (first capture of each side; all digests are in the evidence archive)

required1018-main-6447

seconds 20:8 from present 42: 77 presents, frame p50 103.2 / p90 111.2 / p99 116.8 / max 116.8 ms, GPU busy 5.3 ms per present
NVIDIA GeForce RTX 3070 Laptop GPU, NVIDIA 617.42, Windows 10.0.26300, 1920x1080, commit 6447ed1ed7, dropped: no

{"commit":"6447ed1ed7fd","dirty":false,"env":{"APS5_TRACE_SECONDS":"20:8"},"gpu":"NVIDIA GeForce RTX 3070 Laptop GPU","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","resolution":"1920x1080","window":{"spec":"seconds 20:8","first_present":42,"ms":8034.483},"presents":77,"frame_ms":{"p50":103.246,"p90":111.156,"p99":116.826,"max":116.826},"gpu_busy_ms_per_present":5.271,"worker_busy_pct":{"queue worker 0x0":3.148},"top_phases_ms_per_frame":{"Driver.Packet":3.234,"Driver.Packet.draw":2.618,"Driver.Draw":2.562,"Driver.Draw.shader_compile_and_link":1.512,"Driver.Present":0.815,"Shader.DrawStage":0.813,"Driver.Present.queue_present":0.547,"Vulkan.QueuePresent":0.545},"trace_dropped":false,"trace":"aps5-trace-6447ed1ed7fd-21748.json.gz"}

Slowest frames (largest slices inside each, inclusive)

  • present 67: 116.8 ms at 2551 ms: Driver.WorkerWait (queue worker 0x0) 111.9, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x0) 111.8, batch (gpu) 5.3, Driver.Packet (queue worker 0x0) 3.6
  • present 68: 115.8 ms at 2668 ms: Driver.WorkerWait (queue worker 0x0) 110.8, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x0) 110.6, batch (gpu) 5.3, Driver.Packet (queue worker 0x0) 3.7
  • present 97: 112.3 ms at 5756 ms: Driver.WorkerWait (queue worker 0x0) 107.7, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x0) 107.6, batch (gpu) 5.2, Driver.Packet (queue worker 0x0) 3.3

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
queue worker 0x0 2.6 (2 %) 100.7 (97 %) 1.0 3.9 Driver.Packet 2.6, Driver.EndSubmission 0.0
presenter 0.8 (1 %) 0.0 (0 %) 103.5 0.1 Driver.Present 0.8
gpu 5.3 (5 %) 0.0 (0 %) 99.1 0.0 batch 5.3

required1018-7468

seconds 20:8 from present 47: 70 presents, frame p50 101.3 / p90 162.0 / p99 256.7 / max 256.7 ms, GPU busy 5.4 ms per present
NVIDIA GeForce RTX 3070 Laptop GPU, NVIDIA 617.42, Windows 10.0.26300, 1920x1080, commit 709520ddab, dropped: no

{"commit":"709520ddabbe","dirty":false,"env":{"APS5_TRACE_SECONDS":"20:8"},"gpu":"NVIDIA GeForce RTX 3070 Laptop GPU","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","resolution":"1920x1080","window":{"spec":"seconds 20:8","first_present":47,"ms":8044.63},"presents":70,"frame_ms":{"p50":101.312,"p90":161.968,"p99":256.69,"max":256.69},"gpu_busy_ms_per_present":5.368,"worker_busy_pct":{"queue worker 0x0":3.482},"top_phases_ms_per_frame":{"Driver.Packet":3.938,"Driver.Packet.draw":3.205,"Driver.Draw":3.131,"Driver.Draw.shader_compile_and_link":1.833,"GpuMutex.wait.flush":1.349,"Shader.DrawStage":0.965,"Driver.Present":0.926,"Shader.DrawStage.capture_resources":0.637},"trace_dropped":false,"trace":"aps5-trace-709520ddabbe-30776.json.gz"}

Slowest frames (largest slices inside each, inclusive)

  • present 90: 256.7 ms at 4314 ms: Driver.WorkerWait (queue worker 0x0) 253.1, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x0) 253.0, GpuMutex.wait.flush (queue worker 0x0) 94.4, batch (gpu) 8.3
  • present 91: 186.0 ms at 4571 ms: Driver.WorkerWait (queue worker 0x0) 177.7, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x0) 177.4, Driver.Packet (queue worker 0x0) 6.2, Driver.Packet.draw (queue worker 0x0) 5.9
  • present 96: 178.6 ms at 5417 ms: Driver.WorkerWait (queue worker 0x0) 170.8, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x0) 170.7, Driver.Packet (queue worker 0x0) 5.8, Driver.Packet.draw (queue worker 0x0) 5.7

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
queue worker 0x0 3.2 (3 %) 110.5 (96 %) 1.2 4.2 Driver.Packet 3.2, Driver.EndSubmission 0.0
presenter 0.9 (1 %) 0.1 (0 %) 114.0 0.1 Driver.Present 0.9
gpu 5.4 (5 %) 0.0 (0 %) 109.6 0.0 batch 5.4

Where it helps

The title allocates, maps and releases about 48 direct-memory blocks per frame; every release asks RequireAliasesUnpinned for the aliases of the physical range. On main that scans every direct mapping; with this PR it walks the physical index.

Measured main 2185dbf92e main + series
RequireAliasesUnpinned calls per frame 48.6 47.9
RequireAliasesUnpinned µs per call 54.18 0.21
RequireAliasesUnpinned ms per frame 2.63 0.01

Counters come from a local probe build that is not part of this PR (review-probe.patch in the evidence archive): the same counters and timers were inserted into main 2185dbf92e and into main with all eleven series PRs merged (#7464 in its rebased form), anchored on function definitions present in both trees. Runs were in the mirrored order main, series with #7464 reduced to its wake only, series, series, reduced series, main, in the scene above with APS5_PROFILE_DRAW=1; values are medians of two runs over the same 8-second window as the trace, starting 20 s after the first flip, per flip. These runs carry profiling overhead and are not used for FPS. Each optimised function below is changed by this PR only; counters show where the work goes, not an isolated FPS gain.

Other homebrew checks

Workload Control FPS This topic FPS Scope
vkQuake N/A N/A Earlier compatibility capture; no matched FPS claim here
Syobon Action N/A N/A Earlier compatibility capture; no matched FPS claim here
Middle Ages Ping Pong N/A N/A Earlier compatibility capture; no matched FPS claim here

UI Lab: the 21 default concepts were rendered and visually reviewed in a navigation cycle for this topic. Artwork was present; this covers default navigation, not all themes or every widget interaction.

Known baseline rendering issue: vkQuake still has intermittent flickering and an intermittently black floor on main and the tested performance branches. These changes do not fix it. Yamagi Quake II gameplay stops at unsupported last-provoking-vertex flat interpolation, and UZDoom at unsupported clip/cull-distance handling on the baseline; neither supplies a valid gameplay FPS comparison.

Dependencies, series and overlap

#7448 changes release ordering to unmap views before returning physical pages. This topic only selects aliases through the physical index; it does not fix that separate lifetime race.

The project overlap scan compared the local topics against 785 open PRs and checked merges into main e5c2b3c325e485ba7fd417c47c46f48aa2c89115. This topic merges cleanly in that snapshot. Some other PRs already conflict with main, so the tool cannot compare all their shared-file hunks; the full report is retained with the common series evidence package. No exact duplicate was identified in the inspected implementations. This is not a certification that every conflicting foreign branch is composition-tested.

Conventions and whitespace checks passed for the tested topic range. The benchmark base remains pinned for comparability; this is not a fresh-current-main build/test claim. Measurements and focused tests refer to the pinned source revisions above; no full-suite CI run is claimed.

Re-checked on 2026-10-21: this head still merges cleanly into main 2185dbf92e. #6658, which the earlier combined runs carried, merged into main on 2026-10-20.

Combined series result

Re-measured on 2026-10-21 on current main 2185dbf92e (Windows 11 Pro build 26300, Ryzen 7 5800H, RTX 3070 Laptop GPU, NVIDIA 617.42, WinLibs GCC 15.2.0 r7, Release; 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:8 with APS5_TRACE_EVENTS=1048576, console output not redirected, no profiling switches). Runs in the order A-B-C-D-D-C-B-A, two per configuration; FPS is presents over the 8-s window.

Configuration FPS, run 1 / run 2
main 2185dbf92e 9.18 / 9.03
main + #7464 + #7465 20.85 / 22.02
main + all eleven PRs of the series 29.01 / 28.70

#7464 and #7465 make the largest step together: the title's per-frame host imports disappear (see their PRs). With #7464 reduced to its CPU-label wake only, the whole series measured 10.07 / 9.01 FPS against main 9.24 / 9.30 in a separate block of the same session. Combined numbers are not the gain of any single PR. The combined builds are local merges of the published (#7465-#7470, #7472, #7474) and rebased (#7464, #7471, #7473) heads into main 2185dbf92e; the commits in their summary lines are those merges, not pushed. Summary lines, traces and digests: series-evidence.zip.

Checklist

  • Based on pinned main 6447ed1ed7fd; merges cleanly into current main 2185dbf92e (git merge-tree, 2026-10-21); related overlaps are listed above
  • 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: n/a (library-only change; game test hardware above)
  • AI-assisted: yes

The published head adds publication metadata only; its complete source tree is identical to the tested snapshot above.

Series index

These are the ten performance topics from the same profiling effort, followed by a separate UI Lab cache-preservation fix. Membership in the series does not imply a dependency.

Item Pull request Required dependency
01 #7464: perf(agc): keep unimported label stores on the CPU #6658
02 #7465: perf(agc): defer small host imports until first GPU use none
03 #7466: perf(agc): validate host imports through their registered owner none
04 #7467: perf(libc): avoid repeated Windows path component scans none
05 #7468: perf(libkernel): find direct-memory aliases through the physical index none
06 #7469: perf(libkernel): find free direct-memory ranges in allocation order none
07 #7470: perf(libc): release exact resident mappings without repeated queries none
08 #7471: perf(libc): collect resident writes directly into the output buffer none
09 #7472: perf(libc): reuse saved direct-memory buffers when unreferenced none
10 #7473: perf(libc): skip write-watch queries for proven clean resident ranges #7471
11 #7474: fix(agc): preserve pipeline caches on immediate guest exit none

Reproduction evidence

Series traces, summary lines, module hashes, focused-test logs and UI contact sheets. Game measurements use the pinned base and source revisions described above; assets contain no game binaries.

Update of 2026-10-21: 7468-evidence.zip (traces, summary lines, trace_digest.py and performance_compare.py output, loaded-module hashes), counters where.json and the probe review-probe.patch with probe_window.py.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4907701774 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7468). Originally posted by [Dripl1x](https://github.com/Dripl1x) on 2026-10-18T08:47:11Z. --- ### What This PR is part of a series of graphics and memory-management performance improvements for AnyPS5, with SuperTuxKart as the main profiling workload. This is **item 05/10**; the UI Lab startup/cache fix follows as a separate eleventh PR. Each topic's measurements are distinguished from the combined result. Use the existing physical-span index to select direct-memory aliases that must be unpinned before a mapping changes. Collect overlapping virtual mappings under the existing lock and wait for their leases outside that lock. ### Tested Pinned benchmark base: `6447ed1ed7fd11c7eef60df336e8d66fac271188`. Tested topic snapshot: `d2ca227e8f3230cb0b733608ab3fd84cdd9336a9`. Windows 11 Pro build 26300, Ryzen 7 5800H, RTX 3070 Laptop, NVIDIA 617.42. Frozen runtime module hashes and raw traces were verified. No opt-in optimization flags are required. 2/2 targeted memory cases passed. Coverage includes a live lease delaying physical alias creation, coherence of overlapping aliases, partial removal, release across 48 reverse-ordered pieces and concurrent access while resident runs split. SuperTuxKart captures for the bot's before/after requirement: Windows 11 Pro build 26300, Ryzen 7 5800H, RTX 3070 Laptop GPU, NVIDIA 617.42, WinLibs GCC 15.2.0 r7, Release; 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:8` with `APS5_TRACE_EVENTS=1048576`, console output not redirected, no profiling switches; 2026-10-18, two captures per side, order main, PR, main, PR. | Capture | Build | Commit | FPS | p50 / p90 / p99 ms | |---|---|---|---:|---| | `required1018-main-6447` | main `6447ed1ed7fd` | `6447ed1ed7fd` | 9.584 | 103.2 / 111.2 / 116.8 | | `required1018-main-6447-awake-r2` | main `6447ed1ed7fd` | `6447ed1ed7fd` | 9.528 | 103.9 / 112.2 / 121.1 | | `required1018-7468` | this PR | `709520ddabbe` | 8.701 | 101.3 / 162.0 / 256.7 | | `required1018-7468-awake-r2` | this PR | `709520ddabbe` | 9.863 | 101.1 / 104.8 / 111.3 | The FPS difference is within the run-to-run spread of main; this PR claims no FPS change. What it saves is shown under **Where it helps**. <details> <summary>Summary lines (main first, then this PR)</summary> ```json {"commit":"6447ed1ed7fd","dirty":false,"env":{"APS5_TRACE_SECONDS":"20:8"},"gpu":"NVIDIA GeForce RTX 3070 Laptop GPU","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","resolution":"1920x1080","window":{"spec":"seconds 20:8","first_present":42,"ms":8034.483},"presents":77,"frame_ms":{"p50":103.246,"p90":111.156,"p99":116.826,"max":116.826},"gpu_busy_ms_per_present":5.271,"worker_busy_pct":{"queue worker 0x0":3.148},"top_phases_ms_per_frame":{"Driver.Packet":3.234,"Driver.Packet.draw":2.618,"Driver.Draw":2.562,"Driver.Draw.shader_compile_and_link":1.512,"Driver.Present":0.815,"Shader.DrawStage":0.813,"Driver.Present.queue_present":0.547,"Vulkan.QueuePresent":0.545},"trace_dropped":false,"trace":"aps5-trace-6447ed1ed7fd-21748.json.gz"} {"commit":"6447ed1ed7fd","dirty":false,"env":{"APS5_TRACE_SECONDS":"20:8"},"gpu":"NVIDIA GeForce RTX 3070 Laptop GPU","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","resolution":"1920x1080","window":{"spec":"seconds 20:8","first_present":45,"ms":8081.323},"presents":77,"frame_ms":{"p50":103.882,"p90":112.153,"p99":121.116,"max":121.116},"gpu_busy_ms_per_present":5.214,"worker_busy_pct":{"queue worker 0x0":3.193},"top_phases_ms_per_frame":{"Driver.Packet":3.301,"Driver.Packet.draw":2.672,"Driver.Draw":2.617,"Driver.Draw.shader_compile_and_link":1.540,"Driver.Present":0.839,"Shader.DrawStage":0.828,"Driver.Present.queue_present":0.571,"Vulkan.QueuePresent":0.566},"trace_dropped":false,"trace":"aps5-trace-6447ed1ed7fd-38428.json.gz"} {"commit":"709520ddabbe","dirty":false,"env":{"APS5_TRACE_SECONDS":"20:8"},"gpu":"NVIDIA GeForce RTX 3070 Laptop GPU","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","resolution":"1920x1080","window":{"spec":"seconds 20:8","first_present":47,"ms":8044.630},"presents":70,"frame_ms":{"p50":101.312,"p90":161.968,"p99":256.690,"max":256.690},"gpu_busy_ms_per_present":5.368,"worker_busy_pct":{"queue worker 0x0":3.482},"top_phases_ms_per_frame":{"Driver.Packet":3.938,"Driver.Packet.draw":3.205,"Driver.Draw":3.131,"Driver.Draw.shader_compile_and_link":1.833,"GpuMutex.wait.flush":1.349,"Shader.DrawStage":0.965,"Driver.Present":0.926,"Shader.DrawStage.capture_resources":0.637},"trace_dropped":false,"trace":"aps5-trace-709520ddabbe-30776.json.gz"} {"commit":"709520ddabbe","dirty":false,"env":{"APS5_TRACE_SECONDS":"20:8"},"gpu":"NVIDIA GeForce RTX 3070 Laptop GPU","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","resolution":"1920x1080","window":{"spec":"seconds 20:8","first_present":47,"ms":8009.642},"presents":79,"frame_ms":{"p50":101.097,"p90":104.770,"p99":111.269,"max":111.269},"gpu_busy_ms_per_present":5.357,"worker_busy_pct":{"queue worker 0x0":3.090},"top_phases_ms_per_frame":{"Driver.Packet":3.087,"Driver.Packet.draw":2.497,"Driver.Draw":2.447,"Driver.Draw.shader_compile_and_link":1.462,"Driver.Present":0.862,"Shader.DrawStage":0.803,"Driver.Present.queue_present":0.549,"Vulkan.QueuePresent":0.547},"trace_dropped":false,"trace":"aps5-trace-709520ddabbe-42088.json.gz"} ``` </details> <details> <summary><code>tools/performance_compare.py</code> (first capture of each side)</summary> **Performance comparison** | Capture | Commit | Trace | Presents | Window (ms) | | --- | --- | --- | ---: | ---: | | baseline | 6447ed1ed7fd | aps5-trace-6447ed1ed7fd-21748.json.gz | 77 | 8034.483 | | candidate | 709520ddabbe | aps5-trace-709520ddabbe-30776.json.gz | 70 | 8044.630 | - Compare captures from the same machine, title and scene; summaries do not record the CPU, title or scene. - Changes are candidate minus baseline. A negative frame-time change means a shorter frame interval. - A missing top phase is unreported, not zero; its change is unavailable. - Recorded configuration differs; these measurements do not isolate the code change. **Configuration differences** | Setting | Baseline | Candidate | | --- | --- | --- | | window.first_present | 42 | 47 | **Frame and GPU times (ms)** | Metric | Baseline | Candidate | Change | Change (%) | | --- | ---: | ---: | ---: | ---: | | frame_ms.p50 | 103.246 | 101.312 | -1.934 | -1.873 | | frame_ms.p90 | 111.156 | 161.968 | +50.812 | +45.712 | | frame_ms.p99 | 116.826 | 256.690 | +139.864 | +119.720 | | frame_ms.max | 116.826 | 256.690 | +139.864 | +119.720 | | mean_frame_ms | 104.344 | 114.923 | +10.579 | +10.139 | | gpu_busy_ms_per_present | 5.271 | 5.368 | +0.097 | +1.840 | **Top phases (ms per frame)** | Metric | Baseline | Candidate | Change | Change (%) | | --- | ---: | ---: | ---: | ---: | | Driver.Draw | 2.562 | 3.131 | +0.569 | +22.209 | | Driver.Draw.shader_compile_and_link | 1.512 | 1.833 | +0.321 | +21.230 | | Driver.Packet | 3.234 | 3.938 | +0.704 | +21.769 | | Driver.Packet.draw | 2.618 | 3.205 | +0.587 | +22.422 | | Driver.Present | 0.815 | 0.926 | +0.111 | +13.620 | | Driver.Present.queue_present | 0.547 | n/a | n/a | n/a | | GpuMutex.wait.flush | n/a | 1.349 | n/a | n/a | | Shader.DrawStage | 0.813 | 0.965 | +0.152 | +18.696 | | Shader.DrawStage.capture_resources | n/a | 0.637 | n/a | n/a | | Vulkan.QueuePresent | 0.545 | n/a | n/a | n/a | </details> <details> <summary><code>tools/trace_digest.py</code> output (first capture of each side; all digests are in the evidence archive)</summary> `required1018-main-6447` **seconds 20:8** from present 42: 77 presents, frame p50 103.2 / p90 111.2 / p99 116.8 / max 116.8 ms, GPU busy 5.3 ms per present NVIDIA GeForce RTX 3070 Laptop GPU, NVIDIA 617.42, Windows 10.0.26300, 1920x1080, commit 6447ed1ed7fd, dropped: no ```json {"commit":"6447ed1ed7fd","dirty":false,"env":{"APS5_TRACE_SECONDS":"20:8"},"gpu":"NVIDIA GeForce RTX 3070 Laptop GPU","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","resolution":"1920x1080","window":{"spec":"seconds 20:8","first_present":42,"ms":8034.483},"presents":77,"frame_ms":{"p50":103.246,"p90":111.156,"p99":116.826,"max":116.826},"gpu_busy_ms_per_present":5.271,"worker_busy_pct":{"queue worker 0x0":3.148},"top_phases_ms_per_frame":{"Driver.Packet":3.234,"Driver.Packet.draw":2.618,"Driver.Draw":2.562,"Driver.Draw.shader_compile_and_link":1.512,"Driver.Present":0.815,"Shader.DrawStage":0.813,"Driver.Present.queue_present":0.547,"Vulkan.QueuePresent":0.545},"trace_dropped":false,"trace":"aps5-trace-6447ed1ed7fd-21748.json.gz"} ``` **Slowest frames** (largest slices inside each, inclusive) - present 67: 116.8 ms at 2551 ms: Driver.WorkerWait (queue worker 0x0) 111.9, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x0) 111.8, batch (gpu) 5.3, Driver.Packet (queue worker 0x0) 3.6 - present 68: 115.8 ms at 2668 ms: Driver.WorkerWait (queue worker 0x0) 110.8, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x0) 110.6, batch (gpu) 5.3, Driver.Packet (queue worker 0x0) 3.7 - present 97: 112.3 ms at 5756 ms: Driver.WorkerWait (queue worker 0x0) 107.7, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x0) 107.6, batch (gpu) 5.2, Driver.Packet (queue worker 0x0) 3.3 **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | queue worker 0x0 | 2.6 (2 %) | 100.7 (97 %) | 1.0 | 3.9 | Driver.Packet 2.6, Driver.EndSubmission 0.0 | | presenter | 0.8 (1 %) | 0.0 (0 %) | 103.5 | 0.1 | Driver.Present 0.8 | | gpu | 5.3 (5 %) | 0.0 (0 %) | 99.1 | 0.0 | batch 5.3 | `required1018-7468` **seconds 20:8** from present 47: 70 presents, frame p50 101.3 / p90 162.0 / p99 256.7 / max 256.7 ms, GPU busy 5.4 ms per present NVIDIA GeForce RTX 3070 Laptop GPU, NVIDIA 617.42, Windows 10.0.26300, 1920x1080, commit 709520ddabbe, dropped: no ```json {"commit":"709520ddabbe","dirty":false,"env":{"APS5_TRACE_SECONDS":"20:8"},"gpu":"NVIDIA GeForce RTX 3070 Laptop GPU","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","resolution":"1920x1080","window":{"spec":"seconds 20:8","first_present":47,"ms":8044.63},"presents":70,"frame_ms":{"p50":101.312,"p90":161.968,"p99":256.69,"max":256.69},"gpu_busy_ms_per_present":5.368,"worker_busy_pct":{"queue worker 0x0":3.482},"top_phases_ms_per_frame":{"Driver.Packet":3.938,"Driver.Packet.draw":3.205,"Driver.Draw":3.131,"Driver.Draw.shader_compile_and_link":1.833,"GpuMutex.wait.flush":1.349,"Shader.DrawStage":0.965,"Driver.Present":0.926,"Shader.DrawStage.capture_resources":0.637},"trace_dropped":false,"trace":"aps5-trace-709520ddabbe-30776.json.gz"} ``` **Slowest frames** (largest slices inside each, inclusive) - present 90: 256.7 ms at 4314 ms: Driver.WorkerWait (queue worker 0x0) 253.1, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x0) 253.0, GpuMutex.wait.flush (queue worker 0x0) 94.4, batch (gpu) 8.3 - present 91: 186.0 ms at 4571 ms: Driver.WorkerWait (queue worker 0x0) 177.7, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x0) 177.4, Driver.Packet (queue worker 0x0) 6.2, Driver.Packet.draw (queue worker 0x0) 5.9 - present 96: 178.6 ms at 5417 ms: Driver.WorkerWait (queue worker 0x0) 170.8, Driver.WorkerWait.idle_and_completion_poll (queue worker 0x0) 170.7, Driver.Packet (queue worker 0x0) 5.8, Driver.Packet.draw (queue worker 0x0) 5.7 **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | queue worker 0x0 | 3.2 (3 %) | 110.5 (96 %) | 1.2 | 4.2 | Driver.Packet 3.2, Driver.EndSubmission 0.0 | | presenter | 0.9 (1 %) | 0.1 (0 %) | 114.0 | 0.1 | Driver.Present 0.9 | | gpu | 5.4 (5 %) | 0.0 (0 %) | 109.6 | 0.0 | batch 5.4 | </details> ### Where it helps The title allocates, maps and releases about 48 direct-memory blocks per frame; every release asks `RequireAliasesUnpinned` for the aliases of the physical range. On main that scans every direct mapping; with this PR it walks the physical index. | Measured | main `2185dbf92e` | main + series | |---|---:|---:| | `RequireAliasesUnpinned` calls per frame | 48.6 | 47.9 | | `RequireAliasesUnpinned` µs per call | 54.18 | 0.21 | | `RequireAliasesUnpinned` ms per frame | 2.63 | 0.01 | Counters come from a local probe build that is not part of this PR (`review-probe.patch` in the evidence archive): the same counters and timers were inserted into main `2185dbf92e` and into main with all eleven series PRs merged (#7464 in its rebased form), anchored on function definitions present in both trees. Runs were in the mirrored order main, series with #7464 reduced to its wake only, series, series, reduced series, main, in the scene above with `APS5_PROFILE_DRAW=1`; values are medians of two runs over the same 8-second window as the trace, starting 20 s after the first flip, per flip. These runs carry profiling overhead and are not used for FPS. Each optimised function below is changed by this PR only; counters show where the work goes, not an isolated FPS gain. ### Other homebrew checks | Workload | Control FPS | This topic FPS | Scope | |---|---:|---:|---| | vkQuake | N/A | N/A | Earlier compatibility capture; no matched FPS claim here | | Syobon Action | N/A | N/A | Earlier compatibility capture; no matched FPS claim here | | Middle Ages Ping Pong | N/A | N/A | Earlier compatibility capture; no matched FPS claim here | UI Lab: the 21 default concepts were rendered and visually reviewed in a navigation cycle for this topic. Artwork was present; this covers default navigation, not all themes or every widget interaction. Known baseline rendering issue: vkQuake still has intermittent flickering and an intermittently black floor on main and the tested performance branches. These changes do not fix it. Yamagi Quake II gameplay stops at unsupported last-provoking-vertex flat interpolation, and UZDoom at unsupported clip/cull-distance handling on the baseline; neither supplies a valid gameplay FPS comparison. ### Dependencies, series and overlap [#7448](https://github.com/boykopovar/AnyPS5/pull/7448) changes release ordering to unmap views before returning physical pages. This topic only selects aliases through the physical index; it does not fix that separate lifetime race. The project overlap scan compared the local topics against 785 open PRs and checked merges into main `e5c2b3c325e485ba7fd417c47c46f48aa2c89115`. This topic merges cleanly in that snapshot. Some other PRs already conflict with main, so the tool cannot compare all their shared-file hunks; the full report is retained with the common series evidence package. No exact duplicate was identified in the inspected implementations. This is not a certification that every conflicting foreign branch is composition-tested. Conventions and whitespace checks passed for the tested topic range. The benchmark base remains pinned for comparability; this is not a fresh-current-main build/test claim. Measurements and focused tests refer to the pinned source revisions above; no full-suite CI run is claimed. Re-checked on 2026-10-21: this head still merges cleanly into main `2185dbf92e`. #6658, which the earlier combined runs carried, merged into main on 2026-10-20. ### Combined series result Re-measured on 2026-10-21 on current main `2185dbf92e` (Windows 11 Pro build 26300, Ryzen 7 5800H, RTX 3070 Laptop GPU, NVIDIA 617.42, WinLibs GCC 15.2.0 r7, Release; 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:8` with `APS5_TRACE_EVENTS=1048576`, console output not redirected, no profiling switches). Runs in the order A-B-C-D-D-C-B-A, two per configuration; FPS is presents over the 8-s window. | Configuration | FPS, run 1 / run 2 | |---|---| | main `2185dbf92e` | 9.18 / 9.03 | | main + #7464 + #7465 | 20.85 / 22.02 | | main + all eleven PRs of the series | 29.01 / 28.70 | #7464 and #7465 make the largest step together: the title's per-frame host imports disappear (see their PRs). With #7464 reduced to its CPU-label wake only, the whole series measured 10.07 / 9.01 FPS against main 9.24 / 9.30 in a separate block of the same session. Combined numbers are not the gain of any single PR. The combined builds are local merges of the published (#7465-#7470, #7472, #7474) and rebased (#7464, #7471, #7473) heads into main `2185dbf92e`; the commits in their summary lines are those merges, not pushed. Summary lines, traces and digests: [series-evidence.zip](https://github.com/Dripl1x/AnyPS5/releases/download/review-20261021/series-evidence.zip). ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on pinned main `6447ed1ed7fd`; merges cleanly into current main `2185dbf92e` (git merge-tree, 2026-10-21); related overlaps are listed above - [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: n/a (library-only change; game test hardware above) - [x] AI-assisted: yes The published head adds publication metadata only; its complete source tree is identical to the tested snapshot above. ### Series index These are the ten performance topics from the same profiling effort, followed by a separate UI Lab cache-preservation fix. Membership in the series does not imply a dependency. | Item | Pull request | Required dependency | |---|---|---| | 01 | [#7464: perf(agc): keep unimported label stores on the CPU](https://github.com/boykopovar/AnyPS5/pull/7464) | #6658 | | 02 | [#7465: perf(agc): defer small host imports until first GPU use](https://github.com/boykopovar/AnyPS5/pull/7465) | none | | 03 | [#7466: perf(agc): validate host imports through their registered owner](https://github.com/boykopovar/AnyPS5/pull/7466) | none | | 04 | [#7467: perf(libc): avoid repeated Windows path component scans](https://github.com/boykopovar/AnyPS5/pull/7467) | none | | 05 | [#7468: perf(libkernel): find direct-memory aliases through the physical index](https://github.com/boykopovar/AnyPS5/pull/7468) | none | | 06 | [#7469: perf(libkernel): find free direct-memory ranges in allocation order](https://github.com/boykopovar/AnyPS5/pull/7469) | none | | 07 | [#7470: perf(libc): release exact resident mappings without repeated queries](https://github.com/boykopovar/AnyPS5/pull/7470) | none | | 08 | [#7471: perf(libc): collect resident writes directly into the output buffer](https://github.com/boykopovar/AnyPS5/pull/7471) | none | | 09 | [#7472: perf(libc): reuse saved direct-memory buffers when unreferenced](https://github.com/boykopovar/AnyPS5/pull/7472) | none | | 10 | [#7473: perf(libc): skip write-watch queries for proven clean resident ranges](https://github.com/boykopovar/AnyPS5/pull/7473) | #7471 | | 11 | [#7474: fix(agc): preserve pipeline caches on immediate guest exit](https://github.com/boykopovar/AnyPS5/pull/7474) | none | ### Reproduction evidence [Series traces, summary lines, module hashes, focused-test logs and UI contact sheets](https://github.com/Dripl1x/AnyPS5/releases/tag/performance-series-20261018). Game measurements use the pinned base and source revisions described above; assets contain no game binaries. Update of 2026-10-21: [7468-evidence.zip](https://github.com/Dripl1x/AnyPS5/releases/download/review-20261021/7468-evidence.zip) (traces, summary lines, `trace_digest.py` and `performance_compare.py` output, loaded-module hashes), counters [where.json](https://github.com/Dripl1x/AnyPS5/releases/download/review-20261021/where.json) and the probe [review-probe.patch](https://github.com/Dripl1x/AnyPS5/releases/download/review-20261021/review-probe.patch) with [probe_window.py](https://github.com/Dripl1x/AnyPS5/releases/download/review-20261021/probe_window.py).
github-actions[bot] commented 2026-10-18 08:58:23 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-18T08:58:23Z.


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.

Pull request Shared files not compared
PR 4449 core/libs/prx/libkernel/DirectMemory/DirectMemory.cpp
PR 5021 core/libs/prx/libkernel/DirectMemory/DirectMemory.cpp
PR 6879 core/libs/prx/libkernel/DirectMemory/DirectMemory.cpp
PR 7105 core/libs/prx/libkernel/DirectMemory/DirectMemory.cpp
PR 7149 core/libs/prx/libkernel/DirectMemory/DirectMemory.cpp
PR 7201 core/libs/prx/libkernel/DirectMemory/DirectMemory.cpp
PR 8658 core/libs/prx/libkernel/DirectMemory/DirectMemory.cpp
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6247960500 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7468#issuecomment-6247960500). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-18T08:58:23Z. --- <!-- pr-overlap --> 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. | Pull request | Shared files not compared | |---|---| | [PR 4449](https://www.github.com/boykopovar/AnyPS5/pull/4449) | `core/libs/prx/libkernel/DirectMemory/DirectMemory.cpp` | | [PR 5021](https://www.github.com/boykopovar/AnyPS5/pull/5021) | `core/libs/prx/libkernel/DirectMemory/DirectMemory.cpp` | | [PR 6879](https://www.github.com/boykopovar/AnyPS5/pull/6879) | `core/libs/prx/libkernel/DirectMemory/DirectMemory.cpp` | | [PR 7105](https://www.github.com/boykopovar/AnyPS5/pull/7105) | `core/libs/prx/libkernel/DirectMemory/DirectMemory.cpp` | | [PR 7149](https://www.github.com/boykopovar/AnyPS5/pull/7149) | `core/libs/prx/libkernel/DirectMemory/DirectMemory.cpp` | | [PR 7201](https://www.github.com/boykopovar/AnyPS5/pull/7201) | `core/libs/prx/libkernel/DirectMemory/DirectMemory.cpp` | | [PR 8658](https://www.github.com/boykopovar/AnyPS5/pull/8658) | `core/libs/prx/libkernel/DirectMemory/DirectMemory.cpp` |
wachi35676 commented 2026-10-18 12:32:20 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by wachi35676 on 2026-10-18T12:32:20Z.


Differential check: I put main's g_directMappings and physical-span code in one harness, with random inserts, virtual erases and physical erases. Comparing the old full scan with the new indexed RequireAliasesUnpinned selection over 3 × 400k operations gives 0 mismatches in about 360k alias queries (about 320k non-empty), in the same order.

With 20,000 mappings, a lookup takes 128–147 µs with the old code and 0.22–0.24 µs with the new. The 462 guest_/libkernel/libc tests pass on Windows (GCC 15.2).

AI-assisted: yes (Claude Code); results above were run on this machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6249952831 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7468#issuecomment-6249952831). Originally posted by [wachi35676](https://github.com/wachi35676) on 2026-10-18T12:32:20Z. --- Differential check: I put `main`'s `g_directMappings` and physical-span code in one harness, with random inserts, virtual erases and physical erases. Comparing the old full scan with the new indexed `RequireAliasesUnpinned` selection over 3 × 400k operations gives 0 mismatches in about 360k alias queries (about 320k non-empty), in the same order. With 20,000 mappings, a lookup takes 128–147 µs with the old code and 0.22–0.24 µs with the new. The 462 `guest_`/`libkernel`/`libc` tests pass on Windows (GCC 15.2). AI-assisted: yes (Claude Code); results above were run on this machine.
Dripl1x commented 2026-10-18 13:05:51 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Dripl1x on 2026-10-18T13:05:51Z.


@wachi35676 Thanks for the independent differential test and the Windows coverage. The zero-mismatch result across the alias queries, including their order, is useful confirmation of the indexed selection. I will keep the lookup microbenchmark separate from any whole-game FPS claim.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6250268983 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7468#issuecomment-6250268983). Originally posted by [Dripl1x](https://github.com/Dripl1x) on 2026-10-18T13:05:51Z. --- @wachi35676 Thanks for the independent differential test and the Windows coverage. The zero-mismatch result across the alias queries, including their order, is useful confirmation of the indexed selection. I will keep the lookup microbenchmark separate from any whole-game FPS claim.
github-actions[bot] commented 2026-10-18 21:44:41 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-18T21:44:41Z.


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

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

Imported from boykopovar/AnyPS5. Originally posted by Dripl1x on 2026-10-20T23:34:19Z.


Updated the description: before/after summary lines from the same machine and SuperTuxKart scene (main 6447ed1ed7fd 9.58 / 9.53 FPS, this PR 709520ddabbe 8.70 / 9.86 FPS, so no FPS claim), trace_digest.py and performance_compare.py output, and probe counters that show where this change saves work in that scene: RequireAliasesUnpinned runs about 49 times per frame (every direct-memory release) and takes 54.2 µs per call on main against 0.21 µs with this PR (2.63 -> 0.01 ms per frame). Traces, digests and the probe patch are in the evidence release. The head is unchanged and still merges cleanly into current main.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6304199359 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7468#issuecomment-6304199359). Originally posted by [Dripl1x](https://github.com/Dripl1x) on 2026-10-20T23:34:19Z. --- Updated the description: before/after summary lines from the same machine and SuperTuxKart scene (main `6447ed1ed7fd` 9.58 / 9.53 FPS, this PR `709520ddabbe` 8.70 / 9.86 FPS, so no FPS claim), `trace_digest.py` and `performance_compare.py` output, and probe counters that show where this change saves work in that scene: `RequireAliasesUnpinned` runs about 49 times per frame (every direct-memory release) and takes 54.2 µs per call on main against 0.21 µs with this PR (2.63 -> 0.01 ms per frame). Traces, digests and the probe patch are in the [evidence release](https://github.com/Dripl1x/AnyPS5/releases/tag/review-20261021). The head is unchanged and still merges cleanly into current main. AI-assisted: yes (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!7468
No description provided.