perf(agc): size the pipeline store to the title's working set #9401

Merged
tibzejoker merged 1 commit from upstream-pr/9401 into main 2026-10-25 18:08:00 +00:00
tibzejoker commented 2026-10-21 20:47:54 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by tibzejoker on 2026-10-21T20:47:54Z.


What

The graphics pipeline store kept a fixed bound of 1024 entries, and the pipeline journal replayed only its first 1024 records. On top of that, the replay skipped every record once the store was full. A title with more pipelines than that rebuilt the rest at the draw, under the GPU mutex. Each rebuild costs about 200 ms in GTA V and shows as a freeze.

  • Replay. The journal now loads up to 4096 records (APS5_PIPELINE_JOURNAL_ENTRIES still sets the limit). A replayed pipeline that finds the store full doubles the bound instead of being skipped, up to 4096. PipelineStoreCanGrow() tells the replay whether the store can still grow, and the replay skips only when it cannot.
  • During play. The store keeps the hashes of the pipelines it evicted, as the resource cache does since #7189. Every bound/32 evictions, if more than half of the evicted pipelines came back, the bound doubles, up to 4096.
  • The bound never shrinks during a run. I tried #7189's shrink rule here first: halve the bound once a quarter of it served a window of bound×8 lookups. In GTA that window is under a second of play, about 300 pipelines serve it, and the shrink evicted the replayed pipelines that later scenes need: 629 evictions and 57 rebuilds in five minutes. A pipeline is cheap to keep and expensive to rebuild, so the bound only grows. It goes back to 1024 when a device clears its pipelines.
  • APS5_PIPELINE_STORE_ENTRIES still fixes the bound, and then nothing changes it.
  • Memory. Resident pipelines are bounded by count (4096), not by bytes; a pipeline the title never asks for again keeps its memory until the device clears its pipelines. The measured cost is below; the debt entry states it.

Overlap: #8542 also touches the journal entry bound in PipelineJournal.cpp (one line here) and its ENVIRONMENT.md row, to count compute entries apart. The two compose. I proposed on #8542 that it goes first; I would then rebase this onto it and keep its per-kind counting, so only the graphics default changes. #9440 and #9835 (newest journal entries) are closed.

Tested

Windows 11 26200, RTX 4090 (NVIDIA 616.92), i9-13900K, WinLibs GCC 15.2.0 r7, Release.

Unit tests (agc_driver_graphics_tests, mock Vulkan), on main 3bbd2321d:

  • agc_pipeline_store_growth cycles 1536 configurations six times. On main every pass rebuilds all 1536 (the bound did not grow to 2048 while evicted pipelines kept coming back). With the change the bound reaches 2048 and the last pass builds nothing.
  • agc_pipeline_store_fixed_bound: the same run with APS5_PIPELINE_STORE_ENTRIES=1024 keeps the bound and rebuilds every pass. It passes on both.
  • agc_pipeline_store_replay_growth records 1032 pipelines, clears the store and replays the journal. main keeps 1024 (a replay of 1032 recorded pipelines kept 1024 in the store (bound 1024)). With the change all 1032 stay. It is excluded from the suite-wide APS5_NO_PIPELINE_JOURNAL=1, like the other journal tests.
  • All 17 agc_pipeline* tests pass, also with VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ANYPS5_NO_SHADER_CACHE=1 ANYPS5_REQUIRE_VULKAN=1 (no validation message).
  • On head ad047899b (rebased on main c8d34aa8f): the store and journal tests 7/7, the agc_pipeline_(cache|library|store|journal) set under the validation layer 14/14 with no VUID- message.
  • ^agc with the same switches, same machine: main 896 of 899 pass, this PR 899 of 902. The three failures are the same on both (agc_driver_sample_order, agc_driver_sample_order_grid_reference, agc_driver_sample_order_recipe_depth_locations). The three extra tests are this PR's.

