perf(agc): remember an evicting import request's budget refusal until it could succeed #6730

Merged
EagleBearerYS merged 20 commits from upstream-pr/6730 into main 2026-10-19 23:52:12 +00:00
EagleBearerYS commented 2026-10-16 07:54:01 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-16T07:54:01Z.


What

At a full host import budget, a request that may evict asked again on every use. That covers an upload's region that needs an import, and HostImportFor. Each time it walked every live import in evictableBytes and was refused again. #6457 remembers the refusals of requests that may not evict. This PR remembers the evicting ones too, for exactly as long as the refusal can't turn into a success.

Depends on: #6457. This branch is #6457 plus this PR's commits and a merge of main 5d9dcc42d2.

Why. In Resident Evil Village (PPSA01556)'s first scene the 6400 MiB budget is full, and one upload range is refused at every use:

[gpu] host import budget: 6399 MiB live of 6400 MiB (APS5_HOST_IMPORT_MIB); 5978411 imports (634831 MiB) refused so far, 5315222 of them remembered, last 0x2372400000+0x80000 by build
  • The line came up in 126 of that run's budget reports.
  • In a profiled run of the same scene there were 37,627 refusals per present.
  • Import lookups took 710 ms per present, against 12 ms in a run that held the range.
  • With ~4,400 live imports, almost all of that time is the walk.

How. Without a held overlapping import, an evicting request is refused when the bytes of non-evictable imports outside its run, plus the run's own bytes, exceed the budget. A refusal can only become a success when one of these happens:

  • that sum drops: an import is retired, or one becomes evictable;
  • the run, the budget or the import window changes;
  • a request for a smaller range of the same block can step down.

So each refusal is remembered with the state that decided it and the room it left, for every block a step-down tries. It is answered from memory, and still counted as refused and remembered, while all of these hold:

  • epoch and liveBytes are unchanged: no import was made or retired;
  • the budget hasn't grown. A smaller budget can only keep it refused, which is #6479's stillRefused rule;
  • the import window is unchanged;
  • the run's ranges are the same objects (a request for any range of the refused block is answered);
  • no import outside the run could have become evictable since. The refusal's own walk records, for free, the first use count at which each non-evictable import could pass the 256-use protection. Held imports are kept apart, and the memory ends at whichever comes first.

A remembered refusal reproduces the scan's own decision: if the run can step down and the request's range fits in the room left, less any budget drop since, it steps down as the scan would, without a new walk; otherwise it is refused. A join's refusal is remembered too, kept apart from other requests for the same run, since a join skips the held-import check and never steps down.

Every condition is exact or errs toward trying again, so a request that could succeed is never answered from memory.

Not changed:

  • Requests that may not evict keep #6457's memory as it is.
  • refreshImports drops stale entries, and a device change and ClearHostImports clear them.
  • The debt entry ("Host import windows and budget") described the old retry. It now describes this memory.

Cost in Resident Evil Village's scene (by design, not measured yet): at ~72 address-based builds per second, which restamp the imports they map, the memory is walked again at most once per build, instead of once per request.

Overlap. At this head the overlap check lists the same other PRs as for #6457, so this PR adds no conflict beyond #6457's own. #6479, also stacked on #6457, changes the same budget path in importRunAt and adds tests to BdaResources.cpp. This PR uses #6479's rule for a budget that moves, so whichever lands second keeps both. #6918 (Scramblrrrr, draft) clips a partly committed import window to the aligned committed span that holds the request, in windowRun, and merges cleanly with this PR. The evicting refusals this PR remembers are keyed by the run windowRun returns and compared by its ranges, so a clipped window is remembered as its own run, and a window whose committed span changes is a new request.

