perf(agc): allocate Windows write-tracking stamps on demand #6701

Merged
eljackjoestar-cmd merged 1 commit from upstream-pr/6701 into main 2026-10-19 20:15:38 +00:00
eljackjoestar-cmd commented 2026-10-16 05:17:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by eljackjoestar-cmd on 2026-10-16T05:17:07Z.


What

Windows write tracking eagerly allocated three generation arrays for every 64 KiB block in the 1000 GiB guest arena, even when almost all ranges were unused. Reuse the existing Linux sparse leaf layout on Windows, adding the Windows untracked-hint stamps to each leaf. Allocate a leaf only when a store stamps one of its blocks; reading an absent leaf returns zero and does not allocate. Range checks use the existing leaf walk and skip absent leaves.

Each touched 4 GiB guest region adds 768 KiB of stamp metadata. The existing coverage table remains dense. The tracking mutex, generations, CPU-versus-driver store distinction and import behavior remain unchanged. No graphics settings or shader semantics change.

Related/overlap: #6266 adds coarse summaries in WriteTracker::stamp and unchanged. This patch changes Windows stamp storage to the existing leaves; that summary optimization is separate and must retain the sparse storage when combined. No open PR implementing this Windows allocation change was found. This does not include the deferred-import settling of #6678.

Tested

Windows 11 26300, Ryzen 7 7800X3D, 32 GiB RAM, WinLibs GCC 15.2 UCRT, Release. Component benchmarks used main 5d9dcc42d. The topic is now rebased onto main332b0b1b7 atfe95848f254e60ecd270e6bc996028ab2f3d5fb1; the measured production GuestMemory.cpp blob remains byte-identical (f5dd7b0f386a676ab03abc60e6858272e8ea9f96). Original benchmark baselines below are preserved. The component measurements below are CPU-only; a separate gameplay integration comparison follows.

  • New fresh-process agc_write_tracking_metadata_commit with main's production code fails: write-tracker initialization: 208940 KiB private commit for 1000 GiB guest arena, then write tracking committed dense generation tables for untouched guest ranges.
  • With the patch: write-tracker initialization: 16552 KiB private commit for 1000 GiB guest arena. Queries of 250 untouched 4 GiB regions must not allocate leaves.
  • agc_write_tracking, agc_write_tracking_metadata_commit and agc_write_watch_coverage: 3/3 pass, 0.31 s in the verbose run. Final checks also pass.
  • Added cross-leaf checks straddle a 4 GiB boundary and verify CPU/driver stamps, unchanged neighbours, and untracked hints after stores on both sides. Existing tracking checks pass unchanged.
    CPU-only before/after measurements: seven alternating pairs on the same machine, identical compiler/dependencies, each process pinned to logical CPU 2. Values below are medians; initialization memory is the increase in process private commit, measured after reserving the guest arena and before/after initializing the tracker.
Metric Before: main 5d9dcc42d After: PR #6701 Change
Tracker initialization private commit 204.04 MiB 16.16 MiB 187.88 MiB less (92.1%)
Tracker initialization CPU time 18.813 ms 1.772 ms 90.6% less
Hot 64 KiB unchanged-range check 21.557 ns 22.110 ns +0.553 ns (+2.6%)
Untouched 4 GiB unchanged-range check 20.196 µs 10.191 µs 49.5% less time

The hot check is slightly slower in this sample, while empty-range scans and initialization improve. These are component measurements, not whole-game memory or FPS measurements. No game or Vulkan device was started. As more guest regions are stamped, leaves allocate and the memory saving decreases; a touched 4 GiB region adds 768 KiB.

Benchmark provenance: baseline 5d9dcc42d2ec5401aebd089028b8d4d7410a77b4; candidate 3ba2b03045059a18ee8300d67d92280164e55496. The pre-rebase PR head 24f2ac4098ddfb9f71989f34d0a3990444ebe8b3 only removes blank lines from the test relative to that candidate; the measured production GuestMemory.cpp blob is identical (f5dd7b0f386a676ab03abc60e6858272e8ea9f96).

Raw before/after samples (seven alternating pairs)

Pair order alternated before→after, after→before. Commit values are bytes; times are per query except initialization.