GTA V (PPSA04264), open world, resumed save, about seven minutes per run, on current main 3bbd2321d. The base is main plus three fixes this title needs today: #9730 (sceVoiceSetThreadsParams mode 1), and #9181 and #9159 (#9136, without them the open world crashes). The change is the same tree plus this PR. Counts come from warm runs with APS5_PROFILE_DRAW=1. Builds in play are [pipecache] misses minus the pipelines the replay built:

tree journal replayed builds in play evictions store at the end
base 988 graphics of 1512 records (the bound of 1024 counts the 36 compute ones too) 174 138 1024 (full)
this PR 1411 graphics of 1447 records, in 306 ms on 16 threads 65 0 1476

The 65 builds left on the PR row are pipelines no earlier run had recorded. Each run respawns in a slightly different place, and the journal grew from 914 to 1512 records over this session's runs. The journal keeps the new ones, so the next run replays them.

An earlier series on main 663de1ab2 gave the same picture: base 80 and 153 builds in play with a full store, this PR 42 with no eviction.

The frame summaries below are one 60 s window each, from separate runs without APS5_PROFILE_DRAW. Frame times follow where the save spawns (2 to 11 FPS within a run), so the table above is the number to compare. In these two windows the longest frame went from 906 ms to 337 ms.

Summary lines from the earlier head (cap 16384), base then this PR (same session, traces on the fork release perf-pipeline-store-20261022):

{"commit":"05542da6ba3d","dirty":false,"env":{"APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"330:60"},"gpu":"NVIDIA GeForce RTX 4090","driver":"NVIDIA 616.92","os":"Windows 10.0.26200","cpu":"13th Gen Intel(R) Core(TM) i9-13900K","cpu_threads":32,"memory_mib":65295,"title_id":"PPSA04264","title":"Grand Theft Auto V","content_version":"01.005.000","resolution":"3840x2160","window":{"spec":"seconds 330:60","first_present":4159,"ms":60061.460},"presents":315,"frame_ms":{"p50":190.965,"p90":224.475,"p99":336.087,"max":906.284},"gpu_busy_ms_per_present":42.788,"worker_busy_pct":{"queue worker 0x0":98.143,"queue worker 0x28":24.909,"queue worker 0x38":15.823,"queue worker 0x30":19.383,"queue worker 0x20":35.912},"top_phases_ms_per_frame":{"Driver.Packet":361.137,"Driver.Packet.memory_wait":182.840,"Driver.Packet.draw":150.089,"Graphics.Draw":148.907,"Driver.Draw":148.585,"Graphics.Draw.draw_and_resource_release":116.447,"Driver.Draw.shader_compile_and_link":79.613,"Shader.DrawStage":62.969},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":4.279,"events_lost":3095827,"totals_full":false},"draw committer":{"events_full_after_s":11.525,"events_lost":926516,"totals_full":false}},"trace":"aps5-trace-05542da6ba3d-26128.json.gz"}
{"commit":"ab812ca99a6a","dirty":false,"env":{"APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"330:60"},"gpu":"NVIDIA GeForce RTX 4090","driver":"NVIDIA 616.92","os":"Windows 10.0.26200","cpu":"13th Gen Intel(R) Core(TM) i9-13900K","cpu_threads":32,"memory_mib":65295,"title_id":"PPSA04264","title":"Grand Theft Auto V","content_version":"01.005.000","resolution":"3840x2160","window":{"spec":"seconds 330:60","first_present":3861,"ms":60032.138},"presents":390,"frame_ms":{"p50":155.264,"p90":210.314,"p99":264.495,"max":336.529},"gpu_busy_ms_per_present":40.095,"worker_busy_pct":{"queue worker 0x0":98.129,"queue worker 0x20":27.500,"queue worker 0x28":26.290,"queue worker 0x38":23.605,"queue worker 0x30":17.994},"top_phases_ms_per_frame":{"Driver.Packet":291.210,"Driver.Packet.memory_wait":146.673,"Graphics.Draw":115.267,"Driver.Packet.draw":115.090,"Driver.Draw":113.884,"Graphics.Draw.draw_and_resource_release":90.119,"Driver.Draw.shader_compile_and_link":59.709,"Shader.DrawStage":45.689},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":4.300,"events_lost":2943529,"totals_full":false},"draw committer":{"events_full_after_s":11.297,"events_lost":853405,"totals_full":false}},"trace":"aps5-trace-ab812ca99a6a-11712.json.gz"}

