perf(agc): keep recently sampled depth plane copies up to twice the budget #11307

Merged
dantdmdarealguy merged 1 commit from upstream-pr/11307 into main 2026-10-28 05:17:15 +00:00
dantdmdarealguy commented 2026-10-26 02:28:06 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by dantdmdarealguy on 2026-10-26T02:28:06Z.


What

Astro Bot's intro cutscene runs at about 1.6 FPS on current main on Windows with an RTX 5080 (~12 FPS before #7705), and below 1 FPS from the galaxy map on in #11461.

Cause: #7705 bounds the sampled depth-plane copies at APS5_DEPTH_PLANE_COPY_MIB (256 MiB). When the budget is full it evicts the least recently used copy, even one sampled earlier in the same frame. When one frame samples more than the budget, each use evicts a copy the next use needs. Every copy is then made and refilled again on every use.

What Astro Bot samples in its intro, alternately (counted with local logging in evictPlaneCopies, on main with #10837):

  • a 1536x1536 D32 copy with 16 layers, 288 MiB with its staging buffer, more than the budget on its own;
  • a 2048x2048 D16 copy with 3 layers, 48 MiB.

On main that is 37 044 evictions in a 470 s run.

The change: a copy sampled in the current or the previous present (Recorder::Presents(), the frame clock the texture cache uses) is not evicted while all copies together hold at most twice the budget. Past twice the budget, the least recently used copies leave whenever they were sampled; the copy being sampled always stays. Down to the budget, older copies still leave first by least recent use, as before. The copies therefore never hold more than twice the budget (512 MiB by default), or the one copy being sampled if it is larger. APS5_DEPTH_PLANE_COPY_MIB's description says so.

Review points from the first version:

  • The first version exempted every copy sampled since the previous present with no limit, so agc_driver_depth_plane_guest_layers failed: two copies sampled before any present could never be evicted. The cap restores an upper bound.
  • The VRAM rise on Astro Bot is not plane copies. With the first version the plane copies stay at 2 copies / 336 MiB for a whole 470 s run, with no new copy and no eviction after the intro loads. main with APS5_DEPTH_PLANE_COPY_MIB=1024 (plain least-recently-used, nothing exempt) rises the same way, at the same frame rate: the fast runs reach and load the later scenes, which main at 1-2 FPS does not. Table under Tested.

Overlap: #10894 adds a case to DepthPlaneSampling.cpp. This PR replaces its own first version and does not depend on another PR.

Tested

Head 36277c4b44 is 7830658b18 rebased onto current main (3 newer commits, none in the touched files).

Traces (all dropped: no): A main, A change, B change, C first version, C change, D main, D change

Windows 11 Pro, Intel Core i9-14900K, 128 GB RAM, NVIDIA GeForce RTX 5080 (driver 32.0.16.1742), WinLibs GCC 15.2.0, Release. Head 7830658b18 on main abed035468. The title measurements below were taken with the same change on main e2d457be34 (4f3f10b79e). main then moved 155 commits, none of which touch DepthSurface.cpp, DepthSurface.hpp or the two test files.

agc_driver_depth_plane_sampling_evicting (APS5_DEPTH_PLANE_COPY_MIB=1), FrameCopiesCase, three 3-slice 128x256 D32 copies of 768 KiB each (image and staging):

  • Copies 0 and 1, sampled alternately within one present (1.5 MiB, over the budget, within twice it), must both be kept.
  • Sampling copy 2 in the same present must keep the copies at or under 2 MiB, and keep two copies.
  • Two presents later, sampling copy 1 must leave only that copy.
  • main (its DepthSurface.cpp with this test): 1 depth plane copies were kept after two copies over the 1 MiB budget were sampled in one present, expected both.
  • First version 4b08a0542c rebased: the depth plane copies sampled in one present hold 2359296 bytes in 3 copies, more than twice the 1 MiB budget.
  • This change: Passed.

agc_driver_depth_plane_guest_layers: its pooled-memory rounds sample two 1 MiB copies alternately under a 1 MiB budget. Two such copies sampled in one present may now be kept together, so each round now advances two presents first. It still checks that every round evicts, refills once, and takes the evicted copy's memory back from the pool. The first version failed it (round 0, 2 copies); with this change it passes. agc_driver_depth_plane_sampling passes too.

Focused depth tests with the validation layer:

  • Tests: agc_driver_depth_plane_*, depth_compare_copy, depth_copy_draw, depth_surface_from_storage, depth_storage_reuse*, image_plane_address_on_cube, depth_bits_guest_memory; 14 tests.
  • Run with ctest -V and VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, ANYPS5_NO_SHADER_CACHE=1, ANYPS5_REQUIRE_VULKAN=1, on main and on the change.
  • The layer came from VK_ADD_LAYER_PATH, and VK_LOADER_DEBUG=layer shows Insert instance layer "VK_LAYER_KHRONOS_validation" in every test process (15 lines in each log).
  • No log contains was not found but was requested by env var VK_INSTANCE_LAYERS.
tree result VUID- lines
main e2d457be34 13/14 0
this change on e2d457be34 (4f3f10b79e) 13/14 0
main abed035468 14/14 0
this change 7830658b18 14/14 0

On e2d457be34, agc_driver_depth_plane_partial_store ("repeated lookups of the first layer of an unchanged array proved no refresh") fails the same way with and without the change. On abed035468 it passes with and without the change.

Other checks: full build and --target libs pass, with no warnings in the touched files. patched_libraries passes. tools/check_conventions.py and tools/check_test_registration.py pass.

ASTRO BOT (PPSA21564) 01.007.000: relinked with --windows --registry --to-intel, 3840x2160, warm caches, the same executable and the same scripted pad input. Only libs/ was swapped. Runs alternated in one session.

Intro cutscene, APS5_TRACE_SECONDS=200:30 (the windows start 39-49 s into the intro in every run), APS5_TRACE_EVENTS=4194304, no dropped events:

run commit presents in 30 s frame p50 p90 p99 GPU busy / present
A main e2d457be34 51 596.3 ms 616.0 ms 630.8 ms 533.3 ms
A change 4f3f10b79ecb 337 88.7 ms 96.8 ms 101.1 ms 67.6 ms
B change 4f3f10b79ecb 325 91.9 ms 103.6 ms 111.5 ms 69.0 ms
C first version 149b71ef3218 318 93.7 ms 101.4 ms 122.2 ms 70.6 ms
C change 4f3f10b79ecb 329 90.6 ms 99.2 ms 106.3 ms 68.7 ms
D main e2d457be34 46 652.0 ms 749.0 ms 823.0 ms 564.2 ms
D change 4f3f10b79ecb 320 93.1 ms 102.6 ms 112.4 ms 69.9 ms

Run B main was lost to the device loss on DISPATCH_INDIRECT compute 0x50057bd00 (arguments 0x5074063c0) during the logo phase. The same loss hit one run of this change in the logo phase, before the intro samples any plane copy. It is #6284's pattern and occurs on main too.

Summary lines (A main, then A change; traces linked below):

{"commit":"e2d457be345d","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TASK":"bound11307","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"200:30"},"gpu":"NVIDIA GeForce RTX 5080","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-14900K","cpu_threads":32,"memory_mib":130808,"title_id":"PPSA21564","title":"ASTRO BOT","content_version":"01.007.000","resolution":"3840x2160","window":{"spec":"seconds 200:30","first_present":1909,"ms":30397.241},"presents":51,"frame_ms":{"p50":596.283,"p90":615.951,"p99":630.769,"max":630.769},"gpu_busy_ms_per_present":533.343,"worker_busy_pct":{"queue worker 0x0":99.879,"queue worker 0x40":98.238,"queue worker 0x48":98.102,"queue worker 0x3a":0.0,"queue worker 0x46":1.683},"top_phases_ms_per_frame":{"Driver.Packet":1774.062,"Driver.Packet.memory_wait":1146.967,"Resources.Complete":390.722,"Graphics.Draw":379.44,"Graphics.Draw.draw_and_resource_release":376.691,"Driver.Packet.draw":370.047,"Driver.Draw":369.884,"Driver.Draw.draw_enqueued":358.133},"trace_dropped":false,"trace":"aps5-trace-e2d457be345d-76752.json.gz"}
{"commit":"4f3f10b79ecb","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TASK":"bound11307","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"200:30"},"gpu":"NVIDIA GeForce RTX 5080","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-14900K","cpu_threads":32,"memory_mib":130808,"title_id":"PPSA21564","title":"ASTRO BOT","content_version":"01.007.000","resolution":"3840x2160","window":{"spec":"seconds 200:30","first_present":2349,"ms":30018.8},"presents":337,"frame_ms":{"p50":88.658,"p90":96.825,"p99":101.065,"max":112.19},"gpu_busy_ms_per_present":67.605,"worker_busy_pct":{"queue worker 0x0":99.26,"queue worker 0x40":99.714,"queue worker 0x48":99.712,"queue worker 0x3a":0.0,"queue worker 0x46":8.015},"top_phases_ms_per_frame":{"Driver.Packet":271.735,"Driver.Packet.memory_wait":153.961,"Driver.Packet.dispatch":36.587,"Driver.Packet.prepare_memory":35.158,"Recorder.WaitSerial":28.294,"Driver.Dispatch":27.355,"Driver.Packet.draw":15.501,"Driver.Draw":15.407},"trace_dropped":false,"trace":"aps5-trace-4f3f10b79ecb-46180.json.gz"}

VRAM over a 470 s run (nvidia-smi --query-gpu=memory.used -l 5, GiB, whole device, 3.2-3.3 GiB before launch; the same pad script from launch through the intro into the first level; the three plane-copy columns come from local logging, not in this PR):

run 0 s 60 s 120 s 180 s 240 s 300 s 360 s 420 s 450 s
main 3.3 5.4 6.6 8.5 8.5 8.6 8.6 8.4 8.5
first version 3.2 5.3 6.1 6.4 7.8 8.6 10.0 10.0 10.3
this change 3.2 5.3 6.3 7.8 7.8 9.9 9.9 10.2 10.2
main, APS5_DEPTH_PLANE_COPY_MIB=1024 3.2 5.3 7.7 7.8 8.4 9.9 10.1 10.1 10.9
run presents per 10 s (median) plane copies, most held plane-copy evictions
main 20 336 MiB 37 044
first version 109 336 MiB 0
this change 96 336 MiB 1
main, 1024 MiB budget 99 (not logged) (not logged)

The plane copies stay at 336 MiB in every run. The fast runs, including main with the larger budget and no present rule, rise together because they reach the later scenes in the same time.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: PPSA21564 (intro and gameplay at ~1.6 FPS on main, ~11 FPS with this change)
  • GPUs tested: NVIDIA GeForce RTX 5080, driver 32.0.16.1742, Windows 11 Pro
  • AI-assisted: yes, some AI assistance was used
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5011114236 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11307). Originally posted by [dantdmdarealguy](https://github.com/dantdmdarealguy) on 2026-10-26T02:28:06Z. --- ### What Astro Bot's intro cutscene runs at about 1.6 FPS on current `main` on Windows with an RTX 5080 (~12 FPS before #7705), and below 1 FPS from the galaxy map on in #11461. **Cause:** #7705 bounds the sampled depth-plane copies at `APS5_DEPTH_PLANE_COPY_MIB` (256 MiB). When the budget is full it evicts the least recently used copy, even one sampled earlier in the same frame. When one frame samples more than the budget, each use evicts a copy the next use needs. Every copy is then made and refilled again on every use. **What Astro Bot samples in its intro, alternately** (counted with local logging in `evictPlaneCopies`, on `main` with #10837): - a 1536x1536 D32 copy with 16 layers, 288 MiB with its staging buffer, more than the budget on its own; - a 2048x2048 D16 copy with 3 layers, 48 MiB. On `main` that is 37 044 evictions in a 470 s run. **The change:** a copy sampled in the current or the previous present (`Recorder::Presents()`, the frame clock the texture cache uses) is not evicted while all copies together hold at most twice the budget. Past twice the budget, the least recently used copies leave whenever they were sampled; the copy being sampled always stays. Down to the budget, older copies still leave first by least recent use, as before. The copies therefore never hold more than twice the budget (512 MiB by default), or the one copy being sampled if it is larger. `APS5_DEPTH_PLANE_COPY_MIB`'s description says so. **Review points from the first version:** - The first version exempted every copy sampled since the previous present with no limit, so `agc_driver_depth_plane_guest_layers` failed: two copies sampled before any present could never be evicted. The cap restores an upper bound. - The VRAM rise on Astro Bot is not plane copies. With the first version the plane copies stay at 2 copies / 336 MiB for a whole 470 s run, with no new copy and no eviction after the intro loads. `main` with `APS5_DEPTH_PLANE_COPY_MIB=1024` (plain least-recently-used, nothing exempt) rises the same way, at the same frame rate: the fast runs reach and load the later scenes, which `main` at 1-2 FPS does not. Table under Tested. **Overlap:** #10894 adds a case to `DepthPlaneSampling.cpp`. This PR replaces its own first version and does not depend on another PR. ### Tested Head 36277c4b44 is 7830658b18 rebased onto current `main` (3 newer commits, none in the touched files). **Traces** (all `dropped: no`): [A main](https://github.com/dantdmdarealguy/AnyPS5/raw/pr-assets/traces/11307/bound/aps5-trace-e2d457be345d-76752.json.gz), [A change](https://github.com/dantdmdarealguy/AnyPS5/raw/pr-assets/traces/11307/bound/aps5-trace-4f3f10b79ecb-46180.json.gz), [B change](https://github.com/dantdmdarealguy/AnyPS5/raw/pr-assets/traces/11307/bound/aps5-trace-4f3f10b79ecb-78436.json.gz), [C first version](https://github.com/dantdmdarealguy/AnyPS5/raw/pr-assets/traces/11307/bound/aps5-trace-149b71ef3218-76100.json.gz), [C change](https://github.com/dantdmdarealguy/AnyPS5/raw/pr-assets/traces/11307/bound/aps5-trace-4f3f10b79ecb-65496.json.gz), [D main](https://github.com/dantdmdarealguy/AnyPS5/raw/pr-assets/traces/11307/bound/aps5-trace-e2d457be345d-74292.json.gz), [D change](https://github.com/dantdmdarealguy/AnyPS5/raw/pr-assets/traces/11307/bound/aps5-trace-4f3f10b79ecb-77376.json.gz) Windows 11 Pro, Intel Core i9-14900K, 128 GB RAM, NVIDIA GeForce RTX 5080 (driver 32.0.16.1742), WinLibs GCC 15.2.0, Release. Head 7830658b18 on `main` abed035468. The title measurements below were taken with the same change on `main` e2d457be34 (4f3f10b79e). `main` then moved 155 commits, none of which touch `DepthSurface.cpp`, `DepthSurface.hpp` or the two test files. **`agc_driver_depth_plane_sampling_evicting`** (`APS5_DEPTH_PLANE_COPY_MIB=1`), `FrameCopiesCase`, three 3-slice 128x256 D32 copies of 768 KiB each (image and staging): - Copies 0 and 1, sampled alternately within one present (1.5 MiB, over the budget, within twice it), must both be kept. - Sampling copy 2 in the same present must keep the copies at or under 2 MiB, and keep two copies. - Two presents later, sampling copy 1 must leave only that copy. - `main` (its `DepthSurface.cpp` with this test): `1 depth plane copies were kept after two copies over the 1 MiB budget were sampled in one present, expected both`. - First version 4b08a0542c rebased: `the depth plane copies sampled in one present hold 2359296 bytes in 3 copies, more than twice the 1 MiB budget`. - This change: Passed. **`agc_driver_depth_plane_guest_layers`:** its pooled-memory rounds sample two 1 MiB copies alternately under a 1 MiB budget. Two such copies sampled in one present may now be kept together, so each round now advances two presents first. It still checks that every round evicts, refills once, and takes the evicted copy's memory back from the pool. The first version failed it (`round 0, 2 copies`); with this change it passes. `agc_driver_depth_plane_sampling` passes too. **Focused depth tests with the validation layer:** - Tests: `agc_driver_depth_plane_*`, `depth_compare_copy`, `depth_copy_draw`, `depth_surface_from_storage`, `depth_storage_reuse*`, `image_plane_address_on_cube`, `depth_bits_guest_memory`; 14 tests. - Run with `ctest -V` and `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`, `ANYPS5_NO_SHADER_CACHE=1`, `ANYPS5_REQUIRE_VULKAN=1`, on `main` and on the change. - The layer came from `VK_ADD_LAYER_PATH`, and `VK_LOADER_DEBUG=layer` shows `Insert instance layer "VK_LAYER_KHRONOS_validation"` in every test process (15 lines in each log). - No log contains `was not found but was requested by env var VK_INSTANCE_LAYERS`. | tree | result | `VUID-` lines | |---|---|---| | `main` e2d457be34 | 13/14 | 0 | | this change on e2d457be34 (4f3f10b79e) | 13/14 | 0 | | `main` abed035468 | 14/14 | 0 | | this change 7830658b18 | 14/14 | 0 | On e2d457be34, `agc_driver_depth_plane_partial_store` ("repeated lookups of the first layer of an unchanged array proved no refresh") fails the same way with and without the change. On abed035468 it passes with and without the change. **Other checks:** full build and `--target libs` pass, with no warnings in the touched files. `patched_libraries` passes. `tools/check_conventions.py` and `tools/check_test_registration.py` pass. **ASTRO BOT (PPSA21564) 01.007.000:** relinked with `--windows --registry --to-intel`, 3840x2160, warm caches, the same executable and the same scripted pad input. Only `libs/` was swapped. Runs alternated in one session. Intro cutscene, `APS5_TRACE_SECONDS=200:30` (the windows start 39-49 s into the intro in every run), `APS5_TRACE_EVENTS=4194304`, no dropped events: | run | commit | presents in 30 s | frame p50 | p90 | p99 | GPU busy / present | |---|---|---|---|---|---|---| | A main | e2d457be345d | 51 | 596.3 ms | 616.0 ms | 630.8 ms | 533.3 ms | | A change | 4f3f10b79ecb | 337 | 88.7 ms | 96.8 ms | 101.1 ms | 67.6 ms | | B change | 4f3f10b79ecb | 325 | 91.9 ms | 103.6 ms | 111.5 ms | 69.0 ms | | C first version | 149b71ef3218 | 318 | 93.7 ms | 101.4 ms | 122.2 ms | 70.6 ms | | C change | 4f3f10b79ecb | 329 | 90.6 ms | 99.2 ms | 106.3 ms | 68.7 ms | | D main | e2d457be345d | 46 | 652.0 ms | 749.0 ms | 823.0 ms | 564.2 ms | | D change | 4f3f10b79ecb | 320 | 93.1 ms | 102.6 ms | 112.4 ms | 69.9 ms | Run B main was lost to the device loss on `DISPATCH_INDIRECT` compute 0x50057bd00 (arguments 0x5074063c0) during the logo phase. The same loss hit one run of this change in the logo phase, before the intro samples any plane copy. It is #6284's pattern and occurs on `main` too. Summary lines (A main, then A change; traces linked below): ```json {"commit":"e2d457be345d","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TASK":"bound11307","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"200:30"},"gpu":"NVIDIA GeForce RTX 5080","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-14900K","cpu_threads":32,"memory_mib":130808,"title_id":"PPSA21564","title":"ASTRO BOT","content_version":"01.007.000","resolution":"3840x2160","window":{"spec":"seconds 200:30","first_present":1909,"ms":30397.241},"presents":51,"frame_ms":{"p50":596.283,"p90":615.951,"p99":630.769,"max":630.769},"gpu_busy_ms_per_present":533.343,"worker_busy_pct":{"queue worker 0x0":99.879,"queue worker 0x40":98.238,"queue worker 0x48":98.102,"queue worker 0x3a":0.0,"queue worker 0x46":1.683},"top_phases_ms_per_frame":{"Driver.Packet":1774.062,"Driver.Packet.memory_wait":1146.967,"Resources.Complete":390.722,"Graphics.Draw":379.44,"Graphics.Draw.draw_and_resource_release":376.691,"Driver.Packet.draw":370.047,"Driver.Draw":369.884,"Driver.Draw.draw_enqueued":358.133},"trace_dropped":false,"trace":"aps5-trace-e2d457be345d-76752.json.gz"} {"commit":"4f3f10b79ecb","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TASK":"bound11307","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"200:30"},"gpu":"NVIDIA GeForce RTX 5080","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","cpu":"Intel(R) Core(TM) i9-14900K","cpu_threads":32,"memory_mib":130808,"title_id":"PPSA21564","title":"ASTRO BOT","content_version":"01.007.000","resolution":"3840x2160","window":{"spec":"seconds 200:30","first_present":2349,"ms":30018.8},"presents":337,"frame_ms":{"p50":88.658,"p90":96.825,"p99":101.065,"max":112.19},"gpu_busy_ms_per_present":67.605,"worker_busy_pct":{"queue worker 0x0":99.26,"queue worker 0x40":99.714,"queue worker 0x48":99.712,"queue worker 0x3a":0.0,"queue worker 0x46":8.015},"top_phases_ms_per_frame":{"Driver.Packet":271.735,"Driver.Packet.memory_wait":153.961,"Driver.Packet.dispatch":36.587,"Driver.Packet.prepare_memory":35.158,"Recorder.WaitSerial":28.294,"Driver.Dispatch":27.355,"Driver.Packet.draw":15.501,"Driver.Draw":15.407},"trace_dropped":false,"trace":"aps5-trace-4f3f10b79ecb-46180.json.gz"} ``` **VRAM over a 470 s run** (`nvidia-smi --query-gpu=memory.used -l 5`, GiB, whole device, 3.2-3.3 GiB before launch; the same pad script from launch through the intro into the first level; the three plane-copy columns come from local logging, not in this PR): | run | 0 s | 60 s | 120 s | 180 s | 240 s | 300 s | 360 s | 420 s | 450 s | |---|---|---|---|---|---|---|---|---|---| | `main` | 3.3 | 5.4 | 6.6 | 8.5 | 8.5 | 8.6 | 8.6 | 8.4 | 8.5 | | first version | 3.2 | 5.3 | 6.1 | 6.4 | 7.8 | 8.6 | 10.0 | 10.0 | 10.3 | | this change | 3.2 | 5.3 | 6.3 | 7.8 | 7.8 | 9.9 | 9.9 | 10.2 | 10.2 | | `main`, `APS5_DEPTH_PLANE_COPY_MIB=1024` | 3.2 | 5.3 | 7.7 | 7.8 | 8.4 | 9.9 | 10.1 | 10.1 | 10.9 | | run | presents per 10 s (median) | plane copies, most held | plane-copy evictions | |---|---|---|---| | `main` | 20 | 336 MiB | 37 044 | | first version | 109 | 336 MiB | 0 | | this change | 96 | 336 MiB | 1 | | `main`, 1024 MiB budget | 99 | (not logged) | (not logged) | The plane copies stay at 336 MiB in every run. The fast runs, including `main` with the larger budget and no present rule, rise together because they reach the later scenes in the same time. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: PPSA21564 (intro and gameplay at ~1.6 FPS on `main`, ~11 FPS with this change) - [x] GPUs tested: NVIDIA GeForce RTX 5080, driver 32.0.16.1742, Windows 11 Pro - [x] AI-assisted: yes, some AI assistance was used
MarcZX10 commented 2026-10-26 04:38:31 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-26T04:38:31Z.

Review: CHANGES_REQUESTED


The two pasted summary lines provide a same-machine/same-scene perf comparison, but the PR body says the full traces are “available on request”; no trace attachments or tools/trace_digest.py output are present in the PR description/comments. CONTRIBUTING requires both captured traces to be attached and the digest output for a speed claim, in addition to the summary lines. Please attach the main and change traces and include the digest output before this is ready to approve. The regression test and validation-layer comparison are described in detail; hosted policy checks pass, while product/relinker jobs were skipped by path policy. I have not independently rerun the Windows title capture.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5647471895 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11307#pullrequestreview-5647471895). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-26T04:38:31Z. **Review:** CHANGES_REQUESTED --- The two pasted summary lines provide a same-machine/same-scene perf comparison, but the PR body says the full traces are “available on request”; no trace attachments or `tools/trace_digest.py` output are present in the PR description/comments. CONTRIBUTING requires both captured traces to be attached and the digest output for a speed claim, in addition to the summary lines. Please attach the main and change traces and include the digest output before this is ready to approve. The regression test and validation-layer comparison are described in detail; hosted policy checks pass, while product/relinker jobs were skipped by path policy. I have not independently rerun the Windows title capture.
MarcZX10 commented 2026-10-26 06:20:35 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-26T06:20:35Z.

Review: CHANGES_REQUESTED


The trace-evidence gap is now resolved. I downloaded both GTA V trace attachments from the latest comment and independently ran tools/trace_digest.py --top 8 with their posted summary lines; the outputs reproduce the reported summary values and the traces report dropped: no. Together with the earlier Astro Bot pair, the PR now includes same-machine before/after captures, summary lines, trace links and digests for two titles. One validation blocker remains: check_main_sync.py --base upstream/main --head refs/review/pr11307 reports 1 ahead and 108 behind current main 14c99b52ace303eef1667764670d1d1540140b3d (clean merge preview). The posted captures are based on older main commits (64a318c6bc / 33ae5a3146). Please refresh to current main, rerun the focused depth-plane tests there, and provide a current-main/change capture pair for the performance claim; then I can re-review that exact head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5648091111 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11307#pullrequestreview-5648091111). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-26T06:20:35Z. **Review:** CHANGES_REQUESTED --- The trace-evidence gap is now resolved. I downloaded both GTA V trace attachments from the latest comment and independently ran `tools/trace_digest.py --top 8` with their posted summary lines; the outputs reproduce the reported summary values and the traces report `dropped: no`. Together with the earlier Astro Bot pair, the PR now includes same-machine before/after captures, summary lines, trace links and digests for two titles. One validation blocker remains: `check_main_sync.py --base upstream/main --head refs/review/pr11307` reports 1 ahead and 108 behind current main `14c99b52ace303eef1667764670d1d1540140b3d` (clean merge preview). The posted captures are based on older main commits (`64a318c6bc` / `33ae5a3146`). Please refresh to current main, rerun the focused depth-plane tests there, and provide a current-main/change capture pair for the performance claim; then I can re-review that exact head.
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!11307
No description provided.