Tested

  • Linux (Ubuntu 24.04, GCC 13.3, CI's configure flags, lavapipe; the tests use agc_driver_graphics' mock device):
    • Red, on #6457's GuestBufferMemory.cpp with the tests kept: 8 evicting requests for one refused piece at a full budget with nothing evictable scanned the imports 8 times, not once. Green: Graphics validation tests passed.
    • The new tests ×10: 10/10.
    • ctest -R '^agc' ×5: 605/605 three times, and twice 604/605. The one failure was agc_driver_preparation_scope_settle, a known load flake that passes 10/10 alone.
    • Each condition of the memory, weakened in turn, fails its own test: a retire, a budget raise, aging out, a raised build floor, the containing range, the import window, and imports no build held.
  • GitHub's runners (run 38869228735; "before" is #6457's head with the new tests, "after" is this branch, agc_driver_graphics included):
    • Linux: before fails, after passes 10/10. The libc and libkernel suites pass.
    • Windows: before fails, after passes 10/10. In the suites only guest_kqueue fails, on both sides; it fails on that runner with main too.
  • The review follow-ups (Linux, lavapipe), each red with the previous commit's GuestBufferMemory.cpp:
    • any range of a refused block: 8 evicting requests alternating between two 64 KiB ranges of one refused 256 KiB block scanned the imports 8 times, not once;
    • joins: 8 uploads bound across three refused ranges scanned the imports for their join 8 times, not once;
    • step-downs: once an address-based build was refused a 256 KiB block and imported its 128 KiB half, every evicting request for the other half scanned again: 8 evicting requests that step down from a refused block scanned the imports 8 times, not once.
    • Each test then grows the budget and checks the request now imports. agc_driver_graphics ×10: 10/10; ctest -R '^agc': 607/607 (43 skipped).
    • On GitHub's runners (run), with the previous head's GuestBufferMemory.cpp and the new tests, agc_driver_graphics fails in every one of 3 runs on Linux and Windows; with the three commits it passes 10 of 10 on both. In the suites only guest_kqueue fails on Windows, on both sides.
  • The merge of main: ctest -R '^agc' on GitHub's Linux runner at the merged head passes 606 of 607; the one failure is the same agc_driver_preparation_scope_settle load flake.
  • MinGW -fsyntax-only -Wall: no new diagnostics against #6457's head.
  • AMD Radeon 780M (RDNA 3, AMD driver 25.10.20.01), Windows 11 (WinLibs GCC 15.2.0, Release), run by keravyn-ops at 7539ba611, this branch merged with main 52798f71d5 (comment): all 63 tests built from the targets this PR changes pass.
  • python3 tools/check_conventions.py --base origin/main: passed. No comment lines added.

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: #6457
  • Related: #6479
  • Unblocks: Resident Evil Village (PPSA01556) speed
  • GPUs tested: lavapipe on Linux (mock device tests); AMD Radeon 780M (RDNA 3, AMD driver 25.10.20.01), Windows 11: the PR's tests pass (keravyn-ops)
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4885254616 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6730). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-16T07:54:01Z. --- ### What At a full host import budget, a request that may evict asked again on every use. That covers an upload's region that needs an import, and `HostImportFor`. Each time it walked every live import in `evictableBytes` and was refused again. #6457 remembers the refusals of requests that may not evict. This PR remembers the evicting ones too, for exactly as long as the refusal can't turn into a success. Depends on: #6457. This branch is #6457 plus this PR's commits and a merge of `main` 5d9dcc42d2. **Why.** In Resident Evil Village (PPSA01556)'s first scene the 6400 MiB budget is full, and one upload range is refused at every use: ``` [gpu] host import budget: 6399 MiB live of 6400 MiB (APS5_HOST_IMPORT_MIB); 5978411 imports (634831 MiB) refused so far, 5315222 of them remembered, last 0x2372400000+0x80000 by build ``` - The line came up in 126 of that run's budget reports. - In a profiled run of the same scene there were 37,627 refusals per present. - Import lookups took 710 ms per present, against 12 ms in a run that held the range. - With ~4,400 live imports, almost all of that time is the walk. **How.** Without a held overlapping import, an evicting request is refused when the bytes of non-evictable imports outside its run, plus the run's own bytes, exceed the budget. A refusal can only become a success when one of these happens: - that sum drops: an import is retired, or one becomes evictable; - the run, the budget or the import window changes; - a request for a smaller range of the same block can step down. So each refusal is remembered with the state that decided it and the room it left, for every block a step-down tries. It is answered from memory, and still counted as refused and remembered, while all of these hold: - `epoch` and `liveBytes` are unchanged: no import was made or retired; - the budget hasn't grown. A smaller budget can only keep it refused, which is #6479's `stillRefused` rule; - the import window is unchanged; - the run's ranges are the same objects (a request for any range of the refused block is answered); - no import outside the run could have become evictable since. The refusal's own walk records, for free, the first use count at which each non-evictable import could pass the 256-use protection. Held imports are kept apart, and the memory ends at whichever comes first. A remembered refusal reproduces the scan's own decision: if the run can step down and the request's range fits in the room left, less any budget drop since, it steps down as the scan would, without a new walk; otherwise it is refused. A join's refusal is remembered too, kept apart from other requests for the same run, since a join skips the held-import check and never steps down. Every condition is exact or errs toward trying again, so a request that could succeed is never answered from memory. **Not changed:** - Requests that may not evict keep #6457's memory as it is. - `refreshImports` drops stale entries, and a device change and `ClearHostImports` clear them. - The debt entry ("Host import windows and budget") described the old retry. It now describes this memory. **Cost in Resident Evil Village's scene (by design, not measured yet):** at ~72 address-based builds per second, which restamp the imports they map, the memory is walked again at most once per build, instead of once per request. **Overlap.** At this head the overlap check lists the same other PRs as for #6457, so this PR adds no conflict beyond #6457's own. #6479, also stacked on #6457, changes the same budget path in `importRunAt` and adds tests to `BdaResources.cpp`. This PR uses #6479's rule for a budget that moves, so whichever lands second keeps both. #6918 (Scramblrrrr, draft) clips a partly committed import window to the aligned committed span that holds the request, in `windowRun`, and merges cleanly with this PR. The evicting refusals this PR remembers are keyed by the run `windowRun` returns and compared by its ranges, so a clipped window is remembered as its own run, and a window whose committed span changes is a new request. ### Tested - **Linux** (Ubuntu 24.04, GCC 13.3, CI's configure flags, lavapipe; the tests use `agc_driver_graphics`' mock device): - Red, on #6457's `GuestBufferMemory.cpp` with the tests kept: `8 evicting requests for one refused piece at a full budget with nothing evictable scanned the imports 8 times, not once`. Green: `Graphics validation tests passed`. - The new tests ×10: 10/10. - `ctest -R '^agc'` ×5: 605/605 three times, and twice 604/605. The one failure was `agc_driver_preparation_scope_settle`, a known load flake that passes 10/10 alone. - Each condition of the memory, weakened in turn, fails its own test: a retire, a budget raise, aging out, a raised build floor, the containing range, the import window, and imports no build held. - **GitHub's runners** ([run 38869228735](https://github.com/EagleBearerYS/AnyPS5/actions/runs/38869228735); "before" is #6457's head with the new tests, "after" is this branch, `agc_driver_graphics` included): - Linux: before fails, after passes 10/10. The libc and libkernel suites pass. - Windows: before fails, after passes 10/10. In the suites only `guest_kqueue` fails, on both sides; it fails on that runner with `main` too. - **The review follow-ups** (Linux, lavapipe), each red with the previous commit's `GuestBufferMemory.cpp`: - any range of a refused block: `8 evicting requests alternating between two 64 KiB ranges of one refused 256 KiB block scanned the imports 8 times, not once`; - joins: `8 uploads bound across three refused ranges scanned the imports for their join 8 times, not once`; - step-downs: once an address-based build was refused a 256 KiB block and imported its 128 KiB half, every evicting request for the other half scanned again: `8 evicting requests that step down from a refused block scanned the imports 8 times, not once`. - Each test then grows the budget and checks the request now imports. `agc_driver_graphics` ×10: 10/10; `ctest -R '^agc'`: 607/607 (43 skipped). - On GitHub's runners ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/38875588067)), with the previous head's `GuestBufferMemory.cpp` and the new tests, `agc_driver_graphics` fails in every one of 3 runs on Linux and Windows; with the three commits it passes 10 of 10 on both. In the suites only `guest_kqueue` fails on Windows, on both sides. - **The merge of `main`**: `ctest -R '^agc'` on GitHub's Linux runner at the merged head passes 606 of 607; the one failure is the same `agc_driver_preparation_scope_settle` load flake. - **MinGW** `-fsyntax-only -Wall`: no new diagnostics against #6457's head. - **AMD Radeon 780M (RDNA 3, AMD driver 25.10.20.01), Windows 11** (WinLibs GCC 15.2.0, Release), run by keravyn-ops at 7539ba611, this branch merged with `main` 52798f71d5 ([comment](https://github.com/boykopovar/AnyPS5/pull/6730#issuecomment-6232716537)): all 63 tests built from the targets this PR changes pass. - `python3 tools/check_conventions.py --base origin/main`: passed. No comment lines added. ### 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: #6457 - [x] Related: #6479 - [x] Unblocks: Resident Evil Village (PPSA01556) speed - [x] GPUs tested: lavapipe on Linux (mock device tests); AMD Radeon 780M (RDNA 3, AMD driver 25.10.20.01), Windows 11: the PR's tests pass (keravyn-ops) - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-16 08:39:14 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-16T08:39:14Z.


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 7849 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp L1659
PR 7978 docs/dev/debt/libSceAgcDriver.md L196-197

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