Memory (review of 2026-10-23). Head ad047899b, rebased on main c8d34aa8f.

  • Per pipeline, without the game: agc_driver_recorder_tests --benchmark-pipeline-store-memory 4096 (opt-in, not in ctest) builds 4096 graphics pipelines through CachedPipeline, each with its own fragment module, holds them, and reads process private bytes and VK_EXT_memory_budget heap usage before and after. With the triangle test shaders this is a floor:
GPU host private per pipeline device-local per pipeline
RTX 4090 (616.92) 54-59 KiB (+215-235 MiB for 4096) not measurable (heap usage flat)
Intel UHD 770 100 KiB (+402 MiB) 8 KiB (+32 MiB)
  • GTA V: on the earlier head (cap 16384), two pairs base/PR with the same 1974-record journal kept 1024 vs 1941 graphics pipelines resident; peak private bytes and dedicated GPU memory moved within run-to-run noise (pair 1: -105 / -46 MiB, pair 2: +605 / +448 MiB), an upper bound of about 0.66 MiB host and 0.49 MiB VRAM per resident GTA pipeline. On this head, a warm run replays 1450 graphics pipelines and builds 15 during play with 0 evictions; peak private 23.1 GB and dedicated 5.9 GB, inside the range of every other run of this series (private 23.0-24.0 GB, dedicated 5.5-6.3 GB).
  • Worst case at the cap: 4096 resident pipelines. From the floor that is 0.2-0.4 GiB of host memory; from GTA's upper bound at most about 2.6 GiB host and 2 GiB VRAM, for a title that has 4096 distinct pipelines.
  • Scoping the replay to what the previous run kept resident was tried and dropped: with the count stored in the journal header, replaying the newest records up to that count rebuilt 335-357 pipelines per GTA run (three runs in a row), because each run appends the pipelines it had to rebuild and pushes older, always-used records out of the window. Doing it right needs per-record use tracking in the journal format.

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; merge after #8542 if it lands first (one shared line, see Overlap)
  • Fixes: none
  • Unblocks: PPSA04264 #1203 (fewer freezes in the open world)
  • GPUs tested: NVIDIA GeForce RTX 4090 (616.92, Windows 11 26200); the unit tests use the mock device
  • AI-assisted: yes (Claude Code)

🤖 Generated with Claude Code

