fix(agc): honor the requested GPU trace capacity #20372

Merged
JJenkx merged 2 commits from upstream-pr/20372 into main 2026-11-26 09:17:51 +00:00
JJenkx commented 2026-11-15 03:05:53 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-11-15T03:05:53Z.


What

Honor APS5_TRACE_EVENTS for GPU ranges using the same validated capacity parser as CPU trace buffers. Previously the GPU vector always reserved 262144 entries and used its allocation capacity as the limit, so increasing the setting still lost GPU events and reducing it was ignored. Store and enforce the requested logical limit when the capture window opens.

A Kao diagnostic motivated this change: requesting 4194304 events still lost 11257 GPU timeline ranges. This fixes capture configuration; it makes no FPS or title-unblock claim.

The Windows regression now sets its trace directory with _wputenv_s, matching the runtime’s wide environment reader. GpuRange() and its private GPU state definitions reside in the driver translation unit, so the test EXE inserts into the same DLL-owned capture state as Present(). This addresses both reported fixture failures.

Tested

Source-only refresh 2026-11-23: head 3972ceb8ad3abf229e6cf9fe7c9bccf868147464 rebased onto main b8b8f49250f3054cb450636839b4d8c9a905f7d1 as two linear commits, with no merge commits. Both patches are unchanged by git range-diff; newer upstream header declarations and summaryFile.close() are preserved. Diff/conventions checks pass. Windows (2026-11-23, verified on this exact head): RX 6700 XT, Khronos validation 1.4.309. agc_gpu_trace_capacity_small and _large pass 3/3 with the validation layer inserted in every run, 0 VUID-, nothing skipped; agc_performance_trace passes 3/3. The control (main b8b8f49250 plus only this PR's test files) fails both capacity cases 3/3 with the runtime GPU trace ignored the requested capacity. Windows result. The Linux qualification below retains its original pins.

Current-main refresh (2026-11-19): head b8f38e1c0c031c7e401464003cda724f5b394b37 is one linear commit on main aa698cdc084344c180836f3bc6fee58a4051384b. Resolved the documentation conflict while preserving main’s newer trace-digest loss explanation. Production and fixture added/removed lines are unchanged from the previous head. Same five registrations and fixture sources on both sides: the fixed-capacity control passes the CPU trace and two depth rendering tests, failing only the two capacity witnesses; the change passes all five. Control requested 1/submitted 2 retains 2, and requested 262145 retains 262144. The change retains exactly 1 with 1 lost range and all 262145 without loss. The control includes the shared SDK-owned state seam while retaining the fixed capacity, so it is main plus test instrumentation. Both arms have four calibrated-device/rendering cases with validation-layer insertion and AMD selection, zero skips or VUIDs. The two capacity cases inject synthetic ranges; the two depth cases execute rendering. Full SDK/relinker builds pass, frozen banks stay unchanged and builder source/configuration are restored. No new native-title, FPS, Windows or NVIDIA execution claim; earlier external evidence retains its original pins. Build logs, verbose CTest/JUnit, exact patches, symbol ownership and bank manifests, SHA-256 d1786f7d565ef2c398d0bf834067b85f5efbac31c80214360dd641b22d990aff (download and all payload hashes verified).

Historical qualification below retains its own source pins.

Refreshed on main 324dc5aae57113ce9ed9fa707eb2ef0814eb76dc; change 0476b63b8ae4bc58017c481306b2c1991d30f281. Same Linux AMD Radeon RX 6650 XT, RADV/Mesa 26.2.7, validation 1.4.363 (headers 335), required Vulkan and no shader cache:

  • Control 1870731ecd2d79785096a7c31db5445db8410cd9 includes identical fixtures and the state-ownership bridge, retaining main’s original capacity behavior. CPU trace and two depth GPU cases pass. Both capacity cases fail as expected: requested 1/submitted 2 retains 2; requested/submitted 262145 retains 262144. This is main plus instrumentation, not an unmodified-main executable.
  • Change passes all five cases. Small retains exactly 1 and reports exactly 1 lost GPU range; large retains all 262145 with no loss. Each GPU arm records four real-device selections and validation-layer insertions, zero skips, missing-layer diagnostics or VUIDs.
  • Full SDK/relinker and focused test builds pass for both arms. Both 835-file frozen banks remain unchanged. Capture cases inject calibrated synthetic ranges into the actual runtime; the existing depth tests execute GPU rendering.
  • Dynamic symbol inspection confirms the Linux test EXE imports GpuRange() and defines none of its GPU capture state; insertion and storage are defined by the driver.
  • Conventions pass. Official scan: 1547 open PRs. Manually reconciled self-overlap #20372, fail-closed shared files #12828/#18029 and adjacent #13809. The latter adds a private storage-counter field beside the buffering declaration; a rebase must preserve both changes. No semantic dependency.
  • Latest source-only merge is clean (exact snapshot in the artifact). No native-title or FPS claim; Windows is confirmed on 3972ceb8ad in the 2026-11-23 result above.

Full refreshed qualification evidence, SHA-256 17de82ad5456431db72d1f480e3fe1f2939e915c9480e48c0dcfd17eeac55190. All 42 members verified after download, including source/control patches, build logs, verbose CTest/JUnit, symbol inspection, frozen-bank manifests and overlap review. Earlier Linux evidence remains in the PR history.

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 and the licence notice of code adapted from upstream (see AGENTS.md)
  • 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: none (instrumentation correctness)
  • GPUs tested: AMD Radeon RX 6650 XT; RADV/Mesa 26.2.7; Arch Linux, kernel 7.2.14-arch1-1
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5318940979 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/20372). Originally posted by [JJenkx](https://github.com/JJenkx) on 2026-11-15T03:05:53Z. --- ### What Honor `APS5_TRACE_EVENTS` for GPU ranges using the same validated capacity parser as CPU trace buffers. Previously the GPU vector always reserved 262144 entries and used its allocation capacity as the limit, so increasing the setting still lost GPU events and reducing it was ignored. Store and enforce the requested logical limit when the capture window opens. A Kao diagnostic motivated this change: requesting 4194304 events still lost 11257 GPU timeline ranges. This fixes capture configuration; it makes no FPS or title-unblock claim. The Windows regression now sets its trace directory with `_wputenv_s`, matching the runtime’s wide environment reader. `GpuRange()` and its private GPU state definitions reside in the driver translation unit, so the test EXE inserts into the same DLL-owned capture state as `Present()`. This addresses both reported fixture failures. ### Tested **Source-only refresh 2026-11-23:** head `3972ceb8ad3abf229e6cf9fe7c9bccf868147464` rebased onto main `b8b8f49250f3054cb450636839b4d8c9a905f7d1` as two linear commits, with no merge commits. Both patches are unchanged by `git range-diff`; newer upstream header declarations and `summaryFile.close()` are preserved. Diff/conventions checks pass. **Windows (2026-11-23, verified on this exact head):** RX 6700 XT, Khronos validation 1.4.309. `agc_gpu_trace_capacity_small` and `_large` pass 3/3 with the validation layer inserted in every run, 0 `VUID-`, nothing skipped; `agc_performance_trace` passes 3/3. The control (`main` `b8b8f49250` plus only this PR's test files) fails both capacity cases 3/3 with `the runtime GPU trace ignored the requested capacity`. [Windows result](https://github.com/boykopovar/AnyPS5/pull/20372#issuecomment-7093650181). The Linux qualification below retains its original pins. **Current-main refresh (2026-11-19):** head `b8f38e1c0c031c7e401464003cda724f5b394b37` is one linear commit on main `aa698cdc084344c180836f3bc6fee58a4051384b`. Resolved the documentation conflict while preserving main’s newer trace-digest loss explanation. Production and fixture added/removed lines are unchanged from the previous head. Same five registrations and fixture sources on both sides: the fixed-capacity control passes the CPU trace and two depth rendering tests, failing only the two capacity witnesses; the change passes all five. Control requested 1/submitted 2 retains 2, and requested 262145 retains 262144. The change retains exactly 1 with 1 lost range and all 262145 without loss. The control includes the shared SDK-owned state seam while retaining the fixed capacity, so it is main plus test instrumentation. Both arms have four calibrated-device/rendering cases with validation-layer insertion and AMD selection, zero skips or VUIDs. The two capacity cases inject synthetic ranges; the two depth cases execute rendering. Full SDK/relinker builds pass, frozen banks stay unchanged and builder source/configuration are restored. No new native-title, FPS, Windows or NVIDIA execution claim; earlier external evidence retains its original pins. [Build logs, verbose CTest/JUnit, exact patches, symbol ownership and bank manifests](https://github.com/JJenkx/AnyPS5/releases/download/linux-validation-20261023/pr20372-refresh-b8f38e1c-amd-20261119.tar.gz), SHA-256 `d1786f7d565ef2c398d0bf834067b85f5efbac31c80214360dd641b22d990aff` (download and all payload hashes verified). Historical qualification below retains its own source pins. Refreshed on main `324dc5aae57113ce9ed9fa707eb2ef0814eb76dc`; change `0476b63b8ae4bc58017c481306b2c1991d30f281`. Same Linux AMD Radeon RX 6650 XT, RADV/Mesa 26.2.7, validation 1.4.363 (headers 335), required Vulkan and no shader cache: - Control `1870731ecd2d79785096a7c31db5445db8410cd9` includes identical fixtures and the state-ownership bridge, retaining main’s original capacity behavior. CPU trace and two depth GPU cases pass. Both capacity cases fail as expected: requested 1/submitted 2 retains 2; requested/submitted 262145 retains 262144. This is main plus instrumentation, not an unmodified-main executable. - Change passes all five cases. Small retains exactly 1 and reports exactly 1 lost GPU range; large retains all 262145 with no loss. Each GPU arm records four real-device selections and validation-layer insertions, zero skips, missing-layer diagnostics or VUIDs. - Full SDK/relinker and focused test builds pass for both arms. Both 835-file frozen banks remain unchanged. Capture cases inject calibrated synthetic ranges into the actual runtime; the existing depth tests execute GPU rendering. - Dynamic symbol inspection confirms the Linux test EXE imports `GpuRange()` and defines none of its GPU capture state; insertion and storage are defined by the driver. - Conventions pass. Official scan: 1547 open PRs. Manually reconciled self-overlap #20372, fail-closed shared files #12828/#18029 and adjacent #13809. The latter adds a private storage-counter field beside the buffering declaration; a rebase must preserve both changes. No semantic dependency. - Latest source-only merge is clean (exact snapshot in the artifact). No native-title or FPS claim; Windows is confirmed on `3972ceb8ad` in the 2026-11-23 result above. [Full refreshed qualification evidence](https://github.com/JJenkx/AnyPS5/releases/download/linux-validation-20261023/gpu-trace-capacity-windows-fixture-main324dc5-linux-20261115.tar.gz), SHA-256 `17de82ad5456431db72d1f480e3fe1f2939e915c9480e48c0dcfd17eeac55190`. All 42 members verified after download, including source/control patches, build logs, verbose CTest/JUnit, symbol inspection, frozen-bank manifests and overlap review. Earlier Linux evidence remains in the PR history. <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> ### 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) and the licence notice of code adapted from upstream (see AGENTS.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: none (instrumentation correctness) - [x] GPUs tested: AMD Radeon RX 6650 XT; RADV/Mesa 26.2.7; Arch Linux, kernel 7.2.14-arch1-1 - [x] AI-assisted: yes
MarcZX10 commented 2026-11-15 03:48:17 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-15T03:48:17Z.

Review: APPROVED


Reviewed — looks good

The GPU trace capacity change and all four changed files were reviewed at head 9b0be379eca36276da8cea403cc32ad387ac0fd8; the capacity is parsed and enforced consistently, and the new tests cover small and large limits.

What I ran

No build or test commands were run. I inspected the prepared diff and used the pinned repository reader for changed lines and targeted context.

Results

Check Result Note
Changed code review passed All changed files read
Build and tests not run Author reports Linux qualification; not independently verified

Findings

Blocking

None.

Non-blocking

None.

Not verified

Build and test results, including the author-reported Linux qualification, were not independently verified. Windows behavior was not verified. No files were excluded from the review; all four changed files listed in the manifest were read.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5908895485 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/20372#pullrequestreview-5908895485). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-15T03:48:17Z. **Review:** APPROVED --- # Reviewed — looks good The GPU trace capacity change and all four changed files were reviewed at head `9b0be379eca36276da8cea403cc32ad387ac0fd8`; the capacity is parsed and enforced consistently, and the new tests cover small and large limits. ## What I ran No build or test commands were run. I inspected the prepared diff and used the pinned repository reader for changed lines and targeted context. ## Results | Check | Result | Note | |---|---|---| | Changed code review | passed | All changed files read | | Build and tests | not run | Author reports Linux qualification; not independently verified | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified Build and test results, including the author-reported Linux qualification, were not independently verified. Windows behavior was not verified. No files were excluded from the review; all four changed files listed in the manifest were read. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-15 08:51:47 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-15T08:51:47Z.

Review: APPROVED


Reviewed — looks good

Nothing blocks this change; the implementation uses the validated capacity parser and enforces the requested GPU range limit.

What I ran

Reviewed head 0476b63b8ae4bc58017c481306b2c1991d30f281 using the prepared diff and the pinned repo_read.py reader. No build or tests were run in this review.

Results

Check Result Note
Changed code review passed Capacity and state ownership inspected
Build and tests not run Author-reported qualification was not independently run

Findings

Blocking

None.

Non-blocking

None.

Not verified

Windows execution, console behavior, and the author-reported Linux builds and GPU test runs were not independently verified. Read all four changed files listed in the manifest: PerformanceTrace.hpp, PerformanceTrace.cpp, GpuTraceCapacity.cpp, and agc_gpu_trace_capacity_tests.cmake. The bundle's files.json was unavailable; no excluded-file inventory was verified.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5909917495 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/20372#pullrequestreview-5909917495). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-15T08:51:47Z. **Review:** APPROVED --- # Reviewed — looks good Nothing blocks this change; the implementation uses the validated capacity parser and enforces the requested GPU range limit. ## What I ran Reviewed head `0476b63b8ae4bc58017c481306b2c1991d30f281` using the prepared diff and the pinned `repo_read.py` reader. No build or tests were run in this review. ## Results | Check | Result | Note | |---|---|---| | Changed code review | passed | Capacity and state ownership inspected | | Build and tests | not run | Author-reported qualification was not independently run | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified Windows execution, console behavior, and the author-reported Linux builds and GPU test runs were not independently verified. Read all four changed files listed in the manifest: `PerformanceTrace.hpp`, `PerformanceTrace.cpp`, `GpuTraceCapacity.cpp`, and `agc_gpu_trace_capacity_tests.cmake`. The bundle's `files.json` was unavailable; no excluded-file inventory was verified. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-17 16:23:47 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-17T16:23:47Z.

Review: COMMENTED


Reviewed — no blocking findings

Nothing blocks this; the points below are optional.

What I ran

  • Exact head: 83b67d71336339ec3d07337910cdcfbee4740c80, base main.
  • Read the description, commits and manifest, and the changed hunks of all five changed files in diff.patch.
  • Targeted reads at head with the repository reader:
python3 repo_read.py cat core/libs/prx/libSceAgcDriver/Execution/src/PerformanceTrace.cpp 330 400
python3 repo_read.py search ParseCapacity
python3 repo_read.py search VulkanTestSkipped
python3 repo_read.py search "cmake/agc_"
python3 repo_read.py search GpuRangeCapacity
python3 repo_read.py search "262,144"
  • Nothing was built or compiled. No test was run in this pass.
  • Approval is withheld: the hosted CI state for this head is not in the run folder, and files.json was not opened.

Results

Check Result Note
Changed hunks (5 files) passed Read through diff.patch
Window-open path passed ParseCapacity runs only when a window opens
Test registration passed Fragment is picked up by the file(GLOB) in CMakeLists.txt
Doc consistency failed BUILD.md:324 still says 262,144 ranges
Build and test runs not run No build in this pass
Hosted CI not run No CI state in the run folder

Findings

Blocking

None.

Non-blocking

  1. docs/dev/BUILD.md:314 — The new sentence says the GPU range buffer "uses the same count". The unchanged line docs/dev/BUILD.md:324 still says "The track keeps up to 262,144 ranges; more set trace_dropped", which is wrong for a windowed trace now. Changing that line to the APS5_TRACE_EVENTS count would keep the two in step.
  2. core/libs/prx/libSceAgcDriver/Execution/src/PerformanceTrace.cpp:378 — gpuRanges.reserve(gpuCapacity) allocates when the window opens. The memory paragraph at docs/dev/BUILD.md:314 only counts the slice buffers. At 4194304 the reservation is that count times sizeof(TraceGpuRange); I did not check the struct size. The doc should mention the GPU range reservation.

Not verified

  • Building libSceAgcDriver and the new agc_gpu_trace_capacity_tests executable, on Linux or Windows.
  • The author's Linux results: the 11257 lost ranges, the five-case pass, the frozen 835-file banks and the symbol inspection. These are the author's report, not runs I performed.
  • The Windows _wputenv_s branch and the DLL-owned GPU state.
  • The overlap scan and the note on #12828, #18029 and #13809.
  • Hosted CI for head 83b67d7.
  • Full text: none of the five changed files was read in full from files/. The review covers their diff hunks and the targeted head reads above. files.json was not opened.
  • Cost: GpuRange moved from the header into the .cpp, so each call is now out of line. No measurement was made.

To get this to a good state

Nothing is required.

Optional: update docs/dev/BUILD.md:324 to the APS5_TRACE_EVENTS count, and add the GPU range reservation to the memory note at docs/dev/BUILD.md:314.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5942291915 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/20372#pullrequestreview-5942291915). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-17T16:23:47Z. **Review:** COMMENTED --- # Reviewed — no blocking findings Nothing blocks this; the points below are optional. ## What I ran - Exact head: `83b67d71336339ec3d07337910cdcfbee4740c80`, base `main`. - Read the description, commits and manifest, and the changed hunks of all five changed files in `diff.patch`. - Targeted reads at head with the repository reader: ```sh python3 repo_read.py cat core/libs/prx/libSceAgcDriver/Execution/src/PerformanceTrace.cpp 330 400 python3 repo_read.py search ParseCapacity python3 repo_read.py search VulkanTestSkipped python3 repo_read.py search "cmake/agc_" python3 repo_read.py search GpuRangeCapacity python3 repo_read.py search "262,144" ``` - Nothing was built or compiled. No test was run in this pass. - Approval is withheld: the hosted CI state for this head is not in the run folder, and `files.json` was not opened. ## Results | Check | Result | Note | |---|---|---| | Changed hunks (5 files) | passed | Read through `diff.patch` | | Window-open path | passed | `ParseCapacity` runs only when a window opens | | Test registration | passed | Fragment is picked up by the `file(GLOB)` in `CMakeLists.txt` | | Doc consistency | failed | `BUILD.md:324` still says 262,144 ranges | | Build and test runs | not run | No build in this pass | | Hosted CI | not run | No CI state in the run folder | ## Findings **Blocking** None. **Non-blocking** 1. `docs/dev/BUILD.md:314` — The new sentence says the GPU range buffer "uses the same count". The unchanged line `docs/dev/BUILD.md:324` still says "The track keeps up to 262,144 ranges; more set `trace_dropped`", which is wrong for a windowed trace now. Changing that line to the `APS5_TRACE_EVENTS` count would keep the two in step. 2. `core/libs/prx/libSceAgcDriver/Execution/src/PerformanceTrace.cpp:378` — `gpuRanges.reserve(gpuCapacity)` allocates when the window opens. The memory paragraph at `docs/dev/BUILD.md:314` only counts the slice buffers. At `4194304` the reservation is that count times `sizeof(TraceGpuRange)`; I did not check the struct size. The doc should mention the GPU range reservation. ## Not verified - Building `libSceAgcDriver` and the new `agc_gpu_trace_capacity_tests` executable, on Linux or Windows. - The author's Linux results: the 11257 lost ranges, the five-case pass, the frozen 835-file banks and the symbol inspection. These are the author's report, not runs I performed. - The Windows `_wputenv_s` branch and the DLL-owned GPU state. - The overlap scan and the note on #12828, #18029 and #13809. - Hosted CI for head `83b67d7`. - Full text: none of the five changed files was read in full from `files/`. The review covers their diff hunks and the targeted head reads above. `files.json` was not opened. - Cost: `GpuRange` moved from the header into the `.cpp`, so each call is now out of line. No measurement was made. ## To get this to a good state Nothing is required. Optional: update `docs/dev/BUILD.md:324` to the `APS5_TRACE_EVENTS` count, and add the GPU range reservation to the memory note at `docs/dev/BUILD.md:314`.
MarcZX10 commented 2026-11-21 00:21:44 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T00:21:44Z.

Review: APPROVED


Reviewed — looks good

Nothing blocks this change; the inspected implementation and tests support merging.

What I ran

Reviewed head b8f38e1c0c031c7e401464003cda724f5b394b37. I read the prepared description, commits, manifest, diff, and all five changed files. I did not run commands or tests; the build and test outcomes in the PR description are author-reported.

Results

Check Result Note
Changed code review passed Capacity is parsed and enforced at window open.
Tests and builds not run Reported results were not independently verified.

Findings

Blocking

None.

Non-blocking

None.

Not verified

No tests or builds were run. Windows, native-title behavior, and the attached qualification evidence were not independently verified. All five changed files listed in the manifest were read; files.json was not available through the reader. No changed files were excluded by the manifest.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6001194642 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/20372#pullrequestreview-6001194642). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-21T00:21:44Z. **Review:** APPROVED --- # Reviewed — looks good Nothing blocks this change; the inspected implementation and tests support merging. ## What I ran Reviewed head `b8f38e1c0c031c7e401464003cda724f5b394b37`. I read the prepared description, commits, manifest, diff, and all five changed files. I did not run commands or tests; the build and test outcomes in the PR description are author-reported. ## Results | Check | Result | Note | |---|---|---| | Changed code review | passed | Capacity is parsed and enforced at window open. | | Tests and builds | not run | Reported results were not independently verified. | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified No tests or builds were run. Windows, native-title behavior, and the attached qualification evidence were not independently verified. All five changed files listed in the manifest were read; `files.json` was not available through the reader. No changed files were excluded by the manifest. ## To get this to a good state Nothing is required.
malekaifa commented 2026-11-23 02:45:20 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by malekaifa on 2026-11-23T02:45:20Z.

Review: CHANGES_REQUESTED


@JJenkx The production capacity change still looks sound, but current head b8f38e1c0c031c7e401464003cda724f5b394b37 has a confirmed Windows regression in its new test cleanup. Your Nov. 20 rerun showed both capacity assertions complete successfully, then std::filesystem::remove_all(directory) throws because summaryFile still has aps5-summary.jsonl open; adding summaryFile.close() before cleanup makes both cases pass 3/3. Please fold that test-only close into the branch and rerun the Windows capacity cases. No production behavior change is requested. AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6016004717 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/20372#pullrequestreview-6016004717). Originally posted by [malekaifa](https://github.com/malekaifa) on 2026-11-23T02:45:20Z. **Review:** CHANGES_REQUESTED --- @JJenkx The production capacity change still looks sound, but current head `b8f38e1c0c031c7e401464003cda724f5b394b37` has a confirmed Windows regression in its new test cleanup. Your Nov. 20 rerun showed both capacity assertions complete successfully, then `std::filesystem::remove_all(directory)` throws because `summaryFile` still has `aps5-summary.jsonl` open; adding `summaryFile.close()` before cleanup makes both cases pass 3/3. Please fold that test-only close into the branch and rerun the Windows capacity cases. No production behavior change is requested. AI-assisted: yes
malekaifa commented 2026-11-23 06:12:13 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by malekaifa on 2026-11-23T06:12:13Z.

Review: APPROVED


Verified the requested Windows test-cleanup correction on exact head 1d123d90681cdd231125ab193fc0ee219b5026da. It is a one-commit fast-forward from reviewed b8f38e1c0c and changes only GpuTraceCapacity.cpp by closing summaryFile before the final std::filesystem::remove_all(directory). That is exactly the requested fix for the confirmed Windows open-file teardown failure; production GPU-capacity behavior is unchanged. The earlier Windows reproduction reported both capacity cases passing 3/3 with this close in place. No remaining code blocker from my review. AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6017263444 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/20372#pullrequestreview-6017263444). Originally posted by [malekaifa](https://github.com/malekaifa) on 2026-11-23T06:12:13Z. **Review:** APPROVED --- Verified the requested Windows test-cleanup correction on exact head `1d123d90681cdd231125ab193fc0ee219b5026da`. It is a one-commit fast-forward from reviewed `b8f38e1c0c` and changes only `GpuTraceCapacity.cpp` by closing `summaryFile` before the final `std::filesystem::remove_all(directory)`. That is exactly the requested fix for the confirmed Windows open-file teardown failure; production GPU-capacity behavior is unchanged. The earlier Windows reproduction reported both capacity cases passing 3/3 with this close in place. No remaining code blocker from my review. AI-assisted: yes
MarcZX10 commented 2026-11-23 06:24:05 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-23T06:24:05Z.

Review: APPROVED


Reviewed — looks good

Nothing blocks this change; the requested GPU trace capacity is enforced and a regression test covers small and large limits.

What I ran

Reviewed head 1d123d90681cdd231125ab193fc0ee219b5026da using the prepared diff and pinned reader. No commands or tests were run.

Results

Check Result Note
Changed code review passed All five changed files read
Tests not run Author-reported results only

Findings

Blocking

None.

Non-blocking

None.

Not verified

Tests and runtime behavior were not independently executed. The author reports Linux AMD validation; Windows confirmation remains pending. Read all five files marked reviewed; no files were excluded.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6017350572 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/20372#pullrequestreview-6017350572). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-23T06:24:05Z. **Review:** APPROVED --- # Reviewed — looks good Nothing blocks this change; the requested GPU trace capacity is enforced and a regression test covers small and large limits. ## What I ran Reviewed head `1d123d90681cdd231125ab193fc0ee219b5026da` using the prepared diff and pinned reader. No commands or tests were run. ## Results | Check | Result | Note | |---|---|---| | Changed code review | passed | All five changed files read | | Tests | not run | Author-reported results only | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified Tests and runtime behavior were not independently executed. The author reports Linux AMD validation; Windows confirmation remains pending. Read all five files marked reviewed; no files were excluded. ## To get this to a good state Nothing is required.
malekaifa commented 2026-11-23 06:47:40 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by malekaifa on 2026-11-23T06:47:40Z.

Review: APPROVED


Re-reviewed exact head 3972ceb8ad3abf229e6cf9fe7c9bccf868147464 after the current-main refresh. The conflict was limited to PerformanceTrace.hpp; the refreshed diff preserves main's newer header content plus the previously reviewed out-of-line GpuRange, explicit GPU capacity/state storage, and requested APS5_TRACE_EVENTS enforcement. The test still closes summaryFile before Windows cleanup. No new production behavior was introduced by the rebase, and GitHub reports the PR mergeable again. No remaining code blocker from my review. AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6017520725 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/20372#pullrequestreview-6017520725). Originally posted by [malekaifa](https://github.com/malekaifa) on 2026-11-23T06:47:40Z. **Review:** APPROVED --- Re-reviewed exact head `3972ceb8ad3abf229e6cf9fe7c9bccf868147464` after the current-main refresh. The conflict was limited to `PerformanceTrace.hpp`; the refreshed diff preserves main's newer header content plus the previously reviewed out-of-line `GpuRange`, explicit GPU capacity/state storage, and requested `APS5_TRACE_EVENTS` enforcement. The test still closes `summaryFile` before Windows cleanup. No new production behavior was introduced by the rebase, and GitHub reports the PR mergeable again. No remaining code blocker from my review. AI-assisted: yes
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!20372
No description provided.