Pull request Shared files not compared
PR 1191 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 1324 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 2434 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
docs/dev/debt/libSceAgcDriver.md
PR 5021 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/tests/BdaResources.cpp
PR 5058 docs/dev/debt/libSceAgcDriver.md
PR 5499 docs/dev/debt/libSceAgcDriver.md
PR 5925 docs/dev/debt/libSceAgcDriver.md
PR 6177 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 6185 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 6186 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 6194 docs/dev/debt/libSceAgcDriver.md
PR 6197 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/tests/BdaResources.cpp
PR 6223 docs/dev/debt/libSceAgcDriver.md
PR 6273 docs/dev/debt/libSceAgcDriver.md
PR 6280 docs/dev/debt/libSceAgcDriver.md
PR 6292 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 6300 docs/dev/debt/libSceAgcDriver.md
PR 6412 core/libs/prx/libSceAgcDriver/tests/BdaResources.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6481 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6548 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6549 docs/dev/debt/libSceAgcDriver.md
PR 6612 docs/dev/debt/libSceAgcDriver.md
PR 6615 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 6628 core/libs/prx/libSceAgcDriver/tests/BdaResources.cpp
PR 6727 docs/dev/debt/libSceAgcDriver.md
PR 6808 docs/dev/debt/libSceAgcDriver.md
PR 6867 docs/dev/debt/libSceAgcDriver.md
PR 6868 docs/dev/debt/libSceAgcDriver.md
PR 6947 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6951 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/tests/BdaResources.cpp
PR 6959 docs/dev/debt/libSceAgcDriver.md
PR 6977 docs/dev/debt/libSceAgcDriver.md
PR 7085 docs/dev/debt/libSceAgcDriver.md
PR 7201 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/tests/BdaResources.cpp
PR 7233 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 7256 docs/dev/debt/libSceAgcDriver.md
PR 7292 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/tests/BdaResources.cpp
PR 7332 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/tests/BdaResources.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7449 docs/dev/debt/libSceAgcDriver.md
PR 7457 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 7473 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 7505 docs/dev/debt/libSceAgcDriver.md
PR 7514 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 7533 docs/dev/debt/libSceAgcDriver.md
PR 7604 docs/dev/debt/libSceAgcDriver.md
PR 7800 docs/dev/debt/libSceAgcDriver.md
PR 7844 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7927 docs/dev/debt/libSceAgcDriver.md
PR 8014 docs/dev/debt/libSceAgcDriver.md
PR 8099 docs/dev/debt/libSceAgcDriver.md
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6211573529 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6730#issuecomment-6211573529). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-16T08:39:14Z. --- <!-- 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 7849](https://www.github.com/boykopovar/AnyPS5/pull/7849) | `core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp` [L1659](https://github.com/boykopovar/AnyPS5/blob/25ab3510ca21ead3dbabff89853a4d9e9c738ec5/core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp#L1659) | | | | [PR 7978](https://www.github.com/boykopovar/AnyPS5/pull/7978) | `docs/dev/debt/libSceAgcDriver.md` [L196-197](https://github.com/boykopovar/AnyPS5/blob/25ab3510ca21ead3dbabff89853a4d9e9c738ec5/docs/dev/debt/libSceAgcDriver.md#L196-L197) | | | Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap. | Pull request | Shared files not compared | |---|---| | [PR 1191](https://www.github.com/boykopovar/AnyPS5/pull/1191) | `core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp` | | [PR 1324](https://www.github.com/boykopovar/AnyPS5/pull/1324) | `core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp` | | [PR 2434](https://www.github.com/boykopovar/AnyPS5/pull/2434) | `core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 5021](https://www.github.com/boykopovar/AnyPS5/pull/5021) | `core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/BdaResources.cpp` | | [PR 5058](https://www.github.com/boykopovar/AnyPS5/pull/5058) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 5499](https://www.github.com/boykopovar/AnyPS5/pull/5499) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 5925](https://www.github.com/boykopovar/AnyPS5/pull/5925) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6177](https://www.github.com/boykopovar/AnyPS5/pull/6177) | `core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp` | | [PR 6185](https://www.github.com/boykopovar/AnyPS5/pull/6185) | `core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp` | | [PR 6186](https://www.github.com/boykopovar/AnyPS5/pull/6186) | `core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp` | | [PR 6194](https://www.github.com/boykopovar/AnyPS5/pull/6194) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6197](https://www.github.com/boykopovar/AnyPS5/pull/6197) | `core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/BdaResources.cpp` | | [PR 6223](https://www.github.com/boykopovar/AnyPS5/pull/6223) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6273](https://www.github.com/boykopovar/AnyPS5/pull/6273) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6280](https://www.github.com/boykopovar/AnyPS5/pull/6280) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6292](https://www.github.com/boykopovar/AnyPS5/pull/6292) | `core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp` | | [PR 6300](https://www.github.com/boykopovar/AnyPS5/pull/6300) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6412](https://www.github.com/boykopovar/AnyPS5/pull/6412) | `core/libs/prx/libSceAgcDriver/tests/BdaResources.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6481](https://www.github.com/boykopovar/AnyPS5/pull/6481) | `core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6548](https://www.github.com/boykopovar/AnyPS5/pull/6548) | `core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6549](https://www.github.com/boykopovar/AnyPS5/pull/6549) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6612](https://www.github.com/boykopovar/AnyPS5/pull/6612) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6615](https://www.github.com/boykopovar/AnyPS5/pull/6615) | `core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp` | | [PR 6628](https://www.github.com/boykopovar/AnyPS5/pull/6628) | `core/libs/prx/libSceAgcDriver/tests/BdaResources.cpp` | | [PR 6727](https://www.github.com/boykopovar/AnyPS5/pull/6727) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6808](https://www.github.com/boykopovar/AnyPS5/pull/6808) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6867](https://www.github.com/boykopovar/AnyPS5/pull/6867) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6868](https://www.github.com/boykopovar/AnyPS5/pull/6868) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6947](https://www.github.com/boykopovar/AnyPS5/pull/6947) | `core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6951](https://www.github.com/boykopovar/AnyPS5/pull/6951) | `core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/BdaResources.cpp` | | [PR 6959](https://www.github.com/boykopovar/AnyPS5/pull/6959) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6977](https://www.github.com/boykopovar/AnyPS5/pull/6977) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7085](https://www.github.com/boykopovar/AnyPS5/pull/7085) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7201](https://www.github.com/boykopovar/AnyPS5/pull/7201) | `core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/BdaResources.cpp` | | [PR 7233](https://www.github.com/boykopovar/AnyPS5/pull/7233) | `core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp` | | [PR 7256](https://www.github.com/boykopovar/AnyPS5/pull/7256) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7292](https://www.github.com/boykopovar/AnyPS5/pull/7292) | `core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/BdaResources.cpp` | | [PR 7332](https://www.github.com/boykopovar/AnyPS5/pull/7332) | `core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/BdaResources.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 7449](https://www.github.com/boykopovar/AnyPS5/pull/7449) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7457](https://www.github.com/boykopovar/AnyPS5/pull/7457) | `core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp` | | [PR 7473](https://www.github.com/boykopovar/AnyPS5/pull/7473) | `core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp` | | [PR 7505](https://www.github.com/boykopovar/AnyPS5/pull/7505) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7514](https://www.github.com/boykopovar/AnyPS5/pull/7514) | `core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp` | | [PR 7533](https://www.github.com/boykopovar/AnyPS5/pull/7533) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7604](https://www.github.com/boykopovar/AnyPS5/pull/7604) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7800](https://www.github.com/boykopovar/AnyPS5/pull/7800) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7844](https://www.github.com/boykopovar/AnyPS5/pull/7844) | `core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 7927](https://www.github.com/boykopovar/AnyPS5/pull/7927) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 8014](https://www.github.com/boykopovar/AnyPS5/pull/8014) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 8099](https://www.github.com/boykopovar/AnyPS5/pull/8099) | `docs/dev/debt/libSceAgcDriver.md` |
parl0v commented 2026-10-16 21:06:40 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by parl0v on 2026-10-16T21:06:40Z.


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-48 ms of idle gaps per frame).

