perf(agc): bound instance-indexed guest buffers by the draw's instance range #14032

Open
ntamas94 wants to merge 24 commits from upstream-pr/14032 into main
ntamas94 commented 2026-10-31 16:40:32 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ntamas94 on 2026-10-31T16:40:32Z.


What

The follow-up #9897's review asked for (the instance-stream data point and savvaniss's reply). Stacked on #9897: this branch is main with #9897 merged plus two commits.

#9897 cuts a read-only V# that an IDXEN load indexes by the vertex index to the draw's last vertex. A load indexed by the instance index kept the whole V#: vertexIndexedExtent accepted only the VertexIndex builtin, so such an element had bufferVertexExtent 0.

  • vertexIndexedExtent accepts the InstanceIndex builtin under the same conditions (an IDXEN read with an immediate offset and SOFFSET) and marks the extent as indexed by the instance: BufferResource::vertexExtentByInstance, DescriptorBinding::bufferVertexByInstance. A V# read by both indices keeps no extent.
  • The driver passes both bounds of a direct draw as VertexReach: the last vertex, as before, and ShaderResources::LastInstance, firstInstance + instanceCount - 1 computed in 64 bits. VertexBoundBytes picks the bound the element is indexed by. An unknown bound (indirect, mesh, tessellation, no instances, or a last instance that does not fit in 32 bits) leaves the element whole, as before.
  • The shader disk cache carries the new field (BufferResource 13 to 14 fields) and the flag list; its format version is 65.

Crysis Remastered (CUSA18659, PS4 GCN) binds its instance streams as V#s over whole heaps: stride 64, 80 and 96, 524,288 records, 40 to 50 MiB each, read by the instance id in the linked fetch subroutine (the data points in #9897's thread). On this branch they are bound to the draw's instances. Two captures of the same scripted scene (level "Contact", no camera movement), APS5_TRACE_SECONDS=310:30, APS5_PROFILE_DRAW=1, same machine; only libSceAgcDriver.prx differs (the recompiler is linked into it). Both runs set APS5_ALLOW_READ_TARGET_ALIAS=1, a local allowance the base needs to reach the level (without it the base stops at shader buffer aliases the render target; on this branch the allowance is a no-op, see below).