Pair Private commit before / after (bytes) Init before / after (µs) Hot 64 KiB before / after (ns) Empty 4 GiB before / after (ns)
1 213954560 / 16949248 19963.5 / 1698.2 22.466 / 22.386 20113.50 / 10127.55
2 213954560 / 16949248 18908.7 / 1683.5 22.399 / 22.665 20195.60 / 10193.90
3 213950464 / 16949248 18630.3 / 1791.1 21.557 / 22.486 20209.45 / 10190.70
4 213954560 / 16949248 18813.2 / 1772.3 20.795 / 22.110 20193.95 / 10183.20
5 213954560 / 16949248 18344.3 / 1928.0 20.401 / 16.133 20319.20 / 10531.65
6 213958656 / 16949248 18875.6 / 1673.1 21.227 / 20.302 20150.55 / 10515.05
7 213954560 / 16949248 18490.4 / 1864.3 21.827 / 21.183 20291.70 / 10140.45
  • Conventions and git diff --check pass.

In-game integration comparison (16 October)

Lost Soul Aside (PPSA26358), same PC and RTX 5070, fullscreen, 3840x2160 render resolution and unchanged quality settings. Baseline integration 825f012166e17ed358cf98f68814e3c816dab316 on main 5d9dcc42d; candidate dc9e14c22afbccee1bd6c9ebd4ae5ed6e169e574 is that integration plus this exact topic commit. Only the patched libSceAgcDriver.prx changed in the installed runtime; all other 132 manifest files were byte-identical. This is a comparison within the gameplay integration, not a stock-main compatibility test. The unrelated deferred import settling of #6678 is excluded on both sides.

Both runs used the same shared warm shader cache, -onethread, normal guest clock, import budget 12288 MiB, texture cache 1024 MiB, copied-buffer staging, writable staging cap 8192 KiB, unused device pool 256 MiB, automatic title double-X, bounded logs and the existing resource guard. Profilers, samplers and GPU timing were off; no builds or other GPU tests ran concurrently. Each was deliberately stopped after its gameplay window; neither crashed or hit the guard. No graphics settings were reduced.

Opening combat HUD directly verified with game-window PrintWindow captures. One sequential pair, 29 resource/title samples in each approximately 60-second window:

Metric Before, run226 After, run227
Sampled title FPS, median 1.29 1.66
Frame-counter progression / second 1.384 1.568
Process private commit, median 20,399 MiB 19,957 MiB
Process private commit, peak in window 20,801 MiB 20,429 MiB
Working set, median 16,530 MiB 16,016 MiB
Minimum free Windows commit 7,307 MiB 7,481 MiB

The title remains around 1–2 FPS in gameplay. This does not fix its overall performance problem. Combat AI, camera/animation and frame progression differ, so this single pair does not establish a causal whole-game FPS improvement or that the entire observed 442 MiB difference comes from this patch. The controlled component memory saving is the 187.88 MiB figure above. Rendering artifacts remain visible on both sides; audio correctness was not independently measured.

Integration checks after the full runtime build: agc_write_tracking, agc_write_tracking_metadata_commit, agc_write_watch_coverage, agc_driver_host_import_windows, agc_driver_store_over_untracked, agc_driver_untracked_snapshot_hint: 6/6 pass, 1.86 s, GPU checks on RTX 5070.