libs FPS GPU busy idle gaps
main 6.60 / 6.60 105 / 104 ms 46 / 48 ms
+ this PR (efdba5df4) 6.68 / 6.60 (+0.6 %) 104 / 106 ms 46 / 45 ms

Within the run-to-run spread (about ±1.5 % here), no regression, 0 fatal. The title screen on a 12 GB card has no evicting imports to refuse, so it doesn't exercise the path this changes.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6224700084 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6730#issuecomment-6224700084). Originally posted by [parl0v](https://github.com/parl0v) on 2026-10-16T21:06:40Z. --- 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-48 ms of idle gaps per frame). | libs | FPS | GPU busy | idle gaps | |---|---|---|---| | `main` | 6.60 / 6.60 | 105 / 104 ms | 46 / 48 ms | | + this PR (efdba5df4) | 6.68 / 6.60 (+0.6 %) | 104 / 106 ms | 46 / 45 ms | Within the run-to-run spread (about ±1.5 % here), no regression, 0 fatal. The title screen on a 12 GB card has no evicting imports to refuse, so it doesn't exercise the path this changes. AI-assisted: yes (Claude Code)
keravyn-ops commented 2026-10-17 10:16:29 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by keravyn-ops on 2026-10-17T10:16:29Z.


AMD / Windows run of this PR at 7539ba611: Radeon 780M (RDNA 3, 0x15bf), AMD driver 25.10.20.01 (32.0.21020.1007), Windows 11 Home 10.0.26100, WinLibs GCC 15.2.0 r7, Release.

