perf(libc, libkernel): keep aliased direct memory on the Linux write watch and collect stores through every alias #12452

Merged
Tehshortbus merged 6 commits from upstream-pr/12452 into main 2026-11-08 23:11:13 +00:00
Tehshortbus commented 2026-10-28 14:11:34 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Tehshortbus on 2026-10-28T14:11:34Z.


What

On Linux, when a title maps one direct memory block at a second guest address, WatchMapping in libkernel/DirectMemory/DirectMemory.cpp unregisters both views from the write watch. From then on the driver's tracker refuses every collect over them (GuestWriteWatchCovers is false). Textures over that memory fall back to whole-surface comparisons, and the resource caches over it to full revalidation walks.

GTA V maps direct memory this way. In the first two Story cutscenes it compares 8,000–22,000 textures per 10 s (3–9.5 GiB), and the committer pays for it per draw.

The two views share physical pages, but the userfaultfd write-protect bit and PAGEMAP_SCAN are per virtual page: a store through one view marks only that view's page written. So both views can stay registered, as long as a collect over one also scans the other and reports its stores at both addresses. This PR does that:

  • GuestWriteWatchAlias_nid_postfix(first, second, bytes) (libc): new export. It records a link in each direction between two page-aligned, watched ranges of the same size, and returns false (changing nothing) when the watch is unavailable or either range is not fully watched. It returns false on macOS and Windows.
  • Collect, CollectFresh and CollectArmed (GuestWriteWatch.cpp): over a range with links, each also walks the linked ranges. Every written page found through any view is reported at its own address and at the address of each view linked to it.
    • Ranges with no links take the same path as before, apart from one lookup in an empty map.
    • With three or more views, WatchMapping links every pair, so one level of indirection covers all of them.
  • Register and Unregister cut the links of the range they change: the linked parts outside it are kept, on both sides.
  • WatchMapping (libkernel): links an overlapping pair with GuestWriteWatchAlias_nid_postfix, and unregisters both views as before only when that returns false.
  • WindowCopy::Holds (libSceAgcDriver/Execution/src/GuestMemory.cpp): returns false for a page outside the window. A collect over an import window can now report a store at a linked page outside it. Without the check, stampWindowRuns read past hashes and GTA V crashed (SIGSEGV) in the first cutscene.
  • Debt entry for frame capture (docs/dev/debt/libSceAgcDriver.md): Linux now records a store through one alias at every alias, instead of recording none.

Tested

CachyOS Linux (kernel 7.3.0-4-cachyos), GCC 16.2.1, Release, Ryzen 7 5800X, NVIDIA GeForce RTX 4070 SUPER (615.78.08).

