perf(agc): settle Windows imports under 1 MiB without waiting #6678

Merged
EagleBearerYS merged 11 commits from upstream-pr/6678 into main 2026-10-18 04:22:06 +00:00
EagleBearerYS commented 2026-10-16 04:07:57 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-16T04:07:57Z.


What

This implements the non-blocking settle that the debt entry for pages under an import window lists as missing. The entry (23fccd7632, merged with #6060) ends: "Settling without blocking the importing thread (submit the read, keep the import compared until its fence signals, then switch it to the write watch) is not implemented."

  • The PR follows that sequence. Batching the reads, which a later lookup submits instead of the importing call, is this PR's own choice.
  • The switch to the write watch restores tracking without replacing the backing, but after the settle, while the import is live. The clause of the entry above it, "restoring tracking on import retirement without replacing the backing remains unimplemented", still holds: an import retired before its blocks return leaves them compared, as now.

Why. Since #6060, a Windows host import of private write-watched memory stays in the write watch only after its settle, a 4-byte GPU read that the importing thread waits for. Only imports of 1 MiB or more are settled (23fccd7632): SuperTuxKart (PPSA69421) maps, imports and unmaps a 64 KiB buffer around every submission, and waiting for each settle cost it about 19% of its frame rate (Dripl1x, on #6060). A smaller import is compared instead, and its range leaves the write watch for good.

Resident Evil Village (PPSA01556) maps its GPU heap in 64 KiB pieces of resident direct memory. In a profiled boot to the menu, 12,628 of the 14,881 imports were made at map time, in such pieces. So on main's settle code that whole heap is compared, and so is every texture sampled from it.

  • At the menu, APS5_PROFILE_DRAW=1, per 10 s: [textures] kept 16.5 M untracked snapshots by their hint and compared 283,785, and [guestmem] compared 33 GB in 3.4 s.
  • Over the run, 2.05 TB of the 2.2 TB compared was cachedTexture's snapshot compare.

The game's menu, unprofiled, as the median of the 60-s intervals 5–15 min after the menu stands, on our Resident Evil Village test tree (main plus the open fixes the title needs, ours and others'), Windows 11, RTX 3070 Laptop:

Settle code (same tree) Menu fps (frame p50 / p90)
main's 0.133 (7.41 s / 8.03 s)
every import settled synchronously (a local switch that sets the floor to 0) 0.508 (1.83 s / 2.20 s)
this PR (floor kept at 1 MiB) 0.733 (1.35 s / 1.46 s)
  • Only the settle differs between the rows. With this PR the menu runs 5.5 times as fast as with main's settle code. The PR's row ran b62a0572e7, the revision before this head. The head only adds the SetHostImportDeferredSettles test hook, which is on by default, and tests, so it runs the same code.
  • It also comes up sooner: the lit menu came 7.4 min after launch, against 10.0 min with main's settle code.
  • This PR is also faster than settling every import synchronously, which makes the mapping thread wait for each read.

#5692 tracks the same comparison cost on other titles. This PR covers the part of it that comes from imports under 1 MiB. I don't know whether the titles there make such imports, so it's listed as related.

How:

  • An import under 1 MiB is compared when it is made, as now, and its 4-byte read is queued.
  • The next import lookup that holds GpuMutex while the imports match the registry records the reads queued since into one command buffer on the settle queue (up to 256 reads per batch, four batches in flight) and submits it. The thread that maps and imports neither submits nor waits.
  • Once a batch's fence has signalled, a later lookup returns its imports' whole 64 KiB blocks to the write watch, except where storage results are pending over them; those wait for a later lookup.
  • GuestMemory::Rewatch, the first commit, collects and drops the blocks' write-watch marks and stamps every block as a CPU store with a new generation. So anything derived from the range while it was compared (a snapshot without a generation, a proof by its untracked hint) reads as changed once.
  • A settled import whose range had already left the watch, such as a whole range imported over a piece that was compared, returns the same way.
  • An import retired while its read is still running is kept on the read's batch and freed once the batch's fence has signalled (at the next lookup, a drain or a device switch), so no read outlives the import's memory and retiring it doesn't wait. An unmap that needs that memory waits for the batch, counted as an unmap wait.
  • A completed settle read ends the driver's marking of the import's pages, even while main-queue work that used the import first is still running, and an earlier import's later first use of the same pages marks nothing. Two canary tests check this on the device they run on.
  • A settle batch whose submit or reset fails, which means device loss, drops its settles without retrying them, and so does a Rewatch that refuses a page, which happens only for pages an import wouldn't have pinned.
  • SetHostImportDeferredSettles(false), a test hook like SetHostImportBudget, keeps imports under 1 MiB compared as before. agc_driver_dcc_keys_first_write's hinted-import case uses it, because that case tests the untracked hint of an import that stays compared. That still happens on a device without a settle queue, and until the read completes. APS5_NO_DEFERRED_SETTLES (any value) does the same for a run (5f822a5008), so a title can be compared with and without the deferral on one build.

SuperTuxKart (PPSA69421) stays whole. Nothing that maps, imports or unmaps its per-submission buffer waits for a settle:

  • An import made on the title's mapping thread, off GpuMutex, only queues its read. Reads go out only from a lookup under GpuMutex.
  • Unmapping the buffer retires its import at once, through the registry's pin waiter (WaitForLeasesAndImports), as on main. A read still queued is dropped. One already submitted has almost always finished by then, and the retire checks its fence before it would wait.
  • A lookup made while the imports don't match the registry submits nothing. So an import that a new mapping is about to replace (a joined run) doesn't get a read just before its retirement.
  • The new test checks the first two: 64 rounds of mapping, importing and unmapping a 64 KiB buffer at one address off the device lock, and 64 more under it, submit no read and wait for none.
  • I couldn't run SuperTuxKart itself.

Why not #4448's GuestMemory::Rewatch. On Windows its body is empty: it re-registers the range with Linux's write watch, for imports retired after sixty idle frames. This PR's Rewatch is the Windows re-include, by whole tracker blocks. The two take different arguments, so they would sit side by side as overloads.

The commits:

  1. feat(agc): GuestMemory::Rewatch, with a write-tracking case.
  2. perf(agc): the settle, with its tests. It also keeps agc_driver_dcc_keys_first_write's hinted-import case on a compared import.
  3. docs(agc): ARCHITECTURE.md and the debt entry.
  4. perf(agc): an import retired during its settle read is freed after the read instead of waiting for it. The [buffers] line counts settle reads submitted, back in the write watch, retired during their read, the unmaps that waited for one, and pending.
  5. test(agc): the two canaries for the driver's marking, and the docs to match.

Overlap.

  • #5905 (hugodearaujo, merged) settles dma-buf imports on Linux on the settle queue. This PR's merge of main (c7e07cae44) keeps both: settleImport builds on both platforms, and the batched settle of Windows imports under 1 MiB and its counters stay Windows-only. The paragraph and the debt entry keep both texts.

  • #7269 (JJenkx, merged) holds the synchronous settle's buffer, memory and fence per device in ImportSettle. This PR's merge of main (8f03535c8f) keys its settle batches the same way: each device's ImportSettle also holds its batch target, memory, batches and their fences, so a device switch keeps every device's batches, and ClearHostImports waits for and destroys only that device's. A submitted settle records its device, and the per-import map is pendingSettles, clear of #7269's settles.

  • #6457 and #6479 (mine) conflict with this PR in GuestBufferMemory.cpp, at four places:

    • they change importRunAt's and importAllocation's signatures;
    • they add declarations and functions next to this PR's.

    Each resolution keeps both sides, as already done in my Resident Evil Village test tree. Whichever PR lands second takes it.

  • #5390 shares the debt file.

  • #6472 (ahir061) adds HostImportBudget next to this PR's SetHostImportDeferredSettles, in GuestBufferMemory.hpp and .cpp. Whichever lands second keeps both.

  • #6499 (parl0v) also retires its trimmed imports when refreshImports finds the device changed. This PR drains the pending settles there first, so whichever lands second keeps drainSettles(state) ahead of #6499's loop over both maps.

  • #6546 (mariuszkreft) refreshes a heap mirror conservatively where its range has left the write watch. On Windows an import under 1 MiB is one way a range leaves it. With this PR such ranges come back after their settle, so that fallback is taken less often. The two change different functions in GuestBufferMemory.cpp and merge cleanly.

  • #6192 (TheAggie) makes revalidation over untracked memory cheaper, and #6308 (LeandroLP23) runs the unwatch hook in ImportWatched's fallback. Both merge cleanly with this one, and both keep mattering for what stays compared.

  • #6918 (Scramblrrrr, draft) clips a partly committed import window to the aligned committed span that holds the request. It merges cleanly with this PR. A clipped window is aligned to the device's import alignment, not to 64 KiB, so one that isn't whole 64 KiB blocks stays compared, like any import this PR doesn't settle.

Related: #6060, #5851, #4448, #6192, #6308, #6546, #5692.

