perf(agc): keep sampled views over a pending storage alias #21699

Merged
DealPotato merged 3 commits from upstream-pr/21699 into main 2026-11-19 09:14:54 +00:00
DealPotato commented 2026-11-16 15:57:31 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by DealPotato on 2026-11-16T15:57:31Z.


What

A surface the game renders under two storage formats of the same texel size has two storage images, and which of them has results pending alternates. StorageTexture::pendingAlias pairs such images, and Refresh already takes the alias's pending units on the device (borrowUnits). A cached sampled view of the surface stayed a hit only while FindPending named the view's own image or nothing, though: when the alias was the pending one, cachedTexture replaced the view with a view of the alias. The old view was then released, and the resource cache dropped every entry holding it (dropReleasedTextures), so each of them was built again on its next use. refreshOwnObjects stopped at ForeignView for such a view and took the full walk.

  • cachedTexture keeps the view when the pending image is the view image's alias (StorageTexture::IsPendingAlias, uncompressed keys) and refreshes the view's image. The view then reads the alias's results: the two images hold the same texels under formats of the same size. A borrow already made at the alias's current version is not repeated.
  • refreshOwnObjects does the same for such a view instead of returning ForeignView, and the proof that runs after it accepts the alias over the refreshed surface (PendingOverlap::alias).
  • APS5_NO_ALIAS_VIEWS=1 replaces the view as before (documented in ENVIRONMENT.md; APS5_AB can toggle it). The [textures] line counts the views kept this way.
  • The resource cache's image-table element budget (ResourceCache::TableElementBudget, APS5_RESOURCE_CACHE_TABLE_ELEMENTS) goes from 65,536 to 262,144 elements (ENVIRONMENT.md, ARCHITECTURE.md). WWE 2K26 draws its materials with about 66 distinct 1684-element bindless tables per frame, about 111,000 elements, so at 65,536 about half of those objects are evicted every frame and built again before their next use.

Neither change helps WWE 2K26 alone (measured below): with the old budget the kept table objects are evicted anyway, and with the larger budget alone they are dropped when the view they hold is replaced. They are two commits.

Tested

Windows 11 Pro (build 26300), NVIDIA GeForce RTX 4070, driver 610.88. Tests with VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, ANYPS5_NO_SHADER_CACHE=1, ANYPS5_REQUIRE_VULKAN=1 and ctest -V.

On this branch, the tests that cover storage aliases and the own-object refresh, sampled views of storage images, image tables and their reuse and cache bounds, the resource cache, template proofs and records, the sampled and storage caches and native depth aliases: 85 tests, 83 passed, and agc_driver_resource_cache_pending_fail_count and its _index variant skipped by their own check, with no VUID- message.

New execution test agc_driver_own_refresh_view_alias: an 8888 UNORM view samples its own storage image, then R32 float stores into the same surface leave a pending alias. Revalidate takes the own-object refresh (under APS5_VERIFY_PROOFS=1) and keeps the view, a new build of the set keeps the cached view, a dispatch through it reads the stored texels, and the alias stays pending (its units taken on the device). With APS5_NO_ALIAS_VIEWS set around a further store, the build replaces the view. With APS5_NO_ALIAS_VIEWS=1 set for the whole run, the test fails as the code before this change does: the set over the view is not proved current over the pending alias.

Performance

WWE 2K26 (PPSA34299) does not reach a match on main alone; it was measured on a local branch: main 2d74858c14 with the open WWE 2K26 fixes and local workarounds (02a62e38ae), with this change on top (6d705746b4, the same two commits). Match of CM Punk vs Roman Reigns, One on One, WrestlePalooza Indianapolis.

The surface behind it is a 1920x1080 target the title renders twice per frame under two formats (guest formats 36 and 29), sampled by the material draws as format 29: the sampled view changed images twice per frame, about 31 times per 10 s, and each change dropped the table objects that hold the view.

In-run A/B (APS5_AB, 20 s phases, 4 s settle, no profiling switches; phase A sets APS5_NO_ALIAS_VIEWS, both phases run with APS5_RESOURCE_CACHE_TABLE_ELEMENTS=262144), on a build of the same change with extra counters. The gain is in the match after the entrances, from about 6.5 minutes in; during the entrances most dropped entries hold sampled snapshots whose content changed (about 35 per 10 s), which this change does not touch.

after the entrances (8 pairs) without the views kept (A) this change (B) B against the neighbouring A phases
frame, ms 747.8 660.7 −109.5 ± 38.7
presents per 10 s 13.73 15.56 +2.35 ± 0.86

The 10 s summary lines inside a settled phase put the difference in the draw builds: Resources.Complete −129.0 ± 23.3 ms per frame, GPU busy per present −21.6 ± 17.3. During the entrances (9 pairs) the frame changed by −23.4 ± 17.6 ms.

Each change alone, same scene: with the views kept and the old budget (APS5_NO_ALIAS_VIEWS flipped alone), the frame after the entrances changed by +34.3 ± 33.5 ms (10 pairs) and Resources.Complete by +25.8 ± 20.1 ms per frame; with only a larger budget (1,048,576 elements, profiled), Resources.Complete changed by +8.9 ± 10.7 ms per frame. Both together with a 1,048,576-element budget gave −68.5 ± 17.5 ms per frame over 24 pairs after the entrances, with dedicated video memory unchanged at 6.49 GB in both phases. A profiled run of that A/B counted the mechanism (per 10 s, reports inside one phase): view replacements 30.7 → 0, draw-build misses 1956 → 1102, entries dropped by the table budget 1042 → 0.

APS5_TRACE_SECONDS=0:60 captures of 02a62e38ae and 6d705746b4, both clean builds, taken back to back with the window opened seven minutes after the intro appeared. The shots differ between the two windows (GPU busy 239.8 and 162.6 ms per present), so this pair shows a larger difference than the A/B: frame p50 747 → 564 ms, 84 and 113 presents in the window. Queue worker 0x0's Driver.Packet went from 517.5 to 325.6 ms per present and the draw committer's Graphics.Draw from 387.9 to 272.6. Both traces lost events of queue worker 0x0 after 38 to 45 s of the window (the summary totals are complete).