Tests (head 4621b11d00, main ba5b5330b3 merged into a160f789ec; range-diff of a160f789ec against the measured head d10b767163 shows both commits unchanged, and the merge preview onto main is clean):

  • guest_memory:
    • CheckDirectMemoryWriteWatchSeesWritesThroughAliases maps one physical page at three addresses: the upper page of a two-page mapping, and two one-page mappings. It checks that:
      • CollectFresh, CollectArmed and Collect each report a store through one view at every view;
      • a collect through one view leaves nothing to report through the others;
      • after the second view is unmapped, a store through the third is reported at the first and third only.
    • CheckDirectMemoryWriteWatchDropsAliasOnRemap links two views of one page, then maps other physical memory over the second with sceKernelMapDirectMemory (fixed). It checks that the second view stays watched, that a collect over the first no longer reports the second's pages, and that a store through either view is reported only at that view.
    • CheckDirectMemoryWriteWatch and CheckDirectMemoryWriteWatchFollowsRemovedMappings now expect aliased views to stay covered.
  • agc_write_tracking: CheckImportWindowOverAlias (Linux) links two views of one memfd block and imports the upper view with a window. A store through the window is reported at both views, including the lower one, outside the window.
  • Negative controls (rerun on head 4621b11d00):
    • With main's GuestWriteWatch.cpp and DirectMemory.cpp, guest_memory fails on the first coverage check of an aliased view (core/libs/tests/GuestMemory.cpp:3036).
    • Without the link cut in Register, guest_memory fails in CheckDirectMemoryWriteWatchDropsAliasOnRemap: the first view still reports the remapped view's pages.
    • Without the bound in WindowCopy::Holds, agc_write_tracking crashes (SIGSEGV) in CheckImportWindowOverAlias.
  • What the tests reach: Alias, the alias walks of all three collects, the link cut on both Register and Unregister, and the WindowCopy::Holds bound.
  • 991 of the 992 guest_* tests pass (ctest -R '^guest_'). guest_freebsd_clocks aborts, the same way on plain main (#12736, fixed by the open #12660 and #12747); this PR does not touch clocks.
  • 16 write-watch, import and alias tests of the driver pass with ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, with no VUID- line or missing-layer message. They include agc_write_watch_coverage, agc_import_watch, agc_shared_write, agc_write_tracking, agc_driver_alias_copy_label and the heap mirror unwatch tests.
  • python3 tools/check_conventions.py --base origin/main and git diff --check pass.

GTA V (PPSA04264 01.011.001, 3840x2160, warm shader cache):

  • Baseline: GTA V cannot reach these cutscenes on plain main: it stops while the save loads (#11425), which #11580 fixes. Both arms carry #11580, and Depends on lists it, so this merges after #11580. The code shares no files with #11580.
  • Measured head: the captures below are from d10b767163 on main 2960e9a6e7. The current head is the same two commits on 1db077e876, with main ba5b5330b3 merged in. Of the merges since 2960e9a6e7, only #11681 (a new direct-memory allocation test in core/libs/tests/GuestMemory.cpp), #11684 and #9595 (debt entries, and the unclamped-blend path, which GTA V never uses) #9431 (PS4-only fill-kernel matching in BufferFill.cpp) and #12706 (a different debt entry) touch this PR's files or the driver's memory code. None changes the write watch, direct memory or WindowCopy, so the measured path is unchanged.
  • #8930 is in both arms. It changes WriteChanged in Execution/src/GuestMemory.cpp; this PR changes one line of WindowCopy::Holds in the same file, about 1,900 lines away.
  • Builds:
    • Base: main 2960e9a6e7 + #11580 (b8f4e6343a).
    • PR: the same + this PR at d10b767163 (98efd2e7b2).
    • Both have the same shader source version, so they share the shader cache. Each was built once, then switched between runs, with no rebuilds between runs.
  • Switches: APS5_PROFILE_DRAW=1 APS5_PIPELINE_STATS=1 APS5_TRACE_SUMMARY_EVERY=10 APS5_TRACE_SECONDS=100:60 in every run.
  • Order: two rounds, base / PR / PR / base, then one more PR run (PR, run 3) for the trace pair, because both PR runs reached cutscene 1 late and their trace windows started before it. All five exited 0 with no driver failures.
  • Base crash: the cold-cache warm-up on the base arm (without this PR) crashed once in cutscene 2, in the title's heap allocator on a corrupted free-list pointer. Two repro runs on that base and the five runs here did not.
  • Windows: cutscene 1 from 10 s to 95 s after it starts; cutscene 2 from 50 s to 130 s after it starts. fps counts only the 10 s summary lines.

Cutscene 1, per 10 s:

base, round 1 PR, round 1 PR, round 2 base, round 2
fps 13.47 13.94 13.97 13.68
committer µs per commit 30.5 29.1 28.9 30.1
texture comparisons ([guestmem] compare) 8,683 (3,265 MiB) 6 6 8,542 (3,207 MiB)
full revalidation walks 10,755 4,778 4,842 10,780
collect fast-fails 6,365 0 0 6,292
revalidation time (ms) 715 490 498 717

Cutscene 2, per 10 s:

base, round 1 PR, round 1 PR, round 2 base, round 2
fps 5.65 6.38 6.43 5.92
committer µs per commit 36.2 31.8 31.3 35.5
texture comparisons 21,348 (9,410 MiB) 34 44 21,468 (9,507 MiB)
full revalidation walks 18,745 9,357 9,173 18,763
collect fast-fails 10,832 0 0 10,598
revalidation time (ms) 1,347 806 812 1,292
  • Reading:
    • Texture comparisons over aliased memory almost disappear.
    • The collects that the tracker refused go to 0, and full walks halve.
    • The committer's cost per draw drops 3–5 % in cutscene 1 and 10–14 % in cutscene 2.
    • The frame gains 2–4 % in cutscene 1 and 8–14 % in cutscene 2. Both PR runs are above both base runs in each cutscene; the base's own spread is 13.47–13.68 fps and 5.65–5.92 fps. PR, run 3 gives 14.11 and 6.38 fps.
    • The remaining full walks are not from aliased memory and are not addressed here.
  • Attachments: one zip per run (gta-alias10-*.zip) in this comment, with the summary lines, the trace, the [guestmem]/[rescache]/[draw] lines and a README with the build, switches, cutscene marks and where the trace window falls. The traces are recompressed with xz to fit GitHub's attachment limit; xz -d gives the .json that tools/trace_digest.py reads.

Summary lines and trace digests (the APS5_TRACE_SECONDS=100:60 window of each trace):

  • The pair below is the base, round 1 and PR, run 3, whose windows cover nearly the same part of cutscene 1: 37–97 s and 41–101 s after it starts.
  • Over those 60 s the base presents 829 frames (p50 71.4 ms) and the PR 832 (p50 70.6 ms). The draw committer is busy 42.1 ms per frame in the base and 40.9 ms in the PR. Cutscene 1 gains least from this change; cutscene 2, outside the trace window, gains most.
  • The other windows:
    • Base, round 2: 31–91 s, 845 presents, p50 70.7 ms.
    • PR, rounds 1 and 2: they start 29 s and 13 s before cutscene 1, so they are not compared.

Base, round 1 (b8f4e6343a: main 2960e9a6e7 + #11580):

{"commit":"b8f4e6343a96","dirty":false,"env":{"APS5_PIPELINE_STATS":"1","APS5_PROFILE_DRAW":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"100:60","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"NVIDIA GeForce RTX 4070 SUPER","driver":"NVIDIA 615.78.08","os":"Linux 7.3.0-4-cachyos","cpu":"AMD Ryzen 7 5800X 8-Core Processor","cpu_threads":16,"memory_mib":64203,"title_id":"PPSA04264","title":"Grand Theft Auto V","content_version":"01.011.001","resolution":"3840x2160","window":{"spec":"seconds 100:60","first_present":2761,"ms":60100.850},"presents":829,"frame_ms":{"p50":71.412,"p90":77.050,"p99":114.076,"max":203.223},"gpu_busy_ms_per_present":36.892,"worker_busy_pct":{"queue worker 0x0":97.246},"top_phases_ms_per_frame":{"Driver.Packet":67.123,"Graphics.Draw":38.415,"Driver.Packet.draw":35.829,"Driver.Draw":35.268,"Graphics.Draw.draw_and_resource_release":32.713,"Driver.Draw.shader_compile_and_link":24.068,"Driver.Packet.dispatch":23.982,"Shader.DrawStage":18.429},"trace_dropped":false,"trace":"aps5-trace-b8f4e6343a96-2334160.json.gz"}
tools/trace_digest.py of the base, round 1

seconds 100:60 from present 2761: 829 presents, frame p50 71.4 / p90 77.0 / p99 114.1 / max 203.2 ms, GPU busy 36.9 ms per present
NVIDIA GeForce RTX 4070 SUPER, NVIDIA 615.78.08, Linux 7.3.0-4-cachyos, 3840x2160, commit b8f4e6343a96, dropped: no

{"commit":"b8f4e6343a96","dirty":false,"env":{"APS5_PIPELINE_STATS":"1","APS5_PROFILE_DRAW":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"100:60","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"NVIDIA GeForce RTX 4070 SUPER","driver":"NVIDIA 615.78.08","os":"Linux 7.3.0-4-cachyos","cpu":"AMD Ryzen 7 5800X 8-Core Processor","cpu_threads":16,"memory_mib":64203,"title_id":"PPSA04264","title":"Grand Theft Auto V","content_version":"01.011.001","resolution":"3840x2160","window":{"spec":"seconds 100:60","first_present":2761,"ms":60100.85},"presents":829,"frame_ms":{"p50":71.412,"p90":77.05,"p99":114.076,"max":203.223},"gpu_busy_ms_per_present":36.892,"worker_busy_pct":{"queue worker 0x0":97.246},"top_phases_ms_per_frame":{"Driver.Packet":67.123,"Graphics.Draw":38.415,"Driver.Packet.draw":35.829,"Driver.Draw":35.268,"Graphics.Draw.draw_and_resource_release":32.713,"Driver.Draw.shader_compile_and_link":24.068,"Driver.Packet.dispatch":23.982,"Shader.DrawStage":18.429},"trace_dropped":false,"trace":"aps5-trace-b8f4e6343a96-2334160.json.gz"}

Slowest frames (largest slices inside each, inclusive)

  • present 3586: 203.2 ms at 59574 ms: Driver.Packet (queue worker 0x0) 175.7, Driver.Packet.draw (queue worker 0x0) 121.8, Driver.Draw (queue worker 0x0) 121.0, Graphics.Draw (draw committer) 116.6
  • present 3566: 166.8 ms at 57931 ms: Driver.Packet (queue worker 0x0) 143.3, Driver.Packet.draw (queue worker 0x0) 101.8, Driver.Draw (queue worker 0x0) 101.2, Graphics.Draw (draw committer) 85.7
  • present 3526: 137.2 ms at 54888 ms: Driver.Packet (queue worker 0x0) 105.7, Graphics.Draw (draw committer) 76.8, Driver.Packet.draw (queue worker 0x0) 65.5, Driver.Draw (queue worker 0x0) 65.0
  • present 3187: 120.2 ms at 30360 ms: Driver.Packet (queue worker 0x0) 100.7, Driver.Packet.draw (queue worker 0x0) 74.6, Driver.Draw (queue worker 0x0) 74.2, Driver.Draw.shader_compile_and_link (queue worker 0x0) 65.9
  • present 3027: 120.1 ms at 18791 ms: Driver.Packet (queue worker 0x0) 102.9, Driver.Packet.draw (queue worker 0x0) 75.8, Driver.Draw (queue worker 0x0) 75.3, Driver.Draw.shader_compile_and_link (queue worker 0x0) 66.7

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
title 0.0 (0 %) 0.0 (0 %) 72.5 0.0 Shader.ResolveGraphicsStagesAbi 0.0
queue worker 0x0 54.8 (76 %) 1.0 (1 %) 16.7 82.4 Driver.Packet 52.8, Driver.Rewind 2.2
draw committer 42.1 (58 %) 0.1 (0 %) 30.3 25.4 Graphics.Draw 28.6, Recorder.Sync 13.1
presenter 0.4 (1 %) 13.7 (19 %) 58.3 0.1 VideoOut.Flip 14.2
gpu 36.9 (51 %) 0.0 (0 %) 35.6 0.0 batch 36.9

Largest slices (ms per frame, inclusive, all threads): Driver.Packet 52.8, batch 36.9, Graphics.Draw 28.6, Driver.Packet.draw 26.0, Driver.Draw 25.5, Driver.Packet.dispatch 23.8, Graphics.Draw.draw_and_resource_release 23.6, Recorder.Sync 15.4, Driver.Draw.shader_compile_and_link 15.4, VideoOut.Flip 14.2

Longest waits

  • Driver.Present.render_fence_wait (presenter) 16.8 ms at 5311 ms, present 2836
  • Driver.Present.render_fence_wait (presenter) 16.4 ms at 5236 ms, present 2835
  • Driver.Present.render_fence_wait (presenter) 16.4 ms at 1626 ms, present 2784
  • Driver.Present.render_fence_wait (presenter) 16.3 ms at 1554 ms, present 2783
  • Driver.Present.render_fence_wait (presenter) 16.2 ms at 5161 ms, present 2834
  • Driver.Present.render_fence_wait (presenter) 16.2 ms at 1775 ms, present 2786
  • Driver.Present.render_fence_wait (presenter) 15.9 ms at 1704 ms, present 2785
  • Driver.Present.render_fence_wait (presenter) 15.7 ms at 45829 ms, present 3398
  • Driver.Present.render_fence_wait (presenter) 15.7 ms at 1261 ms, present 2779
  • Driver.Present.render_fence_wait (presenter) 15.6 ms at 41414 ms, present 3338

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

  • batch 71567: 17.0 ms at 5311 ms, present 2835: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.4, Graphics.Draw.draw_and_resource_release (draw committer) 0.4, Recorder.Submit (draw committer) 0.0
  • batch 65786: 16.8 ms at 1626 ms, present 2783: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.4, Graphics.Draw.draw_and_resource_release (draw committer) 0.3, Recorder.Submit (draw committer) 0.0
  • batch 66009: 16.7 ms at 1774 ms, present 2785: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.4, Graphics.Draw.draw_and_resource_release (draw committer) 0.3, Recorder.Submit (draw committer) 0.0
  • batch 71345: 16.6 ms at 5160 ms, present 2833: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.4, Graphics.Draw.draw_and_resource_release (draw committer) 0.4, Recorder.Submit (draw committer) 0.0
  • batch 65675: 16.4 ms at 1554 ms, present 2782: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.3, Graphics.Draw.draw_and_resource_release (draw committer) 0.3, Recorder.Submit (draw committer) 0.0

PR, run 3 (98efd2e7b2: the same + this PR at d10b767163):

{"commit":"98efd2e7b261","dirty":false,"env":{"APS5_PIPELINE_STATS":"1","APS5_PROFILE_DRAW":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"100:60","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"NVIDIA GeForce RTX 4070 SUPER","driver":"NVIDIA 615.78.08","os":"Linux 7.3.0-4-cachyos","cpu":"AMD Ryzen 7 5800X 8-Core Processor","cpu_threads":16,"memory_mib":64203,"title_id":"PPSA04264","title":"Grand Theft Auto V","content_version":"01.011.001","resolution":"3840x2160","window":{"spec":"seconds 100:60","first_present":2706,"ms":60006.587},"presents":832,"frame_ms":{"p50":70.569,"p90":77.423,"p99":114.056,"max":197.225},"gpu_busy_ms_per_present":36.331,"worker_busy_pct":{"queue worker 0x0":97.171},"top_phases_ms_per_frame":{"Driver.Packet":66.659,"Graphics.Draw":37.803,"Driver.Packet.draw":35.694,"Driver.Draw":35.107,"Graphics.Draw.draw_and_resource_release":31.991,"Driver.Draw.shader_compile_and_link":24.045,"Driver.Packet.dispatch":23.608,"Shader.DrawStage":18.446},"trace_dropped":false,"trace":"aps5-trace-98efd2e7b261-2341520.json.gz"}
tools/trace_digest.py of PR, run 3

seconds 100:60 from present 2706: 832 presents, frame p50 70.6 / p90 77.4 / p99 114.1 / max 197.2 ms, GPU busy 36.3 ms per present
NVIDIA GeForce RTX 4070 SUPER, NVIDIA 615.78.08, Linux 7.3.0-4-cachyos, 3840x2160, commit 98efd2e7b261, dropped: no

{"commit":"98efd2e7b261","dirty":false,"env":{"APS5_PIPELINE_STATS":"1","APS5_PROFILE_DRAW":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"100:60","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"NVIDIA GeForce RTX 4070 SUPER","driver":"NVIDIA 615.78.08","os":"Linux 7.3.0-4-cachyos","cpu":"AMD Ryzen 7 5800X 8-Core Processor","cpu_threads":16,"memory_mib":64203,"title_id":"PPSA04264","title":"Grand Theft Auto V","content_version":"01.011.001","resolution":"3840x2160","window":{"spec":"seconds 100:60","first_present":2706,"ms":60006.587},"presents":832,"frame_ms":{"p50":70.569,"p90":77.423,"p99":114.056,"max":197.225},"gpu_busy_ms_per_present":36.331,"worker_busy_pct":{"queue worker 0x0":97.171},"top_phases_ms_per_frame":{"Driver.Packet":66.659,"Graphics.Draw":37.803,"Driver.Packet.draw":35.694,"Driver.Draw":35.107,"Graphics.Draw.draw_and_resource_release":31.991,"Driver.Draw.shader_compile_and_link":24.045,"Driver.Packet.dispatch":23.608,"Shader.DrawStage":18.446},"trace_dropped":false,"trace":"aps5-trace-98efd2e7b261-2341520.json.gz"}

Slowest frames (largest slices inside each, inclusive)

  • present 3486: 197.2 ms at 55667 ms: Driver.Packet (queue worker 0x0) 171.8, Driver.Packet.draw (queue worker 0x0) 111.4, Driver.Draw (queue worker 0x0) 110.7, Graphics.Draw (draw committer) 110.2
  • present 3465: 151.3 ms at 53999 ms: Driver.Packet (queue worker 0x0) 123.2, Graphics.Draw (draw committer) 79.5, Driver.Packet.draw (queue worker 0x0) 66.5, Driver.Draw (queue worker 0x0) 65.9
  • present 3532: 144.9 ms at 59415 ms: Driver.Packet (queue worker 0x0) 124.7, Driver.Packet.draw (queue worker 0x0) 92.4, Driver.Draw (queue worker 0x0) 91.9, Graphics.Draw (draw committer) 87.4
  • present 3425: 144.1 ms at 51059 ms: Driver.Packet (queue worker 0x0) 118.8, Graphics.Draw (draw committer) 76.2, Driver.Packet.draw (queue worker 0x0) 61.5, Driver.Draw (queue worker 0x0) 60.8
  • present 3063: 126.7 ms at 25209 ms: Driver.Packet (queue worker 0x0) 107.9, Driver.Packet.draw (queue worker 0x0) 80.6, Driver.Draw (queue worker 0x0) 80.2, Driver.Draw.shader_compile_and_link (queue worker 0x0) 71.0

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
title 0.0 (0 %) 0.0 (0 %) 72.1 0.0 Shader.ResolveGraphicsStagesAbi 0.0
queue worker 0x0 54.3 (75 %) 0.9 (1 %) 16.9 83.4 Driver.Packet 52.1, Driver.Rewind 2.2
draw committer 40.9 (57 %) 0.1 (0 %) 31.1 25.5 Graphics.Draw 28.0, Recorder.Sync 12.6
presenter 0.4 (1 %) 13.4 (19 %) 58.3 0.1 VideoOut.Flip 13.8
gpu 36.3 (50 %) 0.0 (0 %) 35.9 0.0 batch 36.3

Largest slices (ms per frame, inclusive, all threads): Driver.Packet 52.1, batch 36.3, Graphics.Draw 28.0, Driver.Packet.draw 25.8, Driver.Draw 25.3, Driver.Packet.dispatch 23.5, Graphics.Draw.draw_and_resource_release 22.9, Driver.Draw.shader_compile_and_link 15.2, Recorder.Sync 14.8, VideoOut.Flip 13.8

Longest waits

  • Driver.Present.render_fence_wait (presenter) 16.7 ms at 42501 ms, present 3303
  • Driver.Present.render_fence_wait (presenter) 16.5 ms at 56706 ms, present 3497
  • Driver.Present.render_fence_wait (presenter) 16.3 ms at 33623 ms, present 3178
  • Driver.Present.render_fence_wait (presenter) 15.9 ms at 36176 ms, present 3213
  • Driver.Present.render_fence_wait (presenter) 15.8 ms at 33553 ms, present 3177
  • Driver.Present.render_fence_wait (presenter) 15.6 ms at 2628 ms, present 2743
  • Driver.Present.render_fence_wait (presenter) 15.5 ms at 959 ms, present 2720
  • Driver.Present.render_fence_wait (presenter) 15.4 ms at 5706 ms, present 2784
  • Driver.Present.render_fence_wait (presenter) 15.3 ms at 27942 ms, present 3099
  • Driver.Present.render_fence_wait (presenter) 15.2 ms at 33981 ms, present 3183

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

  • batch 137630: 17.2 ms at 42500 ms, present 3302: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.draw_and_resource_release (draw committer) 0.4, Recorder.Submit (draw committer) 0.0
  • batch 159617: 17.0 ms at 56706 ms, present 3496: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.4, Graphics.Draw.draw_and_resource_release (draw committer) 0.3, Recorder.Submit (draw committer) 0.0
  • batch 123573: 16.6 ms at 33623 ms, present 3177: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.4, Graphics.Draw.draw_and_resource_release (draw committer) 0.3, Recorder.Submit (draw committer) 0.0
  • batch 127563: 16.4 ms at 36175 ms, present 3212: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.3, Graphics.Draw.draw_and_resource_release (draw committer) 0.3, Recorder.Submit (draw committer) 0.0
  • batch 123465: 16.2 ms at 33552 ms, present 3176: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.4, Graphics.Draw.draw_and_resource_release (draw committer) 0.3, Recorder.Submit (draw committer) 0.0

Overlap:

  • tools/pr_overlap.py lists five conflicts, all in docs/dev/debt/libSceAgcDriver.md:
    • #10760 and #11447 each add a debt entry on the line before the frame capture entry this PR edits. The changes are independent; whichever merges later keeps all the lines.
    • #12565, #12567 and #12568 edit the frame capture entry itself, in another sentence: the one on when a capture starts and stops. This PR changes only the sentence on Linux aliases. Whichever merges later rebases that line and keeps both changes. None of them touches the write watch, DirectMemory.cpp or WindowCopy.
  • Of the pull requests it could not compare, 20 share a code file. I checked their hunks for WatchMapping, the write-watch exports, WindowCopy and the write-watch tests:
    • #4449 changes SharedBacking and CreateDirectMemoryBacking in DirectMemory.cpp, the driver's import probes and a backing test. None of those is touched here. Its call in the main of core/libs/tests/GuestMemory.cpp is 3 lines from ours, so whichever merges later may need a trivial rebase.
    • #7631 extends the #if defined(__linux__) around WatchMapping to macOS. That is compatible: on macOS GuestWriteWatchAlias_nid_postfix returns false, so aliased views are unregistered there as now.
    • #7604 adds a test after CheckImportWindow in WriteTracking.cpp. CheckImportWindowOverAlias is placed after CheckImportWindowAcrossThreads, away from that hunk.
    • The other 17 do not touch those functions or the places the new tests are added.
  • Related: #7895 (the queue-0 draw committer bounds draw-heavy titles). This lowers the committer's per-draw cost in GTA V but does not change the bound.

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: #11580 (GTA V needs it to reach the measured scenes; this merges after it)
  • Fixes: none
  • Unblocks: none
  • GPUs tested: NVIDIA GeForce RTX 4070 SUPER, driver 615.78.08, CachyOS Linux (kernel 7.3.0-4-cachyos)
  • AI-assisted: yes (Claude Code)

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5051944637 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12452). Originally posted by [Tehshortbus](https://github.com/Tehshortbus) on 2026-10-28T14:11:34Z. --- ### What On Linux, when a title maps one direct memory block at a second guest address, `WatchMapping` in `libkernel/DirectMemory/DirectMemory.cpp` unregisters both views from the write watch. From then on the driver's tracker refuses every collect over them (`GuestWriteWatchCovers` is false). Textures over that memory fall back to whole-surface comparisons, and the resource caches over it to full revalidation walks. GTA V maps direct memory this way. In the first two Story cutscenes it compares 8,000–22,000 textures per 10 s (3–9.5 GiB), and the committer pays for it per draw. The two views share physical pages, but the userfaultfd write-protect bit and `PAGEMAP_SCAN` are per virtual page: a store through one view marks only that view's page written. So both views can stay registered, as long as a collect over one also scans the other and reports its stores at both addresses. This PR does that: - **`GuestWriteWatchAlias_nid_postfix(first, second, bytes)`** (libc): new export. It records a link in each direction between two page-aligned, watched ranges of the same size, and returns false (changing nothing) when the watch is unavailable or either range is not fully watched. It returns false on macOS and Windows. - **`Collect`, `CollectFresh` and `CollectArmed`** (`GuestWriteWatch.cpp`): over a range with links, each also walks the linked ranges. Every written page found through any view is reported at its own address and at the address of each view linked to it. - Ranges with no links take the same path as before, apart from one lookup in an empty map. - With three or more views, `WatchMapping` links every pair, so one level of indirection covers all of them. - **`Register` and `Unregister`** cut the links of the range they change: the linked parts outside it are kept, on both sides. - **`WatchMapping`** (libkernel): links an overlapping pair with `GuestWriteWatchAlias_nid_postfix`, and unregisters both views as before only when that returns false. - **`WindowCopy::Holds`** (`libSceAgcDriver/Execution/src/GuestMemory.cpp`): returns false for a page outside the window. A collect over an import window can now report a store at a linked page outside it. Without the check, `stampWindowRuns` read past `hashes` and GTA V crashed (SIGSEGV) in the first cutscene. - **Debt entry** for frame capture (`docs/dev/debt/libSceAgcDriver.md`): Linux now records a store through one alias at every alias, instead of recording none. ### Tested CachyOS Linux (kernel 7.3.0-4-cachyos), GCC 16.2.1, Release, Ryzen 7 5800X, NVIDIA GeForce RTX 4070 SUPER (615.78.08). **Tests** (head `4621b11d00`, `main` `ba5b5330b3` merged into `a160f789ec`; `range-diff` of `a160f789ec` against the measured head `d10b767163` shows both commits unchanged, and the merge preview onto `main` is clean): - `guest_memory`: - `CheckDirectMemoryWriteWatchSeesWritesThroughAliases` maps one physical page at three addresses: the upper page of a two-page mapping, and two one-page mappings. It checks that: - `CollectFresh`, `CollectArmed` and `Collect` each report a store through one view at every view; - a collect through one view leaves nothing to report through the others; - after the second view is unmapped, a store through the third is reported at the first and third only. - `CheckDirectMemoryWriteWatchDropsAliasOnRemap` links two views of one page, then maps other physical memory over the second with `sceKernelMapDirectMemory` (fixed). It checks that the second view stays watched, that a collect over the first no longer reports the second's pages, and that a store through either view is reported only at that view. - `CheckDirectMemoryWriteWatch` and `CheckDirectMemoryWriteWatchFollowsRemovedMappings` now expect aliased views to stay covered. - `agc_write_tracking`: `CheckImportWindowOverAlias` (Linux) links two views of one memfd block and imports the upper view with a window. A store through the window is reported at both views, including the lower one, outside the window. - **Negative controls** (rerun on head `4621b11d00`): - With `main`'s `GuestWriteWatch.cpp` and `DirectMemory.cpp`, `guest_memory` fails on the first coverage check of an aliased view (`core/libs/tests/GuestMemory.cpp:3036`). - Without the link cut in `Register`, `guest_memory` fails in `CheckDirectMemoryWriteWatchDropsAliasOnRemap`: the first view still reports the remapped view's pages. - Without the bound in `WindowCopy::Holds`, `agc_write_tracking` crashes (SIGSEGV) in `CheckImportWindowOverAlias`. - **What the tests reach:** `Alias`, the alias walks of all three collects, the link cut on both `Register` and `Unregister`, and the `WindowCopy::Holds` bound. - 991 of the 992 `guest_*` tests pass (`ctest -R '^guest_'`). `guest_freebsd_clocks` aborts, the same way on plain `main` (#12736, fixed by the open #12660 and #12747); this PR does not touch clocks. - 16 write-watch, import and alias tests of the driver pass with `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`, with no `VUID-` line or missing-layer message. They include `agc_write_watch_coverage`, `agc_import_watch`, `agc_shared_write`, `agc_write_tracking`, `agc_driver_alias_copy_label` and the heap mirror unwatch tests. - `python3 tools/check_conventions.py --base origin/main` and `git diff --check` pass. **GTA V** (PPSA04264 01.011.001, 3840x2160, warm shader cache): - **Baseline:** GTA V cannot reach these cutscenes on plain `main`: it stops while the save loads (#11425), which #11580 fixes. Both arms carry #11580, and **Depends on** lists it, so this merges after #11580. The code shares no files with #11580. - **Measured head:** the captures below are from `d10b767163` on `main` `2960e9a6e7`. The current head is the same two commits on `1db077e876`, with `main` `ba5b5330b3` merged in. Of the merges since `2960e9a6e7`, only #11681 (a new direct-memory allocation test in `core/libs/tests/GuestMemory.cpp`), #11684 and #9595 (debt entries, and the unclamped-blend path, which GTA V never uses) #9431 (PS4-only fill-kernel matching in `BufferFill.cpp`) and #12706 (a different debt entry) touch this PR's files or the driver's memory code. None changes the write watch, direct memory or `WindowCopy`, so the measured path is unchanged. - **#8930** is in both arms. It changes `WriteChanged` in `Execution/src/GuestMemory.cpp`; this PR changes one line of `WindowCopy::Holds` in the same file, about 1,900 lines away. - **Builds:** - Base: `main` `2960e9a6e7` + #11580 (`b8f4e6343a`). - PR: the same + this PR at `d10b767163` (`98efd2e7b2`). - Both have the same shader source version, so they share the shader cache. Each was built once, then switched between runs, with no rebuilds between runs. - **Switches:** `APS5_PROFILE_DRAW=1 APS5_PIPELINE_STATS=1 APS5_TRACE_SUMMARY_EVERY=10 APS5_TRACE_SECONDS=100:60` in every run. - **Order:** two rounds, base / PR / PR / base, then one more PR run (PR, run 3) for the trace pair, because both PR runs reached cutscene 1 late and their trace windows started before it. All five exited 0 with no driver failures. - **Base crash:** the cold-cache warm-up on the base arm (without this PR) crashed once in cutscene 2, in the title's heap allocator on a corrupted free-list pointer. Two repro runs on that base and the five runs here did not. - **Windows:** cutscene 1 from 10 s to 95 s after it starts; cutscene 2 from 50 s to 130 s after it starts. fps counts only the 10 s summary lines. Cutscene 1, per 10 s: | | base, round 1 | PR, round 1 | PR, round 2 | base, round 2 | |---|---|---|---|---| | fps | 13.47 | 13.94 | 13.97 | 13.68 | | committer µs per commit | 30.5 | 29.1 | 28.9 | 30.1 | | texture comparisons (`[guestmem] compare`) | 8,683 (3,265 MiB) | 6 | 6 | 8,542 (3,207 MiB) | | full revalidation walks | 10,755 | 4,778 | 4,842 | 10,780 | | `collect` fast-fails | 6,365 | 0 | 0 | 6,292 | | revalidation time (ms) | 715 | 490 | 498 | 717 | Cutscene 2, per 10 s: | | base, round 1 | PR, round 1 | PR, round 2 | base, round 2 | |---|---|---|---|---| | fps | 5.65 | 6.38 | 6.43 | 5.92 | | committer µs per commit | 36.2 | 31.8 | 31.3 | 35.5 | | texture comparisons | 21,348 (9,410 MiB) | 34 | 44 | 21,468 (9,507 MiB) | | full revalidation walks | 18,745 | 9,357 | 9,173 | 18,763 | | `collect` fast-fails | 10,832 | 0 | 0 | 10,598 | | revalidation time (ms) | 1,347 | 806 | 812 | 1,292 | - **Reading:** - Texture comparisons over aliased memory almost disappear. - The collects that the tracker refused go to 0, and full walks halve. - The committer's cost per draw drops 3–5 % in cutscene 1 and 10–14 % in cutscene 2. - The frame gains 2–4 % in cutscene 1 and 8–14 % in cutscene 2. Both PR runs are above both base runs in each cutscene; the base's own spread is 13.47–13.68 fps and 5.65–5.92 fps. PR, run 3 gives 14.11 and 6.38 fps. - The remaining full walks are not from aliased memory and are not addressed here. - **Attachments:** one zip per run (`gta-alias10-*.zip`) in [this comment](https://github.com/boykopovar/AnyPS5/pull/12452#issuecomment-6491132573), with the summary lines, the trace, the `[guestmem]`/`[rescache]`/`[draw]` lines and a README with the build, switches, cutscene marks and where the trace window falls. The traces are recompressed with xz to fit GitHub's attachment limit; `xz -d` gives the `.json` that `tools/trace_digest.py` reads. **Summary lines and trace digests** (the `APS5_TRACE_SECONDS=100:60` window of each trace): - The pair below is the base, round 1 and PR, run 3, whose windows cover nearly the same part of cutscene 1: 37–97 s and 41–101 s after it starts. - Over those 60 s the base presents 829 frames (p50 71.4 ms) and the PR 832 (p50 70.6 ms). The draw committer is busy 42.1 ms per frame in the base and 40.9 ms in the PR. Cutscene 1 gains least from this change; cutscene 2, outside the trace window, gains most. - The other windows: - Base, round 2: 31–91 s, 845 presents, p50 70.7 ms. - PR, rounds 1 and 2: they start 29 s and 13 s before cutscene 1, so they are not compared. Base, round 1 (`b8f4e6343a`: `main` `2960e9a6e7` + #11580): ```json {"commit":"b8f4e6343a96","dirty":false,"env":{"APS5_PIPELINE_STATS":"1","APS5_PROFILE_DRAW":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"100:60","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"NVIDIA GeForce RTX 4070 SUPER","driver":"NVIDIA 615.78.08","os":"Linux 7.3.0-4-cachyos","cpu":"AMD Ryzen 7 5800X 8-Core Processor","cpu_threads":16,"memory_mib":64203,"title_id":"PPSA04264","title":"Grand Theft Auto V","content_version":"01.011.001","resolution":"3840x2160","window":{"spec":"seconds 100:60","first_present":2761,"ms":60100.850},"presents":829,"frame_ms":{"p50":71.412,"p90":77.050,"p99":114.076,"max":203.223},"gpu_busy_ms_per_present":36.892,"worker_busy_pct":{"queue worker 0x0":97.246},"top_phases_ms_per_frame":{"Driver.Packet":67.123,"Graphics.Draw":38.415,"Driver.Packet.draw":35.829,"Driver.Draw":35.268,"Graphics.Draw.draw_and_resource_release":32.713,"Driver.Draw.shader_compile_and_link":24.068,"Driver.Packet.dispatch":23.982,"Shader.DrawStage":18.429},"trace_dropped":false,"trace":"aps5-trace-b8f4e6343a96-2334160.json.gz"} ``` <details><summary><code>tools/trace_digest.py</code> of the base, round 1</summary> **seconds 100:60** from present 2761: 829 presents, frame p50 71.4 / p90 77.0 / p99 114.1 / max 203.2 ms, GPU busy 36.9 ms per present NVIDIA GeForce RTX 4070 SUPER, NVIDIA 615.78.08, Linux 7.3.0-4-cachyos, 3840x2160, commit b8f4e6343a96, dropped: no ```json {"commit":"b8f4e6343a96","dirty":false,"env":{"APS5_PIPELINE_STATS":"1","APS5_PROFILE_DRAW":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"100:60","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"NVIDIA GeForce RTX 4070 SUPER","driver":"NVIDIA 615.78.08","os":"Linux 7.3.0-4-cachyos","cpu":"AMD Ryzen 7 5800X 8-Core Processor","cpu_threads":16,"memory_mib":64203,"title_id":"PPSA04264","title":"Grand Theft Auto V","content_version":"01.011.001","resolution":"3840x2160","window":{"spec":"seconds 100:60","first_present":2761,"ms":60100.85},"presents":829,"frame_ms":{"p50":71.412,"p90":77.05,"p99":114.076,"max":203.223},"gpu_busy_ms_per_present":36.892,"worker_busy_pct":{"queue worker 0x0":97.246},"top_phases_ms_per_frame":{"Driver.Packet":67.123,"Graphics.Draw":38.415,"Driver.Packet.draw":35.829,"Driver.Draw":35.268,"Graphics.Draw.draw_and_resource_release":32.713,"Driver.Draw.shader_compile_and_link":24.068,"Driver.Packet.dispatch":23.982,"Shader.DrawStage":18.429},"trace_dropped":false,"trace":"aps5-trace-b8f4e6343a96-2334160.json.gz"} ``` **Slowest frames** (largest slices inside each, inclusive) - present 3586: 203.2 ms at 59574 ms: Driver.Packet (queue worker 0x0) 175.7, Driver.Packet.draw (queue worker 0x0) 121.8, Driver.Draw (queue worker 0x0) 121.0, Graphics.Draw (draw committer) 116.6 - present 3566: 166.8 ms at 57931 ms: Driver.Packet (queue worker 0x0) 143.3, Driver.Packet.draw (queue worker 0x0) 101.8, Driver.Draw (queue worker 0x0) 101.2, Graphics.Draw (draw committer) 85.7 - present 3526: 137.2 ms at 54888 ms: Driver.Packet (queue worker 0x0) 105.7, Graphics.Draw (draw committer) 76.8, Driver.Packet.draw (queue worker 0x0) 65.5, Driver.Draw (queue worker 0x0) 65.0 - present 3187: 120.2 ms at 30360 ms: Driver.Packet (queue worker 0x0) 100.7, Driver.Packet.draw (queue worker 0x0) 74.6, Driver.Draw (queue worker 0x0) 74.2, Driver.Draw.shader_compile_and_link (queue worker 0x0) 65.9 - present 3027: 120.1 ms at 18791 ms: Driver.Packet (queue worker 0x0) 102.9, Driver.Packet.draw (queue worker 0x0) 75.8, Driver.Draw (queue worker 0x0) 75.3, Driver.Draw.shader_compile_and_link (queue worker 0x0) 66.7 **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | title | 0.0 (0 %) | 0.0 (0 %) | 72.5 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0 | | queue worker 0x0 | 54.8 (76 %) | 1.0 (1 %) | 16.7 | 82.4 | Driver.Packet 52.8, Driver.Rewind 2.2 | | draw committer | 42.1 (58 %) | 0.1 (0 %) | 30.3 | 25.4 | Graphics.Draw 28.6, Recorder.Sync 13.1 | | presenter | 0.4 (1 %) | 13.7 (19 %) | 58.3 | 0.1 | VideoOut.Flip 14.2 | | gpu | 36.9 (51 %) | 0.0 (0 %) | 35.6 | 0.0 | batch 36.9 | **Largest slices** (ms per frame, inclusive, all threads): Driver.Packet 52.8, batch 36.9, Graphics.Draw 28.6, Driver.Packet.draw 26.0, Driver.Draw 25.5, Driver.Packet.dispatch 23.8, Graphics.Draw.draw_and_resource_release 23.6, Recorder.Sync 15.4, Driver.Draw.shader_compile_and_link 15.4, VideoOut.Flip 14.2 **Longest waits** - Driver.Present.render_fence_wait (presenter) 16.8 ms at 5311 ms, present 2836 - Driver.Present.render_fence_wait (presenter) 16.4 ms at 5236 ms, present 2835 - Driver.Present.render_fence_wait (presenter) 16.4 ms at 1626 ms, present 2784 - Driver.Present.render_fence_wait (presenter) 16.3 ms at 1554 ms, present 2783 - Driver.Present.render_fence_wait (presenter) 16.2 ms at 5161 ms, present 2834 - Driver.Present.render_fence_wait (presenter) 16.2 ms at 1775 ms, present 2786 - Driver.Present.render_fence_wait (presenter) 15.9 ms at 1704 ms, present 2785 - Driver.Present.render_fence_wait (presenter) 15.7 ms at 45829 ms, present 3398 - Driver.Present.render_fence_wait (presenter) 15.7 ms at 1261 ms, present 2779 - Driver.Present.render_fence_wait (presenter) 15.6 ms at 41414 ms, present 3338 **Largest GPU batches** (GPU ranges inside, and the CPU slices that recorded each, inclusive) - batch 71567: 17.0 ms at 5311 ms, present 2835: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.4, Graphics.Draw.draw_and_resource_release (draw committer) 0.4, Recorder.Submit (draw committer) 0.0 - batch 65786: 16.8 ms at 1626 ms, present 2783: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.4, Graphics.Draw.draw_and_resource_release (draw committer) 0.3, Recorder.Submit (draw committer) 0.0 - batch 66009: 16.7 ms at 1774 ms, present 2785: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.4, Graphics.Draw.draw_and_resource_release (draw committer) 0.3, Recorder.Submit (draw committer) 0.0 - batch 71345: 16.6 ms at 5160 ms, present 2833: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.4, Graphics.Draw.draw_and_resource_release (draw committer) 0.4, Recorder.Submit (draw committer) 0.0 - batch 65675: 16.4 ms at 1554 ms, present 2782: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.3, Graphics.Draw.draw_and_resource_release (draw committer) 0.3, Recorder.Submit (draw committer) 0.0 </details> PR, run 3 (`98efd2e7b2`: the same + this PR at `d10b767163`): ```json {"commit":"98efd2e7b261","dirty":false,"env":{"APS5_PIPELINE_STATS":"1","APS5_PROFILE_DRAW":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"100:60","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"NVIDIA GeForce RTX 4070 SUPER","driver":"NVIDIA 615.78.08","os":"Linux 7.3.0-4-cachyos","cpu":"AMD Ryzen 7 5800X 8-Core Processor","cpu_threads":16,"memory_mib":64203,"title_id":"PPSA04264","title":"Grand Theft Auto V","content_version":"01.011.001","resolution":"3840x2160","window":{"spec":"seconds 100:60","first_present":2706,"ms":60006.587},"presents":832,"frame_ms":{"p50":70.569,"p90":77.423,"p99":114.056,"max":197.225},"gpu_busy_ms_per_present":36.331,"worker_busy_pct":{"queue worker 0x0":97.171},"top_phases_ms_per_frame":{"Driver.Packet":66.659,"Graphics.Draw":37.803,"Driver.Packet.draw":35.694,"Driver.Draw":35.107,"Graphics.Draw.draw_and_resource_release":31.991,"Driver.Draw.shader_compile_and_link":24.045,"Driver.Packet.dispatch":23.608,"Shader.DrawStage":18.446},"trace_dropped":false,"trace":"aps5-trace-98efd2e7b261-2341520.json.gz"} ``` <details><summary><code>tools/trace_digest.py</code> of PR, run 3</summary> **seconds 100:60** from present 2706: 832 presents, frame p50 70.6 / p90 77.4 / p99 114.1 / max 197.2 ms, GPU busy 36.3 ms per present NVIDIA GeForce RTX 4070 SUPER, NVIDIA 615.78.08, Linux 7.3.0-4-cachyos, 3840x2160, commit 98efd2e7b261, dropped: no ```json {"commit":"98efd2e7b261","dirty":false,"env":{"APS5_PIPELINE_STATS":"1","APS5_PROFILE_DRAW":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"100:60","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"NVIDIA GeForce RTX 4070 SUPER","driver":"NVIDIA 615.78.08","os":"Linux 7.3.0-4-cachyos","cpu":"AMD Ryzen 7 5800X 8-Core Processor","cpu_threads":16,"memory_mib":64203,"title_id":"PPSA04264","title":"Grand Theft Auto V","content_version":"01.011.001","resolution":"3840x2160","window":{"spec":"seconds 100:60","first_present":2706,"ms":60006.587},"presents":832,"frame_ms":{"p50":70.569,"p90":77.423,"p99":114.056,"max":197.225},"gpu_busy_ms_per_present":36.331,"worker_busy_pct":{"queue worker 0x0":97.171},"top_phases_ms_per_frame":{"Driver.Packet":66.659,"Graphics.Draw":37.803,"Driver.Packet.draw":35.694,"Driver.Draw":35.107,"Graphics.Draw.draw_and_resource_release":31.991,"Driver.Draw.shader_compile_and_link":24.045,"Driver.Packet.dispatch":23.608,"Shader.DrawStage":18.446},"trace_dropped":false,"trace":"aps5-trace-98efd2e7b261-2341520.json.gz"} ``` **Slowest frames** (largest slices inside each, inclusive) - present 3486: 197.2 ms at 55667 ms: Driver.Packet (queue worker 0x0) 171.8, Driver.Packet.draw (queue worker 0x0) 111.4, Driver.Draw (queue worker 0x0) 110.7, Graphics.Draw (draw committer) 110.2 - present 3465: 151.3 ms at 53999 ms: Driver.Packet (queue worker 0x0) 123.2, Graphics.Draw (draw committer) 79.5, Driver.Packet.draw (queue worker 0x0) 66.5, Driver.Draw (queue worker 0x0) 65.9 - present 3532: 144.9 ms at 59415 ms: Driver.Packet (queue worker 0x0) 124.7, Driver.Packet.draw (queue worker 0x0) 92.4, Driver.Draw (queue worker 0x0) 91.9, Graphics.Draw (draw committer) 87.4 - present 3425: 144.1 ms at 51059 ms: Driver.Packet (queue worker 0x0) 118.8, Graphics.Draw (draw committer) 76.2, Driver.Packet.draw (queue worker 0x0) 61.5, Driver.Draw (queue worker 0x0) 60.8 - present 3063: 126.7 ms at 25209 ms: Driver.Packet (queue worker 0x0) 107.9, Driver.Packet.draw (queue worker 0x0) 80.6, Driver.Draw (queue worker 0x0) 80.2, Driver.Draw.shader_compile_and_link (queue worker 0x0) 71.0 **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | title | 0.0 (0 %) | 0.0 (0 %) | 72.1 | 0.0 | Shader.ResolveGraphicsStagesAbi 0.0 | | queue worker 0x0 | 54.3 (75 %) | 0.9 (1 %) | 16.9 | 83.4 | Driver.Packet 52.1, Driver.Rewind 2.2 | | draw committer | 40.9 (57 %) | 0.1 (0 %) | 31.1 | 25.5 | Graphics.Draw 28.0, Recorder.Sync 12.6 | | presenter | 0.4 (1 %) | 13.4 (19 %) | 58.3 | 0.1 | VideoOut.Flip 13.8 | | gpu | 36.3 (50 %) | 0.0 (0 %) | 35.9 | 0.0 | batch 36.3 | **Largest slices** (ms per frame, inclusive, all threads): Driver.Packet 52.1, batch 36.3, Graphics.Draw 28.0, Driver.Packet.draw 25.8, Driver.Draw 25.3, Driver.Packet.dispatch 23.5, Graphics.Draw.draw_and_resource_release 22.9, Driver.Draw.shader_compile_and_link 15.2, Recorder.Sync 14.8, VideoOut.Flip 13.8 **Longest waits** - Driver.Present.render_fence_wait (presenter) 16.7 ms at 42501 ms, present 3303 - Driver.Present.render_fence_wait (presenter) 16.5 ms at 56706 ms, present 3497 - Driver.Present.render_fence_wait (presenter) 16.3 ms at 33623 ms, present 3178 - Driver.Present.render_fence_wait (presenter) 15.9 ms at 36176 ms, present 3213 - Driver.Present.render_fence_wait (presenter) 15.8 ms at 33553 ms, present 3177 - Driver.Present.render_fence_wait (presenter) 15.6 ms at 2628 ms, present 2743 - Driver.Present.render_fence_wait (presenter) 15.5 ms at 959 ms, present 2720 - Driver.Present.render_fence_wait (presenter) 15.4 ms at 5706 ms, present 2784 - Driver.Present.render_fence_wait (presenter) 15.3 ms at 27942 ms, present 3099 - Driver.Present.render_fence_wait (presenter) 15.2 ms at 33981 ms, present 3183 **Largest GPU batches** (GPU ranges inside, and the CPU slices that recorded each, inclusive) - batch 137630: 17.2 ms at 42500 ms, present 3302: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.5, Graphics.Draw.draw_and_resource_release (draw committer) 0.4, Recorder.Submit (draw committer) 0.0 - batch 159617: 17.0 ms at 56706 ms, present 3496: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.4, Graphics.Draw.draw_and_resource_release (draw committer) 0.3, Recorder.Submit (draw committer) 0.0 - batch 123573: 16.6 ms at 33623 ms, present 3177: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.4, Graphics.Draw.draw_and_resource_release (draw committer) 0.3, Recorder.Submit (draw committer) 0.0 - batch 127563: 16.4 ms at 36175 ms, present 3212: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.3, Graphics.Draw.draw_and_resource_release (draw committer) 0.3, Recorder.Submit (draw committer) 0.0 - batch 123465: 16.2 ms at 33552 ms, present 3176: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.4, Graphics.Draw.draw_and_resource_release (draw committer) 0.3, Recorder.Submit (draw committer) 0.0 </details> **Overlap:** - `tools/pr_overlap.py` lists five conflicts, all in `docs/dev/debt/libSceAgcDriver.md`: - #10760 and #11447 each add a debt entry on the line before the frame capture entry this PR edits. The changes are independent; whichever merges later keeps all the lines. - #12565, #12567 and #12568 edit the frame capture entry itself, in another sentence: the one on when a capture starts and stops. This PR changes only the sentence on Linux aliases. Whichever merges later rebases that line and keeps both changes. None of them touches the write watch, `DirectMemory.cpp` or `WindowCopy`. - Of the pull requests it could not compare, 20 share a code file. I checked their hunks for `WatchMapping`, the write-watch exports, `WindowCopy` and the write-watch tests: - **#4449** changes `SharedBacking` and `CreateDirectMemoryBacking` in `DirectMemory.cpp`, the driver's import probes and a backing test. None of those is touched here. Its call in the `main` of `core/libs/tests/GuestMemory.cpp` is 3 lines from ours, so whichever merges later may need a trivial rebase. - **#7631** extends the `#if defined(__linux__)` around `WatchMapping` to macOS. That is compatible: on macOS `GuestWriteWatchAlias_nid_postfix` returns false, so aliased views are unregistered there as now. - **#7604** adds a test after `CheckImportWindow` in `WriteTracking.cpp`. `CheckImportWindowOverAlias` is placed after `CheckImportWindowAcrossThreads`, away from that hunk. - The other 17 do not touch those functions or the places the new tests are added. - Related: #7895 (the queue-0 draw committer bounds draw-heavy titles). This lowers the committer's per-draw cost in GTA V but does not change the bound. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: #11580 (GTA V needs it to reach the measured scenes; this merges after it) - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: NVIDIA GeForce RTX 4070 SUPER, driver 615.78.08, CachyOS Linux (kernel 7.3.0-4-cachyos) - [x] AI-assisted: yes (Claude Code) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
MarcZX10 commented 2026-10-28 14:23:29 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T14:23:29Z.

Review: CHANGES_REQUESTED


The new GTA V A/B archives are useful: I downloaded all four, verified their README and summary metadata, and ran tools/trace_digest.py on the attached aps5-summary.jsonl files. They provide same-machine/same-scene data for main + #11580 (48919964c63c) versus the earlier PR build (690ca444159f). However, the PR is currently at b6535bf6cb6231cd39fd336234b15fbe85652692, and the report explicitly says the change capture predates the rebase onto current main; I cannot confirm that those numbers represent the current head. Also, the repository requires a perf PR description to contain two valid summary lines with different commits, and the current body has neither line; GitHub still shows perf numbers missing. Please update the description with paired current-main/current-head aps5-summary.jsonl lines, attach their traces, and include the tools/trace_digest.py output. The performance claim remains unverified for the current head until then. The overlap scan reports only the independent debt-file hunk in #10760; the hosted build and platform checks are still running. I am requesting changes for the missing current-head performance report, not alleging a code defect.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5684214127 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12452#pullrequestreview-5684214127). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-28T14:23:29Z. **Review:** CHANGES_REQUESTED --- The new GTA V A/B archives are useful: I downloaded all four, verified their README and summary metadata, and ran `tools/trace_digest.py` on the attached `aps5-summary.jsonl` files. They provide same-machine/same-scene data for `main` + #11580 (`48919964c63c`) versus the earlier PR build (`690ca444159f`). However, the PR is currently at `b6535bf6cb6231cd39fd336234b15fbe85652692`, and the report explicitly says the change capture predates the rebase onto current `main`; I cannot confirm that those numbers represent the current head. Also, the repository requires a `perf` PR description to contain two valid summary lines with different commits, and the current body has neither line; GitHub still shows `perf numbers missing`. Please update the description with paired current-main/current-head `aps5-summary.jsonl` lines, attach their traces, and include the `tools/trace_digest.py` output. The performance claim remains unverified for the current head until then. The overlap scan reports only the independent debt-file hunk in #10760; the hosted build and platform checks are still running. I am requesting changes for the missing current-head performance report, not alleging a code defect.
adriadam10 commented 2026-10-28 14:25:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-28T14:25:52Z.

Review: DISMISSED


The change reads correctly: links are kept in both directions, cut on Register/Unregister, and the three collects report every page at each linked view. The new CheckDirectMemoryWriteWatchSeesWritesThroughAliases pins the reported pages for two and three views, and the updated expectations in the existing tests fail on main. What is left:

  • The GTA V A/B was taken before the rebase (690ca44415, base 48919964c6), and the head is now b6535bf6cb. @MarcZX10 asked for the pair on the current head and that is still open. Please rerun the base/PR pair on b6535bf6cb (or on the head after any further push), update the two aps5-summary.jsonl lines and the trace_digest.py output in the description, and attach the traces. The labels check is still pending on that.
  • WindowCopy::Holds bounds check (core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp:930) has no test: only GTA V reached it. A test where a collect over an import window reports a store at a linked page outside the window would show the crash it prevents.
  • The link cut on Register over an already linked range (GuestWriteWatch.cpp:64) is not reached by any test either; remapping a view over an aliased one and checking that no store is reported at the old partner would cover it.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5684250842 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12452#pullrequestreview-5684250842). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-28T14:25:52Z. **Review:** DISMISSED --- The change reads correctly: links are kept in both directions, cut on `Register`/`Unregister`, and the three collects report every page at each linked view. The new `CheckDirectMemoryWriteWatchSeesWritesThroughAliases` pins the reported pages for two and three views, and the updated expectations in the existing tests fail on `main`. What is left: - The GTA V A/B was taken before the rebase (`690ca44415`, base `48919964c6`), and the head is now `b6535bf6cb`. @MarcZX10 asked for the pair on the current head and that is still open. Please rerun the base/PR pair on `b6535bf6cb` (or on the head after any further push), update the two `aps5-summary.jsonl` lines and the `trace_digest.py` output in the description, and attach the traces. The `labels` check is still pending on that. - `WindowCopy::Holds` bounds check (`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp:930`) has no test: only GTA V reached it. A test where a collect over an import window reports a store at a linked page outside the window would show the crash it prevents. - The link cut on `Register` over an already linked range (`GuestWriteWatch.cpp:64`) is not reached by any test either; remapping a view over an aliased one and checking that no store is reported at the old partner would cover it.
MarcZX10 commented 2026-10-28 14:34:15 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T14:34:15Z.

Review: COMMENTED


Follow-up on the new head dc64a22147: the added CheckDirectMemoryWriteWatchDropsAliasOnRemap and CheckImportWindowOverAlias tests now exercise the two previously uncovered paths (cutting a link on Register and rejecting a linked page outside an import window). I confirmed those cases are present in the exact-head diff, and python3 tools/check_conventions.py --base upstream/main plus git diff --check upstream/main...HEAD pass locally. I have not run the C++ tests on this host. The remaining blocker from my earlier review is still the perf report: the attached A/B captures use the pre-rebase build 690ca44415, not this head, and GitHub still reports perf numbers missing. Please attach a same-machine/title/scene main vs current-head pair, the two summary lines, traces, and tools/trace_digest.py output; the performance claim cannot yet be checked for this commit.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5684385675 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12452#pullrequestreview-5684385675). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-28T14:34:15Z. **Review:** COMMENTED --- Follow-up on the new head `dc64a22147`: the added `CheckDirectMemoryWriteWatchDropsAliasOnRemap` and `CheckImportWindowOverAlias` tests now exercise the two previously uncovered paths (cutting a link on `Register` and rejecting a linked page outside an import window). I confirmed those cases are present in the exact-head diff, and `python3 tools/check_conventions.py --base upstream/main` plus `git diff --check upstream/main...HEAD` pass locally. I have not run the C++ tests on this host. The remaining blocker from my earlier review is still the `perf` report: the attached A/B captures use the pre-rebase build `690ca44415`, not this head, and GitHub still reports `perf numbers missing`. Please attach a same-machine/title/scene `main` vs current-head pair, the two summary lines, traces, and `tools/trace_digest.py` output; the performance claim cannot yet be checked for this commit.
adriadam10 commented 2026-10-28 14:36:32 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-28T14:36:32Z.

Review: DISMISSED


Both test gaps are covered: CheckDirectMemoryWriteWatchDropsAliasOnRemap pins that neither view reports the other's stores after a remap to other physical pages, and CheckImportWindowOverAlias pins the window collect reporting the linked page below the window. Each fails without the corresponding code (the link cut on Register, the Holds bound).

One point is left, the one @MarcZX10 still has open: the perf report. The GTA V pair and both aps5-summary.jsonl lines are from 690ca44415 on base 48919964c6; the head is now dc64a22147. The patch under test did not change in the rebase (range-diff shows =), so a pair on the current head is enough, no new analysis: rerun base/PR on the current head, update the two summary lines and the trace_digest.py output in the description, and attach the traces. Once that is in, this is ready to merge.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5684421832 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12452#pullrequestreview-5684421832). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-28T14:36:32Z. **Review:** DISMISSED --- Both test gaps are covered: `CheckDirectMemoryWriteWatchDropsAliasOnRemap` pins that neither view reports the other's stores after a remap to other physical pages, and `CheckImportWindowOverAlias` pins the window collect reporting the linked page below the window. Each fails without the corresponding code (the link cut on `Register`, the `Holds` bound). One point is left, the one @MarcZX10 still has open: the `perf` report. The GTA V pair and both `aps5-summary.jsonl` lines are from `690ca44415` on base `48919964c6`; the head is now `dc64a22147`. The patch under test did not change in the rebase (`range-diff` shows `=`), so a pair on the current head is enough, no new analysis: rerun base/PR on the current head, update the two summary lines and the `trace_digest.py` output in the description, and attach the traces. Once that is in, this is ready to merge.
MarcZX10 commented 2026-10-28 21:48:49 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T21:48:49Z.

Review: CHANGES_REQUESTED


Re-checked — changes requested

The new head adds the two regression cases requested in the earlier review: remapping one alias now checks that tracking is detached correctly, and the import-window case checks that a linked store outside the window is bounded. Those close the previously identified test gaps. The remaining blocker is still the performance comparison baseline.

What I ran

  • Reviewed current head 99fdd715b0857c44abf120d4c1974c21d142f84a against current main 319621ba2e578bd053b0baba2877fe70520e0737.
  • Compared the new head with the previously reviewed dc64a2214708ca7bf3e69d0ff18aae4ebb3397a0; the new commit changes only the test file.
  • Inspected the two new alias/remap and import-window cases.
  • Ran git diff --check refs/review/base...refs/review/pr-12452.
  • Generated a merge preview against current main.
  • Checked #11580’s current state and refreshed this PR’s hosted checks.

Results

Check Result
git diff --check pass
Merge preview against current main clean; tree d46006acea9dd9f061eedae09c99d781c4309703
New remap and import-window tests present at the current head; not run locally
Hosted conventions, policy, and platform checks pass
Hosted Linux/product job skipped
Author-reported test suite and GPU validation runs useful evidence; not independently reproduced
Performance report still uses a baseline including open #11580, not current main

Findings

Blocking

The performance data remains a comparison of current PR head 99fdd715b0 against main 446bd8776c plus #11580. #11580 is still open, so that baseline is not current main 319621ba2e. The paired traces may measure the optimization accurately on top of #11580, but they do not meet the repository’s required main-versus-change comparison. Please recapture on current main or obtain maintainer agreement to an explicitly declared stacked baseline.

Non-blocking

The new tests address the two test-coverage gaps from the previous review. The remaining open limitation in the report is the baseline, not those test cases.

Sources

Not verified

I did not rerun the C++ build, CTest, Vulkan validation, GTA V captures, or trace digests. Hosted Linux/product checks were skipped.

To get this to a good state

Provide a matched same-machine/title/scene capture pair using current main and this head, with both summary lines, traces, and digest output; alternatively, document maintainer-approved use of the stacked baseline and declare the dependency.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5690136860 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12452#pullrequestreview-5690136860). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-28T21:48:49Z. **Review:** CHANGES_REQUESTED --- # Re-checked — changes requested The new head adds the two regression cases requested in the earlier review: remapping one alias now checks that tracking is detached correctly, and the import-window case checks that a linked store outside the window is bounded. Those close the previously identified test gaps. The remaining blocker is still the performance comparison baseline. ## What I ran - Reviewed current head `99fdd715b0857c44abf120d4c1974c21d142f84a` against current `main` `319621ba2e578bd053b0baba2877fe70520e0737`. - Compared the new head with the previously reviewed `dc64a2214708ca7bf3e69d0ff18aae4ebb3397a0`; the new commit changes only the test file. - Inspected the two new alias/remap and import-window cases. - Ran `git diff --check refs/review/base...refs/review/pr-12452`. - Generated a merge preview against current `main`. - Checked #11580’s current state and refreshed this PR’s hosted checks. ## Results | Check | Result | |---|---| | `git diff --check` | pass | | Merge preview against current `main` | clean; tree `d46006acea9dd9f061eedae09c99d781c4309703` | | New remap and import-window tests | present at the current head; not run locally | | Hosted conventions, policy, and platform checks | pass | | Hosted Linux/product job | skipped | | Author-reported test suite and GPU validation runs | useful evidence; not independently reproduced | | Performance report | still uses a baseline including open #11580, not current `main` | ## Findings **Blocking** The performance data remains a comparison of current PR head `99fdd715b0` against `main` `446bd8776c` plus #11580. #11580 is still open, so that baseline is not current `main` `319621ba2e`. The paired traces may measure the optimization accurately on top of #11580, but they do not meet the repository’s required main-versus-change comparison. Please recapture on current main or obtain maintainer agreement to an explicitly declared stacked baseline. **Non-blocking** The new tests address the two test-coverage gaps from the previous review. The remaining open limitation in the report is the baseline, not those test cases. ## Sources - [Current alias/remap tests](https://github.com/boykopovar/AnyPS5/blob/99fdd715b0857c44abf120d4c1974c21d142f84a/core/libs/tests/GuestMemory.cpp) - [Current import-window regression](https://github.com/boykopovar/AnyPS5/blob/99fdd715b0857c44abf120d4c1974c21d142f84a/core/libs/prx/libSceAgcDriver/tests/WriteTracking.cpp) - [Current PR description and performance report](https://github.com/boykopovar/AnyPS5/pull/12452) - [Still-open baseline PR #11580](https://github.com/boykopovar/AnyPS5/pull/11580) ## Not verified I did not rerun the C++ build, CTest, Vulkan validation, GTA V captures, or trace digests. Hosted Linux/product checks were skipped. ## To get this to a good state Provide a matched same-machine/title/scene capture pair using current `main` and this head, with both summary lines, traces, and digest output; alternatively, document maintainer-approved use of the stacked baseline and declare the dependency.
MarcZX10 commented 2026-10-28 23:40:42 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T23:40:42Z.

Review: CHANGES_REQUESTED


Re-checked — changes requested

The added alias and import-window regression cases address the earlier test gaps, but the performance report still does not provide a complete, accepted comparison against the current base.

What I ran

  • Reviewed exact head 60df38935c6c26fbb05d47e38d8b9a791df05c61; the head's merge base with the fetched current main 3a2b91981651569163768854a1fcdc7193b6667b is c40a9fbd1c373134505c12ce71013d903430e128.
  • Ran git merge-tree --write-tree upstream/main HEAD; the current-main merge preview is clean (beb1054126a9341f130e7868627e1c3a177dc9c7).
  • Ran python3 tools/check_conventions.py --base upstream/main and git diff --check upstream/main...HEAD; both passed.
  • Refreshed hosted checks: Windows, Ubuntu relinker, Windows relinker, ASan, Ubuntu register-context, conventions, eligibility and labels pass. macOS relinker/register-context/write-watch jobs remain pending; Linux product tests are skipped.
  • Read the updated performance comment and the PR body. The body still documents the earlier pair based on main 446bd8776c + #11580. The comment adds a table for main 319621ba2e + #11580, but it does not include the summary lines, trace files or trace_digest.py output for that pair. I did not rerun the C++ tests or captures locally.

Results

Check Result
Current-main merge preview Clean, tree beb1054126a9341f130e7868627e1c3a177dc9c7
Conventions and diff check Pass
Hosted Windows and Ubuntu relinker checks Pass
Hosted ASan and Ubuntu register-context checks Pass
Hosted macOS relinker/register-context/write-watch checks Pending
Hosted Linux product job Skipped
Current-base performance report Incomplete; table only in comment, without the paired summaries, traces and digest

Findings

Blocking

  • The required performance comparison is not yet reviewable against the current base. The complete report in the PR body uses the earlier main 446bd8776c + #11580 baseline. The newer comment reports main 319621ba2e + #11580 results, but omits the exact aps5-summary.jsonl lines, attached traces and tools/trace_digest.py output for those runs. I also do not see maintainer agreement in the thread to use a stacked baseline; #11580 remains open.
  • The reported baseline predates a relevant current-main change. Current main includes #8930 (33acc03447034b61424cc1c36143cc40ea02bad3), which changes core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp; this PR also changes that file. The merge preview is clean, but the posted tests and captures do not verify the integrated tree or the current baseline.

Sources

Not verified

I did not independently run the C++ tests, the GPU captures, or trace digests. The posted exact summary lines and trace attachments remain the earlier pair; the current main + #11580 table is author-reported.

To get this to a good state

Rebase onto current main and rerun the focused alias/write-watch tests with #8930 present. Then provide the full same-machine/title/scene report for the current main and change (both summary lines, attached traces and digest output). If retaining main + #11580 as the baseline because plain main cannot reach the scene, record maintainer agreement to that stacked baseline and provide those same artifacts for the exact runs.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5691110541 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12452#pullrequestreview-5691110541). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-28T23:40:42Z. **Review:** CHANGES_REQUESTED --- # Re-checked — changes requested The added alias and import-window regression cases address the earlier test gaps, but the performance report still does not provide a complete, accepted comparison against the current base. ## What I ran - Reviewed exact head `60df38935c6c26fbb05d47e38d8b9a791df05c61`; the head's merge base with the fetched current `main` `3a2b91981651569163768854a1fcdc7193b6667b` is `c40a9fbd1c373134505c12ce71013d903430e128`. - Ran `git merge-tree --write-tree upstream/main HEAD`; the current-main merge preview is clean (`beb1054126a9341f130e7868627e1c3a177dc9c7`). - Ran `python3 tools/check_conventions.py --base upstream/main` and `git diff --check upstream/main...HEAD`; both passed. - Refreshed hosted checks: Windows, Ubuntu relinker, Windows relinker, ASan, Ubuntu register-context, conventions, eligibility and labels pass. macOS relinker/register-context/write-watch jobs remain pending; Linux product tests are skipped. - Read the updated performance comment and the PR body. The body still documents the earlier pair based on `main` `446bd8776c` + #11580. The comment adds a table for `main` `319621ba2e` + #11580, but it does not include the summary lines, trace files or `trace_digest.py` output for that pair. I did not rerun the C++ tests or captures locally. ## Results | Check | Result | |---|---| | Current-main merge preview | Clean, tree `beb1054126a9341f130e7868627e1c3a177dc9c7` | | Conventions and diff check | Pass | | Hosted Windows and Ubuntu relinker checks | Pass | | Hosted ASan and Ubuntu register-context checks | Pass | | Hosted macOS relinker/register-context/write-watch checks | Pending | | Hosted Linux product job | Skipped | | Current-base performance report | Incomplete; table only in comment, without the paired summaries, traces and digest | ## Findings ### Blocking - **The required performance comparison is not yet reviewable against the current base.** The complete report in the PR body uses the earlier `main` `446bd8776c` + #11580 baseline. The newer comment reports `main` `319621ba2e` + #11580 results, but omits the exact `aps5-summary.jsonl` lines, attached traces and `tools/trace_digest.py` output for those runs. I also do not see maintainer agreement in the thread to use a stacked baseline; #11580 remains open. - **The reported baseline predates a relevant current-main change.** Current main includes #8930 (`33acc03447034b61424cc1c36143cc40ea02bad3`), which changes `core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp`; this PR also changes that file. The merge preview is clean, but the posted tests and captures do not verify the integrated tree or the current baseline. ## Sources - [Updated PR test cases](https://github.com/boykopovar/AnyPS5/blob/60df38935c6c26fbb05d47e38d8b9a791df05c61/core/libs/prx/libSceAgcDriver/tests/WriteTracking.cpp) - [PR's `GuestMemory.cpp` change](https://github.com/boykopovar/AnyPS5/blob/60df38935c6c26fbb05d47e38d8b9a791df05c61/core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp) - [Current main's #8930 `GuestMemory.cpp` change](https://github.com/boykopovar/AnyPS5/blob/33acc03447034b61424cc1c36143cc40ea02bad3/core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp) - [Newer baseline discussion](https://github.com/boykopovar/AnyPS5/pull/12452#issuecomment-6483071985) - [Performance report requirements](https://github.com/boykopovar/AnyPS5/blob/3a2b91981651569163768854a1fcdc7193b6667b/.github/ISSUE_TEMPLATE/performance.yml) ## Not verified I did not independently run the C++ tests, the GPU captures, or trace digests. The posted exact summary lines and trace attachments remain the earlier pair; the current `main` + #11580 table is author-reported. ## To get this to a good state Rebase onto current `main` and rerun the focused alias/write-watch tests with #8930 present. Then provide the full same-machine/title/scene report for the current main and change (both summary lines, attached traces and digest output). If retaining `main` + #11580 as the baseline because plain main cannot reach the scene, record maintainer agreement to that stacked baseline and provide those same artifacts for the exact runs.
MarcZX10 commented 2026-10-29 06:39:28 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T06:39:28Z.

Review: CHANGES_REQUESTED


Re-reviewed — changes requested

The 2026-10-29 06:11 update now supplies paired summary data and trace attachments for its reported main + #11580 comparison. That closes the earlier artifact omission, but the comparison and test report still use an older code baseline than current main.

What I ran

  • Reviewed current head d10b767163fc1ea4c83e4cebb6d8175c25fcd373 against current main 2960e9a6e7e1fc99c4ed180c71495b5eb83464c7.
  • Ran git merge-tree --write-tree refs/remotes/upstream/main refs/review/upstream-12452; it returned clean tree c0626db37359d66afacb135852016190dbe81dc3.
  • Ran git diff --check refs/remotes/upstream/main...refs/review/upstream-12452; exit 0, no output.
  • Compared the report's baseline c40a9fbd1c373134505c12ce71013d903430e128 with current main. Current main includes #8930 (33acc03447034b61424cc1c36143cc40ea02bad3), which changes the same GuestMemory.cpp path changed by this PR.
  • I did not run the C++ tests, capture runs, or trace digests locally.

Results

Check Result
Current-main merge preview Clean
Diff check Pass
Updated A/B artifacts Present in the author update for base c40a9fbd1c + #11580 and the then-tested PR head
Current-main A/B Not reported; the current-main GuestMemory.cpp change from #8930 is absent from the reported baseline
Current-head focused tests The author reports the suite on the earlier 60df38935c head; current head is d10b767163fc, and hosted Linux product tests are skipped
Stacked-baseline agreement I found no maintainer agreement in the thread to use #11580 as the baseline dependency

Negative control

The PR's earlier reported controls distinguish alias tracking from the prior implementation and cover the remap and import-window cases. I did not rerun them on the current head or with #8930 integrated.

Findings

Blocking

  1. The performance pair is stale against current main. The updated report uses c40a9fbd1c + #11580. Current main is 2960e9a6e7e1fc99c4ed180c71495b5eb83464c7 and includes #8930's 44-line change to core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp, which is also changed by this PR. Please rerun the focused tests and the required matched performance comparison on current main + #11580 and this PR on that same baseline. If #11580 is retained as the baseline, record maintainer agreement and the dependency/order in the checklist.
  2. The new exact-head tests have not been reported. The current head d10b767163fc adds the remap and import-window cases after the measured/tested 60df38935c head. Please report those focused tests on the current integrated head.

Sources

Not verified

I did not independently run the test suite, produce captures, inspect the attached trace contents, or execute tools/trace_digest.py. The reported artifacts and prior controls are author-reported; the merge preview, path comparison and diff check are local.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5693799163 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12452#pullrequestreview-5693799163). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T06:39:28Z. **Review:** CHANGES_REQUESTED --- # Re-reviewed — changes requested The 2026-10-29 06:11 update now supplies paired summary data and trace attachments for its reported `main` + #11580 comparison. That closes the earlier artifact omission, but the comparison and test report still use an older code baseline than current `main`. ## What I ran - Reviewed current head `d10b767163fc1ea4c83e4cebb6d8175c25fcd373` against current `main` `2960e9a6e7e1fc99c4ed180c71495b5eb83464c7`. - Ran `git merge-tree --write-tree refs/remotes/upstream/main refs/review/upstream-12452`; it returned clean tree `c0626db37359d66afacb135852016190dbe81dc3`. - Ran `git diff --check refs/remotes/upstream/main...refs/review/upstream-12452`; exit 0, no output. - Compared the report's baseline `c40a9fbd1c373134505c12ce71013d903430e128` with current `main`. Current `main` includes #8930 (`33acc03447034b61424cc1c36143cc40ea02bad3`), which changes the same `GuestMemory.cpp` path changed by this PR. - I did not run the C++ tests, capture runs, or trace digests locally. ## Results | Check | Result | |---|---| | Current-main merge preview | Clean | | Diff check | Pass | | Updated A/B artifacts | Present in the author update for base `c40a9fbd1c` + #11580 and the then-tested PR head | | Current-main A/B | Not reported; the current-main `GuestMemory.cpp` change from #8930 is absent from the reported baseline | | Current-head focused tests | The author reports the suite on the earlier `60df38935c` head; current head is `d10b767163fc`, and hosted Linux product tests are skipped | | Stacked-baseline agreement | I found no maintainer agreement in the thread to use #11580 as the baseline dependency | ## Negative control The PR's earlier reported controls distinguish alias tracking from the prior implementation and cover the remap and import-window cases. I did not rerun them on the current head or with #8930 integrated. ## Findings ### Blocking 1. **The performance pair is stale against current `main`.** The updated report uses `c40a9fbd1c` + #11580. Current `main` is `2960e9a6e7e1fc99c4ed180c71495b5eb83464c7` and includes #8930's 44-line change to `core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp`, which is also changed by this PR. Please rerun the focused tests and the required matched performance comparison on current `main` + #11580 and this PR on that same baseline. If #11580 is retained as the baseline, record maintainer agreement and the dependency/order in the checklist. 2. **The new exact-head tests have not been reported.** The current head `d10b767163fc` adds the remap and import-window cases after the measured/tested `60df38935c` head. Please report those focused tests on the current integrated head. ## Sources - [Current PR changes](https://github.com/boykopovar/AnyPS5/tree/d10b767163fc1ea4c83e4cebb6d8175c25fcd373/core/libs/prx) - [Current PR's alias and import-window tests](https://github.com/boykopovar/AnyPS5/tree/d10b767163fc1ea4c83e4cebb6d8175c25fcd373/core/libs/tests) - [Current-main #8930 change to `GuestMemory.cpp`](https://github.com/boykopovar/AnyPS5/blob/33acc03447034b61424cc1c36143cc40ea02bad3/core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp) - [Updated A/B report and trace attachments](https://github.com/boykopovar/AnyPS5/pull/12452#issuecomment-6489392833) - [Performance report requirements](https://github.com/boykopovar/AnyPS5/blob/2960e9a6e7e1fc99c4ed180c71495b5eb83464c7/.github/ISSUE_TEMPLATE/performance.yml) - [Current contribution rules](https://github.com/boykopovar/AnyPS5/blob/2960e9a6e7e1fc99c4ed180c71495b5eb83464c7/CONTRIBUTING.md) ## Not verified I did not independently run the test suite, produce captures, inspect the attached trace contents, or execute `tools/trace_digest.py`. The reported artifacts and prior controls are author-reported; the merge preview, path comparison and diff check are local.
MarcZX10 commented 2026-10-29 11:07:57 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T11:07:57Z.

Review: CHANGES_REQUESTED


Re-checked — changes requested

Your update resolves the prior stale-baseline request against aaccd0ba39: it rebases to 1db077e876, reports all 18 focused tests and the negative controls on the new head, and explains why the captures still cover an unchanged production path. Current main is now ba5b5330b3. Please merge that current head and rerun the 18 focused write-watch/import/alias tests and negative controls. The current-main changes in the PR's files are limited to its debt entry, so the existing performance captures can remain if the updated diff confirms the measured production path is unchanged.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5696707292 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12452#pullrequestreview-5696707292). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T11:07:57Z. **Review:** CHANGES_REQUESTED --- ## Re-checked — changes requested Your update resolves the prior stale-baseline request against `aaccd0ba39`: it rebases to `1db077e876`, reports all 18 focused tests and the negative controls on the new head, and explains why the captures still cover an unchanged production path. Current `main` is now `ba5b5330b3`. Please merge that current head and rerun the 18 focused write-watch/import/alias tests and negative controls. The current-main changes in the PR's files are limited to its debt entry, so the existing performance captures can remain if the updated diff confirms the measured production path is unchanged.
MarcZX10 commented 2026-10-29 13:27:27 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T13:27:27Z.

Review: APPROVED


Re-checked — new head, looks good

The requested current-main refresh and exact-head focused evidence are present, the measured production paths are unchanged since the capture baseline, and the required hosted checks pass.

What I ran

  • Reviewed head 4621b11d0034ac851ca5691829050dc621504c8f against current main 7aabd03d0a32bb928311ef1323b95dffb4618f7e; the merge preview is clean.
  • Compared the PR file list with changes from the reported measurement base 1db077e876 to current main. The only overlapping path is the debt document; the measured write-watch, direct-memory, and import-window implementation paths are unchanged.
  • Refreshed hosted checks for the exact head. This review ran from a Linux shell; I did not invoke a compiler or run C++ tests locally.
  • Read the author's exact-head test and negative-control report; those runs are author-reported, not independently reproduced here.
git fetch upstream main
git fetch upstream pull/12452/head:refs/remotes/review/pr-12452
git merge-tree --write-tree upstream/main refs/remotes/review/pr-12452
gh pr view 12452 -R boykopovar/AnyPS5 --json files --jq '.files[].path'
git diff --name-only 1db077e876 upstream/main
gh pr checks 12452 -R boykopovar/AnyPS5

Results

Check Result
Merge preview against current main Pass; clean tree 7e84b4ba1296e790168b317d2b7c652988478574
Relevant path comparison since measured base Only shared path is docs/dev/debt/libSceAgcDriver.md; measured production paths are unchanged
Hosted conventions, eligibility, labels, report, Windows, register-context, relinker, ASan, and macOS write-watch checks Pass
Hosted Linux product job Skipped
18 focused write-watch/import/alias tests on exact head Author reports pass with Vulkan validation; not locally reproduced
991/992 guest_* tests on exact head Author reports 991 pass; guest_freebsd_clocks has the same failure on main
Three negative controls Author reports each regression test fails when its corresponding fix is removed
Unedited command output
7e84b4ba1296e790168b317d2b7c652988478574
docs/dev/debt/libSceAgcDriver.md
conventions	pass	16s	https://github.com/boykopovar/AnyPS5/actions/runs/40867583050/job/123426148406
eligibility	pass	8s	https://github.com/boykopovar/AnyPS5/actions/runs/40867580933/job/123426140489
labels	pass	7s	https://github.com/boykopovar/AnyPS5/actions/runs/40867583016/job/123426201836
register-context (macos-15-intel, Debug)	pass	1m11s	https://github.com/boykopovar/AnyPS5/actions/runs/40867580933/job/123426211921
register-context (macos-15-intel, Release)	pass	1m13s	https://github.com/boykopovar/AnyPS5/actions/runs/40867580933/job/123426211890
register-context (ubuntu-latest, Debug)	pass	35s	https://github.com/boykopovar/AnyPS5/actions/runs/40867580933/job/123426211919
register-context (ubuntu-latest, Release)	pass	35s	https://github.com/boykopovar/AnyPS5/actions/runs/40867580933/job/123426211986
relinker (macos-latest, clang++)	pass	5m25s	https://github.com/boykopovar/AnyPS5/actions/runs/40867580933/job/123426211893
relinker (macos-latest, clang++, x86_64)	pass	6m22s	https://github.com/boykopovar/AnyPS5/actions/runs/40867580933/job/123426211952
relinker (ubuntu-latest, g++)	pass	2m42s	https://github.com/boykopovar/AnyPS5/actions/runs/40867580933/job/123426212008
relinker (windows-latest, g++)	pass	9m23s	https://github.com/boykopovar/AnyPS5/actions/runs/40867580933/job/123426212076
relinker-asan	pass	1m49s	https://github.com/boykopovar/AnyPS5/actions/runs/40867580933/job/123426211857
windows	pass	10m8s	https://github.com/boykopovar/AnyPS5/actions/runs/40867580933/job/123426211959
linux	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/40867580933/job/123426213868
report	pass	40s	https://github.com/boykopovar/AnyPS5/actions/runs/40867580927/job/123426135322
write-watch (macos-15)	pass	41s	https://github.com/boykopovar/AnyPS5/actions/runs/40867580933/job/123426211914
write-watch (macos-15-intel)	pass	1m51s	https://github.com/boykopovar/AnyPS5/actions/runs/40867580933/job/123426211799

Negative control

Assertion Change made to code under test New test failed?
Alias stores are observed through each linked view Restored main's GuestWriteWatch.cpp and DirectMemory.cpp Yes, author-reported
Remapped aliases stop reporting stale linked stores Removed the link cut in Register Yes, author-reported
Import-window alias collection stays within the window buffer Removed the WindowCopy::Holds bound Yes, author-reported

Findings

Blocking

None found in the reviewed exact head.

Non-blocking

The hosted Linux product job is skipped, and I did not independently reproduce the author's Linux/GPU test and capture runs.

Sources

Not verified

I did not run a local C++ build, CTest, Vulkan validation, GTA V capture, trace digest, or console test. The focused Linux results and GPU captures are author-reported.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5698438404 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12452#pullrequestreview-5698438404). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T13:27:27Z. **Review:** APPROVED --- # Re-checked — new head, looks good The requested current-main refresh and exact-head focused evidence are present, the measured production paths are unchanged since the capture baseline, and the required hosted checks pass. ## What I ran - Reviewed head `4621b11d0034ac851ca5691829050dc621504c8f` against current `main` `7aabd03d0a32bb928311ef1323b95dffb4618f7e`; the merge preview is clean. - Compared the PR file list with changes from the reported measurement base `1db077e876` to current `main`. The only overlapping path is the debt document; the measured write-watch, direct-memory, and import-window implementation paths are unchanged. - Refreshed hosted checks for the exact head. This review ran from a Linux shell; I did not invoke a compiler or run C++ tests locally. - Read the author's exact-head test and negative-control report; those runs are author-reported, not independently reproduced here. ```sh git fetch upstream main git fetch upstream pull/12452/head:refs/remotes/review/pr-12452 git merge-tree --write-tree upstream/main refs/remotes/review/pr-12452 gh pr view 12452 -R boykopovar/AnyPS5 --json files --jq '.files[].path' git diff --name-only 1db077e876 upstream/main gh pr checks 12452 -R boykopovar/AnyPS5 ``` ## Results | Check | Result | |---|---| | Merge preview against current `main` | Pass; clean tree `7e84b4ba1296e790168b317d2b7c652988478574` | | Relevant path comparison since measured base | Only shared path is `docs/dev/debt/libSceAgcDriver.md`; measured production paths are unchanged | | Hosted conventions, eligibility, labels, report, Windows, register-context, relinker, ASan, and macOS write-watch checks | Pass | | Hosted Linux product job | Skipped | | 18 focused write-watch/import/alias tests on exact head | Author reports pass with Vulkan validation; not locally reproduced | | 991/992 `guest_*` tests on exact head | Author reports 991 pass; `guest_freebsd_clocks` has the same failure on main | | Three negative controls | Author reports each regression test fails when its corresponding fix is removed | <details><summary>Unedited command output</summary> ```text 7e84b4ba1296e790168b317d2b7c652988478574 docs/dev/debt/libSceAgcDriver.md conventions pass 16s https://github.com/boykopovar/AnyPS5/actions/runs/40867583050/job/123426148406 eligibility pass 8s https://github.com/boykopovar/AnyPS5/actions/runs/40867580933/job/123426140489 labels pass 7s https://github.com/boykopovar/AnyPS5/actions/runs/40867583016/job/123426201836 register-context (macos-15-intel, Debug) pass 1m11s https://github.com/boykopovar/AnyPS5/actions/runs/40867580933/job/123426211921 register-context (macos-15-intel, Release) pass 1m13s https://github.com/boykopovar/AnyPS5/actions/runs/40867580933/job/123426211890 register-context (ubuntu-latest, Debug) pass 35s https://github.com/boykopovar/AnyPS5/actions/runs/40867580933/job/123426211919 register-context (ubuntu-latest, Release) pass 35s https://github.com/boykopovar/AnyPS5/actions/runs/40867580933/job/123426211986 relinker (macos-latest, clang++) pass 5m25s https://github.com/boykopovar/AnyPS5/actions/runs/40867580933/job/123426211893 relinker (macos-latest, clang++, x86_64) pass 6m22s https://github.com/boykopovar/AnyPS5/actions/runs/40867580933/job/123426211952 relinker (ubuntu-latest, g++) pass 2m42s https://github.com/boykopovar/AnyPS5/actions/runs/40867580933/job/123426212008 relinker (windows-latest, g++) pass 9m23s https://github.com/boykopovar/AnyPS5/actions/runs/40867580933/job/123426212076 relinker-asan pass 1m49s https://github.com/boykopovar/AnyPS5/actions/runs/40867580933/job/123426211857 windows pass 10m8s https://github.com/boykopovar/AnyPS5/actions/runs/40867580933/job/123426211959 linux skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/40867580933/job/123426213868 report pass 40s https://github.com/boykopovar/AnyPS5/actions/runs/40867580927/job/123426135322 write-watch (macos-15) pass 41s https://github.com/boykopovar/AnyPS5/actions/runs/40867580933/job/123426211914 write-watch (macos-15-intel) pass 1m51s https://github.com/boykopovar/AnyPS5/actions/runs/40867580933/job/123426211799 ``` </details> ## Negative control | Assertion | Change made to code under test | New test failed? | |---|---|---| | Alias stores are observed through each linked view | Restored main's `GuestWriteWatch.cpp` and `DirectMemory.cpp` | Yes, author-reported | | Remapped aliases stop reporting stale linked stores | Removed the link cut in `Register` | Yes, author-reported | | Import-window alias collection stays within the window buffer | Removed the `WindowCopy::Holds` bound | Yes, author-reported | ## Findings ### Blocking None found in the reviewed exact head. ### Non-blocking The hosted Linux product job is skipped, and I did not independently reproduce the author's Linux/GPU test and capture runs. ## Sources - [PR implementation and test files at reviewed head](https://github.com/boykopovar/AnyPS5/tree/4621b11d0034ac851ca5691829050dc621504c8f/core/libs) - [Performance report template at reviewed head](https://github.com/boykopovar/AnyPS5/blob/4621b11d0034ac851ca5691829050dc621504c8f/.github/ISSUE_TEMPLATE/performance.yml) - [Author's exact-head test and negative-control report](https://github.com/boykopovar/AnyPS5/pull/12452#issuecomment-6495742557) ## Not verified I did not run a local C++ build, CTest, Vulkan validation, GTA V capture, trace digest, or console test. The focused Linux results and GPU captures are author-reported.
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!12452
No description provided.