{"commit":"aed851970874","dirty":false,"env":{"APS5_ALLOW_READ_TARGET_ALIAS":"1","APS5_NETCTL_STANDINS":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_PLAYGO_UNLISTED_CHUNKS":"installed","APS5_PROFILE_DRAW":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"310:30"},"gpu":"NVIDIA GeForce RTX 2080","driver":"NVIDIA 617.14","os":"Windows 10.0.26200","cpu":"Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz","cpu_threads":16,"memory_mib":32713,"resolution":"1920x1080","window":{"spec":"seconds 310:30","first_present":7650,"ms":30036.29},"presents":248,"frame_ms":{"p50":117.939,"p90":148.509,"p99":187.671,"max":212.464},"gpu_busy_ms_per_present":37.88,"worker_busy_pct":{"queue worker 0x0":94.495},"top_phases_ms_per_frame":{"Driver.Packet":114.074,"Driver.Packet.draw":83.101,"Driver.Draw":81.842,"Graphics.Draw":78.654,"Graphics.Draw.draw_and_resource_release":71.961,"Driver.Draw.shader_compile_and_link":56.845,"Shader.DrawStage":46.724,"Shader.DrawStage.materialize":24.72},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":4.685,"events_lost":1395185,"totals_full":false},"draw committer":{"events_full_after_s":9.807,"events_lost":531658,"totals_full":false}},"trace":"aps5-trace-aed851970874-51692.json.gz"}
{"commit":"17f5582780ad","dirty":false,"env":{"APS5_ALLOW_READ_TARGET_ALIAS":"1","APS5_NETCTL_STANDINS":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_PLAYGO_UNLISTED_CHUNKS":"installed","APS5_PROFILE_DRAW":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"310:30"},"gpu":"NVIDIA GeForce RTX 2080","driver":"NVIDIA 617.14","os":"Windows 10.0.26200","cpu":"Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz","cpu_threads":16,"memory_mib":32713,"resolution":"1920x1080","window":{"spec":"seconds 310:30","first_present":6787,"ms":30016.814},"presents":294,"frame_ms":{"p50":94.316,"p90":120.831,"p99":234.404,"max":277.481},"gpu_busy_ms_per_present":35.419,"worker_busy_pct":{"queue worker 0x0":94.281},"top_phases_ms_per_frame":{"Driver.Packet":95.916,"Driver.Packet.draw":69.004,"Driver.Draw":67.929,"Graphics.Draw":52.593,"Driver.Draw.shader_compile_and_link":49.352,"Graphics.Draw.draw_and_resource_release":46.813,"Shader.DrawStage":40.728,"Shader.DrawStage.materialize":22.841},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":5.033,"events_lost":1311460,"totals_full":false},"draw committer":{"events_full_after_s":12.35,"events_lost":389534,"totals_full":false}},"trace":"aps5-trace-17f5582780ad-8116.json.gz"}
  • tools/performance_compare.py (the captures are windows, so trace_digest.py has no interval rows to print):

    base branch change
    presents in 30 s 248 294 +18.5%
    frame p50 117.9 ms 94.3 ms -20.0%
    frame p90 148.5 ms 120.8 ms -18.6%
    frame p99 187.7 ms 234.4 ms +24.9% (two presents above 230 ms in the branch window)
    mean frame 121.1 ms 102.1 ms -15.7%
    GPU busy per present 37.9 ms 35.4 ms -6.5%
    Graphics.Draw 78.7 ms/frame 52.6 ms/frame -33.1%
    Shader.DrawStage 46.7 ms/frame 40.7 ms/frame -12.8%
  • The storage write-backs the heap-wide read-only V#s forced ("imported buffer region": a bound range over a pending G-buffer image is written back to guest memory before the draw) go from 429 per 10 s (4,428 MiB) to none, and the draw resource cache's misses from 63,819 to 7,847 per 10 s (the moved buffers are now small enough for the moved-snapshot path); the last 10 s report of each run.

  • The read-only heap-wide V#s no longer reach the shader buffer aliases the render target check: a 450 s scripted run into the level without the allowance reports 0 such lines on this branch, where the base stops at that check at 257 s.

Tested

Windows 11 Pro 10.0.26200, WinLibs GCC, Release with BUILD_TESTING=ON, NVIDIA GeForce RTX 2080 (driver 617.14), ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1, APS5_NO_PIPELINE_JOURNAL=1.

Trees. main 474030e584 with #9897 (04db012394, its current head) merged is the base, d0c72a155b; this branch is that merge plus the two commits. Both trees were built and run on the same machine.

Focused set, ctest -R "shader_disk_cache|agc_driver_graphics$|vertex_indexed_ring|agc_shader_vertex_index_extents|agc_shader_memory|agc_driver_(draw|moved|template|resource)": 51 of 51 pass on both trees. With VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation and VK_LOADER_DEBUG=warn,error, ctest -V: 51 of 51 on both, the loader's adding layers "VK_LAYER_KHRONOS_validation" line 124 times in each log, no was not found but was requested by env var VK_INSTANCE_LAYERS, VUID- lines: 0 on the base, 0 on this branch (base log, branch log).

  • agc_shader_vertex_index_extents: two new cases, an instance-indexed buffer_load_format_xyzw (extent 16, marked by instance) and a V# read by both the vertex and the instance index (no extent).
  • agc_driver_graphics: VertexBoundBytes cuts an instance-indexed element to the draw's last instance, binds the first instance alone, leaves the element whole without an instance bound, and does not cut a vertex-indexed element by the instance bound; LastInstance gives 4 for 3 instances from instance 2, 0 for one instance, none for no instances or for firstInstance 2 with instanceCount 0xffffffff (the element then stays whole), and 0xfffffffe for 0xffffffff instances from instance 0.
  • agc_driver_vertex_indexed_ring: two instanced draws (3 instances from instance 2, and from instance 0) whose shader stores each fetched record at instance * 16 into an output V#, compared with the ring records of the instances drawn; and an instance-indexed ring drawn up to the render target, 3 instances from instance 0 and 3 from instance 2, the bound ending 0 and 8 bytes before the target, the fetched records compared with the bytes behind the V#. Bounding the ring by instanceCount - 1 instead (ignoring firstInstance) fails the first instanced case: instance 3 reads zeros.
  • agc_driver_shader_disk_cache: round trip of the new BufferResource field and the bufferVertexByInstance flags.