Current-main integration recheck after the rebase: write tracking, metadata commit, storage upload lifetime, split write-back, exact storage snapshot pixels and graphics checks: 6/6 pass,7.16s on the same RTX5070. The integration includes the retained gameplay fixes and local diagnostic timing; this is not a new exact-topic benchmark. Conventions and diff whitespace checks pass on the clean rebased topic.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw; no silent stubs added
  • No notes, investigation .md files or images added to the repository
  • New third-party code is a submodule built from source; no new dependencies
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Unblocks: none
  • GPUs tested: NVIDIA GeForce RTX 5070, driver 617.14, Windows 11 26300 for the integration tests and Lost Soul Aside comparison below. Component benchmarks create no Vulkan device. Linux not run locally.
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4883854055 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6701). Originally posted by [eljackjoestar-cmd](https://github.com/eljackjoestar-cmd) on 2026-10-16T05:17:07Z. --- ### What Windows write tracking eagerly allocated three generation arrays for every 64 KiB block in the 1000 GiB guest arena, even when almost all ranges were unused. Reuse the existing Linux sparse leaf layout on Windows, adding the Windows untracked-hint stamps to each leaf. Allocate a leaf only when a store stamps one of its blocks; reading an absent leaf returns zero and does not allocate. Range checks use the existing leaf walk and skip absent leaves. Each touched 4 GiB guest region adds 768 KiB of stamp metadata. The existing coverage table remains dense. The tracking mutex, generations, CPU-versus-driver store distinction and import behavior remain unchanged. No graphics settings or shader semantics change. Related/overlap: #6266 adds coarse summaries in `WriteTracker::stamp` and `unchanged`. This patch changes Windows stamp storage to the existing leaves; that summary optimization is separate and must retain the sparse storage when combined. No open PR implementing this Windows allocation change was found. This does not include the deferred-import settling of #6678. ### Tested Windows 11 26300, Ryzen 7 7800X3D, 32 GiB RAM, WinLibs GCC 15.2 UCRT, Release. Component benchmarks used main 5d9dcc42d. The topic is now rebased onto main332b0b1b7 atfe95848f254e60ecd270e6bc996028ab2f3d5fb1; the measured production GuestMemory.cpp blob remains byte-identical (f5dd7b0f386a676ab03abc60e6858272e8ea9f96). Original benchmark baselines below are preserved. The component measurements below are CPU-only; a separate gameplay integration comparison follows. - New fresh-process `agc_write_tracking_metadata_commit` with main's production code fails: `write-tracker initialization: 208940 KiB private commit for 1000 GiB guest arena`, then `write tracking committed dense generation tables for untouched guest ranges`. - With the patch: `write-tracker initialization: 16552 KiB private commit for 1000 GiB guest arena`. Queries of 250 untouched 4 GiB regions must not allocate leaves. - `agc_write_tracking`, `agc_write_tracking_metadata_commit` and `agc_write_watch_coverage`: 3/3 pass, 0.31 s in the verbose run. Final checks also pass. - Added cross-leaf checks straddle a 4 GiB boundary and verify CPU/driver stamps, unchanged neighbours, and untracked hints after stores on both sides. Existing tracking checks pass unchanged. CPU-only before/after measurements: seven alternating pairs on the same machine, identical compiler/dependencies, each process pinned to logical CPU 2. Values below are medians; initialization memory is the increase in **process private commit**, measured after reserving the guest arena and before/after initializing the tracker. | Metric | Before: main `5d9dcc42d` | After: PR #6701 | Change | |---|---:|---:|---:| | Tracker initialization private commit | 204.04 MiB | 16.16 MiB | **187.88 MiB less (92.1%)** | | Tracker initialization CPU time | 18.813 ms | 1.772 ms | 90.6% less | | Hot 64 KiB unchanged-range check | 21.557 ns | 22.110 ns | +0.553 ns (+2.6%) | | Untouched 4 GiB unchanged-range check | 20.196 µs | 10.191 µs | **49.5% less time** | The hot check is slightly slower in this sample, while empty-range scans and initialization improve. These are component measurements, **not whole-game memory or FPS measurements**. No game or Vulkan device was started. As more guest regions are stamped, leaves allocate and the memory saving decreases; a touched 4 GiB region adds 768 KiB. Benchmark provenance: baseline `5d9dcc42d2ec5401aebd089028b8d4d7410a77b4`; candidate `3ba2b03045059a18ee8300d67d92280164e55496`. The pre-rebase PR head `24f2ac4098ddfb9f71989f34d0a3990444ebe8b3` only removes blank lines from the test relative to that candidate; the measured production `GuestMemory.cpp` blob is identical (`f5dd7b0f386a676ab03abc60e6858272e8ea9f96`). <details> <summary>Raw before/after samples (seven alternating pairs)</summary> Pair order alternated before→after, after→before. Commit values are bytes; times are per query except initialization. | Pair | Private commit before / after (bytes) | Init before / after (µs) | Hot 64 KiB before / after (ns) | Empty 4 GiB before / after (ns) | |---:|---:|---:|---:|---:| | 1 | 213954560 / 16949248 | 19963.5 / 1698.2 | 22.466 / 22.386 | 20113.50 / 10127.55 | | 2 | 213954560 / 16949248 | 18908.7 / 1683.5 | 22.399 / 22.665 | 20195.60 / 10193.90 | | 3 | 213950464 / 16949248 | 18630.3 / 1791.1 | 21.557 / 22.486 | 20209.45 / 10190.70 | | 4 | 213954560 / 16949248 | 18813.2 / 1772.3 | 20.795 / 22.110 | 20193.95 / 10183.20 | | 5 | 213954560 / 16949248 | 18344.3 / 1928.0 | 20.401 / 16.133 | 20319.20 / 10531.65 | | 6 | 213958656 / 16949248 | 18875.6 / 1673.1 | 21.227 / 20.302 | 20150.55 / 10515.05 | | 7 | 213954560 / 16949248 | 18490.4 / 1864.3 | 21.827 / 21.183 | 20291.70 / 10140.45 | </details> - Conventions and `git diff --check` pass. ### In-game integration comparison (16 October) Lost Soul Aside (PPSA26358), same PC and RTX 5070, fullscreen, 3840x2160 render resolution and unchanged quality settings. Baseline integration `825f012166e17ed358cf98f68814e3c816dab316` on main `5d9dcc42d`; candidate `dc9e14c22afbccee1bd6c9ebd4ae5ed6e169e574` is that integration plus this exact topic commit. **Only the patched `libSceAgcDriver.prx` changed in the installed runtime; all other 132 manifest files were byte-identical.** This is a comparison within the gameplay integration, not a stock-main compatibility test. The unrelated deferred import settling of #6678 is excluded on both sides. Both runs used the same shared warm shader cache, `-onethread`, normal guest clock, import budget 12288 MiB, texture cache 1024 MiB, copied-buffer staging, writable staging cap 8192 KiB, unused device pool 256 MiB, automatic title double-X, bounded logs and the existing resource guard. Profilers, samplers and GPU timing were off; no builds or other GPU tests ran concurrently. Each was deliberately stopped after its gameplay window; neither crashed or hit the guard. No graphics settings were reduced. Opening combat HUD directly verified with game-window PrintWindow captures. One sequential pair, 29 resource/title samples in each approximately 60-second window: | Metric | Before, run226 | After, run227 | |---|---:|---:| | Sampled title FPS, median | 1.29 | 1.66 | | Frame-counter progression / second | 1.384 | 1.568 | | Process private commit, median | 20,399 MiB | 19,957 MiB | | Process private commit, peak in window | 20,801 MiB | 20,429 MiB | | Working set, median | 16,530 MiB | 16,016 MiB | | Minimum free Windows commit | 7,307 MiB | 7,481 MiB | The title remains around **1–2 FPS in gameplay**. This does not fix its overall performance problem. Combat AI, camera/animation and frame progression differ, so this single pair does **not** establish a causal whole-game FPS improvement or that the entire observed 442 MiB difference comes from this patch. The controlled component memory saving is the 187.88 MiB figure above. Rendering artifacts remain visible on both sides; audio correctness was not independently measured. Integration checks after the full runtime build: `agc_write_tracking`, `agc_write_tracking_metadata_commit`, `agc_write_watch_coverage`, `agc_driver_host_import_windows`, `agc_driver_store_over_untracked`, `agc_driver_untracked_snapshot_hint`: **6/6 pass, 1.86 s**, GPU checks on RTX 5070. Current-main integration recheck after the rebase: write tracking, metadata commit, storage upload lifetime, split write-back, exact storage snapshot pixels and graphics checks: **6/6 pass,7.16s** on the same RTX5070. The integration includes the retained gameplay fixes and local diagnostic timing; this is not a new exact-topic benchmark. Conventions and diff whitespace checks pass on the clean rebased topic. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except technical debt - [x] Unimplemented paths throw; no silent stubs added - [x] No notes, investigation `.md` files or images added to the repository - [x] New third-party code is a submodule built from source; no new dependencies - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Unblocks: none - [x] GPUs tested: NVIDIA GeForce RTX 5070, driver 617.14, Windows 11 26300 for the integration tests and Lost Soul Aside comparison below. Component benchmarks create no Vulkan device. Linux not run locally. - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-16 05:32:34 +00:00 (Migrated from github.com)

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


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 6759 core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp L919
PR 7615 core/libs/prx/libSceAgcDriver/CMakeLists.txt L646

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 1368 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 1395 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 2434 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 4448 core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
PR 5021 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
PR 5371 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 5426 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 5431 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 5499 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 5656 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 5925 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6044 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6146 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6185 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
PR 6186 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
PR 6187 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
PR 6188 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
PR 6192 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
PR 6209 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
PR 6273 core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/tests/WriteTracking.cpp
PR 6280 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6292 core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
PR 6300 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6412 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6481 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6501 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6611 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6615 core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
PR 6682 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6683 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6718 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
PR 6747 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6788 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6808 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6820 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
PR 6868 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/tests/WriteTracking.cpp
PR 6937 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6946 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
PR 6947 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
PR 6960 core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
PR 7048 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7201 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/tests/WriteTracking.cpp
PR 7223 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7310 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7332 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/tests/WriteTracking.cpp
PR 7395 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7427 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7446 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7505 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/tests/WriteTracking.cpp
PR 7514 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7604 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/tests/WriteTracking.cpp
PR 7642 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
PR 7800 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 8014 core/libs/prx/libSceAgcDriver/CMakeLists.txt
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6208828152 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6701#issuecomment-6208828152). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-16T05:32:34Z. --- <!-- 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 6759](https://www.github.com/boykopovar/AnyPS5/pull/6759) | `core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp` [L919](https://github.com/boykopovar/AnyPS5/blob/252cbc29beac26811ad9338c22bcba336d7d2ebe/core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp#L919) | | | | [PR 7615](https://www.github.com/boykopovar/AnyPS5/pull/7615) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` [L646](https://github.com/boykopovar/AnyPS5/blob/252cbc29beac26811ad9338c22bcba336d7d2ebe/core/libs/prx/libSceAgcDriver/CMakeLists.txt#L646) | | | 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 1368](https://www.github.com/boykopovar/AnyPS5/pull/1368) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 1395](https://www.github.com/boykopovar/AnyPS5/pull/1395) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 2434](https://www.github.com/boykopovar/AnyPS5/pull/2434) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 4448](https://www.github.com/boykopovar/AnyPS5/pull/4448) | `core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp` | | [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` | | [PR 5371](https://www.github.com/boykopovar/AnyPS5/pull/5371) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [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` | | [PR 5656](https://www.github.com/boykopovar/AnyPS5/pull/5656) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 5925](https://www.github.com/boykopovar/AnyPS5/pull/5925) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6044](https://www.github.com/boykopovar/AnyPS5/pull/6044) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6146](https://www.github.com/boykopovar/AnyPS5/pull/6146) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6185](https://www.github.com/boykopovar/AnyPS5/pull/6185) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp` | | [PR 6186](https://www.github.com/boykopovar/AnyPS5/pull/6186) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp` | | [PR 6187](https://www.github.com/boykopovar/AnyPS5/pull/6187) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp` | | [PR 6188](https://www.github.com/boykopovar/AnyPS5/pull/6188) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp` | | [PR 6192](https://www.github.com/boykopovar/AnyPS5/pull/6192) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp` | | [PR 6209](https://www.github.com/boykopovar/AnyPS5/pull/6209) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp` | | [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` | | [PR 6280](https://www.github.com/boykopovar/AnyPS5/pull/6280) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6292](https://www.github.com/boykopovar/AnyPS5/pull/6292) | `core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp` | | [PR 6300](https://www.github.com/boykopovar/AnyPS5/pull/6300) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6412](https://www.github.com/boykopovar/AnyPS5/pull/6412) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6481](https://www.github.com/boykopovar/AnyPS5/pull/6481) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6501](https://www.github.com/boykopovar/AnyPS5/pull/6501) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6611](https://www.github.com/boykopovar/AnyPS5/pull/6611) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6615](https://www.github.com/boykopovar/AnyPS5/pull/6615) | `core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp` | | [PR 6682](https://www.github.com/boykopovar/AnyPS5/pull/6682) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6683](https://www.github.com/boykopovar/AnyPS5/pull/6683) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6718](https://www.github.com/boykopovar/AnyPS5/pull/6718) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp` | | [PR 6747](https://www.github.com/boykopovar/AnyPS5/pull/6747) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6788](https://www.github.com/boykopovar/AnyPS5/pull/6788) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6808](https://www.github.com/boykopovar/AnyPS5/pull/6808) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6820](https://www.github.com/boykopovar/AnyPS5/pull/6820) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp` | | [PR 6868](https://www.github.com/boykopovar/AnyPS5/pull/6868) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/WriteTracking.cpp` | | [PR 6937](https://www.github.com/boykopovar/AnyPS5/pull/6937) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6946](https://www.github.com/boykopovar/AnyPS5/pull/6946) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp` | | [PR 6947](https://www.github.com/boykopovar/AnyPS5/pull/6947) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp` | | [PR 6960](https://www.github.com/boykopovar/AnyPS5/pull/6960) | `core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp` | | [PR 7048](https://www.github.com/boykopovar/AnyPS5/pull/7048) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [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/tests/WriteTracking.cpp` | | [PR 7223](https://www.github.com/boykopovar/AnyPS5/pull/7223) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7310](https://www.github.com/boykopovar/AnyPS5/pull/7310) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [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/tests/WriteTracking.cpp` | | [PR 7395](https://www.github.com/boykopovar/AnyPS5/pull/7395) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7427](https://www.github.com/boykopovar/AnyPS5/pull/7427) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7446](https://www.github.com/boykopovar/AnyPS5/pull/7446) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7505](https://www.github.com/boykopovar/AnyPS5/pull/7505) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/WriteTracking.cpp` | | [PR 7514](https://www.github.com/boykopovar/AnyPS5/pull/7514) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7604](https://www.github.com/boykopovar/AnyPS5/pull/7604) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/WriteTracking.cpp` | | [PR 7642](https://www.github.com/boykopovar/AnyPS5/pull/7642) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp` | | [PR 7800](https://www.github.com/boykopovar/AnyPS5/pull/7800) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 8014](https://www.github.com/boykopovar/AnyPS5/pull/8014) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` |
parl0v commented 2026-10-16 19:52:49 +00:00 (Migrated from github.com)

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


Data point from a CPU-bound scene on Windows: 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 c84249186 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. This scene is CPU-bound on this machine (45-47 ms of idle gaps per frame).

libs FPS GPU busy idle gaps
main 6.60 / 6.60 105 / 105 ms 46 / 47 ms
+ this PR (fe95848f2) 6.74 / 6.67 (+1.6 %) 104 / 105 ms 44 / 45 ms

Above main in both rounds (main was flat at 6.60), with the idle gaps 2 ms shorter per frame. 0 fatal.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6223502950 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6701#issuecomment-6223502950). Originally posted by [parl0v](https://github.com/parl0v) on 2026-10-16T19:52:49Z. --- Data point from a CPU-bound scene on Windows: 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` c84249186 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. This scene is CPU-bound on this machine (45-47 ms of idle gaps per frame). | libs | FPS | GPU busy | idle gaps | |---|---|---|---| | `main` | 6.60 / 6.60 | 105 / 105 ms | 46 / 47 ms | | + this PR (fe95848f2) | 6.74 / 6.67 (**+1.6 %**) | 104 / 105 ms | 44 / 45 ms | Above `main` in both rounds (`main` was flat at 6.60), with the idle gaps 2 ms shorter per frame. 0 fatal. AI-assisted: yes (Claude Code)
screamm commented 2026-10-17 12:07:29 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by screamm on 2026-10-17T12:07:29Z.


Cross-validation on Windows 11 Pro 26220, NVIDIA RTX 4070 (driver 596.21), Ryzen 7 5700X, WinLibs MinGW-w64 GCC 15.2, Release. PR head fe95848f2 merged on main 673f7406c (clean), alone and stacked with #6598 (also clean). This adds the commit-charge measurement in titles.

  • agc_write_tracking and agc_write_tracking_metadata_commit, --repeat until-fail:3: 3 of 3 each, write-tracker initialization: 16552 KiB private commit for 1000 GiB guest arena. Negative control: with GuestMemory.cpp from main and the tests kept, agc_write_tracking_metadata_commit fails with 208940 KiB private commit for 1000 GiB guest arena / write tracking committed dense generation tables for untouched guest ranges; restored, it passes.
  • Full build and libs pass on the stack. 25 related tests (write watch, registration preparation, all agc_driver_prepared_*, host import, untracked hints; serial) pass. Non-GPU suite (878 tests): 874 pass, 2 skipped; hardware_oracle_compare timed out under load and guest_memory failed once under -j8 (0xc0000409, a libkernel test that does not load the driver); both pass serially. tools/check_conventions.py and git diff --check pass.
  • Commit charge: 3 runs of 65 s per build (main, this PR, #6598, both; interleaved), no input, no stop line in any run. Private bytes (PrivateUsage, cross-checked with Get-Process) and working set every 5 s. Medians, MiB:
private 30 s private 60 s WS 30 s WS 60 s
RetroArch PPSA99169 picker, main 1180 1182 680 681
this PR 993 993 496 496
#6598 1181 1182 680 681
both 993 997 496 497
PS5 OpenGL Showcase PPSA99005, main 3717 3848 1454 1474
this PR 3598 3736 1271 1288
#6598 3232 3358 1455 1474
both 3002 3121 1267 1281

RetroArch: -187 MiB private and -184 MiB working set at 30 s, the same at 60 s, i.e. the 188 MiB of dense tables, whole. PPSA99005: working set -183 / -186 MiB at 30 / 60 s (-185 at 10 s); private bytes -182 / -119 / -112 MiB at 10 / 30 / 60 s, smaller only because that title's own commit varies by 100 to 200 MiB between runs (per-run values at 30 s: main 3697 to 3850, PR 3541 to 3617). The working set moves too because main fills the tables with vector::assign, which touches every page.

  • With #6598: different files, clean stack, the savings add (PPSA99005 at 30 s: -119 MiB this PR, -485 MiB #6598, -715 MiB both).
  • Overlap: #6266 merges cleanly on main but conflicts with this PR in GuestMemory.cpp (its Windows coarseBlocks vector would have to move into the shared Leaf, which its Linux branch already does). #6759 conflicts in hinted() and writes tracker.hintBlocks[block] = 0 directly, which no longer exists after this PR.
  • Not checked: FPS/frame time, Linux, AMD/Intel, a title that stamps many 4 GiB regions, the full agc_driver_* GPU suite. System-wide commit was no use as a signal on this shared host (it moved by several GiB per run from other work).

Written with Claude Code assistance (validation by a subagent, reviewed in this session).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6233697103 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6701#issuecomment-6233697103). Originally posted by [screamm](https://github.com/screamm) on 2026-10-17T12:07:29Z. --- Cross-validation on Windows 11 Pro 26220, NVIDIA RTX 4070 (driver 596.21), Ryzen 7 5700X, WinLibs MinGW-w64 GCC 15.2, Release. PR head `fe95848f2` merged on main `673f7406c` (clean), alone and stacked with #6598 (also clean). This adds the commit-charge measurement in titles. - `agc_write_tracking` and `agc_write_tracking_metadata_commit`, `--repeat until-fail:3`: 3 of 3 each, `write-tracker initialization: 16552 KiB private commit for 1000 GiB guest arena`. Negative control: with `GuestMemory.cpp` from main and the tests kept, `agc_write_tracking_metadata_commit` fails with `208940 KiB private commit for 1000 GiB guest arena` / `write tracking committed dense generation tables for untouched guest ranges`; restored, it passes. - Full build and `libs` pass on the stack. 25 related tests (write watch, registration preparation, all `agc_driver_prepared_*`, host import, untracked hints; serial) pass. Non-GPU suite (878 tests): 874 pass, 2 skipped; `hardware_oracle_compare` timed out under load and `guest_memory` failed once under `-j8` (`0xc0000409`, a `libkernel` test that does not load the driver); both pass serially. `tools/check_conventions.py` and `git diff --check` pass. - Commit charge: 3 runs of 65 s per build (main, this PR, #6598, both; interleaved), no input, no stop line in any run. Private bytes (`PrivateUsage`, cross-checked with `Get-Process`) and working set every 5 s. Medians, MiB: | | private 30 s | private 60 s | WS 30 s | WS 60 s | |---|---:|---:|---:|---:| | RetroArch PPSA99169 picker, main | 1180 | 1182 | 680 | 681 | | this PR | 993 | 993 | 496 | 496 | | #6598 | 1181 | 1182 | 680 | 681 | | both | 993 | 997 | 496 | 497 | | PS5 OpenGL Showcase PPSA99005, main | 3717 | 3848 | 1454 | 1474 | | this PR | 3598 | 3736 | 1271 | 1288 | | #6598 | 3232 | 3358 | 1455 | 1474 | | both | 3002 | 3121 | 1267 | 1281 | RetroArch: -187 MiB private and -184 MiB working set at 30 s, the same at 60 s, i.e. the 188 MiB of dense tables, whole. PPSA99005: working set -183 / -186 MiB at 30 / 60 s (-185 at 10 s); private bytes -182 / -119 / -112 MiB at 10 / 30 / 60 s, smaller only because that title's own commit varies by 100 to 200 MiB between runs (per-run values at 30 s: main 3697 to 3850, PR 3541 to 3617). The working set moves too because main fills the tables with `vector::assign`, which touches every page. - With #6598: different files, clean stack, the savings add (PPSA99005 at 30 s: -119 MiB this PR, -485 MiB #6598, -715 MiB both). - Overlap: #6266 merges cleanly on main but conflicts with this PR in `GuestMemory.cpp` (its Windows `coarseBlocks` vector would have to move into the shared `Leaf`, which its Linux branch already does). #6759 conflicts in `hinted()` and writes `tracker.hintBlocks[block] = 0` directly, which no longer exists after this PR. - Not checked: FPS/frame time, Linux, AMD/Intel, a title that stamps many 4 GiB regions, the full `agc_driver_*` GPU suite. System-wide commit was no use as a signal on this shared host (it moved by several GiB per run from other work). Written with Claude Code assistance (validation by a subagent, reviewed in this session).
adriadam10 commented 2026-10-19 07:54:26 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-19T07:54:26Z.

Review: CHANGES_REQUESTED


Thanks, the sparse-leaf approach reads correctly and the new tests pin the right values (cross-leaf boundary, untouched-leaf queries, commit under 64 MiB).

Blocking: this conflicts with main since 192d95c5d (coarse 64-block summaries). On Windows main now has a dense coarseBlocks vector, coarseStampOf, and stamp()/unchanged() that index blocks[...] directly. Please rebase so that:

  • Leaf carries coarseBlocks (LeafBlocks / CoarseBlocks) next to blocks, cpuBlocks and the Windows hintBlocks, and the dense Windows coarseBlocks vector and its assign in initialize are gone;
  • coarseStampOf, stamp() and unchanged() use the leaves on both platforms, and an absent leaf reads as 0 without allocating;
  • the new stampWatchedPart/storedOver code from main keeps working on top of that (no direct blocks[...] access).

After the rebase, rerun agc_write_tracking, agc_write_tracking_metadata_commit and agc_write_watch_coverage on Windows, and check the untouched-leaf query test still shows no allocation with the coarse summaries inside the leaf.

The perf label bot also asks for the aps5-summary.jsonl lines from main and from the change, plus the tools/trace_digest.py output.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5568470799 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6701#pullrequestreview-5568470799). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-19T07:54:26Z. **Review:** CHANGES_REQUESTED --- Thanks, the sparse-leaf approach reads correctly and the new tests pin the right values (cross-leaf boundary, untouched-leaf queries, commit under 64 MiB). Blocking: this conflicts with `main` since 192d95c5d (coarse 64-block summaries). On Windows `main` now has a dense `coarseBlocks` vector, `coarseStampOf`, and `stamp()`/`unchanged()` that index `blocks[...]` directly. Please rebase so that: - `Leaf` carries `coarseBlocks` (`LeafBlocks / CoarseBlocks`) next to `blocks`, `cpuBlocks` and the Windows `hintBlocks`, and the dense Windows `coarseBlocks` vector and its `assign` in `initialize` are gone; - `coarseStampOf`, `stamp()` and `unchanged()` use the leaves on both platforms, and an absent leaf reads as 0 without allocating; - the new `stampWatchedPart`/`storedOver` code from `main` keeps working on top of that (no direct `blocks[...]` access). After the rebase, rerun `agc_write_tracking`, `agc_write_tracking_metadata_commit` and `agc_write_watch_coverage` on Windows, and check the untouched-leaf query test still shows no allocation with the coarse summaries inside the leaf. The `perf` label bot also asks for the `aps5-summary.jsonl` lines from `main` and from the change, plus the `tools/trace_digest.py` output.
github-actions[bot] commented 2026-10-19 12:21:32 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-19T12:21:32Z.


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

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

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-19T20:17:00Z.


Rebase checked against the earlier points: Leaf now carries coarseBlocks next to blocks/cpuBlocks (and hintBlocks on Windows), coarseStampOf/stamp()/unchanged() go through the leaves on both platforms with absent leaves reading as 0 without allocating, and nothing indexes blocks[...] directly any more. The commit-charge and cross-leaf tests pin the right values; merged.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6276394460 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6701#issuecomment-6276394460). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-19T20:17:00Z. --- Rebase checked against the earlier points: `Leaf` now carries `coarseBlocks` next to `blocks`/`cpuBlocks` (and `hintBlocks` on Windows), `coarseStampOf`/`stamp()`/`unchanged()` go through the leaves on both platforms with absent leaves reading as 0 without allocating, and nothing indexes `blocks[...]` directly any more. The commit-charge and cross-leaf tests pin the right values; merged.
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!6701
No description provided.