https://claude.ai/code/session_017SNUYRd7sRKZrMYpquAsnU

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4958143994 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9401). Originally posted by [tibzejoker](https://github.com/tibzejoker) on 2026-10-21T20:47:54Z. --- ### What The graphics pipeline store kept a fixed bound of 1024 entries, and the pipeline journal replayed only its first 1024 records. On top of that, the replay skipped every record once the store was full. A title with more pipelines than that rebuilt the rest at the draw, under the GPU mutex. Each rebuild costs about 200 ms in GTA V and shows as a freeze. - **Replay.** The journal now loads up to 4096 records (`APS5_PIPELINE_JOURNAL_ENTRIES` still sets the limit). A replayed pipeline that finds the store full doubles the bound instead of being skipped, up to 4096. `PipelineStoreCanGrow()` tells the replay whether the store can still grow, and the replay skips only when it cannot. - **During play.** The store keeps the hashes of the pipelines it evicted, as the resource cache does since #7189. Every bound/32 evictions, if more than half of the evicted pipelines came back, the bound doubles, up to 4096. - **The bound never shrinks during a run.** I tried #7189's shrink rule here first: halve the bound once a quarter of it served a window of bound×8 lookups. In GTA that window is under a second of play, about 300 pipelines serve it, and the shrink evicted the replayed pipelines that later scenes need: 629 evictions and 57 rebuilds in five minutes. A pipeline is cheap to keep and expensive to rebuild, so the bound only grows. It goes back to 1024 when a device clears its pipelines. - `APS5_PIPELINE_STORE_ENTRIES` still fixes the bound, and then nothing changes it. - **Memory.** Resident pipelines are bounded by count (4096), not by bytes; a pipeline the title never asks for again keeps its memory until the device clears its pipelines. The measured cost is below; the debt entry states it. Overlap: #8542 also touches the journal entry bound in `PipelineJournal.cpp` (one line here) and its `ENVIRONMENT.md` row, to count compute entries apart. The two compose. I proposed on #8542 that it goes first; I would then rebase this onto it and keep its per-kind counting, so only the graphics default changes. #9440 and #9835 (newest journal entries) are closed. ### Tested Windows 11 26200, RTX 4090 (NVIDIA 616.92), i9-13900K, WinLibs GCC 15.2.0 r7, Release. **Unit tests** (`agc_driver_graphics_tests`, mock Vulkan), on `main` 3bbd2321d: - `agc_pipeline_store_growth` cycles 1536 configurations six times. On `main` every pass rebuilds all 1536 (`the bound did not grow to 2048 while evicted pipelines kept coming back`). With the change the bound reaches 2048 and the last pass builds nothing. - `agc_pipeline_store_fixed_bound`: the same run with `APS5_PIPELINE_STORE_ENTRIES=1024` keeps the bound and rebuilds every pass. It passes on both. - `agc_pipeline_store_replay_growth` records 1032 pipelines, clears the store and replays the journal. `main` keeps 1024 (`a replay of 1032 recorded pipelines kept 1024 in the store (bound 1024)`). With the change all 1032 stay. It is excluded from the suite-wide `APS5_NO_PIPELINE_JOURNAL=1`, like the other journal tests. - All 17 `agc_pipeline*` tests pass, also with `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ANYPS5_NO_SHADER_CACHE=1 ANYPS5_REQUIRE_VULKAN=1` (no validation message). - On head ad047899b (rebased on `main` c8d34aa8f): the store and journal tests 7/7, the `agc_pipeline_(cache|library|store|journal)` set under the validation layer 14/14 with no `VUID-` message. - `^agc` with the same switches, same machine: `main` 896 of 899 pass, this PR 899 of 902. The three failures are the same on both (`agc_driver_sample_order`, `agc_driver_sample_order_grid_reference`, `agc_driver_sample_order_recipe_depth_locations`). The three extra tests are this PR's. **GTA V (PPSA04264)**, open world, resumed save, about seven minutes per run, on current `main` 3bbd2321d. The base is `main` plus three fixes this title needs today: #9730 (`sceVoiceSetThreadsParams` mode 1), and #9181 and #9159 (#9136, without them the open world crashes). The change is the same tree plus this PR. Counts come from warm runs with `APS5_PROFILE_DRAW=1`. Builds in play are `[pipecache]` misses minus the pipelines the replay built: | tree | journal replayed | builds in play | evictions | store at the end | |---|---|---|---|---| | base | 988 graphics of 1512 records (the bound of 1024 counts the 36 compute ones too) | 174 | 138 | 1024 (full) | | this PR | 1411 graphics of 1447 records, in 306 ms on 16 threads | 65 | 0 | 1476 | The 65 builds left on the PR row are pipelines no earlier run had recorded. Each run respawns in a slightly different place, and the journal grew from 914 to 1512 records over this session's runs. The journal keeps the new ones, so the next run replays them. An earlier series on `main` 663de1ab2 gave the same picture: base 80 and 153 builds in play with a full store, this PR 42 with no eviction. The frame summaries below are one 60 s window each, from separate runs without `APS5_PROFILE_DRAW`. Frame times follow where the save spawns (2 to 11 FPS within a run), so the table above is the number to compare. In these two windows the longest frame went from 906 ms to 337 ms. Summary lines from the earlier head (cap 16384), base then this PR (same session, traces on the fork release [perf-pipeline-store-20261022](https://github.com/tibzejoker/AnyPS5/releases/tag/perf-pipeline-store-20261022)): ``` {"commit":"05542da6ba3d","dirty":false,"env":{"APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"330:60"},"gpu":"NVIDIA GeForce RTX 4090","driver":"NVIDIA 616.92","os":"Windows 10.0.26200","cpu":"13th Gen Intel(R) Core(TM) i9-13900K","cpu_threads":32,"memory_mib":65295,"title_id":"PPSA04264","title":"Grand Theft Auto V","content_version":"01.005.000","resolution":"3840x2160","window":{"spec":"seconds 330:60","first_present":4159,"ms":60061.460},"presents":315,"frame_ms":{"p50":190.965,"p90":224.475,"p99":336.087,"max":906.284},"gpu_busy_ms_per_present":42.788,"worker_busy_pct":{"queue worker 0x0":98.143,"queue worker 0x28":24.909,"queue worker 0x38":15.823,"queue worker 0x30":19.383,"queue worker 0x20":35.912},"top_phases_ms_per_frame":{"Driver.Packet":361.137,"Driver.Packet.memory_wait":182.840,"Driver.Packet.draw":150.089,"Graphics.Draw":148.907,"Driver.Draw":148.585,"Graphics.Draw.draw_and_resource_release":116.447,"Driver.Draw.shader_compile_and_link":79.613,"Shader.DrawStage":62.969},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":4.279,"events_lost":3095827,"totals_full":false},"draw committer":{"events_full_after_s":11.525,"events_lost":926516,"totals_full":false}},"trace":"aps5-trace-05542da6ba3d-26128.json.gz"} ``` ``` {"commit":"ab812ca99a6a","dirty":false,"env":{"APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"330:60"},"gpu":"NVIDIA GeForce RTX 4090","driver":"NVIDIA 616.92","os":"Windows 10.0.26200","cpu":"13th Gen Intel(R) Core(TM) i9-13900K","cpu_threads":32,"memory_mib":65295,"title_id":"PPSA04264","title":"Grand Theft Auto V","content_version":"01.005.000","resolution":"3840x2160","window":{"spec":"seconds 330:60","first_present":3861,"ms":60032.138},"presents":390,"frame_ms":{"p50":155.264,"p90":210.314,"p99":264.495,"max":336.529},"gpu_busy_ms_per_present":40.095,"worker_busy_pct":{"queue worker 0x0":98.129,"queue worker 0x20":27.500,"queue worker 0x28":26.290,"queue worker 0x38":23.605,"queue worker 0x30":17.994},"top_phases_ms_per_frame":{"Driver.Packet":291.210,"Driver.Packet.memory_wait":146.673,"Graphics.Draw":115.267,"Driver.Packet.draw":115.090,"Driver.Draw":113.884,"Graphics.Draw.draw_and_resource_release":90.119,"Driver.Draw.shader_compile_and_link":59.709,"Shader.DrawStage":45.689},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":4.300,"events_lost":2943529,"totals_full":false},"draw committer":{"events_full_after_s":11.297,"events_lost":853405,"totals_full":false}},"trace":"aps5-trace-ab812ca99a6a-11712.json.gz"} ``` **Memory** (review of 2026-10-23). Head ad047899b, rebased on `main` c8d34aa8f. - *Per pipeline, without the game:* `agc_driver_recorder_tests --benchmark-pipeline-store-memory 4096` (opt-in, not in ctest) builds 4096 graphics pipelines through `CachedPipeline`, each with its own fragment module, holds them, and reads process private bytes and `VK_EXT_memory_budget` heap usage before and after. With the triangle test shaders this is a floor: | GPU | host private per pipeline | device-local per pipeline | |---|---|---| | RTX 4090 (616.92) | 54-59 KiB (+215-235 MiB for 4096) | not measurable (heap usage flat) | | Intel UHD 770 | 100 KiB (+402 MiB) | 8 KiB (+32 MiB) | - *GTA V:* on the earlier head (cap 16384), two pairs base/PR with the same 1974-record journal kept 1024 vs 1941 graphics pipelines resident; peak private bytes and dedicated GPU memory moved within run-to-run noise (pair 1: -105 / -46 MiB, pair 2: +605 / +448 MiB), an upper bound of about 0.66 MiB host and 0.49 MiB VRAM per resident GTA pipeline. On this head, a warm run replays 1450 graphics pipelines and builds 15 during play with 0 evictions; peak private 23.1 GB and dedicated 5.9 GB, inside the range of every other run of this series (private 23.0-24.0 GB, dedicated 5.5-6.3 GB). - *Worst case at the cap:* 4096 resident pipelines. From the floor that is 0.2-0.4 GiB of host memory; from GTA's upper bound at most about 2.6 GiB host and 2 GiB VRAM, for a title that has 4096 distinct pipelines. - *Scoping the replay* to what the previous run kept resident was tried and dropped: with the count stored in the journal header, replaying the newest records up to that count rebuilt 335-357 pipelines per GTA run (three runs in a row), because each run appends the pipelines it had to rebuild and pushes older, always-used records out of the window. Doing it right needs per-record use tracking in the journal format. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none; merge after #8542 if it lands first (one shared line, see Overlap) - [x] Fixes: none - [x] Unblocks: PPSA04264 #1203 (fewer freezes in the open world) - [x] GPUs tested: NVIDIA GeForce RTX 4090 (616.92, Windows 11 26200); the unit tests use the mock device - [x] AI-assisted: yes (Claude Code) 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_017SNUYRd7sRKZrMYpquAsnU
00xDisaster commented 2026-10-22 00:07:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by 00xDisaster on 2026-10-22T00:07:52Z.


Overlap note: #9440 changes the same bound line in PipelineJournal.cpp — it keeps the last entries of the journal instead of the first, so the pipelines a title built last are the ones the replay builds, and it rewrites the file when it reaches APS5_PIPELINE_JOURNAL_MAX_MIB instead of refusing the record (it also touches the two bound rows of docs/dev/ENVIRONMENT.md and the journal's debt entry).

The changes compose: the bound and the store growth of this PR apply to the entries #9440 keeps. I will rebase onto whichever lands first.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6329385980 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9401#issuecomment-6329385980). Originally posted by [00xDisaster](https://github.com/00xDisaster) on 2026-10-22T00:07:52Z. --- Overlap note: #9440 changes the same bound line in `PipelineJournal.cpp` — it keeps the **last** entries of the journal instead of the first, so the pipelines a title built last are the ones the replay builds, and it rewrites the file when it reaches `APS5_PIPELINE_JOURNAL_MAX_MIB` instead of refusing the record (it also touches the two bound rows of `docs/dev/ENVIRONMENT.md` and the journal's debt entry). The changes compose: the bound and the store growth of this PR apply to the entries #9440 keeps. I will rebase onto whichever lands first.
MarcZX10 commented 2026-10-22 05:39:22 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T05:39:22Z.

Review: DISMISSED


The mock tests cover both automatic growth and the fixed-bound setting, and the GTA V measurements report a meaningful reduction in builds during play. The PR includes same-scene summaries and trace artifacts; git diff --check passes and the current head merges cleanly with main.

I’m requesting changes for the remaining repository requirements:

  • The branch and performance/test baseline are from 663de1ab2 plus additional fixes, while current main is 4a17c71757 (the branch is 425 commits behind). Please rebase onto current main and rerun the focused pipeline-store tests and required paired AGC validation on the same machine/GPU with VK_LAYER_KHRONOS_validation, ANYPS5_NO_SHADER_CACHE=1, and ANYPS5_REQUIRE_VULKAN=1. Refresh the performance comparison against current main so its summaries/traces describe the branch being proposed.
  • The overlap with #8542 is a shared PipelineJournal.cpp bound line, and #9440 also changes that bound while retaining a different subset of journal entries. The checklist currently says Depends on: none, while the body says you will rebase whichever lands first. Please agree with both authors on merge order and record the applicable prerequisite(s) on the checklist. The current overlap scan also finds shared documentation/test-registration lines; recheck those after rebasing and coordinate any actual same-line overlap.

No local AGC test or GPU run was possible in this review environment. Hosted eligibility, conventions, intake, labels, and report checks pass; product build/test jobs are skipped. The older-base test and performance results are useful but need a current-main refresh before merge.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5609718563 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9401#pullrequestreview-5609718563). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T05:39:22Z. **Review:** DISMISSED --- The mock tests cover both automatic growth and the fixed-bound setting, and the GTA V measurements report a meaningful reduction in builds during play. The PR includes same-scene summaries and trace artifacts; `git diff --check` passes and the current head merges cleanly with `main`. I’m requesting changes for the remaining repository requirements: - The branch and performance/test baseline are from `663de1ab2` plus additional fixes, while current `main` is `4a17c71757` (the branch is 425 commits behind). Please rebase onto current `main` and rerun the focused pipeline-store tests and required paired AGC validation on the same machine/GPU with `VK_LAYER_KHRONOS_validation`, `ANYPS5_NO_SHADER_CACHE=1`, and `ANYPS5_REQUIRE_VULKAN=1`. Refresh the performance comparison against current main so its summaries/traces describe the branch being proposed. - The overlap with #8542 is a shared `PipelineJournal.cpp` bound line, and #9440 also changes that bound while retaining a different subset of journal entries. The checklist currently says `Depends on: none`, while the body says you will rebase whichever lands first. Please agree with both authors on merge order and record the applicable prerequisite(s) on the checklist. The current overlap scan also finds shared documentation/test-registration lines; recheck those after rebasing and coordinate any actual same-line overlap. No local AGC test or GPU run was possible in this review environment. Hosted eligibility, conventions, intake, labels, and report checks pass; product build/test jobs are skipped. The older-base test and performance results are useful but need a current-main refresh before merge.
adriadam10 commented 2026-10-23 20:59:05 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-23T20:59:05Z.

Review: CHANGES_REQUESTED


Thanks, the bound/eviction logic reads correctly and the new tests pin values that main does not produce. One thing blocks this:

  • Memory is unbounded in practice and unmeasured (Pipeline.cpp PipelineStore::MaximumEntries, PipelineJournal.cpp:927). The store can now hold up to 16384 live Vulkan pipelines, and a journal replay builds up to 16384 of them at start-up whether or not the title draws them again; nothing frees them until ClearCachedPipelines on the device. Please add to the PR: peak RSS (and driver/VRAM memory if you can read it) before and after on the GTA V scene, for a run replaying a large journal, and say what frees the entries during a run. If the cost is real, scope the replay (e.g. replay only up to what the previous run kept resident) or state the cap you settle on.
  • The measurements ran with 1476 pipelines, far below 16384; a number at or near the cap would show the worst case.

Everything else checked (docs, env table, debt entry, ctest registration, Conventions green). Overlap with #8542 on the journal-entries line is yours to sequence as you proposed.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5634383103 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9401#pullrequestreview-5634383103). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-23T20:59:05Z. **Review:** CHANGES_REQUESTED --- Thanks, the bound/eviction logic reads correctly and the new tests pin values that `main` does not produce. One thing blocks this: - **Memory is unbounded in practice and unmeasured** (`Pipeline.cpp` `PipelineStore::MaximumEntries`, `PipelineJournal.cpp:927`). The store can now hold up to 16384 live Vulkan pipelines, and a journal replay builds up to 16384 of them at start-up whether or not the title draws them again; nothing frees them until `ClearCachedPipelines` on the device. Please add to the PR: peak RSS (and driver/VRAM memory if you can read it) before and after on the GTA V scene, for a run replaying a large journal, and say what frees the entries during a run. If the cost is real, scope the replay (e.g. replay only up to what the previous run kept resident) or state the cap you settle on. - The measurements ran with 1476 pipelines, far below 16384; a number at or near the cap would show the worst case. Everything else checked (docs, env table, debt entry, ctest registration, Conventions green). Overlap with #8542 on the journal-entries line is yours to sequence as you proposed.
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!9401
No description provided.