Tested

  • agc_write_tracking (CheckRewatch): a rewatched block is watched and collected again, reads as changed since before it left and as CPU-stored, its untracked hint stops applying, and the blocks around it keep their stamps. Part of a block, and a block with uncommitted pages, stay out.
  • New agc_import_settle_deferred and agc_import_settle_deferred_other_family (Windows, a Vulkan device with a settle queue):
    • a 64 KiB import is compared at first, returns to the write watch after its settle, and a CPU store after that is collected;
    • 64 rounds of a 64 KiB buffer mapped again at one address, imported off the device lock: each import is compared, and nothing is submitted or waited for;
    • 64 more rounds under the device lock, with no lookup between a mapping and the next: the same;
    • a buffer mapped again while its settle may be in flight is imported and returns to the write watch;
    • a 1 MiB import over a 64 KiB piece that was compared returns to the write watch;
    • with deferred settles off, a 64 KiB import stays compared.
  • Windows 11, NVIDIA GeForce RTX 3070 Laptop GPU (driver 617.42):
    • Red: the new tests on main's GuestBufferMemory.cpp, without their counter checks, fail with "(d) a 64 KiB import did not return to the write watch after its settle".
    • Green, 5 of 5: both new tests, agc_write_tracking, agc_import_watch and agc_import_watch_other_family.
    • Green, 2 of 2: the other Windows host-import tests, agc_driver_host_import_windows, _at_map, agc_host_import_retire, agc_driver_dcc_keys_first_write, agc_driver_layered_volume_submit, agc_driver_multisample_fill_host_only, agc_driver_store_over_untracked and agc_storage_cpu_snapshot.
    • The last two commits, 5 of 5: agc_import_settle_retire ("64 while the read ran, 0 waits, 0 unmaps waited for a read"; with retirement waiting for the read again it fails 3 of 3, "0 while the read ran, 64 waits" and "replacing an import during its settle read waited for the read"), and the canaries agc_import_settle_first_use (back in the write watch 21.7 to 30.4 ms after 4,096 main-queue copies of the import were submitted, while they still ran, with no driver marks afterwards) and agc_import_settle_earlier_import (an earlier import's first use runs only after the range is back in the watch, with no marks). The canaries have no red by design: they fail only on a driver that keeps marking. The other settle and watch tests pass 2 of 2.
    • 141d605b90 (the first-use canary retries with more copies instead of failing when its copies finish first), on main 66e290f1c0 with this PR, #6454 and #6911 merged (the other two don't touch this path): agc_import_settle_first_use passes 10 of 10, racing in its first round (back in the write watch 26.7 ms after 4,096 main-queue copies, which were reaped by 47.9 ms; no driver marks after its return).
    • agc_driver_store_over_untracked sometimes fails on main on this PC too ("the result was never held pending").
  • GitHub's runners, on my fork, the ^agc tests (run; #6452's test fix applied there only, because main doesn't build in full with MinGW since #5747):
    • Linux: 606 of 606 pass, 43 skip.
    • Windows: 600 of 602 pass, 469 skip without a Vulkan device.
      • agc_driver_pm4_replay_tool (0xc0000139) fails on main on that runner too.
      • agc_driver_flip_compute printed "AGC flip and suspend tests passed" and then timed out at exit. That's the pattern of the exit hang #6641 fixes. In 20 more runs it passed every time, on this branch alone (run) and with #6641's commits added (run).
    • The red mark on the run comes from those two, plus guest_kqueue and precise_wait in the libc and libkernel suites, which fail on main on those runners too.
    • The sweep ran one revision before the last test fixes. The tests those fixes touch pass again on the head, on both runners (run).
    • The last two commits (run): both runners build them and run the touched tests, which skip on Windows without a Vulkan device; the run's red mark is guest_kqueue on Windows, a kqueue test this PR doesn't touch.
  • Linux, the CI job's steps on an Ubuntu 24.04 machine (GCC 13.3, lavapipe). This ran on an earlier revision. On Linux the head only adds HostImportSettles, which returns zeros there:
    • 1,277 tests: 1,211 pass, 61 skip, and 5 fail. The failures are four guest_datagram_* tests and guest_tcp: that machine has no IPv6, and they fail the same way on main.
    • agc_write_tracking and agc_import_watch pass 20 of 20.
    • Preprocessed for Linux, the changed sources differ from main only by GuestMemory::Rewatch, which is empty outside Windows, and by settleImport's device setup, which ran the same steps from adoptSettleDevice; since the merge of main 98c251fc62 that setup is settleFor, with the same steps. Everything else this PR adds is inside #ifdef _WIN32.
    • At the last two commits' code: build and test registration pass, ^agc passes 606 of 606 (43 skip), and the preprocessed Linux sources change only by two counter fields.
  • Resident Evil Village (PPSA01556): the menu runs as in the table above, with no FATAL.
  • In the first scene, on the same tree, profiled runs show no gap: this PR ran 0.090 fps over 455 s at control, against 0.091 fps over 1,284 s with every import settled synchronously. Unprofiled, this PR held about 0.083 fps for 22 min, while synchronous settling rose from 0.089 to 0.15 fps over 12 min; main's settle code ran 0.029 fps there (one earlier run at control). All four runs fill the 6400 MiB import budget in the scene. With this PR the budget fills during the load, about 100 s before control, because imports under 1 MiB no longer wait; with synchronous settling it fills about 100 s after control, once the scene has imported its ranges. While the budget is full, every import an address-based build maps is stamped as recently used, so none of them can be evicted, and a range first needed after that, here one build import at 0x2372400000 (512 KiB to 1 MiB), is copied on the CPU at each use. That comes from the import budget's eviction, not from this PR's settle.
  • Planet of Lana (PPSA19450), as a check that a CPU-bound title doesn't slow down: our test tree for it (not main; it carries the open fixes the title needs) with #6455 and this PR, Windows 11, RTX 3070 Laptop, warm shader cache, no APS5_PROFILE_* (the trace summary on). The meadow save is loaded from the title menu, then the player stands still; each value is the median of the five 60-s intervals from 180 to 480 s after the first present. One build, run OFF (APS5_NO_DEFERRED_SETTLES=1, the only difference between the launches), ON, then OFF again:
    • 5.06, 5.00 and 6.08 fps, at mean graphics clocks of 736, 723 and 769 MHz (clocks weren't held). The two OFF runs differ by 20 %, so this shows no frame-rate drop but can't rule out a small one.
    • GPU busy per present (the trace summary's gpu_busy_ms_per_present): 50.3, 54.4 and 44.0 ms. ON is at the high end, but inside the 6.3 ms between the OFF runs, so it can't be told apart from run-to-run spread. parl0v's RTX 3060 rows below go the same direction.
  • SILENT HILL: Townfall (PPSA33286), run by keravyn-ops on Windows 11 with an AMD Radeon 780M (driver 25.10.20.01), from boot with APS5_PROFILE_DRAW=1 and APS5_ADDRESS_COPY_MAX_MIB=8192 for 90 s (comment):
    • On main 3b10c7ef0 it aborts after 25 s with a heap mirror's range is no longer write-watched.
    • With #6455 and this PR it's still running at 90 s: 829 unwatched heaps against 3,711, and 4,507 small-import settle reads submitted, 4,525 imports back in the write watch, none pending.
  • Hello Neighbor (PPSA35154), run by HQasper on Windows 11 Pro with an NVIDIA GeForce RTX 5090 (driver 617.42, Resizable BAR on), WinLibs GCC 15.2.0, on main 47a266cf9 with #6455 and this PR merged on top (comment). In game at the start of Act 1, 60 s of frames standing still from 120 s after Continue, no profiler, one run per build (noise about ±5 %):
    • main: 3.63 fps. With #6455 and this PR: 8.12 fps. main with the settle floor lowered from 1 MiB to 64 KiB (synchronous settles, a local control): 8.45 fps.
    • 9,977 of the title's 10,400 imports are between 64 KiB and 1 MiB, all made while loading, so here synchronous settling does as well as this PR. Resident Evil Village, which imports at map time, is where the deferral makes the difference (the table above).
    • On main the render targets' DCC key ranges sit in compared imports: none of about 400,000 clear-key proofs per 10 s is reused (CollectWrites returns 0 for each), [dcc] reports about 570,000 key scans (78 GiB) per 10 s, and 15 % of the draw committer is in AllKeysEqual. With this PR, 33,207 proofs per 10 s are reused.
    • No failure or abort.
  • Minecraft Dungeons II (PPSA16064), run by parl0v on Windows 10 with an NVIDIA GeForce RTX 3060 12 GB (driver 617.42), MinGW GCC Release, title screen with no input, 200-s rows with APS5_PROFILE_DRAW=1 APS5_PROFILE_GPU=1, main 93e54cedd against main with this PR at 141d605b9, two rounds (comment):
    • 6.61 and 6.61 fps on main, 6.50 and 6.53 with this PR (−1.4 %).
    • The idle gaps per frame shrink from 46 to 36 ms, but GPU busy grows from 104-105 to 117 ms, all of it in the title's compute dispatches; the three heaviest take 1.6 to 2.4 times their GPU time on main.
    • The cause isn't known yet. The comments ask for rows with APS5_NO_UNIT_SHADOW=1, with APS5_NO_DEFERRED_SETTLES=1, and with the settle-batching commits.
  • Onimusha: Way of the Sword (PPSA27836), run by simonbronk on Windows 11 with an NVIDIA GeForce RTX 5070 (driver 617.42) at 3840x2160: boot to the language menu with no input, warm shader cache, the trace summary over 30 s from 60 s after the first present (APS5_TRACE_SECONDS=60:30). The base is main 84b0d2f24 with #6557, #6727 and #6762, 6 runs (3 before and 3 after this PR's); this PR is merged on top of it, 3 runs (comment):
    • Frame p50: 77.9 to 84.5 ms on the base (mean 82.0), 77.0 to 78.6 ms with this PR (mean 78.0, about 5 % lower). Each run with this PR is faster than at least five of the six base runs; simonbronk counts the gain as near the noise edge, but present in every run. p90: 84.3 to 93.6 ms against 82.5 to 86.9 ms.
    • Driver.Packet.memory_wait per frame, in run 1 of each: 107.0 ms on the base, 78.5 ms with this PR. GPU busy per present is unchanged at 27.4 to 27.6 ms (GPU clocks weren't reported).
  • Merged with main 1b1f8483ca (c7e07cae44, with 5f822a5008), on GitHub's runners (run): the settle, import and write-tracking tests and #5905's agc_driver_sparse_dma_buf_import pass 3 of 3 on Linux (45 tests) and Windows (53, of which 50 skip without Vulkan). The run shows as failed because the Windows libkernel suite's guest_kqueue fails on that runner with and without this PR (no main comparison was run).
  • Merged with main 98c251fc62 (8f03535c8f, the per-device settle batches after #7269):
    • On an NVIDIA GeForce RTX 3070 Laptop GPU (driver 617.42, Windows 11, MinGW Release): agc_import_settle_deferred, agc_import_settle_deferred_other_family, agc_import_settle_retire, agc_import_settle_first_use, agc_write_tracking, agc_import_watch, agc_import_watch_other_family, agc_driver_host_import_windows, agc_host_import_retire and agc_storage_cpu_snapshot pass 5 runs in a row each, with none skipped.
    • On GitHub's runners (run), this PR's tests and the ^agc tests pass 3 runs in a row on Linux. On Windows, where the settle tests skip without a Vulkan device, the only failures are agc_driver_pm4_replay_tool and agc_shader_replay_tool, which fail the same way on that runner for an unrelated branch (run).
  • python3 tools/check_conventions.py --base origin/main: passed.

Checklist

  • Based on main 5d9dcc42d2, merged with main 1b1f8483ca; 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: #6455, which lands before or with this PR. This PR returns whole 64 KiB blocks of a settled import to the write watch, so a GPU store can cover a block back in the watch and a neighbour still outside it. Without #6455 such a store stamps nothing, and the compare-free vouch of the block back in the watch would keep the bytes the store replaced (Windows only). The two merge cleanly.
  • Related: #6060, #5851, #4448, #6192, #6308, #6546, #5692
  • Unblocks: Resident Evil Village (PPSA01556) speed; Hello Neighbor (PPSA35154) in game, 3.6 to 8.1 fps (HQasper's run, with #6455)
  • GPUs tested: NVIDIA GeForce RTX 3070 Laptop GPU, driver 617.42, Windows 11; lavapipe on Linux; AMD Radeon 780M, driver 25.10.20.01, Windows 11 (SILENT HILL: Townfall, keravyn-ops); NVIDIA GeForce RTX 5090, driver 617.42, Windows 11 Pro (Hello Neighbor, HQasper); NVIDIA GeForce RTX 3060 12 GB, driver 617.42, Windows 10 (Minecraft Dungeons II, parl0v)
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4883337221 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6678). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-16T04:07:57Z. --- ### What This implements the non-blocking settle that the debt entry for pages under an import window lists as missing. The entry (23fccd7632, merged with #6060) ends: "Settling without blocking the importing thread (submit the read, keep the import compared until its fence signals, then switch it to the write watch) is not implemented." - The PR follows that sequence. Batching the reads, which a later lookup submits instead of the importing call, is this PR's own choice. - The switch to the write watch restores tracking without replacing the backing, but after the settle, while the import is live. The clause of the entry above it, "restoring tracking on import retirement without replacing the backing remains unimplemented", still holds: an import retired before its blocks return leaves them compared, as now. **Why.** Since #6060, a Windows host import of private write-watched memory stays in the write watch only after its settle, a 4-byte GPU read that the importing thread waits for. Only imports of 1 MiB or more are settled (23fccd7632): SuperTuxKart (PPSA69421) maps, imports and unmaps a 64 KiB buffer around every submission, and waiting for each settle cost it about 19% of its frame rate (Dripl1x, on #6060). A smaller import is compared instead, and its range leaves the write watch for good. Resident Evil Village (PPSA01556) maps its GPU heap in 64 KiB pieces of resident direct memory. In a profiled boot to the menu, 12,628 of the 14,881 imports were made at map time, in such pieces. So on `main`'s settle code that whole heap is compared, and so is every texture sampled from it. - At the menu, `APS5_PROFILE_DRAW=1`, per 10 s: `[textures]` kept 16.5 M untracked snapshots by their hint and compared 283,785, and `[guestmem]` compared 33 GB in 3.4 s. - Over the run, 2.05 TB of the 2.2 TB compared was `cachedTexture`'s snapshot compare. The game's menu, unprofiled, as the median of the 60-s intervals 5–15 min after the menu stands, on our Resident Evil Village test tree (`main` plus the open fixes the title needs, ours and others'), Windows 11, RTX 3070 Laptop: | Settle code (same tree) | Menu fps (frame p50 / p90) | |---|---| | `main`'s | 0.133 (7.41 s / 8.03 s) | | every import settled synchronously (a local switch that sets the floor to 0) | 0.508 (1.83 s / 2.20 s) | | this PR (floor kept at 1 MiB) | **0.733** (1.35 s / 1.46 s) | - Only the settle differs between the rows. With this PR the menu runs 5.5 times as fast as with `main`'s settle code. The PR's row ran b62a0572e7, the revision before this head. The head only adds the `SetHostImportDeferredSettles` test hook, which is on by default, and tests, so it runs the same code. - It also comes up sooner: the lit menu came 7.4 min after launch, against 10.0 min with `main`'s settle code. - This PR is also faster than settling every import synchronously, which makes the mapping thread wait for each read. #5692 tracks the same comparison cost on other titles. This PR covers the part of it that comes from imports under 1 MiB. I don't know whether the titles there make such imports, so it's listed as related. **How:** - An import under 1 MiB is compared when it is made, as now, and its 4-byte read is queued. - The next import lookup that holds `GpuMutex` while the imports match the registry records the reads queued since into one command buffer on the settle queue (up to 256 reads per batch, four batches in flight) and submits it. The thread that maps and imports neither submits nor waits. - Once a batch's fence has signalled, a later lookup returns its imports' whole 64 KiB blocks to the write watch, except where storage results are pending over them; those wait for a later lookup. - `GuestMemory::Rewatch`, the first commit, collects and drops the blocks' write-watch marks and stamps every block as a CPU store with a new generation. So anything derived from the range while it was compared (a snapshot without a generation, a proof by its untracked hint) reads as changed once. - A settled import whose range had already left the watch, such as a whole range imported over a piece that was compared, returns the same way. - An import retired while its read is still running is kept on the read's batch and freed once the batch's fence has signalled (at the next lookup, a drain or a device switch), so no read outlives the import's memory and retiring it doesn't wait. An unmap that needs that memory waits for the batch, counted as an unmap wait. - A completed settle read ends the driver's marking of the import's pages, even while main-queue work that used the import first is still running, and an earlier import's later first use of the same pages marks nothing. Two canary tests check this on the device they run on. - A settle batch whose submit or reset fails, which means device loss, drops its settles without retrying them, and so does a `Rewatch` that refuses a page, which happens only for pages an import wouldn't have pinned. - `SetHostImportDeferredSettles(false)`, a test hook like `SetHostImportBudget`, keeps imports under 1 MiB compared as before. `agc_driver_dcc_keys_first_write`'s hinted-import case uses it, because that case tests the untracked hint of an import that stays compared. That still happens on a device without a settle queue, and until the read completes. `APS5_NO_DEFERRED_SETTLES` (any value) does the same for a run (5f822a5008), so a title can be compared with and without the deferral on one build. **SuperTuxKart (PPSA69421) stays whole.** Nothing that maps, imports or unmaps its per-submission buffer waits for a settle: - An import made on the title's mapping thread, off `GpuMutex`, only queues its read. Reads go out only from a lookup under `GpuMutex`. - Unmapping the buffer retires its import at once, through the registry's pin waiter (`WaitForLeasesAndImports`), as on `main`. A read still queued is dropped. One already submitted has almost always finished by then, and the retire checks its fence before it would wait. - A lookup made while the imports don't match the registry submits nothing. So an import that a new mapping is about to replace (a joined run) doesn't get a read just before its retirement. - The new test checks the first two: 64 rounds of mapping, importing and unmapping a 64 KiB buffer at one address off the device lock, and 64 more under it, submit no read and wait for none. - I couldn't run SuperTuxKart itself. **Why not #4448's `GuestMemory::Rewatch`.** On Windows its body is empty: it re-registers the range with Linux's write watch, for imports retired after sixty idle frames. This PR's `Rewatch` is the Windows re-include, by whole tracker blocks. The two take different arguments, so they would sit side by side as overloads. The commits: 1. `feat(agc)`: `GuestMemory::Rewatch`, with a write-tracking case. 2. `perf(agc)`: the settle, with its tests. It also keeps `agc_driver_dcc_keys_first_write`'s hinted-import case on a compared import. 3. `docs(agc)`: ARCHITECTURE.md and the debt entry. 4. `perf(agc)`: an import retired during its settle read is freed after the read instead of waiting for it. The `[buffers]` line counts settle reads submitted, back in the write watch, retired during their read, the unmaps that waited for one, and pending. 5. `test(agc)`: the two canaries for the driver's marking, and the docs to match. **Overlap.** - #5905 (hugodearaujo, merged) settles dma-buf imports on Linux on the settle queue. This PR's merge of `main` (c7e07cae44) keeps both: `settleImport` builds on both platforms, and the batched settle of Windows imports under 1 MiB and its counters stay Windows-only. The paragraph and the debt entry keep both texts. - #7269 (JJenkx, merged) holds the synchronous settle's buffer, memory and fence per device in `ImportSettle`. This PR's merge of `main` (8f03535c8f) keys its settle batches the same way: each device's `ImportSettle` also holds its batch target, memory, batches and their fences, so a device switch keeps every device's batches, and `ClearHostImports` waits for and destroys only that device's. A submitted settle records its device, and the per-import map is `pendingSettles`, clear of #7269's `settles`. - #6457 and #6479 (mine) conflict with this PR in `GuestBufferMemory.cpp`, at four places: - they change `importRunAt`'s and `importAllocation`'s signatures; - they add declarations and functions next to this PR's. Each resolution keeps both sides, as already done in my Resident Evil Village test tree. Whichever PR lands second takes it. - #5390 shares the debt file. - #6472 (ahir061) adds `HostImportBudget` next to this PR's `SetHostImportDeferredSettles`, in `GuestBufferMemory.hpp` and `.cpp`. Whichever lands second keeps both. - #6499 (parl0v) also retires its trimmed imports when `refreshImports` finds the device changed. This PR drains the pending settles there first, so whichever lands second keeps `drainSettles(state)` ahead of #6499's loop over both maps. - #6546 (mariuszkreft) refreshes a heap mirror conservatively where its range has left the write watch. On Windows an import under 1 MiB is one way a range leaves it. With this PR such ranges come back after their settle, so that fallback is taken less often. The two change different functions in `GuestBufferMemory.cpp` and merge cleanly. - #6192 (TheAggie) makes revalidation over untracked memory cheaper, and #6308 (LeandroLP23) runs the unwatch hook in `ImportWatched`'s fallback. Both merge cleanly with this one, and both keep mattering for what stays compared. - #6918 (Scramblrrrr, draft) clips a partly committed import window to the aligned committed span that holds the request. It merges cleanly with this PR. A clipped window is aligned to the device's import alignment, not to 64 KiB, so one that isn't whole 64 KiB blocks stays compared, like any import this PR doesn't settle. Related: #6060, #5851, #4448, #6192, #6308, #6546, #5692. ### Tested - `agc_write_tracking` (`CheckRewatch`): a rewatched block is watched and collected again, reads as changed since before it left and as CPU-stored, its untracked hint stops applying, and the blocks around it keep their stamps. Part of a block, and a block with uncommitted pages, stay out. - New `agc_import_settle_deferred` and `agc_import_settle_deferred_other_family` (Windows, a Vulkan device with a settle queue): - a 64 KiB import is compared at first, returns to the write watch after its settle, and a CPU store after that is collected; - 64 rounds of a 64 KiB buffer mapped again at one address, imported off the device lock: each import is compared, and nothing is submitted or waited for; - 64 more rounds under the device lock, with no lookup between a mapping and the next: the same; - a buffer mapped again while its settle may be in flight is imported and returns to the write watch; - a 1 MiB import over a 64 KiB piece that was compared returns to the write watch; - with deferred settles off, a 64 KiB import stays compared. - Windows 11, NVIDIA GeForce RTX 3070 Laptop GPU (driver 617.42): - **Red:** the new tests on `main`'s `GuestBufferMemory.cpp`, without their counter checks, fail with "(d) a 64 KiB import did not return to the write watch after its settle". - **Green, 5 of 5:** both new tests, `agc_write_tracking`, `agc_import_watch` and `agc_import_watch_other_family`. - **Green, 2 of 2:** the other Windows host-import tests, `agc_driver_host_import_windows`, `_at_map`, `agc_host_import_retire`, `agc_driver_dcc_keys_first_write`, `agc_driver_layered_volume_submit`, `agc_driver_multisample_fill_host_only`, `agc_driver_store_over_untracked` and `agc_storage_cpu_snapshot`. - **The last two commits, 5 of 5:** `agc_import_settle_retire` ("64 while the read ran, 0 waits, 0 unmaps waited for a read"; with retirement waiting for the read again it fails 3 of 3, "0 while the read ran, 64 waits" and "replacing an import during its settle read waited for the read"), and the canaries `agc_import_settle_first_use` (back in the write watch 21.7 to 30.4 ms after 4,096 main-queue copies of the import were submitted, while they still ran, with no driver marks afterwards) and `agc_import_settle_earlier_import` (an earlier import's first use runs only after the range is back in the watch, with no marks). The canaries have no red by design: they fail only on a driver that keeps marking. The other settle and watch tests pass 2 of 2. - **141d605b90** (the first-use canary retries with more copies instead of failing when its copies finish first), on `main` 66e290f1c0 with this PR, #6454 and #6911 merged (the other two don't touch this path): `agc_import_settle_first_use` passes 10 of 10, racing in its first round (back in the write watch 26.7 ms after 4,096 main-queue copies, which were reaped by 47.9 ms; no driver marks after its return). - `agc_driver_store_over_untracked` sometimes fails on `main` on this PC too ("the result was never held pending"). - GitHub's runners, on my fork, the `^agc` tests ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/38836135928); #6452's test fix applied there only, because `main` doesn't build in full with MinGW since #5747): - **Linux:** 606 of 606 pass, 43 skip. - **Windows:** 600 of 602 pass, 469 skip without a Vulkan device. - `agc_driver_pm4_replay_tool` (0xc0000139) fails on `main` on that runner too. - `agc_driver_flip_compute` printed "AGC flip and suspend tests passed" and then timed out at exit. That's the pattern of the exit hang #6641 fixes. In 20 more runs it passed every time, on this branch alone ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/38840542354)) and with #6641's commits added ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/38840554171)). - The red mark on the run comes from those two, plus `guest_kqueue` and `precise_wait` in the libc and libkernel suites, which fail on `main` on those runners too. - The sweep ran one revision before the last test fixes. The tests those fixes touch pass again on the head, on both runners ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/38841813309)). - The last two commits ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/38863913759)): both runners build them and run the touched tests, which skip on Windows without a Vulkan device; the run's red mark is `guest_kqueue` on Windows, a kqueue test this PR doesn't touch. - Linux, the CI job's steps on an Ubuntu 24.04 machine (GCC 13.3, lavapipe). This ran on an earlier revision. On Linux the head only adds `HostImportSettles`, which returns zeros there: - 1,277 tests: 1,211 pass, 61 skip, and 5 fail. The failures are four `guest_datagram_*` tests and `guest_tcp`: that machine has no IPv6, and they fail the same way on `main`. - `agc_write_tracking` and `agc_import_watch` pass 20 of 20. - Preprocessed for Linux, the changed sources differ from `main` only by `GuestMemory::Rewatch`, which is empty outside Windows, and by `settleImport`'s device setup, which ran the same steps from `adoptSettleDevice`; since the merge of `main` 98c251fc62 that setup is `settleFor`, with the same steps. Everything else this PR adds is inside `#ifdef _WIN32`. - At the last two commits' code: build and test registration pass, `^agc` passes 606 of 606 (43 skip), and the preprocessed Linux sources change only by two counter fields. - Resident Evil Village (PPSA01556): the menu runs as in the table above, with no FATAL. - In the first scene, on the same tree, profiled runs show no gap: this PR ran 0.090 fps over 455 s at control, against 0.091 fps over 1,284 s with every import settled synchronously. Unprofiled, this PR held about 0.083 fps for 22 min, while synchronous settling rose from 0.089 to 0.15 fps over 12 min; `main`'s settle code ran 0.029 fps there (one earlier run at control). All four runs fill the 6400 MiB import budget in the scene. With this PR the budget fills during the load, about 100 s before control, because imports under 1 MiB no longer wait; with synchronous settling it fills about 100 s after control, once the scene has imported its ranges. While the budget is full, every import an address-based build maps is stamped as recently used, so none of them can be evicted, and a range first needed after that, here one build import at 0x2372400000 (512 KiB to 1 MiB), is copied on the CPU at each use. That comes from the import budget's eviction, not from this PR's settle. - **Planet of Lana (PPSA19450)**, as a check that a CPU-bound title doesn't slow down: our test tree for it (not `main`; it carries the open fixes the title needs) with #6455 and this PR, Windows 11, RTX 3070 Laptop, warm shader cache, no `APS5_PROFILE_*` (the trace summary on). The meadow save is loaded from the title menu, then the player stands still; each value is the median of the five 60-s intervals from 180 to 480 s after the first present. One build, run OFF (`APS5_NO_DEFERRED_SETTLES=1`, the only difference between the launches), ON, then OFF again: - 5.06, 5.00 and 6.08 fps, at mean graphics clocks of 736, 723 and 769 MHz (clocks weren't held). The two OFF runs differ by 20 %, so this shows no frame-rate drop but can't rule out a small one. - GPU busy per present (the trace summary's `gpu_busy_ms_per_present`): 50.3, 54.4 and 44.0 ms. ON is at the high end, but inside the 6.3 ms between the OFF runs, so it can't be told apart from run-to-run spread. parl0v's RTX 3060 rows below go the same direction. - **SILENT HILL: Townfall (PPSA33286)**, run by keravyn-ops on Windows 11 with an AMD Radeon 780M (driver 25.10.20.01), from boot with `APS5_PROFILE_DRAW=1` and `APS5_ADDRESS_COPY_MAX_MIB=8192` for 90 s ([comment](https://github.com/boykopovar/AnyPS5/pull/6678#issuecomment-6231789112)): - On `main` 3b10c7ef0 it aborts after 25 s with `a heap mirror's range is no longer write-watched`. - With #6455 and this PR it's still running at 90 s: 829 unwatched heaps against 3,711, and 4,507 small-import settle reads submitted, 4,525 imports back in the write watch, none pending. - **Hello Neighbor (PPSA35154)**, run by HQasper on Windows 11 Pro with an NVIDIA GeForce RTX 5090 (driver 617.42, Resizable BAR on), WinLibs GCC 15.2.0, on `main` 47a266cf9 with #6455 and this PR merged on top ([comment](https://github.com/boykopovar/AnyPS5/pull/6678#issuecomment-6236225437)). In game at the start of Act 1, 60 s of frames standing still from 120 s after Continue, no profiler, one run per build (noise about ±5 %): - `main`: 3.63 fps. With #6455 and this PR: **8.12 fps**. `main` with the settle floor lowered from 1 MiB to 64 KiB (synchronous settles, a local control): 8.45 fps. - 9,977 of the title's 10,400 imports are between 64 KiB and 1 MiB, all made while loading, so here synchronous settling does as well as this PR. Resident Evil Village, which imports at map time, is where the deferral makes the difference (the table above). - On `main` the render targets' DCC key ranges sit in compared imports: none of about 400,000 clear-key proofs per 10 s is reused (`CollectWrites` returns 0 for each), `[dcc]` reports about 570,000 key scans (78 GiB) per 10 s, and 15 % of the draw committer is in `AllKeysEqual`. With this PR, 33,207 proofs per 10 s are reused. - No failure or abort. - **Minecraft Dungeons II (PPSA16064)**, run by parl0v on Windows 10 with an NVIDIA GeForce RTX 3060 12 GB (driver 617.42), MinGW GCC Release, title screen with no input, 200-s rows with `APS5_PROFILE_DRAW=1 APS5_PROFILE_GPU=1`, `main` 93e54cedd against `main` with this PR at 141d605b9, two rounds ([comment](https://github.com/boykopovar/AnyPS5/pull/6678#issuecomment-6222690462)): - 6.61 and 6.61 fps on `main`, 6.50 and 6.53 with this PR (−1.4 %). - The idle gaps per frame shrink from 46 to 36 ms, but GPU busy grows from 104-105 to 117 ms, all of it in the title's compute dispatches; the three heaviest take 1.6 to 2.4 times their GPU time on `main`. - The cause isn't known yet. The comments ask for rows with `APS5_NO_UNIT_SHADOW=1`, with `APS5_NO_DEFERRED_SETTLES=1`, and with the settle-batching commits. - **Onimusha: Way of the Sword (PPSA27836)**, run by simonbronk on Windows 11 with an NVIDIA GeForce RTX 5070 (driver 617.42) at 3840x2160: boot to the language menu with no input, warm shader cache, the trace summary over 30 s from 60 s after the first present (`APS5_TRACE_SECONDS=60:30`). The base is `main` 84b0d2f24 with #6557, #6727 and #6762, 6 runs (3 before and 3 after this PR's); this PR is merged on top of it, 3 runs ([comment](https://github.com/boykopovar/AnyPS5/pull/6678#issuecomment-6241965113)): - Frame p50: 77.9 to 84.5 ms on the base (mean 82.0), 77.0 to 78.6 ms with this PR (mean 78.0, about 5 % lower). Each run with this PR is faster than at least five of the six base runs; simonbronk counts the gain as near the noise edge, but present in every run. p90: 84.3 to 93.6 ms against 82.5 to 86.9 ms. - `Driver.Packet.memory_wait` per frame, in run 1 of each: 107.0 ms on the base, 78.5 ms with this PR. GPU busy per present is unchanged at 27.4 to 27.6 ms (GPU clocks weren't reported). - **Merged with `main` 1b1f8483ca** (c7e07cae44, with 5f822a5008), on GitHub's runners ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/38956450286)): the settle, import and write-tracking tests and #5905's `agc_driver_sparse_dma_buf_import` pass 3 of 3 on Linux (45 tests) and Windows (53, of which 50 skip without Vulkan). The run shows as failed because the Windows libkernel suite's `guest_kqueue` fails on that runner with and without this PR (no `main` comparison was run). - **Merged with `main` 98c251fc62** (8f03535c8f, the per-device settle batches after #7269): - On an NVIDIA GeForce RTX 3070 Laptop GPU (driver 617.42, Windows 11, MinGW Release): `agc_import_settle_deferred`, `agc_import_settle_deferred_other_family`, `agc_import_settle_retire`, `agc_import_settle_first_use`, `agc_write_tracking`, `agc_import_watch`, `agc_import_watch_other_family`, `agc_driver_host_import_windows`, `agc_host_import_retire` and `agc_storage_cpu_snapshot` pass 5 runs in a row each, with none skipped. - On GitHub's runners ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39079697583)), this PR's tests and the `^agc` tests pass 3 runs in a row on Linux. On Windows, where the settle tests skip without a Vulkan device, the only failures are `agc_driver_pm4_replay_tool` and `agc_shader_replay_tool`, which fail the same way on that runner for an unrelated branch ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39061670036)). - `python3 tools/check_conventions.py --base origin/main`: passed. ### Checklist - [x] Based on `main` 5d9dcc42d2, merged with `main` 1b1f8483ca; 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: #6455, which lands before or with this PR. This PR returns whole 64 KiB blocks of a settled import to the write watch, so a GPU store can cover a block back in the watch and a neighbour still outside it. Without #6455 such a store stamps nothing, and the compare-free vouch of the block back in the watch would keep the bytes the store replaced (Windows only). The two merge cleanly. - [x] Related: #6060, #5851, #4448, #6192, #6308, #6546, #5692 - [x] Unblocks: Resident Evil Village (PPSA01556) speed; Hello Neighbor (PPSA35154) in game, 3.6 to 8.1 fps (HQasper's run, with #6455) - [x] GPUs tested: NVIDIA GeForce RTX 3070 Laptop GPU, driver 617.42, Windows 11; lavapipe on Linux; AMD Radeon 780M, driver 25.10.20.01, Windows 11 (SILENT HILL: Townfall, keravyn-ops); NVIDIA GeForce RTX 5090, driver 617.42, Windows 11 Pro (Hello Neighbor, HQasper); NVIDIA GeForce RTX 3060 12 GB, driver 617.42, Windows 10 (Minecraft Dungeons II, parl0v) - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-16 04:34:59 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-16T04:34:59Z.


Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
PR 6472 core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp L73-74
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp L2601
PR 6868 docs/dev/debt/libSceAgcDriver.md L82-84
PR 7292 core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp L73-74

Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 1191 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 1324 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 1341 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 1368 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 1395 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 2434 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
docs/dev/debt/libSceAgcDriver.md
PR 4448 core/libs/prx/libSceAgcDriver/Execution/include/GuestMemory.hpp
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
docs/dev/debt/libSceAgcDriver.md
PR 4449 core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 4650 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/debt/libSceAgcDriver.md
PR 4891 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 5021 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 5058 docs/dev/debt/libSceAgcDriver.md
PR 5371 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 5372 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
docs/dev/debt/libSceAgcDriver.md
PR 5426 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 5431 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 5499 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/debt/libSceAgcDriver.md
PR 5925 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/ARCHITECTURE.md
docs/dev/debt/libSceAgcDriver.md
PR 5958 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 5998 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 5999 docs/dev/debt/libSceAgcDriver.md
PR 6044 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/ARCHITECTURE.md
PR 6054 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/debt/libSceAgcDriver.md
PR 6082 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6176 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6177 core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 6182 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6188 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/GuestMemory.hpp
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6192 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/GuestMemory.hpp
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6194 docs/dev/debt/libSceAgcDriver.md
PR 6197 core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 6222 core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6223 docs/dev/debt/libSceAgcDriver.md
PR 6259 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6273 core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/tests/WriteTracking.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6292 core/libs/prx/libSceAgcDriver/Execution/include/GuestMemory.hpp
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 6300 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/debt/libSceAgcDriver.md
PR 6320 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 6373 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6412 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/ARCHITECTURE.md
docs/dev/debt/libSceAgcDriver.md
PR 6447 core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 6481 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6492 docs/dev/debt/libSceAgcDriver.md
PR 6498 docs/dev/debt/libSceAgcDriver.md
PR 6499 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6503 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/ARCHITECTURE.md
PR 6535 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6548 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6563 docs/dev/debt/libSceAgcDriver.md
PR 6615 core/libs/prx/libSceAgcDriver/Execution/include/GuestMemory.hpp
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 6727 docs/dev/debt/libSceAgcDriver.md
PR 6741 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/debt/libSceAgcDriver.md
PR 6747 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6763 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/ARCHITECTURE.md
PR 6783 docs/dev/debt/libSceAgcDriver.md
PR 6786 core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6788 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6804 docs/dev/debt/libSceAgcDriver.md
PR 6808 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/debt/libSceAgcDriver.md
PR 6867 docs/dev/debt/libSceAgcDriver.md
PR 6931 docs/dev/ARCHITECTURE.md
PR 6941 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/debt/libSceAgcDriver.md
PR 6946 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/GuestMemory.hpp
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/ARCHITECTURE.md
docs/dev/debt/libSceAgcDriver.md
PR 6947 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/GuestMemory.hpp
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/ARCHITECTURE.md
docs/dev/debt/libSceAgcDriver.md
PR 6971 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6973 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6977 docs/dev/debt/libSceAgcDriver.md
PR 6987 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6989 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6995 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7002 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7154 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7201 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/tests/WriteTracking.cpp
PR 7223 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7258 docs/dev/debt/libSceAgcDriver.md
PR 7261 core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 7332 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/WriteTracking.cpp
docs/dev/debt/libSceAgcDriver.md
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6208163141 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6678#issuecomment-6208163141). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-16T04:34:59Z. --- <!-- pr-overlap --> Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in **Depends on**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | [PR 6472](https://www.github.com/boykopovar/AnyPS5/pull/6472) | `core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp` [L73-74](https://github.com/boykopovar/AnyPS5/blob/a86577e46473213d82a4d46e3616452c52012150/core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp#L73-L74)<br>`core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp` [L2601](https://github.com/boykopovar/AnyPS5/blob/a86577e46473213d82a4d46e3616452c52012150/core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp#L2601) | | | | [PR 6868](https://www.github.com/boykopovar/AnyPS5/pull/6868) | `docs/dev/debt/libSceAgcDriver.md` [L82-84](https://github.com/boykopovar/AnyPS5/blob/a86577e46473213d82a4d46e3616452c52012150/docs/dev/debt/libSceAgcDriver.md#L82-L84) | | | | [PR 7292](https://www.github.com/boykopovar/AnyPS5/pull/7292) | `core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp` [L73-74](https://github.com/boykopovar/AnyPS5/blob/a86577e46473213d82a4d46e3616452c52012150/core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp#L73-L74) | | | Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap. | Pull request | Shared files not compared | |---|---| | [PR 1191](https://www.github.com/boykopovar/AnyPS5/pull/1191) | `core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp` | | [PR 1324](https://www.github.com/boykopovar/AnyPS5/pull/1324) | `core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp` | | [PR 1341](https://www.github.com/boykopovar/AnyPS5/pull/1341) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 1368](https://www.github.com/boykopovar/AnyPS5/pull/1368) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 1395](https://www.github.com/boykopovar/AnyPS5/pull/1395) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 2434](https://www.github.com/boykopovar/AnyPS5/pull/2434) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 4448](https://www.github.com/boykopovar/AnyPS5/pull/4448) | `core/libs/prx/libSceAgcDriver/Execution/include/GuestMemory.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 4449](https://www.github.com/boykopovar/AnyPS5/pull/4449) | `core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp` | | [PR 4650](https://www.github.com/boykopovar/AnyPS5/pull/4650) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 4891](https://www.github.com/boykopovar/AnyPS5/pull/4891) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 5021](https://www.github.com/boykopovar/AnyPS5/pull/5021) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 5058](https://www.github.com/boykopovar/AnyPS5/pull/5058) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 5371](https://www.github.com/boykopovar/AnyPS5/pull/5371) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 5372](https://www.github.com/boykopovar/AnyPS5/pull/5372) | `core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 5426](https://www.github.com/boykopovar/AnyPS5/pull/5426) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 5431](https://www.github.com/boykopovar/AnyPS5/pull/5431) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 5499](https://www.github.com/boykopovar/AnyPS5/pull/5499) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 5925](https://www.github.com/boykopovar/AnyPS5/pull/5925) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp`<br>`docs/dev/ARCHITECTURE.md`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 5958](https://www.github.com/boykopovar/AnyPS5/pull/5958) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 5998](https://www.github.com/boykopovar/AnyPS5/pull/5998) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 5999](https://www.github.com/boykopovar/AnyPS5/pull/5999) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6044](https://www.github.com/boykopovar/AnyPS5/pull/6044) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`docs/dev/ARCHITECTURE.md` | | [PR 6054](https://www.github.com/boykopovar/AnyPS5/pull/6054) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6082](https://www.github.com/boykopovar/AnyPS5/pull/6082) | `core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6176](https://www.github.com/boykopovar/AnyPS5/pull/6176) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6177](https://www.github.com/boykopovar/AnyPS5/pull/6177) | `core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp` | | [PR 6182](https://www.github.com/boykopovar/AnyPS5/pull/6182) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6188](https://www.github.com/boykopovar/AnyPS5/pull/6188) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/include/GuestMemory.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6192](https://www.github.com/boykopovar/AnyPS5/pull/6192) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/include/GuestMemory.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6194](https://www.github.com/boykopovar/AnyPS5/pull/6194) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6197](https://www.github.com/boykopovar/AnyPS5/pull/6197) | `core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp` | | [PR 6222](https://www.github.com/boykopovar/AnyPS5/pull/6222) | `core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6223](https://www.github.com/boykopovar/AnyPS5/pull/6223) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6259](https://www.github.com/boykopovar/AnyPS5/pull/6259) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6273](https://www.github.com/boykopovar/AnyPS5/pull/6273) | `core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/WriteTracking.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6292](https://www.github.com/boykopovar/AnyPS5/pull/6292) | `core/libs/prx/libSceAgcDriver/Execution/include/GuestMemory.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp` | | [PR 6300](https://www.github.com/boykopovar/AnyPS5/pull/6300) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6320](https://www.github.com/boykopovar/AnyPS5/pull/6320) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp` | | [PR 6373](https://www.github.com/boykopovar/AnyPS5/pull/6373) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6412](https://www.github.com/boykopovar/AnyPS5/pull/6412) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`docs/dev/ARCHITECTURE.md`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6447](https://www.github.com/boykopovar/AnyPS5/pull/6447) | `core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp` | | [PR 6481](https://www.github.com/boykopovar/AnyPS5/pull/6481) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6492](https://www.github.com/boykopovar/AnyPS5/pull/6492) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6498](https://www.github.com/boykopovar/AnyPS5/pull/6498) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6499](https://www.github.com/boykopovar/AnyPS5/pull/6499) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6503](https://www.github.com/boykopovar/AnyPS5/pull/6503) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`docs/dev/ARCHITECTURE.md` | | [PR 6535](https://www.github.com/boykopovar/AnyPS5/pull/6535) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6548](https://www.github.com/boykopovar/AnyPS5/pull/6548) | `core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6563](https://www.github.com/boykopovar/AnyPS5/pull/6563) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6615](https://www.github.com/boykopovar/AnyPS5/pull/6615) | `core/libs/prx/libSceAgcDriver/Execution/include/GuestMemory.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp` | | [PR 6727](https://www.github.com/boykopovar/AnyPS5/pull/6727) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6741](https://www.github.com/boykopovar/AnyPS5/pull/6741) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6747](https://www.github.com/boykopovar/AnyPS5/pull/6747) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6763](https://www.github.com/boykopovar/AnyPS5/pull/6763) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp`<br>`docs/dev/ARCHITECTURE.md` | | [PR 6783](https://www.github.com/boykopovar/AnyPS5/pull/6783) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6786](https://www.github.com/boykopovar/AnyPS5/pull/6786) | `core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6788](https://www.github.com/boykopovar/AnyPS5/pull/6788) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6804](https://www.github.com/boykopovar/AnyPS5/pull/6804) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6808](https://www.github.com/boykopovar/AnyPS5/pull/6808) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6867](https://www.github.com/boykopovar/AnyPS5/pull/6867) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6931](https://www.github.com/boykopovar/AnyPS5/pull/6931) | `docs/dev/ARCHITECTURE.md` | | [PR 6941](https://www.github.com/boykopovar/AnyPS5/pull/6941) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6946](https://www.github.com/boykopovar/AnyPS5/pull/6946) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/include/GuestMemory.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp`<br>`docs/dev/ARCHITECTURE.md`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6947](https://www.github.com/boykopovar/AnyPS5/pull/6947) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/include/GuestMemory.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp`<br>`docs/dev/ARCHITECTURE.md`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6971](https://www.github.com/boykopovar/AnyPS5/pull/6971) | `core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6973](https://www.github.com/boykopovar/AnyPS5/pull/6973) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6977](https://www.github.com/boykopovar/AnyPS5/pull/6977) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6987](https://www.github.com/boykopovar/AnyPS5/pull/6987) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6989](https://www.github.com/boykopovar/AnyPS5/pull/6989) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6995](https://www.github.com/boykopovar/AnyPS5/pull/6995) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 7002](https://www.github.com/boykopovar/AnyPS5/pull/7002) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 7154](https://www.github.com/boykopovar/AnyPS5/pull/7154) | `core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 7201](https://www.github.com/boykopovar/AnyPS5/pull/7201) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/WriteTracking.cpp` | | [PR 7223](https://www.github.com/boykopovar/AnyPS5/pull/7223) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7258](https://www.github.com/boykopovar/AnyPS5/pull/7258) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7261](https://www.github.com/boykopovar/AnyPS5/pull/7261) | `core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp` | | [PR 7332](https://www.github.com/boykopovar/AnyPS5/pull/7332) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/WriteTracking.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` |
ps54all commented 2026-10-16 12:44:57 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ps54all on 2026-10-16T12:44:57Z.


Data point from Metal Gear Solid 4 (PPSA18194, Master Collection) on Windows 11, RTX 3080 (NVIDIA 610.74), with this PR picked onto main 5d9dcc42d plus #6188, #6192/#6187, #6273 and #6292.

  • No regression seen. MGS4 gameplay frame rate is unchanged, though: the imports that cost MGS4 the most are not settled. Its DCC key ranges sit at the start of host imports of 0x28000 bytes (one is 0x48000), directly after their 0x1fe0000-byte surfaces, e.g. keys 0x2b86e0000+0x1fe00 for the surface at 0x2b6700000. The settle requires bytes % settleBlockBytes == 0, so they stay compared. ProvedClearKeys then never gets a collect (its CollectWrites over the key range returns 0), every lookup rescans the keys, and in gameplay that is about 230k scans, 26 GB and 1.1 s per 10 s on the draw committer, with 0 proofs.
  • I tried settling such imports and returning only their whole 64 KiB blocks (the shared tail block stays compared). The key proofs then held, but the title stopped drawing two UI texts (the autosave notice and "PRESS ANY BUTTON"), which it draws with this PR alone. So it is not that simple, and I did not dig further. I'm mentioning it in case the partial-block case is on your list.
  • agc_import_settle_first_use failed 5 of 15 runs under ctest here, always with "(f) the main-queue copies had finished before the import returned to the write watch, so its read did not race them". That is, it fails when the race it checks does not occur, rather than reporting itself inconclusive.

AI-assisted (Claude Code); numbers from runs on my machine with APS5_PROFILE_DRAW=1.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6215781924 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6678#issuecomment-6215781924). Originally posted by [ps54all](https://github.com/ps54all) on 2026-10-16T12:44:57Z. --- Data point from Metal Gear Solid 4 (PPSA18194, Master Collection) on Windows 11, RTX 3080 (NVIDIA 610.74), with this PR picked onto main 5d9dcc42d plus #6188, #6192/#6187, #6273 and #6292. - No regression seen. MGS4 gameplay frame rate is unchanged, though: the imports that cost MGS4 the most are not settled. Its DCC key ranges sit at the start of host imports of 0x28000 bytes (one is 0x48000), directly after their 0x1fe0000-byte surfaces, e.g. keys 0x2b86e0000+0x1fe00 for the surface at 0x2b6700000. The settle requires `bytes % settleBlockBytes == 0`, so they stay compared. `ProvedClearKeys` then never gets a collect (its `CollectWrites` over the key range returns 0), every lookup rescans the keys, and in gameplay that is about 230k scans, 26 GB and 1.1 s per 10 s on the draw committer, with 0 proofs. - I tried settling such imports and returning only their whole 64 KiB blocks (the shared tail block stays compared). The key proofs then held, but the title stopped drawing two UI texts (the autosave notice and "PRESS ANY BUTTON"), which it draws with this PR alone. So it is not that simple, and I did not dig further. I'm mentioning it in case the partial-block case is on your list. - `agc_import_settle_first_use` failed 5 of 15 runs under ctest here, always with "(f) the main-queue copies had finished before the import returned to the write watch, so its read did not race them". That is, it fails when the race it checks does not occur, rather than reporting itself inconclusive. AI-assisted (Claude Code); numbers from runs on my machine with `APS5_PROFILE_DRAW=1`.
EagleBearerYS commented 2026-10-16 14:51:37 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-16T14:51:37Z.


@ps54all thanks for trying it on Metal Gear Solid 4 (PPSA18194), and for the numbers.

  • The first-use canary: you're right, it failed when the main-queue copies finished before the import returned to the write watch, which says nothing about the driver. 141d605b90 retries with 4 and 16 times as many copies, and reports the case as not tested when the copies finish first every time. The test now fails only when the driver marks the import's pages after its settle read.
  • Imports that aren't whole 64 KiB blocks: right, the settle takes only imports whose base and size are whole 64 KiB blocks, so Metal Gear Solid 4's 0x28000-byte DCC key imports stay compared, and ProvedClearKeys never gets a collect over them. That case is outside this PR. Thanks for trying the whole-block version; the two missing UI texts are a useful lead, and I've noted the case with your numbers for a follow-up.
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6218131039 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6678#issuecomment-6218131039). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-16T14:51:37Z. --- @ps54all thanks for trying it on Metal Gear Solid 4 (PPSA18194), and for the numbers. - **The first-use canary:** you're right, it failed when the main-queue copies finished before the import returned to the write watch, which says nothing about the driver. 141d605b9043fc15f922bcb4624e40f7ba087d64 retries with 4 and 16 times as many copies, and reports the case as not tested when the copies finish first every time. The test now fails only when the driver marks the import's pages after its settle read. - **Imports that aren't whole 64 KiB blocks:** right, the settle takes only imports whose base and size are whole 64 KiB blocks, so Metal Gear Solid 4's 0x28000-byte DCC key imports stay compared, and `ProvedClearKeys` never gets a collect over them. That case is outside this PR. Thanks for trying the whole-block version; the two missing UI texts are a useful lead, and I've noted the case with your numbers for a follow-up.
parl0v commented 2026-10-16 19:03:11 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by parl0v on 2026-10-16T19:03:11Z.


A Windows NVIDIA data point, and one that goes the other way: RTX 3060 12 GB (NVIDIA 617.42), i5-12400F, Windows 10 19045, MinGW GCC Release. Minecraft Dungeons II (PPSA16064 01.100.100), title screen, no input, 200 s rows, APS5_PROFILE_DRAW=1 APS5_PROFILE_GPU=1; main 93e54cedd vs main + this PR, interleaved with three other PRs in one batch, two rounds. FPS is the mean of the last 10 [present] windows, GPU busy and idle gaps per frame over the last 8.

libs FPS GPU busy idle gaps program-keyed GPU time per 10 s
main 6.61 / 6.61 104 / 105 ms 46 / 46 ms 2477 ms
+ this PR (141d605b9) 6.50 / 6.53 (-1.4 %) 117 / 117 ms 36 / 36 ms 3266 ms

The idle gaps shrink as intended (-10 ms per frame), but GPU busy grows by 13 ms per frame, so the frame rate drops a little. The command classes are unchanged (draw 32.3 / 31.5 ms, storage write-back 17.4 / 17.2 ms per present); the growth is all in the title's compute dispatches. By rank (the program addresses move between runs), both rounds:

dispatch, by GPU time main this PR
1st 396-414 ms per 10 s 655 ms (+60 %)
2nd 230-233 ms 483-485 ms (+108 %)
3rd 94-99 ms 231 ms (+140 %)

So the heaviest dispatches run 1.6-2.4x longer on the GPU when the sub-1 MiB settles no longer wait. My guess is that those dispatches now read buffers that are still on the slower path because their import wasn't settled yet when they were recorded; a [guestmem] / import breakdown on your side would tell. 0 fatal in all rows.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6222690462 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6678#issuecomment-6222690462). Originally posted by [parl0v](https://github.com/parl0v) on 2026-10-16T19:03:11Z. --- A Windows NVIDIA data point, and one that goes the other way: RTX 3060 12 GB (NVIDIA 617.42), i5-12400F, Windows 10 19045, MinGW GCC Release. Minecraft Dungeons II (PPSA16064 01.100.100), title screen, no input, 200 s rows, `APS5_PROFILE_DRAW=1 APS5_PROFILE_GPU=1`; `main` 93e54cedd vs `main` + this PR, interleaved with three other PRs in one batch, two rounds. FPS is the mean of the last 10 `[present]` windows, GPU busy and idle gaps per frame over the last 8. | libs | FPS | GPU busy | idle gaps | program-keyed GPU time per 10 s | |---|---|---|---|---| | `main` | 6.61 / 6.61 | 104 / 105 ms | 46 / 46 ms | 2477 ms | | + this PR (141d605b9) | 6.50 / 6.53 (-1.4 %) | **117 / 117 ms** | 36 / 36 ms | **3266 ms** | The idle gaps shrink as intended (-10 ms per frame), but GPU busy grows by 13 ms per frame, so the frame rate drops a little. The command classes are unchanged (draw 32.3 / 31.5 ms, storage write-back 17.4 / 17.2 ms per present); the growth is all in the title's compute dispatches. By rank (the program addresses move between runs), both rounds: | dispatch, by GPU time | `main` | this PR | |---|---|---| | 1st | 396-414 ms per 10 s | 655 ms (+60 %) | | 2nd | 230-233 ms | 483-485 ms (+108 %) | | 3rd | 94-99 ms | 231 ms (+140 %) | So the heaviest dispatches run 1.6-2.4x longer on the GPU when the sub-1 MiB settles no longer wait. My guess is that those dispatches now read buffers that are still on the slower path because their import wasn't settled yet when they were recorded; a `[guestmem]` / import breakdown on your side would tell. 0 fatal in all rows. AI-assisted: yes (Claude Code)
EagleBearerYS commented 2026-10-16 19:06:08 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-16T19:06:08Z.


@parl0v thank you, this is the cost side we hadn't measured: the idle gaps shrink by 10 ms per frame as intended, but the heaviest compute dispatches take 1.6–2.4× longer, so the frame rate drops a little on the 3060. We'll look at where those dispatches' buffers come from with and without this PR, a settled import read from host memory or a device copy, with an import breakdown, and report back here.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6222739978 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6678#issuecomment-6222739978). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-16T19:06:08Z. --- @parl0v thank you, this is the cost side we hadn't measured: the idle gaps shrink by 10 ms per frame as intended, but the heaviest compute dispatches take 1.6–2.4× longer, so the frame rate drops a little on the 3060. We'll look at where those dispatches' buffers come from with and without this PR, a settled import read from host memory or a device copy, with an import breakdown, and report back here.
EagleBearerYS commented 2026-10-16 19:20:35 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-16T19:20:35Z.


Thanks for the numbers, @parl0v. From the code, #6678 doesn't change which buffer a read binds. An import under 1 MiB is read in place from host memory on both trees; main creates it too, unwatched.

What #6678 changes is the write tracking. Once its settle read lands, the import is back in the write watch, and watched memory takes the unit-shadow path (ShadowDestinationFor in UnitShadow.cpp). A storage image's write-back then goes to a device-local slab instead of straight into the import. Units it covers only partly are first seeded from the import, and the slab is published back when something reads the range. On main these imports stay unwatched, so none of that runs for them. If those three dispatches write small storage images, the seeds and publishes would be new GPU work per frame. They may also land in the dispatches' own GPU time.

Could you run #6678 once more with APS5_NO_UNIT_SHADOW=1 (same title screen, same profile env)? If those dispatches drop back to main's GPU time, that's the cause. The fix would then keep imports under 1 MiB off the shadow path, or skip the seed for them.

Two lines from each tree, over the same window, would also help:

  • [storage], its shadow: part (retiled, seeds, published by reason);
  • with #6678 only, the new [buffers] host imports under 1024 KiB: ... line. That tells whether settles keep running once the title screen is steady, as they would for imports that come and go every frame.

If your per-program lines have dispatch counts too, the per-dispatch time would rule out a change in how often they run.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6222977126 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6678#issuecomment-6222977126). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-16T19:20:35Z. --- Thanks for the numbers, @parl0v. From the code, #6678 doesn't change which buffer a read binds. An import under 1 MiB is read in place from host memory on both trees; main creates it too, unwatched. What #6678 changes is the write tracking. Once its settle read lands, the import is back in the write watch, and watched memory takes the unit-shadow path (`ShadowDestinationFor` in `UnitShadow.cpp`). A storage image's write-back then goes to a device-local slab instead of straight into the import. Units it covers only partly are first seeded from the import, and the slab is published back when something reads the range. On main these imports stay unwatched, so none of that runs for them. If those three dispatches write small storage images, the seeds and publishes would be new GPU work per frame. They may also land in the dispatches' own GPU time. Could you run #6678 once more with `APS5_NO_UNIT_SHADOW=1` (same title screen, same profile env)? If those dispatches drop back to main's GPU time, that's the cause. The fix would then keep imports under 1 MiB off the shadow path, or skip the seed for them. Two lines from each tree, over the same window, would also help: - `[storage]`, its `shadow:` part (retiled, seeds, published by reason); - with #6678 only, the new `[buffers] host imports under 1024 KiB: ...` line. That tells whether settles keep running once the title screen is steady, as they would for imports that come and go every frame. If your per-program lines have dispatch counts too, the per-dispatch time would rule out a change in how often they run.
EagleBearerYS commented 2026-10-16 20:14:55 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-16T20:14:55Z.


@parl0v #6678 now also has APS5_NO_DEFERRED_SETTLES=1 (5f822a5008), which keeps every import under 1 MiB compared, as on main. If you can, run it next to the APS5_NO_UNIT_SHADOW=1 run, so the settle's own cost and the unit-shadow path can be told apart.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6223864504 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6678#issuecomment-6223864504). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-16T20:14:55Z. --- @parl0v #6678 now also has `APS5_NO_DEFERRED_SETTLES=1` (5f822a5008), which keeps every import under 1 MiB compared, as on main. If you can, run it next to the `APS5_NO_UNIT_SHADOW=1` run, so the settle's own cost and the unit-shadow path can be told apart.
keravyn-ops commented 2026-10-17 08:33:20 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by keravyn-ops on 2026-10-17T08:33:20Z.


AMD / Windows data point: Radeon 780M APU (Ryzen Z1 Extreme, 16 GiB shared), AMD driver 25.10.20.01 (32.0.21020.1007), Windows 11 Home 10.0.26100, WinLibs GCC 15.2.0 r7, Release. Title: SILENT HILL: Townfall (PPSA33286) from boot, same settings for both builds (APS5_PROFILE_DRAW=1, APS5_ADDRESS_COPY_MAX_MIB=8192, 90 s cap).

main 3b10c7ef0 main 3b10c7ef0 + #6455 + this PR (d52283945)
Result aborts after 25 s: compute shader 0x14919ce00: AGC graphics: a heap mirror's range is no longer write-watched still running at 90 s, no abort
unwatched heaps (image mirrors line) 3711 829
Small imports — 4507 settle reads submitted, 4525 back in the write watch, 0 retired during their read (0 unmaps waited for it), 0 pending; 189 larger imports settled inside their window
Peak private bytes 8.6 GiB (at the abort) 11.3 GiB

Merged without conflicts on top of 3b10c7ef0. Not measured: frame rate (the title does not reach a menu on this device in 90 s; on this APU the host heap is 3 GiB, see #7047), and the GPU tests of this PR.

AI-assisted: yes (runs made on the device above).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6231789112 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6678#issuecomment-6231789112). Originally posted by [keravyn-ops](https://github.com/keravyn-ops) on 2026-10-17T08:33:20Z. --- AMD / Windows data point: Radeon 780M APU (Ryzen Z1 Extreme, 16 GiB shared), AMD driver 25.10.20.01 (32.0.21020.1007), Windows 11 Home 10.0.26100, WinLibs GCC 15.2.0 r7, Release. Title: SILENT HILL: Townfall (PPSA33286) from boot, same settings for both builds (`APS5_PROFILE_DRAW=1`, `APS5_ADDRESS_COPY_MAX_MIB=8192`, 90 s cap). | | `main` 3b10c7ef0 | `main` 3b10c7ef0 + #6455 + this PR (d52283945) | |---|---|---| | Result | aborts after 25 s: `compute shader 0x14919ce00: AGC graphics: a heap mirror's range is no longer write-watched` | still running at 90 s, no abort | | `unwatched heaps` (image mirrors line) | 3711 | 829 | | Small imports | — | `4507 settle reads submitted, 4525 back in the write watch, 0 retired during their read (0 unmaps waited for it), 0 pending; 189 larger imports settled inside their window` | | Peak private bytes | 8.6 GiB (at the abort) | 11.3 GiB | Merged without conflicts on top of 3b10c7ef0. Not measured: frame rate (the title does not reach a menu on this device in 90 s; on this APU the host heap is 3 GiB, see #7047), and the GPU tests of this PR. AI-assisted: yes (runs made on the device above).
EagleBearerYS commented 2026-10-17 08:40:53 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-17T08:40:53Z.


Thanks @keravyn-ops, that's a useful AMD data point. The abort's line is the throw #6646 handles: a heap mirror whose range has left the write watch, which #6646 plans again instead of failing (mariuszkreft's #6546 handles the same throw with a full refresh). With #6455 and this PR, imports under 1 MiB go back into the write watch without waiting (your 4,507 settle reads), so far fewer heaps are unwatched (3,711 → 829), which likely keeps that throw away for the 90 s. If you have time, a run of main + #6646 or #6546 would show whether the abort also goes away without the import changes. The peak private bytes aren't comparable, since the main run stopped at 25 s.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6231856945 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6678#issuecomment-6231856945). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-17T08:40:53Z. --- Thanks @keravyn-ops, that's a useful AMD data point. The abort's line is the throw #6646 handles: a heap mirror whose range has left the write watch, which #6646 plans again instead of failing (mariuszkreft's #6546 handles the same throw with a full refresh). With #6455 and this PR, imports under 1 MiB go back into the write watch without waiting (your 4,507 settle reads), so far fewer heaps are unwatched (3,711 → 829), which likely keeps that throw away for the 90 s. If you have time, a run of `main` + #6646 or #6546 would show whether the abort also goes away without the import changes. The peak private bytes aren't comparable, since the `main` run stopped at 25 s.
HQasper commented 2026-10-17 15:59:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by HQasper on 2026-10-17T15:59:25Z.


Hello Neighbor (PPSA35154, UE4) on Windows and NVIDIA: 3.6 → 8.1 FPS in game

Setup:

  • Windows 11 Pro, Ryzen 9 9950X3D, RTX 5090 32 GB (NVIDIA 617.42, Resizable BAR on), WinLibs GCC 15.2.0.
  • Main 47a266cf9 with #6455 and this PR merged on top. Both merged without conflicts.
  • The executable is relinked on 47a266cf9. Neither PR changes the relinker.

Method:

  • Continue from the main menu to the start of Act 1 (the street in front of the house), driven with APS5_PAD_INPUT_FILE.
  • Starting 120 s after Continue: 60 s of frames from the window-title counter, standing still, no profiler.
  • One run per build. Run-to-run noise is about ±5 %.
Build In game
main 47a266cf9 3.63 FPS
main + #6455 + this PR 8.12 FPS
main, local control: settle floor lowered from 1 MiB to 64 KiB (synchronous settles) 8.45 FPS

Why it helps this title:

  • Import sizes: in one run, 9,977 of 10,400 imports were between 64 KiB and 1 MiB. None were smaller, and 423 were 1 MiB or more. All of them are made while loading. The count does not change in game, so the deferred settles have nothing to queue there.
  • On main, the DCC key ranges of the render targets are among the compared imports. ProvedClearKeys never gets a collect. A local counter showed 0 reused proofs out of about 400,000 per 10 s, every one with CollectWrites returning 0. [dcc] reported about 570,000 key scans (78 GiB) per 10 s.
  • Cost on main: a sample of the draw committer thread (DrawPipeline::run) put 15 % of it in AllKeysEqual under readDccKeys.
  • With this PR: 33,207 proofs per 10 s were reused and 33,830 were memoized. None had CollectWrites returning 0.

Not seen or not tested:

  • No failure and no abort.
  • Only this one spot was tested. Loading time was not compared.

With my local vertex/index-in-VRAM patch (described in #357), the in-game numbers are 5.82 FPS on main and 9.25 FPS with this PR.

Done with AI assistance.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6236225437 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6678#issuecomment-6236225437). Originally posted by [HQasper](https://github.com/HQasper) on 2026-10-17T15:59:25Z. --- ### Hello Neighbor (PPSA35154, UE4) on Windows and NVIDIA: 3.6 → 8.1 FPS in game **Setup:** - Windows 11 Pro, Ryzen 9 9950X3D, RTX 5090 32 GB (NVIDIA 617.42, Resizable BAR on), WinLibs GCC 15.2.0. - Main 47a266cf9 with #6455 and this PR merged on top. Both merged without conflicts. - The executable is relinked on 47a266cf9. Neither PR changes the relinker. **Method:** - Continue from the main menu to the start of Act 1 (the street in front of the house), driven with `APS5_PAD_INPUT_FILE`. - Starting 120 s after Continue: 60 s of frames from the window-title counter, standing still, no profiler. - One run per build. Run-to-run noise is about ±5 %. | Build | In game | |---|---| | main 47a266cf9 | 3.63 FPS | | main + #6455 + this PR | 8.12 FPS | | main, local control: settle floor lowered from 1 MiB to 64 KiB (synchronous settles) | 8.45 FPS | **Why it helps this title:** - **Import sizes:** in one run, 9,977 of 10,400 imports were between 64 KiB and 1 MiB. None were smaller, and 423 were 1 MiB or more. All of them are made while loading. The count does not change in game, so the deferred settles have nothing to queue there. - **On main, the DCC key ranges of the render targets are among the compared imports.** `ProvedClearKeys` never gets a collect. A local counter showed 0 reused proofs out of about 400,000 per 10 s, every one with `CollectWrites` returning 0. `[dcc]` reported about 570,000 key scans (78 GiB) per 10 s. - **Cost on main:** a sample of the draw committer thread (`DrawPipeline::run`) put 15 % of it in `AllKeysEqual` under `readDccKeys`. - **With this PR:** 33,207 proofs per 10 s were reused and 33,830 were memoized. None had `CollectWrites` returning 0. **Not seen or not tested:** - No failure and no abort. - Only this one spot was tested. Loading time was not compared. With my local vertex/index-in-VRAM patch (described in #357), the in-game numbers are 5.82 FPS on main and 9.25 FPS with this PR. Done with AI assistance.
EagleBearerYS commented 2026-10-17 16:16:19 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-17T16:16:19Z.


Thanks @HQasper for the run, the synchronous control and the DCC counts, which show where the time goes on main. Since every import here is made while loading, it fits that synchronous settling does as well as this PR in game; Resident Evil Village (PPSA01556), which imports at map time, is where the deferral makes the difference (the table in the description). I've added your run to Tested and Hello Neighbor (PPSA35154) to Unblocks.

@parl0v, a follow-up on your RTX 3060 numbers. On an RTX 3070 Laptop GPU, Planet of Lana (PPSA19450) points the same way, but not clearly. In an OFF, ON, OFF run (APS5_NO_DEFERRED_SETTLES=1 for OFF, one build), GPU busy per present was 50.3, 54.4 and 44.0 ms, so ON was at the high end. That's inside the 6.3 ms between the two OFF runs, at unheld clocks, so we can't separate it from run-to-run spread. The frame rate showed no drop there (5.06, 5.00 and 6.08 fps), but that scene is CPU-bound. Details are in Tested.

One thing this PR does that a GPU-bound setup like yours would feel more: while a title keeps making small imports, it submits their settle reads to the settle queue as often as every 100 µs, and on NVIDIA that queue is a second queue of the graphics family. Two commits on top of this PR, EagleBearerYS:followup/6678-settle-batching (aaa1a3856e), hold the reads until 256 are queued or the oldest has waited 100 ms, so such a title submits there about ten times a second at most. Its test agc_import_settle_batching checks that 16 small imports a millisecond apart settle in at most 2 submissions.

Could you rerun Minecraft Dungeons II's title screen with it, with the same setup and profile env? APS5_NO_DEFERRED_SETTLES=1 on the same build gives the row without settles, so one build covers both. Please merge it onto current main: the branch alone predates main's MinGW fix for a test's alignment (4fe92c9c23). If you have time for a third row, APS5_NO_UNIT_SHADOW=1 from my earlier comment would still tell the unit-shadow path apart.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6236464493 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6678#issuecomment-6236464493). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-17T16:16:19Z. --- Thanks @HQasper for the run, the synchronous control and the DCC counts, which show where the time goes on `main`. Since every import here is made while loading, it fits that synchronous settling does as well as this PR in game; Resident Evil Village (PPSA01556), which imports at map time, is where the deferral makes the difference (the table in the description). I've added your run to Tested and Hello Neighbor (PPSA35154) to Unblocks. @parl0v, a follow-up on your RTX 3060 numbers. On an RTX 3070 Laptop GPU, Planet of Lana (PPSA19450) points the same way, but not clearly. In an OFF, ON, OFF run (`APS5_NO_DEFERRED_SETTLES=1` for OFF, one build), GPU busy per present was 50.3, 54.4 and 44.0 ms, so ON was at the high end. That's inside the 6.3 ms between the two OFF runs, at unheld clocks, so we can't separate it from run-to-run spread. The frame rate showed no drop there (5.06, 5.00 and 6.08 fps), but that scene is CPU-bound. Details are in Tested. One thing this PR does that a GPU-bound setup like yours would feel more: while a title keeps making small imports, it submits their settle reads to the settle queue as often as every 100 µs, and on NVIDIA that queue is a second queue of the graphics family. Two commits on top of this PR, [`EagleBearerYS:followup/6678-settle-batching`](https://github.com/EagleBearerYS/AnyPS5/tree/followup/6678-settle-batching) (aaa1a3856e), hold the reads until 256 are queued or the oldest has waited 100 ms, so such a title submits there about ten times a second at most. Its test `agc_import_settle_batching` checks that 16 small imports a millisecond apart settle in at most 2 submissions. Could you rerun Minecraft Dungeons II's title screen with it, with the same setup and profile env? `APS5_NO_DEFERRED_SETTLES=1` on the same build gives the row without settles, so one build covers both. Please merge it onto current `main`: the branch alone predates `main`'s MinGW fix for a test's alignment (4fe92c9c23). If you have time for a third row, `APS5_NO_UNIT_SHADOW=1` from my earlier comment would still tell the unit-shadow path apart.
simonbronk commented 2026-10-17 22:08:21 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by simonbronk on 2026-10-17T22:08:21Z.


Tested on Onimusha's menu: a small but consistent gain.

Setup: Onimusha: Way of the Sword (PPSA27836), boot to the language menu with no input, APS5_TRACE_SECONDS=60:30, warm cache. Windows 11 26200, RTX 5070 (617.42), 3840x2160. Base main 84b0d2f24 + #6557 #6727 #6762 (5c521efea), 6 runs (3 before and 3 after the PR runs). The PR is merged on top of it (clean merge), 3 runs.

  • Base frame p50 (ms): 84.5, 82.6, 81.8, 81.5, 77.9, 83.5 (mean 82.0); p90 84.3-93.6.
  • With this PR, p50: 78.3, 78.6, 77.0 (mean 78.0, -4.8%); p90 82.5, 86.9, 85.6. All three runs are at or below the base's lowest, so the gain is near the noise edge but in every run.
  • Driver.Packet.memory_wait per frame in run 1: 107.0 ms on base, 78.5 ms with the PR. GPU busy is unchanged (27.4-27.6 ms per present).

Summary lines (run 1 of each):

{"commit":"5c521efea4cb","dirty":false,"env":{"APS5_BINDLESS_MATERIAL_SCAN":"65536","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"60:30"},"gpu":"NVIDIA GeForce RTX 5070","driver":"NVIDIA 617.42","os":"Windows 10.0.26200","resolution":"3840x2160","window":{"spec":"seconds 60:30","first_present":414,"ms":30052.503},"presents":256,"frame_ms":{"p50":84.478,"p90":93.612,"p99":972.971,"max":1952.003},"gpu_busy_ms_per_present":27.587,"worker_busy_pct":{"queue worker 0x38":1.653,"queue worker 0x20":35.070,"queue worker 0x0":91.809,"queue worker 0x28":64.589},"top_phases_ms_per_frame":{"Driver.Packet":224.620,"Driver.Packet.memory_wait":107.008,"Driver.Packet.draw":63.092,"Driver.Draw":63.071,"Driver.Packet.dispatch":52.429,"Driver.Dispatch":50.815,"Driver.Draw.draw_and_resource_release":48.789,"Graphics.Draw":48.759},"trace_dropped":false,"trace":"aps5-trace-5c521efea4cb-1894532.json.gz"}
{"commit":"6566a65b2cbb","dirty":false,"env":{"APS5_BINDLESS_MATERIAL_SCAN":"65536","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"60:30"},"gpu":"NVIDIA GeForce RTX 5070","driver":"NVIDIA 617.42","os":"Windows 10.0.26200","resolution":"3840x2160","window":{"spec":"seconds 60:30","first_present":397,"ms":30050.551},"presents":347,"frame_ms":{"p50":78.325,"p90":82.462,"p99":94.636,"max":2227.073},"gpu_busy_ms_per_present":27.421,"worker_busy_pct":{"queue worker 0x38":1.865,"queue worker 0x20":34.182,"queue worker 0x0":90.496,"queue worker 0x28":61.783},"top_phases_ms_per_frame":{"Driver.Packet":161.360,"Driver.Packet.memory_wait":78.507,"Driver.Packet.draw":51.591,"Driver.Draw":51.570,"Driver.Draw.draw_and_resource_release":38.684,"Graphics.Draw":38.656,"Graphics.Draw.draw_and_resource_release":38.499,"Driver.Packet.dispatch":29.672},"trace_dropped":false,"trace":"aps5-trace-6566a65b2cbb-1890784.json.gz"}

Traces available on request. AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6241965113 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6678#issuecomment-6241965113). Originally posted by [simonbronk](https://github.com/simonbronk) on 2026-10-17T22:08:21Z. --- Tested on Onimusha's menu: a small but consistent gain. Setup: Onimusha: Way of the Sword (PPSA27836), boot to the language menu with no input, `APS5_TRACE_SECONDS=60:30`, warm cache. Windows 11 26200, RTX 5070 (617.42), 3840x2160. Base `main` 84b0d2f24 + #6557 #6727 #6762 (5c521efea), 6 runs (3 before and 3 after the PR runs). The PR is merged on top of it (clean merge), 3 runs. - Base frame p50 (ms): 84.5, 82.6, 81.8, 81.5, 77.9, 83.5 (mean 82.0); p90 84.3-93.6. - With this PR, p50: 78.3, 78.6, 77.0 (mean 78.0, -4.8%); p90 82.5, 86.9, 85.6. All three runs are at or below the base's lowest, so the gain is near the noise edge but in every run. - `Driver.Packet.memory_wait` per frame in run 1: 107.0 ms on base, 78.5 ms with the PR. GPU busy is unchanged (27.4-27.6 ms per present). Summary lines (run 1 of each): ``` {"commit":"5c521efea4cb","dirty":false,"env":{"APS5_BINDLESS_MATERIAL_SCAN":"65536","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"60:30"},"gpu":"NVIDIA GeForce RTX 5070","driver":"NVIDIA 617.42","os":"Windows 10.0.26200","resolution":"3840x2160","window":{"spec":"seconds 60:30","first_present":414,"ms":30052.503},"presents":256,"frame_ms":{"p50":84.478,"p90":93.612,"p99":972.971,"max":1952.003},"gpu_busy_ms_per_present":27.587,"worker_busy_pct":{"queue worker 0x38":1.653,"queue worker 0x20":35.070,"queue worker 0x0":91.809,"queue worker 0x28":64.589},"top_phases_ms_per_frame":{"Driver.Packet":224.620,"Driver.Packet.memory_wait":107.008,"Driver.Packet.draw":63.092,"Driver.Draw":63.071,"Driver.Packet.dispatch":52.429,"Driver.Dispatch":50.815,"Driver.Draw.draw_and_resource_release":48.789,"Graphics.Draw":48.759},"trace_dropped":false,"trace":"aps5-trace-5c521efea4cb-1894532.json.gz"} {"commit":"6566a65b2cbb","dirty":false,"env":{"APS5_BINDLESS_MATERIAL_SCAN":"65536","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"60:30"},"gpu":"NVIDIA GeForce RTX 5070","driver":"NVIDIA 617.42","os":"Windows 10.0.26200","resolution":"3840x2160","window":{"spec":"seconds 60:30","first_present":397,"ms":30050.551},"presents":347,"frame_ms":{"p50":78.325,"p90":82.462,"p99":94.636,"max":2227.073},"gpu_busy_ms_per_present":27.421,"worker_busy_pct":{"queue worker 0x38":1.865,"queue worker 0x20":34.182,"queue worker 0x0":90.496,"queue worker 0x28":61.783},"top_phases_ms_per_frame":{"Driver.Packet":161.360,"Driver.Packet.memory_wait":78.507,"Driver.Packet.draw":51.591,"Driver.Draw":51.570,"Driver.Draw.draw_and_resource_release":38.684,"Graphics.Draw":38.656,"Graphics.Draw.draw_and_resource_release":38.499,"Driver.Packet.dispatch":29.672},"trace_dropped":false,"trace":"aps5-trace-6566a65b2cbb-1890784.json.gz"} ``` Traces available on request. AI-assisted: yes.
EagleBearerYS commented 2026-10-17 23:14:22 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-17T23:14:22Z.


Thanks @simonbronk, I've added your runs to Tested.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6242924256 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6678#issuecomment-6242924256). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-17T23:14:22Z. --- Thanks @simonbronk, I've added your runs to Tested.
oneandonlydean commented 2026-10-17 23:26:45 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-17T23:26:45Z.


#7269 has merged. It keys host-import settle state per device, so this PR no longer merges cleanly (GuestBufferMemory.cpp). Could you rebase onto current main? The settle batch here (target, memory, fences) needs the same per-device keying, and the settles member will need a new name so it does not collide with the one #7269 added. We will run review and full CI on the new head from there.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6243056100 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6678#issuecomment-6243056100). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-17T23:26:45Z. --- #7269 has merged. It keys host-import settle state per device, so this PR no longer merges cleanly (GuestBufferMemory.cpp). Could you rebase onto current main? The settle batch here (target, memory, fences) needs the same per-device keying, and the `settles` member will need a new name so it does not collide with the one #7269 added. We will run review and full CI on the new head from there.
EagleBearerYS commented 2026-10-18 01:39:42 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-18T01:39:42Z.


@oneandonlydean main is merged in at 8f03535c8f (main 98c251fc62), so the conflict with #7269 in GuestBufferMemory.cpp is resolved. The settle batch is now keyed per device: each device's ImportSettle holds its batch target, memory, batches and their fences, next to #7269's buffer, memory and fence. A device switch keeps every device's batches, and ClearHostImports waits for and destroys only its own device's. The per-import map is now pendingSettles, clear of #7269's settles. I merged rather than rebased, so the head you reviewed, 5f822a5008, is the merge's first parent.

On an NVIDIA GeForce RTX 3070 Laptop GPU (driver 617.42), the settle, write-tracking, watch and host-import tests (10 in all, listed in the description) pass 5 runs in a row each, with none skipped. On GitHub's runners (run), they and the ^agc tests pass 3 runs in a row on Linux. On Windows, where the settle tests skip without a Vulkan device, the only failures are agc_driver_pm4_replay_tool and agc_shader_replay_tool, which fail the same way on that runner for an unrelated branch today (run).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6244330776 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6678#issuecomment-6244330776). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-18T01:39:42Z. --- @oneandonlydean `main` is merged in at 8f03535c8f (`main` 98c251fc62), so the conflict with #7269 in `GuestBufferMemory.cpp` is resolved. The settle batch is now keyed per device: each device's `ImportSettle` holds its batch target, memory, batches and their fences, next to #7269's buffer, memory and fence. A device switch keeps every device's batches, and `ClearHostImports` waits for and destroys only its own device's. The per-import map is now `pendingSettles`, clear of #7269's `settles`. I merged rather than rebased, so the head you reviewed, 5f822a5008, is the merge's first parent. On an NVIDIA GeForce RTX 3070 Laptop GPU (driver 617.42), the settle, write-tracking, watch and host-import tests (10 in all, listed in the description) pass 5 runs in a row each, with none skipped. On GitHub's runners ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39079697583)), they and the `^agc` tests pass 3 runs in a row on Linux. On Windows, where the settle tests skip without a Vulkan device, the only failures are `agc_driver_pm4_replay_tool` and `agc_shader_replay_tool`, which fail the same way on that runner for an unrelated branch today ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39061670036)).
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!6678
No description provided.