Crysis Remastered (CUSA18659, PS4 GCN): the two captures above. The runs come from a local branch that boots the title (the PS4 stand-ins it needs are not in main): base aed8519708, branch that plus the two commits of this PR, both built from clean trees (dirty: false in the summaries). The earlier 10 s interval runs that found the issue agree (p50 120.6 → 89.9 ms).

Merges of main. 0f302813ce (head 1b167481dc): no conflicts. 613f9b8edf (head fe14465c3b): #12862 moved the test registrations into tests/cmake/*.cmake, so #9897's three registrations (agc_shader_vertex_index_extents, its entry in the Windows PATH list, agc_driver_vertex_range_bindings) moved into agc_shader_memory_tests.cmake and agc_driver_graphics_tests.cmake; ctest -N lists all three and agc_driver_vertex_indexed_ring. The focused set and the validation-layer run above were repeated on each merge head: 51 of 51 on the first, 52 of 52 on the second (the set now names agc_driver_vertex_range_bindings too), VUID- lines 0, the layer line present.

tools/check_conventions.py --base origin/main with this title and description: no findings.

Refresh — 2026-11-03 (Codex, AI-assisted): Merged main 086c0686c8. Retained both instance-extent and current-main shader tests, merged the Windows test PATH list, and reconciled cache layout guards (BufferResource fields 14 / size 40, DescriptorBinding size 720; main's ImageResource fields 50 / size 108). Preserved main's atomic-shared-pointer guard and the PR cache format 65. MinGW-w64 GCC 15.2 syntax-only compilation passes for ShaderDiskCache.cpp, ShaderMemory.cpp and ShaderResources.cpp using the current checkout's headers. Conventions and whitespace checks pass. No new full runtime/GPU tests or performance captures; the earlier capture evidence remains historical.

Checklist

  • Based on current main; no other open PR implements the same functions (searched open and closed boykopovar/AnyPS5 PRs for "instance-indexed", "instance extent", "bufferVertexExtent" and "fetch shader vertex range" on 2026-10-31; #9897 is the base, #9875 bounds the copy's lower end and does not touch the extent)
  • 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: #9897
  • Fixes: none
  • Unblocks: none
  • GPUs tested: NVIDIA GeForce RTX 2080, driver 617.14, Windows 11 Pro 10.0.26200
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5099491163 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14032). Originally posted by [ntamas94](https://github.com/ntamas94) on 2026-10-31T16:40:32Z. --- ### What The follow-up #9897's review asked for ([the instance-stream data point](https://github.com/boykopovar/AnyPS5/pull/9897#issuecomment-6520560668) and [savvaniss's reply](https://github.com/boykopovar/AnyPS5/pull/9897#issuecomment-6520945586)). Stacked on #9897: this branch is `main` with #9897 merged plus two commits. #9897 cuts a read-only V# that an `IDXEN` load indexes by the vertex index to the draw's last vertex. A load indexed by the **instance index** kept the whole V#: `vertexIndexedExtent` accepted only the `VertexIndex` builtin, so such an element had `bufferVertexExtent` 0. - `vertexIndexedExtent` accepts the `InstanceIndex` builtin under the same conditions (an `IDXEN` read with an immediate offset and `SOFFSET`) and marks the extent as indexed by the instance: `BufferResource::vertexExtentByInstance`, `DescriptorBinding::bufferVertexByInstance`. A V# read by both indices keeps no extent. - The driver passes both bounds of a direct draw as `VertexReach`: the last vertex, as before, and `ShaderResources::LastInstance`, `firstInstance + instanceCount - 1` computed in 64 bits. `VertexBoundBytes` picks the bound the element is indexed by. An unknown bound (indirect, mesh, tessellation, no instances, or a last instance that does not fit in 32 bits) leaves the element whole, as before. - The shader disk cache carries the new field (`BufferResource` 13 to 14 fields) and the flag list; its format version is 65. Crysis Remastered (CUSA18659, PS4 GCN) binds its instance streams as V#s over whole heaps: stride 64, 80 and 96, 524,288 records, 40 to 50 MiB each, read by the instance id in the linked fetch subroutine (the data points in #9897's thread). On this branch they are bound to the draw's instances. Two captures of the same scripted scene (level "Contact", no camera movement), `APS5_TRACE_SECONDS=310:30`, `APS5_PROFILE_DRAW=1`, same machine; only `libSceAgcDriver.prx` differs (the recompiler is linked into it). Both runs set `APS5_ALLOW_READ_TARGET_ALIAS=1`, a local allowance the base needs to reach the level (without it the base stops at `shader buffer aliases the render target`; on this branch the allowance is a no-op, see below). - Summary lines (traces: [base](https://github.com/ntamas94/AnyPS5/releases/download/pr-instance-extent-evidence/crysis-contact-base-aed851970874.json.gz), [branch](https://github.com/ntamas94/AnyPS5/releases/download/pr-instance-extent-evidence/crysis-contact-branch-17f5582780ad.json.gz); the `aps5-summary.jsonl` files: [base](https://github.com/ntamas94/AnyPS5/releases/download/pr-instance-extent-evidence/aps5-summary-window-base-aed851970874.jsonl), [branch](https://github.com/ntamas94/AnyPS5/releases/download/pr-instance-extent-evidence/aps5-summary-window-branch-17f5582780ad.jsonl)): ``` {"commit":"aed851970874","dirty":false,"env":{"APS5_ALLOW_READ_TARGET_ALIAS":"1","APS5_NETCTL_STANDINS":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_PLAYGO_UNLISTED_CHUNKS":"installed","APS5_PROFILE_DRAW":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"310:30"},"gpu":"NVIDIA GeForce RTX 2080","driver":"NVIDIA 617.14","os":"Windows 10.0.26200","cpu":"Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz","cpu_threads":16,"memory_mib":32713,"resolution":"1920x1080","window":{"spec":"seconds 310:30","first_present":7650,"ms":30036.29},"presents":248,"frame_ms":{"p50":117.939,"p90":148.509,"p99":187.671,"max":212.464},"gpu_busy_ms_per_present":37.88,"worker_busy_pct":{"queue worker 0x0":94.495},"top_phases_ms_per_frame":{"Driver.Packet":114.074,"Driver.Packet.draw":83.101,"Driver.Draw":81.842,"Graphics.Draw":78.654,"Graphics.Draw.draw_and_resource_release":71.961,"Driver.Draw.shader_compile_and_link":56.845,"Shader.DrawStage":46.724,"Shader.DrawStage.materialize":24.72},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":4.685,"events_lost":1395185,"totals_full":false},"draw committer":{"events_full_after_s":9.807,"events_lost":531658,"totals_full":false}},"trace":"aps5-trace-aed851970874-51692.json.gz"} {"commit":"17f5582780ad","dirty":false,"env":{"APS5_ALLOW_READ_TARGET_ALIAS":"1","APS5_NETCTL_STANDINS":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_PLAYGO_UNLISTED_CHUNKS":"installed","APS5_PROFILE_DRAW":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"310:30"},"gpu":"NVIDIA GeForce RTX 2080","driver":"NVIDIA 617.14","os":"Windows 10.0.26200","cpu":"Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz","cpu_threads":16,"memory_mib":32713,"resolution":"1920x1080","window":{"spec":"seconds 310:30","first_present":6787,"ms":30016.814},"presents":294,"frame_ms":{"p50":94.316,"p90":120.831,"p99":234.404,"max":277.481},"gpu_busy_ms_per_present":35.419,"worker_busy_pct":{"queue worker 0x0":94.281},"top_phases_ms_per_frame":{"Driver.Packet":95.916,"Driver.Packet.draw":69.004,"Driver.Draw":67.929,"Graphics.Draw":52.593,"Driver.Draw.shader_compile_and_link":49.352,"Graphics.Draw.draw_and_resource_release":46.813,"Shader.DrawStage":40.728,"Shader.DrawStage.materialize":22.841},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":5.033,"events_lost":1311460,"totals_full":false},"draw committer":{"events_full_after_s":12.35,"events_lost":389534,"totals_full":false}},"trace":"aps5-trace-17f5582780ad-8116.json.gz"} ``` - `tools/performance_compare.py` (the captures are windows, so `trace_digest.py` has no interval rows to print): | | base | branch | change | |---|---:|---:|---:| | presents in 30 s | 248 | 294 | +18.5% | | frame p50 | 117.9 ms | 94.3 ms | -20.0% | | frame p90 | 148.5 ms | 120.8 ms | -18.6% | | frame p99 | 187.7 ms | 234.4 ms | +24.9% (two presents above 230 ms in the branch window) | | mean frame | 121.1 ms | 102.1 ms | -15.7% | | GPU busy per present | 37.9 ms | 35.4 ms | -6.5% | | `Graphics.Draw` | 78.7 ms/frame | 52.6 ms/frame | -33.1% | | `Shader.DrawStage` | 46.7 ms/frame | 40.7 ms/frame | -12.8% | - The storage write-backs the heap-wide read-only V#s forced ("imported buffer region": a bound range over a pending G-buffer image is written back to guest memory before the draw) go from 429 per 10 s (4,428 MiB) to none, and the draw resource cache's misses from 63,819 to 7,847 per 10 s (the moved buffers are now small enough for the moved-snapshot path); the last 10 s report of each run. - The read-only heap-wide V#s no longer reach the `shader buffer aliases the render target` check: a 450 s scripted run into the level without the allowance reports 0 such lines on this branch, where the base stops at that check at 257 s. ### Tested Windows 11 Pro 10.0.26200, WinLibs GCC, Release with `BUILD_TESTING=ON`, NVIDIA GeForce RTX 2080 (driver 617.14), `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1`, `APS5_NO_PIPELINE_JOURNAL=1`. **Trees.** `main` `474030e584` with #9897 (`04db012394`, its current head) merged is the base, `d0c72a155b`; this branch is that merge plus the two commits. Both trees were built and run on the same machine. **Focused set**, `ctest -R "shader_disk_cache|agc_driver_graphics$|vertex_indexed_ring|agc_shader_vertex_index_extents|agc_shader_memory|agc_driver_(draw|moved|template|resource)"`: 51 of 51 pass on both trees. With `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation` and `VK_LOADER_DEBUG=warn,error`, `ctest -V`: 51 of 51 on both, the loader's `adding layers "VK_LAYER_KHRONOS_validation"` line 124 times in each log, no `was not found but was requested by env var VK_INSTANCE_LAYERS`, `VUID-` lines: 0 on the base, 0 on this branch ([base log](https://github.com/ntamas94/AnyPS5/releases/download/pr-instance-extent-evidence/ctest-validation-base.log), [branch log](https://github.com/ntamas94/AnyPS5/releases/download/pr-instance-extent-evidence/ctest-validation-branch.log)). - `agc_shader_vertex_index_extents`: two new cases, an instance-indexed `buffer_load_format_xyzw` (extent 16, marked by instance) and a V# read by both the vertex and the instance index (no extent). - `agc_driver_graphics`: `VertexBoundBytes` cuts an instance-indexed element to the draw's last instance, binds the first instance alone, leaves the element whole without an instance bound, and does not cut a vertex-indexed element by the instance bound; `LastInstance` gives 4 for 3 instances from instance 2, 0 for one instance, none for no instances or for `firstInstance` 2 with `instanceCount` 0xffffffff (the element then stays whole), and 0xfffffffe for 0xffffffff instances from instance 0. - `agc_driver_vertex_indexed_ring`: two instanced draws (3 instances from instance 2, and from instance 0) whose shader stores each fetched record at `instance * 16` into an output V#, compared with the ring records of the instances drawn; and an instance-indexed ring drawn up to the render target, 3 instances from instance 0 and 3 from instance 2, the bound ending 0 and 8 bytes before the target, the fetched records compared with the bytes behind the V#. Bounding the ring by `instanceCount - 1` instead (ignoring `firstInstance`) fails the first instanced case: instance 3 reads zeros. - `agc_driver_shader_disk_cache`: round trip of the new `BufferResource` field and the `bufferVertexByInstance` flags. **Crysis Remastered (CUSA18659, PS4 GCN)**: the two captures above. The runs come from a local branch that boots the title (the PS4 stand-ins it needs are not in `main`): base `aed8519708`, branch that plus the two commits of this PR, both built from clean trees (`dirty: false` in the summaries). The earlier 10 s interval runs that found the issue agree (p50 120.6 → 89.9 ms). **Merges of `main`.** `0f302813ce` (head `1b167481dc`): no conflicts. `613f9b8edf` (head `fe14465c3b`): #12862 moved the test registrations into `tests/cmake/*.cmake`, so #9897's three registrations (`agc_shader_vertex_index_extents`, its entry in the Windows PATH list, `agc_driver_vertex_range_bindings`) moved into `agc_shader_memory_tests.cmake` and `agc_driver_graphics_tests.cmake`; `ctest -N` lists all three and `agc_driver_vertex_indexed_ring`. The focused set and the validation-layer run above were repeated on each merge head: 51 of 51 on the first, 52 of 52 on the second (the set now names `agc_driver_vertex_range_bindings` too), `VUID-` lines 0, the layer line present. `tools/check_conventions.py --base origin/main` with this title and description: no findings. **Refresh — 2026-11-03 (Codex, AI-assisted):** Merged main 086c0686c8. Retained both instance-extent and current-main shader tests, merged the Windows test PATH list, and reconciled cache layout guards (BufferResource fields 14 / size 40, DescriptorBinding size 720; main's ImageResource fields 50 / size 108). Preserved main's atomic-shared-pointer guard and the PR cache format 65. MinGW-w64 GCC 15.2 syntax-only compilation passes for ShaderDiskCache.cpp, ShaderMemory.cpp and ShaderResources.cpp using the current checkout's headers. Conventions and whitespace checks pass. No new full runtime/GPU tests or performance captures; the earlier capture evidence remains historical. ### 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 (searched open and closed boykopovar/AnyPS5 PRs for "instance-indexed", "instance extent", "bufferVertexExtent" and "fetch shader vertex range" on 2026-10-31; #9897 is the base, #9875 bounds the copy's lower end and does not touch the extent) - [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: #9897 - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: NVIDIA GeForce RTX 2080, driver 617.14, Windows 11 Pro 10.0.26200 - [x] AI-assisted: yes
MarcZX10 commented 2026-10-31 16:44:41 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-31T16:44:41Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

The implementation and focused tests are reviewable, but the perf claim does not yet have attributable, comparable capture evidence required by the repository.

What I ran

Reviewed head 03ed726f5fc9ad8fa05167f8db9785bbdf788cea against base 474030e58424fefdb65e5df9f3820810fbb4553c; the declared dependency #9897 is included in the head, and the individual merge previews against the base are clean. I inspected the changed resource-tracking, draw-bound, cache, serialization, and test code; no-build precheck ran on Linux with Python 3.11.2 and Git 2.39.5. I did not build or compile AnyPS5.

python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14032 --output-dir /tmp/anyps5-14032-precheck
gh api repos/ntamas94/AnyPS5/releases/tags/pr-instance-extent-evidence --jq '{tag_name,assets:[.assets[]|{name,size}]}'
gh release download pr-instance-extent-evidence --repo ntamas94/AnyPS5 --dir /tmp/anyps5-14032-artifacts

Results

Check Result
Diff whitespace and conventions Passed in the no-build precheck.
Dependency and mergeability #9897 is included; both individual previews against 474030e58424 are clean.
PR performance evidence Incomplete: see the blocking finding.
ABI audit and test-quality helper Could not run from the isolated PR archive because those helper scripts are absent there.
Build and C++ tests Not run locally. Hosted checks were still in progress at the snapshot; Linux, write-watch, and register-context jobs were skipped.
Precheck output
All conventions checks passed.
Release asset listing
{"assets":[{"name":"aps5-summary-base-d0c72a155b.jsonl","size":34037},{"name":"aps5-summary-branch-03ed726f5f.jsonl","size":33317},{"name":"ctest-validation-base.log","size":312681},{"name":"ctest-validation-branch.log","size":312516}],"tag_name":"pr-instance-extent-evidence"}

Findings

Blocking

The perf report is not yet reproducible or comparable under the repository’s performance-report requirements and capture form:

  • The PR links two summary JSONL files, but does not paste the two selected summary records into the report. In the records around the claimed 380-second window, both files say dirty: true and commit: aed851970874, rather than identifying the stated baseline and change. The baseline record also sets APS5_ALLOW_READ_TARGET_ALIAS=1 and APS5_NO_INPLACE_MOVES=1, while the branch record sets neither; these are not matched capture settings.
  • The linked release contains the two JSONL files and two validation logs, but no aps5-trace-*.json.gz captures. The selected summary records have an empty trace field, and no trace_digest.py output is included.

Please provide the exact two summary records and trace files for the stated baseline and head, with attributable source revisions and matched scene/settings, plus the output of python3 tools/trace_digest.py <trace> for each trace. If the dirty/same-commit metadata is expected for these local builds, explain it and provide enough capture provenance to verify which source tree each binary used. I’ll recheck the report and exact head after it is updated.

Sources

Not verified

I did not compile or run the C++ tests locally, inspect a raw performance trace, or independently reproduce the author’s Windows/NVIDIA measurements. Several hosted build jobs were still running at the captured check snapshot; Linux and specialized jobs were skipped.

To get this to a good state

Add attributable, settings-matched baseline and change summary records, attach both raw traces, and include the digest output for each. I’ll rerun the relevant report and head checks on the updated revision.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5723825752 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14032#pullrequestreview-5723825752). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-31T16:44:41Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested The implementation and focused tests are reviewable, but the `perf` claim does not yet have attributable, comparable capture evidence required by the repository. ## What I ran Reviewed head `03ed726f5fc9ad8fa05167f8db9785bbdf788cea` against base `474030e58424fefdb65e5df9f3820810fbb4553c`; the declared dependency #9897 is included in the head, and the individual merge previews against the base are clean. I inspected the changed resource-tracking, draw-bound, cache, serialization, and test code; no-build precheck ran on Linux with Python 3.11.2 and Git 2.39.5. I did not build or compile AnyPS5. ```sh python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14032 --output-dir /tmp/anyps5-14032-precheck gh api repos/ntamas94/AnyPS5/releases/tags/pr-instance-extent-evidence --jq '{tag_name,assets:[.assets[]|{name,size}]}' gh release download pr-instance-extent-evidence --repo ntamas94/AnyPS5 --dir /tmp/anyps5-14032-artifacts ``` ## Results | Check | Result | |---|---| | Diff whitespace and conventions | Passed in the no-build precheck. | | Dependency and mergeability | #9897 is included; both individual previews against `474030e58424` are clean. | | PR performance evidence | Incomplete: see the blocking finding. | | ABI audit and test-quality helper | Could not run from the isolated PR archive because those helper scripts are absent there. | | Build and C++ tests | Not run locally. Hosted checks were still in progress at the snapshot; Linux, write-watch, and register-context jobs were skipped. | <details><summary>Precheck output</summary> ```text All conventions checks passed. ``` </details> <details><summary>Release asset listing</summary> ```text {"assets":[{"name":"aps5-summary-base-d0c72a155b.jsonl","size":34037},{"name":"aps5-summary-branch-03ed726f5f.jsonl","size":33317},{"name":"ctest-validation-base.log","size":312681},{"name":"ctest-validation-branch.log","size":312516}],"tag_name":"pr-instance-extent-evidence"} ``` </details> ## Findings ### Blocking The `perf` report is not yet reproducible or comparable under the repository’s [performance-report requirements](https://github.com/boykopovar/AnyPS5/blob/474030e58424fefdb65e5df9f3820810fbb4553c/CONTRIBUTING.md#branches-and-pull-requests) and [capture form](https://github.com/boykopovar/AnyPS5/blob/474030e58424fefdb65e5df9f3820810fbb4553c/.github/ISSUE_TEMPLATE/performance.yml): - The PR links two summary JSONL files, but does not paste the two selected summary records into the report. In the records around the claimed 380-second window, both files say `dirty: true` and `commit: aed851970874`, rather than identifying the stated baseline and change. The baseline record also sets `APS5_ALLOW_READ_TARGET_ALIAS=1` and `APS5_NO_INPLACE_MOVES=1`, while the branch record sets neither; these are not matched capture settings. - The linked release contains the two JSONL files and two validation logs, but no `aps5-trace-*.json.gz` captures. The selected summary records have an empty `trace` field, and no `trace_digest.py` output is included. Please provide the exact two summary records and trace files for the stated baseline and head, with attributable source revisions and matched scene/settings, plus the output of `python3 tools/trace_digest.py <trace>` for each trace. If the dirty/same-commit metadata is expected for these local builds, explain it and provide enough capture provenance to verify which source tree each binary used. I’ll recheck the report and exact head after it is updated. ### Sources - [Contribution rules at the PR base](https://github.com/boykopovar/AnyPS5/blob/474030e58424fefdb65e5df9f3820810fbb4553c/CONTRIBUTING.md#branches-and-pull-requests) - [Performance capture form at the PR base](https://github.com/boykopovar/AnyPS5/blob/474030e58424fefdb65e5df9f3820810fbb4553c/.github/ISSUE_TEMPLATE/performance.yml) - [Linked baseline summary JSONL](https://github.com/ntamas94/AnyPS5/releases/download/pr-instance-extent-evidence/aps5-summary-base-d0c72a155b.jsonl) and [linked change summary JSONL](https://github.com/ntamas94/AnyPS5/releases/download/pr-instance-extent-evidence/aps5-summary-branch-03ed726f5f.jsonl) ## Not verified I did not compile or run the C++ tests locally, inspect a raw performance trace, or independently reproduce the author’s Windows/NVIDIA measurements. Several hosted build jobs were still running at the captured check snapshot; Linux and specialized jobs were skipped. ## To get this to a good state Add attributable, settings-matched baseline and change summary records, attach both raw traces, and include the digest output for each. I’ll rerun the relevant report and head checks on the updated revision.
MarcZX10 commented 2026-11-20 08:47:34 +00:00 (Migrated from github.com)

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

Review: COMMENTED


Reviewed — no blocking findings

The review materials and changed source files were not available through the reader, so the change could not be assessed.

What I ran

No repository or test commands were run. The pinned head and change contents were not inspected.

Results

Check Result Note
Review materials not run Reader unavailable
Tests not run No tests run

Findings

Blocking

None verified.

Non-blocking

None.

Not verified

The PR description, commits, diff, manifest, changed files, and test coverage were not read. Files read: none. Files reviewed: none.

To get this to a good state

Provide access to the review reader and prepared review folder so the change can be assessed.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5989816748 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14032#pullrequestreview-5989816748). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-20T08:47:34Z. **Review:** COMMENTED --- # Reviewed — no blocking findings The review materials and changed source files were not available through the reader, so the change could not be assessed. ## What I ran No repository or test commands were run. The pinned head and change contents were not inspected. ## Results | Check | Result | Note | |---|---|---| | Review materials | not run | Reader unavailable | | Tests | not run | No tests run | ## Findings ### Blocking None verified. ### Non-blocking None. ## Not verified The PR description, commits, diff, manifest, changed files, and test coverage were not read. Files read: none. Files reviewed: none. ## To get this to a good state Provide access to the review reader and prepared review folder so the change can be assessed.
ligmaSec commented 2026-12-03 22:49:57 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T22:49:57Z.

Review: COMMENTED


The trial merge onto c1601e56d5 conflicts in draw bounds, resource tracking, and the shader-cache schema. Please keep a nonzero first-instance case and a binding used by both vertex and instance indexing. The first verifies the extent’s origin and the second must fall back when the proof cannot describe both streams. Reconcile the serialized binding fields before comparing graphics and shader-memory results.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6180012842 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14032#pullrequestreview-6180012842). Originally posted by [ligmaSec](https://github.com/ligmaSec) on 2026-12-03T22:49:57Z. **Review:** COMMENTED --- The trial merge onto `c1601e56d5` conflicts in draw bounds, resource tracking, and the shader-cache schema. Please keep a nonzero first-instance case and a binding used by both vertex and instance indexing. The first verifies the extent’s origin and the second must fall back when the proof cannot describe both streams. Reconcile the serialized binding fields before comparing graphics and shader-memory results. AI-assisted: yes.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/14032:upstream-pr/14032'
git switch 'upstream-pr/14032'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/14032'
git switch 'upstream-pr/14032'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/14032'
git switch 'upstream-pr/14032'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/14032'
git switch 'main'
git merge --squash 'upstream-pr/14032'
git switch 'main'
git merge --ff-only 'upstream-pr/14032'
git switch 'main'
git merge 'upstream-pr/14032'
git push origin 'main'
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!14032
No description provided.