Every ctest entry built from the test targets this PR changes passes (63):

agc_recorder_device_selection, agc_pipeline_cache, agc_pipeline_cache_file, agc_pipeline_library, agc_pipeline_library_off, agc_pipeline_library_fast_only, agc_import_watch, agc_import_watch_other_family, agc_unchanged_cpu_stamps, agc_storage_kept_unit_settle, agc_storage_baseline_settled, agc_storage_integer_clear, agc_storage_upload_lifetime, agc_storage_upload_failure, agc_storage_written_buffer_order, agc_storage_split_writeback, agc_copied_direct_ordering, agc_storage_writeback_blocks, agc_recorder_read_list, agc_space_pending_writes, agc_host_import_unmap, agc_parked_import_unmap, agc_host_import_retirement, agc_sparse_run_import, agc_sparse_run_import_copied, agc_unit_shadow, agc_storage_cpu_snapshot, agc_descriptor_pool_recycling, agc_draw_snapshot_cap, agc_draw_snapshot_epoch, agc_multisample_guest_access, agc_draw_inputs_in_place, agc_pending_write_snapshot, agc_resident_present, agc_queued_write_groups, agc_tiled_resolve, agc_slice_dirty, agc_metadata_pass, agc_host_import_second_mapping, agc_pending_key_stores, agc_shadowed_key_stores, agc_sample_dumps, agc_driver_vertex_target_range_copied, agc_driver_vertex_target_range_imported, agc_driver_undithered_alpha_to_coverage_state, agc_driver_msaa_dcc_state, agc_driver_alpha_to_coverage_state, agc_driver_prepared_graphics_prebuild_unset, agc_driver_prepared_graphics_prebuild_0, agc_driver_prepared_graphics_prebuild_1, agc_driver_graphics, agc_driver_f16_fma_denormal_modes, agc_driver_linear_target_resident, agc_driver_prepared_graphics, agc_driver_prepared_unregistered_graphics, agc_driver_storage_write_back_overhang, agc_sparse_buffer_holes, agc_pipeline_journal, agc_pipeline_library_clear_waits_for_build, agc_descriptor_pool_reset_failure, agc_driver_address_space_teardown, agc_compute_descriptor_layout_flags, agc_driver_covered_centroid_state

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

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6232716537 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6730#issuecomment-6232716537). Originally posted by [keravyn-ops](https://github.com/keravyn-ops) on 2026-10-17T10:16:29Z. --- AMD / Windows run of this PR at 7539ba611: Radeon 780M (RDNA 3, 0x15bf), AMD driver 25.10.20.01 (32.0.21020.1007), Windows 11 Home 10.0.26100, WinLibs GCC 15.2.0 r7, Release. Every ctest entry built from the test targets this PR changes passes (63): `agc_recorder_device_selection`, `agc_pipeline_cache`, `agc_pipeline_cache_file`, `agc_pipeline_library`, `agc_pipeline_library_off`, `agc_pipeline_library_fast_only`, `agc_import_watch`, `agc_import_watch_other_family`, `agc_unchanged_cpu_stamps`, `agc_storage_kept_unit_settle`, `agc_storage_baseline_settled`, `agc_storage_integer_clear`, `agc_storage_upload_lifetime`, `agc_storage_upload_failure`, `agc_storage_written_buffer_order`, `agc_storage_split_writeback`, `agc_copied_direct_ordering`, `agc_storage_writeback_blocks`, `agc_recorder_read_list`, `agc_space_pending_writes`, `agc_host_import_unmap`, `agc_parked_import_unmap`, `agc_host_import_retirement`, `agc_sparse_run_import`, `agc_sparse_run_import_copied`, `agc_unit_shadow`, `agc_storage_cpu_snapshot`, `agc_descriptor_pool_recycling`, `agc_draw_snapshot_cap`, `agc_draw_snapshot_epoch`, `agc_multisample_guest_access`, `agc_draw_inputs_in_place`, `agc_pending_write_snapshot`, `agc_resident_present`, `agc_queued_write_groups`, `agc_tiled_resolve`, `agc_slice_dirty`, `agc_metadata_pass`, `agc_host_import_second_mapping`, `agc_pending_key_stores`, `agc_shadowed_key_stores`, `agc_sample_dumps`, `agc_driver_vertex_target_range_copied`, `agc_driver_vertex_target_range_imported`, `agc_driver_undithered_alpha_to_coverage_state`, `agc_driver_msaa_dcc_state`, `agc_driver_alpha_to_coverage_state`, `agc_driver_prepared_graphics_prebuild_unset`, `agc_driver_prepared_graphics_prebuild_0`, `agc_driver_prepared_graphics_prebuild_1`, `agc_driver_graphics`, `agc_driver_f16_fma_denormal_modes`, `agc_driver_linear_target_resident`, `agc_driver_prepared_graphics`, `agc_driver_prepared_unregistered_graphics`, `agc_driver_storage_write_back_overhang`, `agc_sparse_buffer_holes`, `agc_pipeline_journal`, `agc_pipeline_library_clear_waits_for_build`, `agc_descriptor_pool_reset_failure`, `agc_driver_address_space_teardown`, `agc_compute_descriptor_layout_flags`, `agc_driver_covered_centroid_state` AI-assisted: yes (runs made on the device above).
github-actions[bot] commented 2026-10-18 19:34:19 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-18T19:34:19Z.


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:6254220512 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6730#issuecomment-6254220512). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-18T19:34:19Z. --- <!-- 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`.
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!6730
No description provided.