{"commit":"02a62e38ae53","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"0:60","APS5_TRACE_SUMMARY_EVERY":"10","APS5_TRACE_TRIGGER_FILE":"<path>"},"gpu":"NVIDIA GeForce RTX 4070","driver":"NVIDIA 610.88","os":"Windows 10.0.26300","cpu":"AMD Ryzen 5 7600X 6-Core Processor","cpu_threads":12,"memory_mib":31621,"title_id":"PPSA34299","title":"WWE 2K26","content_version":"01.018.000","resolution":"3840x2160","window":{"spec":"seconds 0:60","first_present":4720,"ms":60391.791},"presents":84,"frame_ms":{"p50":747.417,"p90":864.959,"p99":1050.835,"max":1050.835},"gpu_busy_ms_per_present":239.788,"worker_busy_pct":{"queue worker 0x0":99.380,"queue worker 0x21":0.010,"queue worker 0x20":92.655,"queue worker 0x22":82.958},"phase_totals_ms":{"Driver.Completion":8.230,"Driver.Dispatch":5693.349,"Driver.Dispatch.capture_resources":270.370,"Driver.Dispatch.decode_key_device_setup":45.310,"Driver.Dispatch.lookup_cache":17.125,"Driver.Dispatch.materialize":60.022,"Driver.Dispatch.prepared_invocation":36.585,"Driver.Draw":38517.319,"Driver.Draw.device_setup":115.367,"Driver.Draw.draw_and_resource_release":8941.669,"Driver.Draw.draw_enqueued":10000.513,"Driver.Draw.empty_indirect_skipped":2.103,"Driver.Draw.gpu_mutex_wait":5335.946,"Driver.Draw.post_compile_prepare":63.270,"Driver.Draw.prepare":295.137,"Driver.Draw.shader_compile_and_link":13680.391,"Driver.EndSubmission":1102.509,"Driver.Packet":164968.632,"Driver.Packet.device_lock":21.154,"Driver.Packet.dispatch":49014.619,"Driver.Packet.draw":38548.740,"Driver.Packet.execute":360.609,"Driver.Packet.flip_flush":3.526,"Driver.Packet.flush_between_packets":148.806,"Driver.Packet.memory_wait":76043.058,"Driver.Packet.pipeline_drain":329.527,"Driver.Packet.pipeline_prepare":40.033,"Driver.Packet.prepare_memory":37.535,"Driver.Packet.rendering_wait":0.062,"Driver.Present":42.817,"Driver.Present.acquire_image":1.382,"Driver.Present.device_setup":0.049,"Driver.Present.gpu_mutex_wait":0.364,"Driver.Present.inflight_wait":0.235,"Driver.Present.present_display_buffer":14.851,"Driver.Present.queue_present":23.764,"Driver.Present.release_and_callback":0.081,"Driver.Present.render_fence_wait":1.821,"Driver.Present.resize":0.183,"Driver.Present.validate":0.035,"Driver.Suspend":0.027,"GpuMutex.wait.dispatch":2352.322,"GpuMutex.wait.draw":31.533,"GpuMutex.wait.end":72.581,"GpuMutex.wait.fill":2.311,"GpuMutex.wait.flush":2.296,"GpuMutex.wait.hook":727.543,"GpuMutex.wait.indirect":0.000,"GpuMutex.wait.label":4965.268,"GpuMutex.wait.other":0.678,"GpuMutex.wait.present":0.181,"GpuMutex.wait.wait":26.401,"Graphics.Draw":41359.479,"Graphics.Draw.draw_and_resource_release":36795.546,"Graphics.Draw.index_upload":3429.588,"Graphics.Draw.validate":949.956,"Graphics.Draw.vertex_upload":113.952,"Graphics.DrawWithRecipe":208.843,"Graphics.DrawWithRecipe.draw_and_resource_release":164.746,"Graphics.DrawWithRecipe.index_upload":35.549,"Graphics.DrawWithRecipe.validate":5.984,"Graphics.DrawWithRecipe.vertex_upload":1.492,"Recorder.Reap":123.899,"Recorder.Submit":325.613,"Recorder.Sync":9021.556,"Recorder.WaitSerial":1.120,"Resources.Complete":25203.254,"Resources.Prepare":1262.809,"Shader.DrawStage":13686.172,"Shader.DrawStage.capture_resources":10657.890,"Shader.DrawStage.materialize":2824.597,"Shader.DrawStage.prepared_invocation":184.680,"Shader.ResolveAbi":95.832,"Shader.ResolveGraphicsAbi":30.864,"Shader.ResolveGraphicsStagesAbi":93.695,"VideoOut.Flip":57.463,"VideoOut.Flip.completion_mutex_wait":0.131,"VideoOut.Flip.config_mutex_wait":0.008,"VideoOut.Flip.frame_limit":0.050,"VideoOut.Flip.notify_game":4.843,"VideoOut.Flip.present":45.333,"VideoOut.Flip.validate":0.099,"VideoOut.Flip.vblank_wait":0.060,"VideoOut.Flip.window_prepare":0.150,"VideoOut.Flip.window_title":6.707,"VideoOut.Readiness":0.209,"VideoOut.Readiness.locks_validate":0.088,"Vulkan.Acquire":1.268,"Vulkan.Acquire.acquire_fence_wait":0.187,"Vulkan.Acquire.acquire_image":0.811,"Vulkan.Acquire.fence_reset":0.186,"Vulkan.Acquire.retired_swapchains":0.050,"Vulkan.Dispatch":2269.762,"Vulkan.Dispatch.command_record":1931.525,"Vulkan.Dispatch.shader_resources":331.918,"Vulkan.DispatchRecipe":70.432,"Vulkan.DispatchRecipe.command_record":70.248,"Vulkan.DrawFromRecipe":212.484,"Vulkan.Present":7.851,"Vulkan.Present.command_record_scale":3.096,"Vulkan.Present.pixel_upload":0.294,"Vulkan.Present.queue_submit":4.376,"Vulkan.QueuePresent":23.597,"Vulkan.QueuePresent.queue_present":23.490,"Vulkan.Retire":1.879,"Vulkan.Retire.wait":0.616},"top_phases_ms_per_frame":{"Driver.Packet":1963.912,"Driver.Packet.memory_wait":905.275,"Driver.Packet.dispatch":583.507,"Graphics.Draw":492.375,"Driver.Packet.draw":458.914,"Driver.Draw":458.540,"Graphics.Draw.draw_and_resource_release":438.042,"Resources.Complete":300.039},"owned_draw_counts":{},"graphics_track":{"Graphics.Barrier.copy":924,"Graphics.Barrier.dispatch-lead":14413,"Graphics.Barrier.dispatch-trail":18794,"Graphics.Barrier.draw":43606,"Graphics.Barrier.fill-clear":508,"Graphics.Barrier.indirect-args":1648,"Graphics.Barrier.label-run":7461,"Graphics.Barrier.present-blit":168,"Graphics.Barrier.shadow-publish":840,"Graphics.Barrier.staging-in":7009,"Graphics.Barrier.staging-out":3333,"Graphics.Barrier.storage-upload":9200,"Graphics.Barrier.storage-writeback":8079,"Graphics.BarrierMerged.dispatch-lead":7677,"Graphics.BarrierMerged.shadow-publish":672,"Graphics.BarrierMerged.staging-in":2990,"Graphics.BarrierMerged.staging-out":3333,"Graphics.BarrierMerged.storage-writeback":2139,"Graphics.Copy":7874,"Graphics.Copy.bytes":11153670656,"Graphics.RenderPass":12242,"Graphics.RenderPass.Close.command":3012,"Graphics.RenderPass.Close.image":2100,"Graphics.RenderPass.Close.key":2324,"Graphics.RenderPass.Close.new-batch":4806,"Graphics.RenderPass.Continued":92180},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":45.225,"events_lost":98017,"totals_full":false}},"trace":"aps5-trace-02a62e38ae53-29976.json.gz"}
{"commit":"6d705746b452","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"0:60","APS5_TRACE_SUMMARY_EVERY":"10","APS5_TRACE_TRIGGER_FILE":"<path>"},"gpu":"NVIDIA GeForce RTX 4070","driver":"NVIDIA 610.88","os":"Windows 10.0.26300","cpu":"AMD Ryzen 5 7600X 6-Core Processor","cpu_threads":12,"memory_mib":31621,"title_id":"PPSA34299","title":"WWE 2K26","content_version":"01.018.000","resolution":"3840x2160","window":{"spec":"seconds 0:60","first_present":2592,"ms":60375.140},"presents":113,"frame_ms":{"p50":564.117,"p90":618.417,"p99":647.707,"max":665.031},"gpu_busy_ms_per_present":162.626,"worker_busy_pct":{"queue worker 0x0":99.288,"queue worker 0x20":92.863,"queue worker 0x22":84.334,"queue worker 0x21":0.011},"phase_totals_ms":{"Driver.Completion":10.350,"Driver.Dispatch":5556.133,"Driver.Dispatch.capture_resources":313.385,"Driver.Dispatch.decode_key_device_setup":46.915,"Driver.Dispatch.lookup_cache":14.577,"Driver.Dispatch.materialize":64.226,"Driver.Dispatch.prepared_invocation":38.599,"Driver.Draw":38970.486,"Driver.Draw.device_setup":114.368,"Driver.Draw.draw_and_resource_release":11119.311,"Driver.Draw.draw_enqueued":10181.299,"Driver.Draw.empty_indirect_skipped":1.970,"Driver.Draw.gpu_mutex_wait":5209.558,"Driver.Draw.post_compile_prepare":57.879,"Driver.Draw.prepare":309.369,"Driver.Draw.shader_compile_and_link":11899.664,"Driver.EndSubmission":539.580,"Driver.Packet":166384.388,"Driver.Packet.device_lock":25.623,"Driver.Packet.dispatch":60654.550,"Driver.Packet.draw":39002.018,"Driver.Packet.execute":117.080,"Driver.Packet.flip_flush":4.600,"Driver.Packet.flush_between_packets":140.203,"Driver.Packet.memory_wait":65571.357,"Driver.Packet.pipeline_drain":408.941,"Driver.Packet.pipeline_prepare":45.387,"Driver.Packet.prepare_memory":41.149,"Driver.Packet.rendering_wait":0.071,"Driver.Present":49.629,"Driver.Present.acquire_image":1.541,"Driver.Present.device_setup":0.057,"Driver.Present.gpu_mutex_wait":0.620,"Driver.Present.inflight_wait":0.283,"Driver.Present.present_display_buffer":16.756,"Driver.Present.queue_present":27.264,"Driver.Present.release_and_callback":0.117,"Driver.Present.render_fence_wait":2.694,"Driver.Present.resize":0.208,"Driver.Present.validate":0.032,"Driver.Suspend":0.027,"GpuMutex.wait.dispatch":2223.625,"GpuMutex.wait.draw":37.635,"GpuMutex.wait.end":59.310,"GpuMutex.wait.fill":1.414,"GpuMutex.wait.flush":2.271,"GpuMutex.wait.hook":1373.515,"GpuMutex.wait.indirect":0.156,"GpuMutex.wait.label":5318.983,"GpuMutex.wait.present":0.402,"GpuMutex.wait.wait":18.152,"Graphics.Draw":41766.267,"Graphics.Draw.draw_and_resource_release":36711.039,"Graphics.Draw.index_upload":3852.050,"Graphics.Draw.validate":1002.465,"Graphics.Draw.vertex_upload":124.335,"Graphics.DrawWithRecipe":178.453,"Graphics.DrawWithRecipe.draw_and_resource_release":153.082,"Graphics.DrawWithRecipe.index_upload":17.935,"Graphics.DrawWithRecipe.validate":5.178,"Graphics.DrawWithRecipe.vertex_upload":1.257,"Recorder.Reap":112.529,"Recorder.Submit":352.390,"Recorder.Sync":10355.265,"Recorder.WaitSerial":1.260,"Resources.Complete":19014.259,"Resources.Prepare":893.613,"Shader.DrawStage":11975.684,"Shader.DrawStage.capture_resources":10082.077,"Shader.DrawStage.materialize":1678.017,"Shader.DrawStage.prepared_invocation":197.084,"Shader.ResolveAbi":106.096,"Shader.ResolveGraphicsAbi":34.539,"Shader.ResolveGraphicsStagesAbi":110.118,"VideoOut.Flip":72.506,"VideoOut.Flip.completion_mutex_wait":0.128,"VideoOut.Flip.config_mutex_wait":0.011,"VideoOut.Flip.frame_limit":0.065,"VideoOut.Flip.notify_game":11.851,"VideoOut.Flip.present":52.115,"VideoOut.Flip.validate":0.126,"VideoOut.Flip.vblank_wait":0.075,"VideoOut.Flip.window_prepare":0.213,"VideoOut.Flip.window_title":7.803,"VideoOut.Readiness":0.254,"VideoOut.Readiness.locks_validate":0.104,"Vulkan.Acquire":1.419,"Vulkan.Acquire.acquire_fence_wait":0.247,"Vulkan.Acquire.acquire_image":0.845,"Vulkan.Acquire.fence_reset":0.218,"Vulkan.Acquire.retired_swapchains":0.067,"Vulkan.Dispatch":2249.053,"Vulkan.Dispatch.command_record":1963.933,"Vulkan.Dispatch.shader_resources":278.509,"Vulkan.DispatchRecipe":16.579,"Vulkan.DispatchRecipe.command_record":16.488,"Vulkan.DrawFromRecipe":181.370,"Vulkan.Present":8.785,"Vulkan.Present.command_record_scale":3.663,"Vulkan.Present.pixel_upload":0.196,"Vulkan.Present.queue_submit":4.837,"Vulkan.QueuePresent":27.109,"Vulkan.QueuePresent.queue_present":27.001,"Vulkan.Retire":2.780,"Vulkan.Retire.wait":1.340},"top_phases_ms_per_frame":{"Driver.Packet":1472.428,"Driver.Packet.memory_wait":580.277,"Driver.Packet.dispatch":536.766,"Graphics.Draw":369.613,"Driver.Packet.draw":345.151,"Driver.Draw":344.872,"Graphics.Draw.draw_and_resource_release":324.876,"Resources.Complete":168.268},"owned_draw_counts":{},"graphics_track":{"Graphics.Barrier.copy":1243,"Graphics.Barrier.dispatch-lead":19134,"Graphics.Barrier.dispatch-trail":25045,"Graphics.Barrier.draw":60027,"Graphics.Barrier.fill-clear":684,"Graphics.Barrier.indirect-args":2193,"Graphics.Barrier.label-run":9647,"Graphics.Barrier.present-blit":226,"Graphics.Barrier.shadow-publish":919,"Graphics.Barrier.staging-in":9127,"Graphics.Barrier.staging-out":4363,"Graphics.Barrier.storage-upload":13146,"Graphics.Barrier.storage-writeback":10886,"Graphics.BarrierMerged.dispatch-lead":10297,"Graphics.BarrierMerged.shadow-publish":765,"Graphics.BarrierMerged.staging-in":3962,"Graphics.BarrierMerged.staging-out":4363,"Graphics.BarrierMerged.storage-writeback":2850,"Graphics.Copy":10799,"Graphics.Copy.bytes":19311966472,"Graphics.RenderPass":17264,"Graphics.RenderPass.Close.command":4105,"Graphics.RenderPass.Close.image":3120,"Graphics.RenderPass.Close.key":3686,"Graphics.RenderPass.Close.label":2,"Graphics.RenderPass.Close.new-batch":6351,"Graphics.RenderPass.Continued":123191},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":38.129,"events_lost":147608,"totals_full":false}},"trace":"aps5-trace-6d705746b452-16828.json.gz"}
tools/trace_digest.py (headers and threads)
**seconds 0:60** from present 4720: 84 presents, frame p50 747.4 / p90 865.0 / p99 1050.8 / max 1050.8 ms, GPU busy 239.8 ms per present
NVIDIA GeForce RTX 4070, NVIDIA 610.88, Windows 10.0.26300, 3840x2160, commit 02a62e38ae53, dropped: yes
| queue worker 0x0 | 455.7 (63 %) | 71.8 (10 %) | 191.5 | 56.4 | Driver.Packet 517.5, Driver.EndSubmission 8.7 |
| draw committer | 500.2 (70 %) | 0.4 (0 %) | 218.3 | 15.6 | Graphics.Draw 387.9, Recorder.Sync 107.4 |
**seconds 0:60** from present 2592: 113 presents, frame p50 564.1 / p90 618.4 / p99 647.7 / max 665.0 ms, GPU busy 162.6 ms per present
NVIDIA GeForce RTX 4070, NVIDIA 610.88, Windows 10.0.26300, 3840x2160, commit 6d705746b452, dropped: yes
| queue worker 0x0 | 295.1 (55 %) | 34.0 (6 %) | 205.2 | 43.4 | Driver.Packet 325.6, Driver.EndSubmission 2.1 |
| draw committer | 367.8 (69 %) | 0.3 (0 %) | 166.2 | 14.3 | Graphics.Draw 272.6, Recorder.Sync 91.6 |

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
  • GPUs tested: NVIDIA GeForce RTX 4070, 610.88, Windows 11 Pro (build 26300)
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5340319431 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/21699). Originally posted by [DealPotato](https://github.com/DealPotato) on 2026-11-16T15:57:31Z. --- ### What A surface the game renders under two storage formats of the same texel size has two storage images, and which of them has results pending alternates. `StorageTexture::pendingAlias` pairs such images, and `Refresh` already takes the alias's pending units on the device (`borrowUnits`). A cached sampled view of the surface stayed a hit only while `FindPending` named the view's own image or nothing, though: when the alias was the pending one, `cachedTexture` replaced the view with a view of the alias. The old view was then released, and the resource cache dropped every entry holding it (`dropReleasedTextures`), so each of them was built again on its next use. `refreshOwnObjects` stopped at `ForeignView` for such a view and took the full walk. - `cachedTexture` keeps the view when the pending image is the view image's alias (`StorageTexture::IsPendingAlias`, uncompressed keys) and refreshes the view's image. The view then reads the alias's results: the two images hold the same texels under formats of the same size. A borrow already made at the alias's current version is not repeated. - `refreshOwnObjects` does the same for such a view instead of returning `ForeignView`, and the proof that runs after it accepts the alias over the refreshed surface (`PendingOverlap::alias`). - `APS5_NO_ALIAS_VIEWS=1` replaces the view as before (documented in `ENVIRONMENT.md`; `APS5_AB` can toggle it). The `[textures]` line counts the views kept this way. - The resource cache's image-table element budget (`ResourceCache::TableElementBudget`, `APS5_RESOURCE_CACHE_TABLE_ELEMENTS`) goes from 65,536 to 262,144 elements (`ENVIRONMENT.md`, `ARCHITECTURE.md`). WWE 2K26 draws its materials with about 66 distinct 1684-element bindless tables per frame, about 111,000 elements, so at 65,536 about half of those objects are evicted every frame and built again before their next use. Neither change helps WWE 2K26 alone (measured below): with the old budget the kept table objects are evicted anyway, and with the larger budget alone they are dropped when the view they hold is replaced. They are two commits. ### Tested Windows 11 Pro (build 26300), NVIDIA GeForce RTX 4070, driver 610.88. Tests with `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`, `ANYPS5_NO_SHADER_CACHE=1`, `ANYPS5_REQUIRE_VULKAN=1` and `ctest -V`. On this branch, the tests that cover storage aliases and the own-object refresh, sampled views of storage images, image tables and their reuse and cache bounds, the resource cache, template proofs and records, the sampled and storage caches and native depth aliases: 85 tests, 83 passed, and `agc_driver_resource_cache_pending_fail_count` and its `_index` variant skipped by their own check, with no `VUID-` message. New execution test `agc_driver_own_refresh_view_alias`: an 8888 UNORM view samples its own storage image, then R32 float stores into the same surface leave a pending alias. `Revalidate` takes the own-object refresh (under `APS5_VERIFY_PROOFS=1`) and keeps the view, a new build of the set keeps the cached view, a dispatch through it reads the stored texels, and the alias stays pending (its units taken on the device). With `APS5_NO_ALIAS_VIEWS` set around a further store, the build replaces the view. With `APS5_NO_ALIAS_VIEWS=1` set for the whole run, the test fails as the code before this change does: the set over the view is not proved current over the pending alias. ### Performance WWE 2K26 (PPSA34299) does not reach a match on `main` alone; it was measured on a local branch: `main` 2d74858c14 with the open WWE 2K26 fixes and local workarounds (`02a62e38ae`), with this change on top (`6d705746b4`, the same two commits). Match of CM Punk vs Roman Reigns, One on One, WrestlePalooza Indianapolis. The surface behind it is a 1920x1080 target the title renders twice per frame under two formats (guest formats 36 and 29), sampled by the material draws as format 29: the sampled view changed images twice per frame, about 31 times per 10 s, and each change dropped the table objects that hold the view. In-run A/B (`APS5_AB`, 20 s phases, 4 s settle, no profiling switches; phase A sets `APS5_NO_ALIAS_VIEWS`, both phases run with `APS5_RESOURCE_CACHE_TABLE_ELEMENTS=262144`), on a build of the same change with extra counters. The gain is in the match after the entrances, from about 6.5 minutes in; during the entrances most dropped entries hold sampled snapshots whose content changed (about 35 per 10 s), which this change does not touch. | after the entrances (8 pairs) | without the views kept (A) | this change (B) | B against the neighbouring A phases | |---|---|---|---| | frame, ms | 747.8 | 660.7 | −109.5 ± 38.7 | | presents per 10 s | 13.73 | 15.56 | +2.35 ± 0.86 | The 10 s summary lines inside a settled phase put the difference in the draw builds: `Resources.Complete` −129.0 ± 23.3 ms per frame, GPU busy per present −21.6 ± 17.3. During the entrances (9 pairs) the frame changed by −23.4 ± 17.6 ms. Each change alone, same scene: with the views kept and the old budget (`APS5_NO_ALIAS_VIEWS` flipped alone), the frame after the entrances changed by +34.3 ± 33.5 ms (10 pairs) and `Resources.Complete` by +25.8 ± 20.1 ms per frame; with only a larger budget (1,048,576 elements, profiled), `Resources.Complete` changed by +8.9 ± 10.7 ms per frame. Both together with a 1,048,576-element budget gave −68.5 ± 17.5 ms per frame over 24 pairs after the entrances, with dedicated video memory unchanged at 6.49 GB in both phases. A profiled run of that A/B counted the mechanism (per 10 s, reports inside one phase): view replacements 30.7 → 0, draw-build misses 1956 → 1102, entries dropped by the table budget 1042 → 0. `APS5_TRACE_SECONDS=0:60` captures of `02a62e38ae` and `6d705746b4`, both clean builds, taken back to back with the window opened seven minutes after the intro appeared. The shots differ between the two windows (GPU busy 239.8 and 162.6 ms per present), so this pair shows a larger difference than the A/B: frame p50 747 → 564 ms, 84 and 113 presents in the window. Queue worker 0x0's `Driver.Packet` went from 517.5 to 325.6 ms per present and the draw committer's `Graphics.Draw` from 387.9 to 272.6. Both traces lost events of queue worker 0x0 after 38 to 45 s of the window (the summary totals are complete). ``` {"commit":"02a62e38ae53","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"0:60","APS5_TRACE_SUMMARY_EVERY":"10","APS5_TRACE_TRIGGER_FILE":"<path>"},"gpu":"NVIDIA GeForce RTX 4070","driver":"NVIDIA 610.88","os":"Windows 10.0.26300","cpu":"AMD Ryzen 5 7600X 6-Core Processor","cpu_threads":12,"memory_mib":31621,"title_id":"PPSA34299","title":"WWE 2K26","content_version":"01.018.000","resolution":"3840x2160","window":{"spec":"seconds 0:60","first_present":4720,"ms":60391.791},"presents":84,"frame_ms":{"p50":747.417,"p90":864.959,"p99":1050.835,"max":1050.835},"gpu_busy_ms_per_present":239.788,"worker_busy_pct":{"queue worker 0x0":99.380,"queue worker 0x21":0.010,"queue worker 0x20":92.655,"queue worker 0x22":82.958},"phase_totals_ms":{"Driver.Completion":8.230,"Driver.Dispatch":5693.349,"Driver.Dispatch.capture_resources":270.370,"Driver.Dispatch.decode_key_device_setup":45.310,"Driver.Dispatch.lookup_cache":17.125,"Driver.Dispatch.materialize":60.022,"Driver.Dispatch.prepared_invocation":36.585,"Driver.Draw":38517.319,"Driver.Draw.device_setup":115.367,"Driver.Draw.draw_and_resource_release":8941.669,"Driver.Draw.draw_enqueued":10000.513,"Driver.Draw.empty_indirect_skipped":2.103,"Driver.Draw.gpu_mutex_wait":5335.946,"Driver.Draw.post_compile_prepare":63.270,"Driver.Draw.prepare":295.137,"Driver.Draw.shader_compile_and_link":13680.391,"Driver.EndSubmission":1102.509,"Driver.Packet":164968.632,"Driver.Packet.device_lock":21.154,"Driver.Packet.dispatch":49014.619,"Driver.Packet.draw":38548.740,"Driver.Packet.execute":360.609,"Driver.Packet.flip_flush":3.526,"Driver.Packet.flush_between_packets":148.806,"Driver.Packet.memory_wait":76043.058,"Driver.Packet.pipeline_drain":329.527,"Driver.Packet.pipeline_prepare":40.033,"Driver.Packet.prepare_memory":37.535,"Driver.Packet.rendering_wait":0.062,"Driver.Present":42.817,"Driver.Present.acquire_image":1.382,"Driver.Present.device_setup":0.049,"Driver.Present.gpu_mutex_wait":0.364,"Driver.Present.inflight_wait":0.235,"Driver.Present.present_display_buffer":14.851,"Driver.Present.queue_present":23.764,"Driver.Present.release_and_callback":0.081,"Driver.Present.render_fence_wait":1.821,"Driver.Present.resize":0.183,"Driver.Present.validate":0.035,"Driver.Suspend":0.027,"GpuMutex.wait.dispatch":2352.322,"GpuMutex.wait.draw":31.533,"GpuMutex.wait.end":72.581,"GpuMutex.wait.fill":2.311,"GpuMutex.wait.flush":2.296,"GpuMutex.wait.hook":727.543,"GpuMutex.wait.indirect":0.000,"GpuMutex.wait.label":4965.268,"GpuMutex.wait.other":0.678,"GpuMutex.wait.present":0.181,"GpuMutex.wait.wait":26.401,"Graphics.Draw":41359.479,"Graphics.Draw.draw_and_resource_release":36795.546,"Graphics.Draw.index_upload":3429.588,"Graphics.Draw.validate":949.956,"Graphics.Draw.vertex_upload":113.952,"Graphics.DrawWithRecipe":208.843,"Graphics.DrawWithRecipe.draw_and_resource_release":164.746,"Graphics.DrawWithRecipe.index_upload":35.549,"Graphics.DrawWithRecipe.validate":5.984,"Graphics.DrawWithRecipe.vertex_upload":1.492,"Recorder.Reap":123.899,"Recorder.Submit":325.613,"Recorder.Sync":9021.556,"Recorder.WaitSerial":1.120,"Resources.Complete":25203.254,"Resources.Prepare":1262.809,"Shader.DrawStage":13686.172,"Shader.DrawStage.capture_resources":10657.890,"Shader.DrawStage.materialize":2824.597,"Shader.DrawStage.prepared_invocation":184.680,"Shader.ResolveAbi":95.832,"Shader.ResolveGraphicsAbi":30.864,"Shader.ResolveGraphicsStagesAbi":93.695,"VideoOut.Flip":57.463,"VideoOut.Flip.completion_mutex_wait":0.131,"VideoOut.Flip.config_mutex_wait":0.008,"VideoOut.Flip.frame_limit":0.050,"VideoOut.Flip.notify_game":4.843,"VideoOut.Flip.present":45.333,"VideoOut.Flip.validate":0.099,"VideoOut.Flip.vblank_wait":0.060,"VideoOut.Flip.window_prepare":0.150,"VideoOut.Flip.window_title":6.707,"VideoOut.Readiness":0.209,"VideoOut.Readiness.locks_validate":0.088,"Vulkan.Acquire":1.268,"Vulkan.Acquire.acquire_fence_wait":0.187,"Vulkan.Acquire.acquire_image":0.811,"Vulkan.Acquire.fence_reset":0.186,"Vulkan.Acquire.retired_swapchains":0.050,"Vulkan.Dispatch":2269.762,"Vulkan.Dispatch.command_record":1931.525,"Vulkan.Dispatch.shader_resources":331.918,"Vulkan.DispatchRecipe":70.432,"Vulkan.DispatchRecipe.command_record":70.248,"Vulkan.DrawFromRecipe":212.484,"Vulkan.Present":7.851,"Vulkan.Present.command_record_scale":3.096,"Vulkan.Present.pixel_upload":0.294,"Vulkan.Present.queue_submit":4.376,"Vulkan.QueuePresent":23.597,"Vulkan.QueuePresent.queue_present":23.490,"Vulkan.Retire":1.879,"Vulkan.Retire.wait":0.616},"top_phases_ms_per_frame":{"Driver.Packet":1963.912,"Driver.Packet.memory_wait":905.275,"Driver.Packet.dispatch":583.507,"Graphics.Draw":492.375,"Driver.Packet.draw":458.914,"Driver.Draw":458.540,"Graphics.Draw.draw_and_resource_release":438.042,"Resources.Complete":300.039},"owned_draw_counts":{},"graphics_track":{"Graphics.Barrier.copy":924,"Graphics.Barrier.dispatch-lead":14413,"Graphics.Barrier.dispatch-trail":18794,"Graphics.Barrier.draw":43606,"Graphics.Barrier.fill-clear":508,"Graphics.Barrier.indirect-args":1648,"Graphics.Barrier.label-run":7461,"Graphics.Barrier.present-blit":168,"Graphics.Barrier.shadow-publish":840,"Graphics.Barrier.staging-in":7009,"Graphics.Barrier.staging-out":3333,"Graphics.Barrier.storage-upload":9200,"Graphics.Barrier.storage-writeback":8079,"Graphics.BarrierMerged.dispatch-lead":7677,"Graphics.BarrierMerged.shadow-publish":672,"Graphics.BarrierMerged.staging-in":2990,"Graphics.BarrierMerged.staging-out":3333,"Graphics.BarrierMerged.storage-writeback":2139,"Graphics.Copy":7874,"Graphics.Copy.bytes":11153670656,"Graphics.RenderPass":12242,"Graphics.RenderPass.Close.command":3012,"Graphics.RenderPass.Close.image":2100,"Graphics.RenderPass.Close.key":2324,"Graphics.RenderPass.Close.new-batch":4806,"Graphics.RenderPass.Continued":92180},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":45.225,"events_lost":98017,"totals_full":false}},"trace":"aps5-trace-02a62e38ae53-29976.json.gz"} {"commit":"6d705746b452","dirty":false,"env":{"APS5_LOG_TIMESTAMPS":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"0:60","APS5_TRACE_SUMMARY_EVERY":"10","APS5_TRACE_TRIGGER_FILE":"<path>"},"gpu":"NVIDIA GeForce RTX 4070","driver":"NVIDIA 610.88","os":"Windows 10.0.26300","cpu":"AMD Ryzen 5 7600X 6-Core Processor","cpu_threads":12,"memory_mib":31621,"title_id":"PPSA34299","title":"WWE 2K26","content_version":"01.018.000","resolution":"3840x2160","window":{"spec":"seconds 0:60","first_present":2592,"ms":60375.140},"presents":113,"frame_ms":{"p50":564.117,"p90":618.417,"p99":647.707,"max":665.031},"gpu_busy_ms_per_present":162.626,"worker_busy_pct":{"queue worker 0x0":99.288,"queue worker 0x20":92.863,"queue worker 0x22":84.334,"queue worker 0x21":0.011},"phase_totals_ms":{"Driver.Completion":10.350,"Driver.Dispatch":5556.133,"Driver.Dispatch.capture_resources":313.385,"Driver.Dispatch.decode_key_device_setup":46.915,"Driver.Dispatch.lookup_cache":14.577,"Driver.Dispatch.materialize":64.226,"Driver.Dispatch.prepared_invocation":38.599,"Driver.Draw":38970.486,"Driver.Draw.device_setup":114.368,"Driver.Draw.draw_and_resource_release":11119.311,"Driver.Draw.draw_enqueued":10181.299,"Driver.Draw.empty_indirect_skipped":1.970,"Driver.Draw.gpu_mutex_wait":5209.558,"Driver.Draw.post_compile_prepare":57.879,"Driver.Draw.prepare":309.369,"Driver.Draw.shader_compile_and_link":11899.664,"Driver.EndSubmission":539.580,"Driver.Packet":166384.388,"Driver.Packet.device_lock":25.623,"Driver.Packet.dispatch":60654.550,"Driver.Packet.draw":39002.018,"Driver.Packet.execute":117.080,"Driver.Packet.flip_flush":4.600,"Driver.Packet.flush_between_packets":140.203,"Driver.Packet.memory_wait":65571.357,"Driver.Packet.pipeline_drain":408.941,"Driver.Packet.pipeline_prepare":45.387,"Driver.Packet.prepare_memory":41.149,"Driver.Packet.rendering_wait":0.071,"Driver.Present":49.629,"Driver.Present.acquire_image":1.541,"Driver.Present.device_setup":0.057,"Driver.Present.gpu_mutex_wait":0.620,"Driver.Present.inflight_wait":0.283,"Driver.Present.present_display_buffer":16.756,"Driver.Present.queue_present":27.264,"Driver.Present.release_and_callback":0.117,"Driver.Present.render_fence_wait":2.694,"Driver.Present.resize":0.208,"Driver.Present.validate":0.032,"Driver.Suspend":0.027,"GpuMutex.wait.dispatch":2223.625,"GpuMutex.wait.draw":37.635,"GpuMutex.wait.end":59.310,"GpuMutex.wait.fill":1.414,"GpuMutex.wait.flush":2.271,"GpuMutex.wait.hook":1373.515,"GpuMutex.wait.indirect":0.156,"GpuMutex.wait.label":5318.983,"GpuMutex.wait.present":0.402,"GpuMutex.wait.wait":18.152,"Graphics.Draw":41766.267,"Graphics.Draw.draw_and_resource_release":36711.039,"Graphics.Draw.index_upload":3852.050,"Graphics.Draw.validate":1002.465,"Graphics.Draw.vertex_upload":124.335,"Graphics.DrawWithRecipe":178.453,"Graphics.DrawWithRecipe.draw_and_resource_release":153.082,"Graphics.DrawWithRecipe.index_upload":17.935,"Graphics.DrawWithRecipe.validate":5.178,"Graphics.DrawWithRecipe.vertex_upload":1.257,"Recorder.Reap":112.529,"Recorder.Submit":352.390,"Recorder.Sync":10355.265,"Recorder.WaitSerial":1.260,"Resources.Complete":19014.259,"Resources.Prepare":893.613,"Shader.DrawStage":11975.684,"Shader.DrawStage.capture_resources":10082.077,"Shader.DrawStage.materialize":1678.017,"Shader.DrawStage.prepared_invocation":197.084,"Shader.ResolveAbi":106.096,"Shader.ResolveGraphicsAbi":34.539,"Shader.ResolveGraphicsStagesAbi":110.118,"VideoOut.Flip":72.506,"VideoOut.Flip.completion_mutex_wait":0.128,"VideoOut.Flip.config_mutex_wait":0.011,"VideoOut.Flip.frame_limit":0.065,"VideoOut.Flip.notify_game":11.851,"VideoOut.Flip.present":52.115,"VideoOut.Flip.validate":0.126,"VideoOut.Flip.vblank_wait":0.075,"VideoOut.Flip.window_prepare":0.213,"VideoOut.Flip.window_title":7.803,"VideoOut.Readiness":0.254,"VideoOut.Readiness.locks_validate":0.104,"Vulkan.Acquire":1.419,"Vulkan.Acquire.acquire_fence_wait":0.247,"Vulkan.Acquire.acquire_image":0.845,"Vulkan.Acquire.fence_reset":0.218,"Vulkan.Acquire.retired_swapchains":0.067,"Vulkan.Dispatch":2249.053,"Vulkan.Dispatch.command_record":1963.933,"Vulkan.Dispatch.shader_resources":278.509,"Vulkan.DispatchRecipe":16.579,"Vulkan.DispatchRecipe.command_record":16.488,"Vulkan.DrawFromRecipe":181.370,"Vulkan.Present":8.785,"Vulkan.Present.command_record_scale":3.663,"Vulkan.Present.pixel_upload":0.196,"Vulkan.Present.queue_submit":4.837,"Vulkan.QueuePresent":27.109,"Vulkan.QueuePresent.queue_present":27.001,"Vulkan.Retire":2.780,"Vulkan.Retire.wait":1.340},"top_phases_ms_per_frame":{"Driver.Packet":1472.428,"Driver.Packet.memory_wait":580.277,"Driver.Packet.dispatch":536.766,"Graphics.Draw":369.613,"Driver.Packet.draw":345.151,"Driver.Draw":344.872,"Graphics.Draw.draw_and_resource_release":324.876,"Resources.Complete":168.268},"owned_draw_counts":{},"graphics_track":{"Graphics.Barrier.copy":1243,"Graphics.Barrier.dispatch-lead":19134,"Graphics.Barrier.dispatch-trail":25045,"Graphics.Barrier.draw":60027,"Graphics.Barrier.fill-clear":684,"Graphics.Barrier.indirect-args":2193,"Graphics.Barrier.label-run":9647,"Graphics.Barrier.present-blit":226,"Graphics.Barrier.shadow-publish":919,"Graphics.Barrier.staging-in":9127,"Graphics.Barrier.staging-out":4363,"Graphics.Barrier.storage-upload":13146,"Graphics.Barrier.storage-writeback":10886,"Graphics.BarrierMerged.dispatch-lead":10297,"Graphics.BarrierMerged.shadow-publish":765,"Graphics.BarrierMerged.staging-in":3962,"Graphics.BarrierMerged.staging-out":4363,"Graphics.BarrierMerged.storage-writeback":2850,"Graphics.Copy":10799,"Graphics.Copy.bytes":19311966472,"Graphics.RenderPass":17264,"Graphics.RenderPass.Close.command":4105,"Graphics.RenderPass.Close.image":3120,"Graphics.RenderPass.Close.key":3686,"Graphics.RenderPass.Close.label":2,"Graphics.RenderPass.Close.new-batch":6351,"Graphics.RenderPass.Continued":123191},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":38.129,"events_lost":147608,"totals_full":false}},"trace":"aps5-trace-6d705746b452-16828.json.gz"} ``` <details><summary><code>tools/trace_digest.py</code> (headers and threads)</summary> ``` **seconds 0:60** from present 4720: 84 presents, frame p50 747.4 / p90 865.0 / p99 1050.8 / max 1050.8 ms, GPU busy 239.8 ms per present NVIDIA GeForce RTX 4070, NVIDIA 610.88, Windows 10.0.26300, 3840x2160, commit 02a62e38ae53, dropped: yes | queue worker 0x0 | 455.7 (63 %) | 71.8 (10 %) | 191.5 | 56.4 | Driver.Packet 517.5, Driver.EndSubmission 8.7 | | draw committer | 500.2 (70 %) | 0.4 (0 %) | 218.3 | 15.6 | Graphics.Draw 387.9, Recorder.Sync 107.4 | **seconds 0:60** from present 2592: 113 presents, frame p50 564.1 / p90 618.4 / p99 647.7 / max 665.0 ms, GPU busy 162.6 ms per present NVIDIA GeForce RTX 4070, NVIDIA 610.88, Windows 10.0.26300, 3840x2160, commit 6d705746b452, dropped: yes | queue worker 0x0 | 295.1 (55 %) | 34.0 (6 %) | 205.2 | 43.4 | Driver.Packet 325.6, Driver.EndSubmission 2.1 | | draw committer | 367.8 (69 %) | 0.3 (0 %) | 166.2 | 14.3 | Graphics.Draw 272.6, Recorder.Sync 91.6 | ``` </details> ### 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) 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 - [x] GPUs tested: NVIDIA GeForce RTX 4070, 610.88, Windows 11 Pro (build 26300) - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
MarcZX10 commented 2026-11-19 01:00:38 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-19T01:00:38Z.

Review: COMMENTED


Reviewed — comments

The review is incomplete because two changed source files were available only through targeted excerpts, so a formal approval is not justified.

What I ran

Read the prepared diff at head 427d04b7745ad7a0d71ffbfbe0ee78f7e1964c93 and targeted source ranges using repo_read.py. No build or tests were run by me.

Results

Check Result Note
Patch and changed file review not run Two source files only partly read
Build and tests not run No commands run
Author-reported tests not run Description reports 83 passes and 2 skips

Findings

Blocking

None identified in the inspected excerpts.

Non-blocking

None.

Not verified

Full text was read for RuntimeSwitches.hpp, ShaderResources.hpp, Texture.hpp, RuntimeSwitches.cpp, OwnRefreshViewAlias.cpp, ARCHITECTURE.md, and ENVIRONMENT.md. ShaderResources.cpp and Texture.cpp were read only in the changed implementation ranges; their other code and callers were not reviewed. The manifest says those two full files were excluded as too large. description.md reports Windows 11/Vulkan validation and performance runs, but these were author-reported and not run by me. No tests or build were executed.

To get this to a good state

Nothing is required. Optional: complete review of the uninspected portions of ShaderResources.cpp and Texture.cpp and run the relevant checks on this head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5967722868 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/21699#pullrequestreview-5967722868). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-19T01:00:38Z. **Review:** COMMENTED --- # Reviewed — comments The review is incomplete because two changed source files were available only through targeted excerpts, so a formal approval is not justified. ## What I ran Read the prepared diff at head `427d04b7745ad7a0d71ffbfbe0ee78f7e1964c93` and targeted source ranges using `repo_read.py`. No build or tests were run by me. ## Results | Check | Result | Note | |---|---|---| | Patch and changed file review | not run | Two source files only partly read | | Build and tests | not run | No commands run | | Author-reported tests | not run | Description reports 83 passes and 2 skips | ## Findings ### Blocking None identified in the inspected excerpts. ### Non-blocking None. ## Not verified Full text was read for `RuntimeSwitches.hpp`, `ShaderResources.hpp`, `Texture.hpp`, `RuntimeSwitches.cpp`, `OwnRefreshViewAlias.cpp`, `ARCHITECTURE.md`, and `ENVIRONMENT.md`. `ShaderResources.cpp` and `Texture.cpp` were read only in the changed implementation ranges; their other code and callers were not reviewed. The manifest says those two full files were excluded as too large. `description.md` reports Windows 11/Vulkan validation and performance runs, but these were author-reported and not run by me. No tests or build were executed. ## To get this to a good state Nothing is required. Optional: complete review of the uninspected portions of `ShaderResources.cpp` and `Texture.cpp` and run the relevant checks on this head.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!21699
No description provided.