perf(recompiler): keep runtime-specialized shader modules in the shader disk cache #6924

Open
moong15 wants to merge 7 commits from upstream-pr/6924 into main
moong15 commented 2026-10-16 18:56:06 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by moong15 on 2026-10-16T18:56:06Z.


What

Runtime-specialized shader modules and their binding plans were rebuilt on every launch, even with a warm shader disk cache. They are built on the queue worker when a draw or dispatch first needs them, so the rebuild lands on the critical path while a title loads.

They are now stored in the shader disk cache next to their base artifact, keyed by the base artifact's digest plus the exact specialization inputs, and loaded on a warm start. A missing, differently keyed or damaged record is rebuilt. The disk cache format goes to 70. APS5_NO_SPECIALIZED_DISK_CACHE=1 turns it off. The [shader-disk-cache] line reports specialized module and binding plan hits, misses and writes.

The specialized records are bounded. APS5_SPECIALIZED_DISK_CACHE_ENTRIES (default 65536) and APS5_SPECIALIZED_DISK_CACHE_MAX_MIB (default 2048) cap them together, and the least recently used specialized record is deleted when either limit is exceeded: after each specialized write, after a load that finds a record grown, and once at start. A record rewritten at another size moves the byte total by the difference. Base artifacts and resource plans are never evicted. 0 keeps none, the same as APS5_NO_SPECIALIZED_DISK_CACHE=1. Both switches are neutral to the cache key and documented in docs/user/USAGE.md and docs/dev/ENVIRONMENT.md; the defaults are guesses, recorded in docs/dev/debt/shader.md. The start-up [shader-disk-cache] line prints the specialized entry count and size on disk, and the 10 s line reports evictions.

A variant compiled without going through findOrCompileVariant (useCache=false: recompileOnce, and RecompileImpl without a cache or capture source) has no disk key. CompiledVariant::artifactIdentity is empty for such a variant, and specializedDiskCache returns false unless the identity has the full artifact-identity length. Those compiles neither read nor write specialized entries.

The binding plan identity covers every input of DescriptorBindingBuilder::Prepare: the buffer fields go through BufferSpecializationFields with the substitutes, so a null V# is keyed by the substitute its slot learned, and fragmentDescriptorSet and shaderImageMinLod are key words. A specialized module loaded from disk carries the same fields as a built one (interned SPIR-V, hash, bindings, push data, specialization constants), artifactIdentity is set next to attachSubstitutes on the disk-cache paths only, and userDataRegisterReads is computed in materializeResult whether the plan was built or loaded. With draw and dispatch shaders prepared off the submit thread, each specialized lookup still runs inside one materializeResult call on the thread that makes it, and the shared LRU list and index change only under the specialized mutex.

Tested

Windows 11 Pro 10.0.26300, MinGW GCC 15.2 Release build, AMD Radeon RX 9070 XT, AMD proprietary driver 26.10.1 (LLPC), 3840x2160. Stellar Blade (PPSA13197, 01.014.001). Builds: main 80fa4d510e and this branch on it (747f25ffe8); the branch also merges cleanly with main e74dd5b992. I measured on 80fa4d510e because on e74dd5b992 Stellar Blade stops at start-up with "guest sampler descriptor uses point preclamping which is not implemented". Both builds were staged as whole library sets and swapped between runs, the title was relinked once with the main relinker, and the embedded commit was checked in each summary line (dirty false in all). Warm shader and pipeline caches (each build ran the title before), same scene and settings, one session, no APS5_PROFILE_* switch. APS5_TRACE_EVENTS=4194304 is set because the default 262144 events per thread fill in about 11 s on the busiest queue worker of this title; stdout and stderr were written to files.

Loading: first 90 s from the first present (APS5_TRACE_SECONDS=0:90): main menu, save load and story start. Order: main, main, main, PR, PR, PR, main, main, PR, PR; the first launch after each swap is not counted. The first PR launch after a swap reads the specialized records from a cold disk: in an earlier set it took 15.7 s of specialized time against 8.1 s for the next PR launch. Specialized time is the sum of Shader.DrawStage.materialize, Driver.Draw.shader_compile_and_link and Driver.Dispatch.materialize in phase_totals_ms of each summary line.

Run Build Presents p50 / p90 / p99 ms Longest frame ms Specialized time s of which Driver.Dispatch.materialize s
1 main 1042 78.8 / 103.3 / 361.5 6664 10.29 2.35
2 main 1055 77.6 / 96.3 / 402.3 8356 10.64 2.48
3 this PR 1078 75.6 / 96.1 / 390.2 6129 7.81 1.05
4 this PR 1061 79.2 / 99.2 / 379.3 5906 7.32 1.03
5 main 1553 31.6 / 85.0 / 324.9 9481 11.40 2.49
6 this PR 1544 31.8 / 84.4 / 293.7 8020 9.63 1.24

Runs 5 and 6 reached the playable story start inside the window and the first four did not, so 5 and 6 are compared with each other. With the specialized records read from disk, specialized time falls from 10.3-10.6 s to 7.3-7.8 s in runs 1-4 and from 11.4 s to 9.6 s in runs 5-6, with Driver.Dispatch.materialize about halved; the longest loading frame falls from 6.7-8.4 s to 5.9-6.1 s and from 9.5 s to 8.0 s. Presents and p50 do not move beyond noise. trace_dropped is false in all six. Each PR launch read 1076-1114 specialized modules and 1435-1647 binding plans from disk and still missed 177-205 modules and 1349-2649 binding plans, which it built and stored: the binding plan identity carries image descriptor words that differ from launch to launch. The specialized entries on disk grew from 26874 entries and 492 MiB at the start of run 3 to 33025 entries and 590 MiB at the start of run 6, under the 65536-entry and 2048 MiB limits; no eviction happened.

Steady play (APS5_TRACE_SECONDS=400:90, interleaved main, PR, PR, main): presents 879 and 1012 on main, 977 and 972 here. No regression; the spread between the two main runs is larger than the difference.

Summary lines (runs 1 and 3):

{"commit":"80fa4d510e96","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"16384","APS5_PAD_INPUT_FILE":"<path>","APS5_PREBUILD_THREADS":"16","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"0:90"},"gpu":"AMD Radeon RX 9070 XT","driver":"AMD proprietary driver 26.10.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 9800X3D 8-Core Processor","cpu_threads":16,"memory_mib":47941,"title_id":"PPSA13197","title":"Stellar Blade","content_version":"01.014.001","resolution":"3840x2160","window":{"spec":"seconds 0:90","first_present":0,"ms":90004.055},"presents":1042,"frame_ms":{"p50":78.804,"p90":103.278,"p99":361.500,"max":6663.608},"gpu_busy_ms_per_present":36.390,"worker_busy_pct":{"queue worker 0x0":89.676,"queue worker 0x20":66.560},"phase_totals_ms":{"Driver.Completion":2.561,"Driver.Dispatch":22057.040,"Driver.Dispatch.capture_resources":3007.036,"Driver.Dispatch.decode_key_device_setup":287.627,"Driver.Dispatch.lookup_cache":74.842,"Driver.Dispatch.materialize":2350.162,"Driver.Dispatch.prepared_invocation":249.395,"Driver.Draw":11492.402,"Driver.Draw.device_setup":168.036,"Driver.Draw.draw_enqueued":5322.505,"Driver.Draw.post_compile_prepare":42.010,"Driver.Draw.prepare":659.250,"Driver.Draw.shader_compile_and_link":5207.989,"Driver.EndSubmission":177.651,"Driver.Packet":140438.694,"Driver.Packet.device_lock":181.000,"Driver.Packet.dispatch":50762.634,"Driver.Packet.draw":11532.444,"Driver.Packet.execute":861.247,"Driver.Packet.flip_flush":36.475,"Driver.Packet.flush_between_packets":604.680,"Driver.Packet.memory_wait":54215.286,"Driver.Packet.pipeline_drain":1382.719,"Driver.Packet.pipeline_prepare":239.637,"Driver.Packet.prepare_memory":408.080,"Driver.Packet.rendering_wait":17266.469,"Driver.Present":37441.490,"Driver.Present.acquire_image":29751.365,"Driver.Present.device_setup":0.504,"Driver.Present.gpu_mutex_wait":4062.571,"Driver.Present.inflight_wait":2.559,"Driver.Present.present_display_buffer":175.682,"Driver.Present.queue_present":122.202,"Driver.Present.release_and_callback":2.283,"Driver.Present.render_fence_wait":3321.849,"Driver.Present.resize":1.543,"Driver.Present.validate":0.365,"Driver.Suspend":0.283,"GpuMutex.wait.dispatch":161.209,"GpuMutex.wait.draw":87.485,"GpuMutex.wait.end":61.276,"GpuMutex.wait.fill":2.480,"GpuMutex.wait.flush":42.959,"GpuMutex.wait.hook":1285.021,"GpuMutex.wait.indirect":0.011,"GpuMutex.wait.label":288.772,"GpuMutex.wait.other":2580.138,"GpuMutex.wait.present":4059.961,"Graphics.Draw":25080.225,"Graphics.Draw.draw_and_resource_release":23377.307,"Graphics.Draw.index_upload":664.669,"Graphics.Draw.validate":396.679,"Graphics.Draw.vertex_upload":579.799,"Graphics.DrawWithRecipe":31.600,"Graphics.DrawWithRecipe.draw_and_resource_release":30.090,"Graphics.DrawWithRecipe.index_upload":0.062,"Graphics.DrawWithRecipe.validate":0.419,"Graphics.DrawWithRecipe.vertex_upload":0.188,"Graphics.Submit":20.398,"Graphics.Submit.command_end":1.351,"Graphics.Submit.queue_submit":18.931,"Graphics.Wait":1197.315,"Graphics.Wait.fence_wait":1195.955,"Recorder.Reap":390.501,"Recorder.Submit":938.947,"Recorder.Sync":5909.417,"Recorder.WaitSerial":4220.601,"Resources.Complete":3908.366,"Resources.Prepare":3122.352,"Shader.DrawStage":4582.596,"Shader.DrawStage.capture_resources":1491.812,"Shader.DrawStage.materialize":2727.057,"Shader.DrawStage.prepared_invocation":331.159,"Shader.PrepareArtifact":697.486,"Shader.Register":120.606,"Shader.ResolveAbi":91.841,"Shader.ResolveGraphicsAbi":2.262,"Shader.ResolveGraphicsStagesAbi":99.641,"VideoOut.Flip":38703.770,"VideoOut.Flip.completion_mutex_wait":1.020,"VideoOut.Flip.config_mutex_wait":0.129,"VideoOut.Flip.frame_limit":0.837,"VideoOut.Flip.notify_game":63.157,"VideoOut.Flip.present":37433.193,"VideoOut.Flip.validate":1.187,"VideoOut.Flip.vblank_wait":1151.164,"VideoOut.Flip.window_prepare":1.625,"VideoOut.Flip.window_title":49.056,"VideoOut.Readiness":1.689,"VideoOut.Readiness.locks_validate":0.546,"Vulkan.Acquire":29750.169,"Vulkan.Acquire.acquire_fence_wait":29671.368,"Vulkan.Acquire.acquire_image":74.283,"Vulkan.Acquire.fence_reset":2.251,"Vulkan.Acquire.retired_swapchains":1.827,"Vulkan.Dispatch":6435.856,"Vulkan.Dispatch.command_record":1075.413,"Vulkan.Dispatch.shader_resources":5327.724,"Vulkan.DispatchRecipe":18.750,"Vulkan.DispatchRecipe.command_record":18.523,"Vulkan.DrawFromRecipe":31.988,"Vulkan.GraphicsPipeline":35.802,"Vulkan.GraphicsPipeline.modules_and_state":19.971,"Vulkan.GraphicsPipelineLibrary":12.760,"Vulkan.GraphicsPipelinePrebuild":37.326,"Vulkan.Present":108.983,"Vulkan.Present.command_record_scale":31.806,"Vulkan.Present.pixel_upload":57.850,"Vulkan.Present.queue_submit":18.701,"Vulkan.QueuePresent":120.183,"Vulkan.QueuePresent.queue_present":119.067,"Vulkan.Retire":3321.778,"Vulkan.Retire.wait":3312.083},"top_phases_ms_per_frame":{"Driver.Packet":134.778,"Driver.Packet.memory_wait":52.030,"Driver.Packet.dispatch":48.717,"VideoOut.Flip":37.144,"Driver.Present":35.932,"VideoOut.Flip.present":35.924,"Driver.Present.acquire_image":28.552,"Vulkan.Acquire":28.551},"owned_draw_counts":{},"graphics_track":{"Graphics.Barrier.copy":50972,"Graphics.Barrier.dcc-clear":61070,"Graphics.Barrier.dcc-keys":17410,"Graphics.Barrier.dispatch-lead":177565,"Graphics.Barrier.dispatch-trail":250450,"Graphics.Barrier.draw":159875,"Graphics.Barrier.fill":39251,"Graphics.Barrier.indirect-args":1988,"Graphics.Barrier.label-run":69014,"Graphics.Barrier.present-blit":2084,"Graphics.Barrier.shadow-publish":14530,"Graphics.Barrier.staging-in":381272,"Graphics.Barrier.staging-out":188976,"Graphics.Barrier.storage-upload":10278,"Graphics.Barrier.storage-writeback":80677,"Graphics.BarrierMerged.copy":39,"Graphics.BarrierMerged.dispatch-lead":76861,"Graphics.BarrierMerged.fill":31841,"Graphics.BarrierMerged.label-run":9816,"Graphics.BarrierMerged.shadow-publish":14530,"Graphics.BarrierMerged.staging-in":185758,"Graphics.BarrierMerged.staging-out":188976,"Graphics.BarrierMerged.storage-writeback":26626,"Graphics.Copy":426266,"Graphics.Copy.bytes":99082159624,"Graphics.RenderPass":92536,"Graphics.RenderPass.Close.command":36847,"Graphics.RenderPass.Close.image":16955,"Graphics.RenderPass.Close.key":20612,"Graphics.RenderPass.Close.label":9816,"Graphics.RenderPass.Close.new-batch":8245,"Graphics.RenderPass.Continued":118663},"trace_dropped":false,"trace":"aps5-trace-80fa4d510e96-10760.json.gz"}
{"commit":"747f25ffe8d3","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"16384","APS5_PAD_INPUT_FILE":"<path>","APS5_PREBUILD_THREADS":"16","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"0:90"},"gpu":"AMD Radeon RX 9070 XT","driver":"AMD proprietary driver 26.10.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 9800X3D 8-Core Processor","cpu_threads":16,"memory_mib":47941,"title_id":"PPSA13197","title":"Stellar Blade","content_version":"01.014.001","resolution":"3840x2160","window":{"spec":"seconds 0:90","first_present":0,"ms":90028.062},"presents":1078,"frame_ms":{"p50":75.603,"p90":96.100,"p99":390.207,"max":6129.082},"gpu_busy_ms_per_present":35.790,"worker_busy_pct":{"queue worker 0x0":89.624,"queue worker 0x20":66.310},"phase_totals_ms":{"Driver.Completion":2.895,"Driver.Dispatch":25786.547,"Driver.Dispatch.capture_resources":3027.255,"Driver.Dispatch.decode_key_device_setup":299.513,"Driver.Dispatch.lookup_cache":77.312,"Driver.Dispatch.materialize":1053.142,"Driver.Dispatch.prepared_invocation":265.681,"Driver.Draw":10318.057,"Driver.Draw.device_setup":173.102,"Driver.Draw.draw_enqueued":4639.376,"Driver.Draw.post_compile_prepare":44.096,"Driver.Draw.prepare":689.609,"Driver.Draw.shader_compile_and_link":4671.690,"Driver.EndSubmission":196.684,"Driver.Packet":140185.015,"Driver.Packet.device_lock":187.668,"Driver.Packet.dispatch":48985.583,"Driver.Packet.draw":10359.791,"Driver.Packet.execute":891.079,"Driver.Packet.flip_flush":36.505,"Driver.Packet.flush_between_packets":611.780,"Driver.Packet.memory_wait":56515.116,"Driver.Packet.pipeline_drain":1456.062,"Driver.Packet.pipeline_prepare":247.725,"Driver.Packet.prepare_memory":332.956,"Driver.Packet.rendering_wait":17515.909,"Driver.Present":38095.688,"Driver.Present.acquire_image":30219.153,"Driver.Present.device_setup":0.507,"Driver.Present.gpu_mutex_wait":4323.176,"Driver.Present.inflight_wait":2.646,"Driver.Present.present_display_buffer":177.828,"Driver.Present.queue_present":125.484,"Driver.Present.release_and_callback":2.373,"Driver.Present.render_fence_wait":3241.786,"Driver.Present.resize":1.720,"Driver.Present.validate":0.449,"Driver.Suspend":0.298,"GpuMutex.wait.dispatch":159.023,"GpuMutex.wait.draw":104.190,"GpuMutex.wait.end":85.032,"GpuMutex.wait.fill":10.705,"GpuMutex.wait.flush":67.521,"GpuMutex.wait.hook":1731.856,"GpuMutex.wait.indirect":0.001,"GpuMutex.wait.label":475.751,"GpuMutex.wait.other":742.459,"GpuMutex.wait.present":4320.484,"Graphics.Draw":25791.888,"Graphics.Draw.draw_and_resource_release":24076.810,"Graphics.Draw.index_upload":693.309,"Graphics.Draw.validate":394.559,"Graphics.Draw.vertex_upload":564.352,"Graphics.DrawWithRecipe":28.733,"Graphics.DrawWithRecipe.draw_and_resource_release":26.889,"Graphics.DrawWithRecipe.index_upload":0.046,"Graphics.DrawWithRecipe.validate":0.401,"Graphics.DrawWithRecipe.vertex_upload":0.210,"Graphics.Submit":19.182,"Graphics.Submit.command_end":1.191,"Graphics.Submit.queue_submit":17.879,"Graphics.Wait":1178.033,"Graphics.Wait.fence_wait":1175.845,"Recorder.Reap":366.796,"Recorder.Submit":1006.210,"Recorder.Sync":14861.205,"Recorder.WaitSerial":1294.411,"Resources.Complete":3467.787,"Resources.Prepare":2413.996,"Shader.DrawStage":4016.098,"Shader.DrawStage.capture_resources":1562.211,"Shader.DrawStage.materialize":2082.602,"Shader.DrawStage.prepared_invocation":338.067,"Shader.PrepareArtifact":731.419,"Shader.Register":126.277,"Shader.ResolveAbi":117.053,"Shader.ResolveGraphicsAbi":1.930,"Shader.ResolveGraphicsStagesAbi":103.789,"VideoOut.Flip":39376.423,"VideoOut.Flip.completion_mutex_wait":1.052,"VideoOut.Flip.config_mutex_wait":0.129,"VideoOut.Flip.frame_limit":0.868,"VideoOut.Flip.notify_game":60.926,"VideoOut.Flip.present":38086.205,"VideoOut.Flip.validate":1.203,"VideoOut.Flip.vblank_wait":1170.646,"VideoOut.Flip.window_prepare":1.557,"VideoOut.Flip.window_title":51.577,"VideoOut.Readiness":1.800,"VideoOut.Readiness.locks_validate":0.603,"Vulkan.Acquire":30217.963,"Vulkan.Acquire.acquire_fence_wait":30135.859,"Vulkan.Acquire.acquire_image":77.424,"Vulkan.Acquire.fence_reset":2.309,"Vulkan.Acquire.retired_swapchains":1.901,"Vulkan.Dispatch":14940.389,"Vulkan.Dispatch.command_record":1146.696,"Vulkan.Dispatch.shader_resources":13749.784,"Vulkan.DispatchRecipe":20.212,"Vulkan.DispatchRecipe.command_record":19.987,"Vulkan.DrawFromRecipe":29.117,"Vulkan.GraphicsPipeline":41.281,"Vulkan.GraphicsPipeline.modules_and_state":24.660,"Vulkan.GraphicsPipelineLibrary":13.536,"Vulkan.GraphicsPipelinePrebuild":42.770,"Vulkan.Present":110.154,"Vulkan.Present.command_record_scale":33.431,"Vulkan.Present.pixel_upload":58.351,"Vulkan.Present.queue_submit":17.712,"Vulkan.QueuePresent":123.312,"Vulkan.QueuePresent.queue_present":122.244,"Vulkan.Retire":3241.757,"Vulkan.Retire.wait":3231.764},"top_phases_ms_per_frame":{"Driver.Packet":130.042,"Driver.Packet.memory_wait":52.426,"Driver.Packet.dispatch":45.441,"VideoOut.Flip":36.527,"Driver.Present":35.339,"VideoOut.Flip.present":35.330,"Driver.Present.acquire_image":28.033,"Vulkan.Acquire":28.032},"owned_draw_counts":{},"graphics_track":{"Graphics.Barrier.copy":52907,"Graphics.Barrier.dcc-clear":64352,"Graphics.Barrier.dcc-keys":18370,"Graphics.Barrier.dispatch-lead":189008,"Graphics.Barrier.dispatch-trail":264640,"Graphics.Barrier.draw":166548,"Graphics.Barrier.fill":41263,"Graphics.Barrier.indirect-args":2000,"Graphics.Barrier.label-run":73064,"Graphics.Barrier.present-blit":2156,"Graphics.Barrier.shadow-publish":15043,"Graphics.Barrier.staging-in":402573,"Graphics.Barrier.staging-out":199543,"Graphics.Barrier.storage-upload":10511,"Graphics.Barrier.storage-writeback":83075,"Graphics.BarrierMerged.copy":28,"Graphics.BarrierMerged.dispatch-lead":79633,"Graphics.BarrierMerged.fill":33485,"Graphics.BarrierMerged.label-run":10070,"Graphics.BarrierMerged.shadow-publish":15041,"Graphics.BarrierMerged.staging-in":196233,"Graphics.BarrierMerged.staging-out":199543,"Graphics.BarrierMerged.storage-writeback":27614,"Graphics.Copy":448882,"Graphics.Copy.bytes":100200862224,"Graphics.RenderPass":96026,"Graphics.RenderPass.Close.command":38537,"Graphics.RenderPass.Close.image":17475,"Graphics.RenderPass.Close.key":20975,"Graphics.RenderPass.Close.label":10070,"Graphics.RenderPass.Close.new-batch":8884,"Graphics.RenderPass.Continued":120325},"trace_dropped":false,"trace":"aps5-trace-747f25ffe8d3-10164.json.gz"}

Traces, trace_digest.py output and summary lines of all captures: https://github.com/moong15/AnyPS5/releases/tag/pr6924-evidence-20261115 (archive SHA-256 e492ce6e7c9eec7b3c058fd0af8825d4a00e8b241a726ad8bccca321af1f7059)

Tests, all on the same machine and GPU, ctest -V -j1 -R '^agc_(shader_disk_cache|float16_conversion|denormal_flush_elimination|shader_control_flow|wave_control_decode|driver_f16_denormal_flush|driver_f32_denormal_flush)' with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1, VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation and VK_LOADER_DEBUG=layer, on main 80fa4d510e and on this branch: 14/14 pass on both. The validation layer is 1.4.335, built from Vulkan-ValidationLayers tag vulkan-sdk-1.4.335.0 and found through VK_ADD_LAYER_PATH. Both logs show Insert instance layer "VK_LAYER_KHRONOS_validation" (in agc_driver_f16_denormal_flush and agc_driver_f32_denormal_flush, the two tests that create an instance); neither log reports was not found but was requested by env var VK_INSTANCE_LAYERS; neither log has a VUID- line.

  • agc_shader_disk_cache runs two child processes for a record rewritten at another size, with a 1 MiB cap. In the first, a 256 KiB module is rewritten at 640 KiB and another 640 KiB module is stored: the directory must stay within the cap with one eviction. In the second, a 640 KiB module is rewritten at 256 KiB and two more 256 KiB modules are stored: all three must remain, with no eviction. With the size change left out of the byte total, the first fails with "a module rewritten larger was counted at its old size, so the entries on disk exceed APS5_SPECIALIZED_DISK_CACHE_MAX_MIB=1 (1311130 bytes)".
  • It runs three child processes on one cache directory for the buffer substitutes. The first stores the binding plan of a bound slot and serves a null V# from it through the learned substitute. The second sees the null V# before any substitute is learned and must miss the binding plan and the specialized module, then loads both for the bound slot under the same base artifact. The third learns a substitute from a slot bound with another format, must not be served the stored plan for the null V#, and then still loads it for the first descriptor. With bindingPlanIdentity passing no substitutes to BufferSpecializationFields, the second process fails with "a null V# with no substitute learned was served the binding plan stored for a learned substitute" and the third with "a null V# did not specialize with the substitute this process learned".
  • It runs two child processes for shaderImageMinLod on a fixture that samples an image: the second loads the plan and module stored without the flag, then compiles with the flag and must miss both and get a different module. shaderImageMinLod is part of the request key the base artifact's identity is built from, so one artifact never sees both values and the key word alone cannot be shown to matter; the test shows that a request with the other value is not served the stored entries.
  • It runs the child process (--uncached-specialized) that compiles twice with useCache=false for a device with and one without RoundingModeRTE against one cache directory, and requires no specialized or binding-plan hit, miss or write and no stored entry.
  • It also covers store, load, damaged and truncated records, APS5_NO_SPECIALIZED_DISK_CACHE=1, the entry cap (an evicted record misses and is rebuilt, a recently used one survives), the byte cap, a malformed and a zero cap value, a base artifact that changes under the same specialization inputs, and the DescriptorBinding and specialized module round trips including specialization.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: AMD Radeon RX 9070 XT, AMD proprietary driver 26.10.1 (LLPC), Windows 11 Pro 10.0.26300
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4892934509 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6924). Originally posted by [moong15](https://github.com/moong15) on 2026-10-16T18:56:06Z. --- ### What Runtime-specialized shader modules and their binding plans were rebuilt on every launch, even with a warm shader disk cache. They are built on the queue worker when a draw or dispatch first needs them, so the rebuild lands on the critical path while a title loads. They are now stored in the shader disk cache next to their base artifact, keyed by the base artifact's digest plus the exact specialization inputs, and loaded on a warm start. A missing, differently keyed or damaged record is rebuilt. The disk cache format goes to 70. `APS5_NO_SPECIALIZED_DISK_CACHE=1` turns it off. The `[shader-disk-cache]` line reports specialized module and binding plan hits, misses and writes. The specialized records are bounded. `APS5_SPECIALIZED_DISK_CACHE_ENTRIES` (default 65536) and `APS5_SPECIALIZED_DISK_CACHE_MAX_MIB` (default 2048) cap them together, and the least recently used specialized record is deleted when either limit is exceeded: after each specialized write, after a load that finds a record grown, and once at start. A record rewritten at another size moves the byte total by the difference. Base artifacts and resource plans are never evicted. `0` keeps none, the same as `APS5_NO_SPECIALIZED_DISK_CACHE=1`. Both switches are neutral to the cache key and documented in `docs/user/USAGE.md` and `docs/dev/ENVIRONMENT.md`; the defaults are guesses, recorded in `docs/dev/debt/shader.md`. The start-up `[shader-disk-cache]` line prints the specialized entry count and size on disk, and the 10 s line reports evictions. A variant compiled without going through `findOrCompileVariant` (`useCache=false`: `recompileOnce`, and `RecompileImpl` without a cache or capture source) has no disk key. `CompiledVariant::artifactIdentity` is empty for such a variant, and `specializedDiskCache` returns false unless the identity has the full artifact-identity length. Those compiles neither read nor write specialized entries. The binding plan identity covers every input of `DescriptorBindingBuilder::Prepare`: the buffer fields go through `BufferSpecializationFields` with the substitutes, so a null V# is keyed by the substitute its slot learned, and `fragmentDescriptorSet` and `shaderImageMinLod` are key words. A specialized module loaded from disk carries the same fields as a built one (interned SPIR-V, hash, bindings, push data, specialization constants), `artifactIdentity` is set next to `attachSubstitutes` on the disk-cache paths only, and `userDataRegisterReads` is computed in `materializeResult` whether the plan was built or loaded. With draw and dispatch shaders prepared off the submit thread, each specialized lookup still runs inside one `materializeResult` call on the thread that makes it, and the shared LRU list and index change only under the specialized mutex. ### Tested Windows 11 Pro 10.0.26300, MinGW GCC 15.2 Release build, AMD Radeon RX 9070 XT, AMD proprietary driver 26.10.1 (LLPC), 3840x2160. Stellar Blade (PPSA13197, 01.014.001). Builds: `main` 80fa4d510e and this branch on it (747f25ffe8); the branch also merges cleanly with `main` e74dd5b992. I measured on 80fa4d510e because on e74dd5b992 Stellar Blade stops at start-up with "guest sampler descriptor uses point preclamping which is not implemented". Both builds were staged as whole library sets and swapped between runs, the title was relinked once with the `main` relinker, and the embedded commit was checked in each summary line (`dirty` false in all). Warm shader and pipeline caches (each build ran the title before), same scene and settings, one session, no `APS5_PROFILE_*` switch. `APS5_TRACE_EVENTS=4194304` is set because the default 262144 events per thread fill in about 11 s on the busiest queue worker of this title; stdout and stderr were written to files. **Loading: first 90 s from the first present** (`APS5_TRACE_SECONDS=0:90`): main menu, save load and story start. Order: main, main, main, PR, PR, PR, main, main, PR, PR; the first launch after each swap is not counted. The first PR launch after a swap reads the specialized records from a cold disk: in an earlier set it took 15.7 s of specialized time against 8.1 s for the next PR launch. Specialized time is the sum of `Shader.DrawStage.materialize`, `Driver.Draw.shader_compile_and_link` and `Driver.Dispatch.materialize` in `phase_totals_ms` of each summary line. | Run | Build | Presents | p50 / p90 / p99 ms | Longest frame ms | Specialized time s | of which `Driver.Dispatch.materialize` s | |---|---|---|---|---|---|---| | 1 | main | 1042 | 78.8 / 103.3 / 361.5 | 6664 | 10.29 | 2.35 | | 2 | main | 1055 | 77.6 / 96.3 / 402.3 | 8356 | 10.64 | 2.48 | | 3 | this PR | 1078 | 75.6 / 96.1 / 390.2 | 6129 | 7.81 | 1.05 | | 4 | this PR | 1061 | 79.2 / 99.2 / 379.3 | 5906 | 7.32 | 1.03 | | 5 | main | 1553 | 31.6 / 85.0 / 324.9 | 9481 | 11.40 | 2.49 | | 6 | this PR | 1544 | 31.8 / 84.4 / 293.7 | 8020 | 9.63 | 1.24 | Runs 5 and 6 reached the playable story start inside the window and the first four did not, so 5 and 6 are compared with each other. With the specialized records read from disk, specialized time falls from 10.3-10.6 s to 7.3-7.8 s in runs 1-4 and from 11.4 s to 9.6 s in runs 5-6, with `Driver.Dispatch.materialize` about halved; the longest loading frame falls from 6.7-8.4 s to 5.9-6.1 s and from 9.5 s to 8.0 s. Presents and p50 do not move beyond noise. `trace_dropped` is false in all six. Each PR launch read 1076-1114 specialized modules and 1435-1647 binding plans from disk and still missed 177-205 modules and 1349-2649 binding plans, which it built and stored: the binding plan identity carries image descriptor words that differ from launch to launch. The specialized entries on disk grew from 26874 entries and 492 MiB at the start of run 3 to 33025 entries and 590 MiB at the start of run 6, under the 65536-entry and 2048 MiB limits; no eviction happened. **Steady play** (`APS5_TRACE_SECONDS=400:90`, interleaved main, PR, PR, main): presents 879 and 1012 on `main`, 977 and 972 here. No regression; the spread between the two `main` runs is larger than the difference. Summary lines (runs 1 and 3): ```json {"commit":"80fa4d510e96","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"16384","APS5_PAD_INPUT_FILE":"<path>","APS5_PREBUILD_THREADS":"16","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"0:90"},"gpu":"AMD Radeon RX 9070 XT","driver":"AMD proprietary driver 26.10.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 9800X3D 8-Core Processor","cpu_threads":16,"memory_mib":47941,"title_id":"PPSA13197","title":"Stellar Blade","content_version":"01.014.001","resolution":"3840x2160","window":{"spec":"seconds 0:90","first_present":0,"ms":90004.055},"presents":1042,"frame_ms":{"p50":78.804,"p90":103.278,"p99":361.500,"max":6663.608},"gpu_busy_ms_per_present":36.390,"worker_busy_pct":{"queue worker 0x0":89.676,"queue worker 0x20":66.560},"phase_totals_ms":{"Driver.Completion":2.561,"Driver.Dispatch":22057.040,"Driver.Dispatch.capture_resources":3007.036,"Driver.Dispatch.decode_key_device_setup":287.627,"Driver.Dispatch.lookup_cache":74.842,"Driver.Dispatch.materialize":2350.162,"Driver.Dispatch.prepared_invocation":249.395,"Driver.Draw":11492.402,"Driver.Draw.device_setup":168.036,"Driver.Draw.draw_enqueued":5322.505,"Driver.Draw.post_compile_prepare":42.010,"Driver.Draw.prepare":659.250,"Driver.Draw.shader_compile_and_link":5207.989,"Driver.EndSubmission":177.651,"Driver.Packet":140438.694,"Driver.Packet.device_lock":181.000,"Driver.Packet.dispatch":50762.634,"Driver.Packet.draw":11532.444,"Driver.Packet.execute":861.247,"Driver.Packet.flip_flush":36.475,"Driver.Packet.flush_between_packets":604.680,"Driver.Packet.memory_wait":54215.286,"Driver.Packet.pipeline_drain":1382.719,"Driver.Packet.pipeline_prepare":239.637,"Driver.Packet.prepare_memory":408.080,"Driver.Packet.rendering_wait":17266.469,"Driver.Present":37441.490,"Driver.Present.acquire_image":29751.365,"Driver.Present.device_setup":0.504,"Driver.Present.gpu_mutex_wait":4062.571,"Driver.Present.inflight_wait":2.559,"Driver.Present.present_display_buffer":175.682,"Driver.Present.queue_present":122.202,"Driver.Present.release_and_callback":2.283,"Driver.Present.render_fence_wait":3321.849,"Driver.Present.resize":1.543,"Driver.Present.validate":0.365,"Driver.Suspend":0.283,"GpuMutex.wait.dispatch":161.209,"GpuMutex.wait.draw":87.485,"GpuMutex.wait.end":61.276,"GpuMutex.wait.fill":2.480,"GpuMutex.wait.flush":42.959,"GpuMutex.wait.hook":1285.021,"GpuMutex.wait.indirect":0.011,"GpuMutex.wait.label":288.772,"GpuMutex.wait.other":2580.138,"GpuMutex.wait.present":4059.961,"Graphics.Draw":25080.225,"Graphics.Draw.draw_and_resource_release":23377.307,"Graphics.Draw.index_upload":664.669,"Graphics.Draw.validate":396.679,"Graphics.Draw.vertex_upload":579.799,"Graphics.DrawWithRecipe":31.600,"Graphics.DrawWithRecipe.draw_and_resource_release":30.090,"Graphics.DrawWithRecipe.index_upload":0.062,"Graphics.DrawWithRecipe.validate":0.419,"Graphics.DrawWithRecipe.vertex_upload":0.188,"Graphics.Submit":20.398,"Graphics.Submit.command_end":1.351,"Graphics.Submit.queue_submit":18.931,"Graphics.Wait":1197.315,"Graphics.Wait.fence_wait":1195.955,"Recorder.Reap":390.501,"Recorder.Submit":938.947,"Recorder.Sync":5909.417,"Recorder.WaitSerial":4220.601,"Resources.Complete":3908.366,"Resources.Prepare":3122.352,"Shader.DrawStage":4582.596,"Shader.DrawStage.capture_resources":1491.812,"Shader.DrawStage.materialize":2727.057,"Shader.DrawStage.prepared_invocation":331.159,"Shader.PrepareArtifact":697.486,"Shader.Register":120.606,"Shader.ResolveAbi":91.841,"Shader.ResolveGraphicsAbi":2.262,"Shader.ResolveGraphicsStagesAbi":99.641,"VideoOut.Flip":38703.770,"VideoOut.Flip.completion_mutex_wait":1.020,"VideoOut.Flip.config_mutex_wait":0.129,"VideoOut.Flip.frame_limit":0.837,"VideoOut.Flip.notify_game":63.157,"VideoOut.Flip.present":37433.193,"VideoOut.Flip.validate":1.187,"VideoOut.Flip.vblank_wait":1151.164,"VideoOut.Flip.window_prepare":1.625,"VideoOut.Flip.window_title":49.056,"VideoOut.Readiness":1.689,"VideoOut.Readiness.locks_validate":0.546,"Vulkan.Acquire":29750.169,"Vulkan.Acquire.acquire_fence_wait":29671.368,"Vulkan.Acquire.acquire_image":74.283,"Vulkan.Acquire.fence_reset":2.251,"Vulkan.Acquire.retired_swapchains":1.827,"Vulkan.Dispatch":6435.856,"Vulkan.Dispatch.command_record":1075.413,"Vulkan.Dispatch.shader_resources":5327.724,"Vulkan.DispatchRecipe":18.750,"Vulkan.DispatchRecipe.command_record":18.523,"Vulkan.DrawFromRecipe":31.988,"Vulkan.GraphicsPipeline":35.802,"Vulkan.GraphicsPipeline.modules_and_state":19.971,"Vulkan.GraphicsPipelineLibrary":12.760,"Vulkan.GraphicsPipelinePrebuild":37.326,"Vulkan.Present":108.983,"Vulkan.Present.command_record_scale":31.806,"Vulkan.Present.pixel_upload":57.850,"Vulkan.Present.queue_submit":18.701,"Vulkan.QueuePresent":120.183,"Vulkan.QueuePresent.queue_present":119.067,"Vulkan.Retire":3321.778,"Vulkan.Retire.wait":3312.083},"top_phases_ms_per_frame":{"Driver.Packet":134.778,"Driver.Packet.memory_wait":52.030,"Driver.Packet.dispatch":48.717,"VideoOut.Flip":37.144,"Driver.Present":35.932,"VideoOut.Flip.present":35.924,"Driver.Present.acquire_image":28.552,"Vulkan.Acquire":28.551},"owned_draw_counts":{},"graphics_track":{"Graphics.Barrier.copy":50972,"Graphics.Barrier.dcc-clear":61070,"Graphics.Barrier.dcc-keys":17410,"Graphics.Barrier.dispatch-lead":177565,"Graphics.Barrier.dispatch-trail":250450,"Graphics.Barrier.draw":159875,"Graphics.Barrier.fill":39251,"Graphics.Barrier.indirect-args":1988,"Graphics.Barrier.label-run":69014,"Graphics.Barrier.present-blit":2084,"Graphics.Barrier.shadow-publish":14530,"Graphics.Barrier.staging-in":381272,"Graphics.Barrier.staging-out":188976,"Graphics.Barrier.storage-upload":10278,"Graphics.Barrier.storage-writeback":80677,"Graphics.BarrierMerged.copy":39,"Graphics.BarrierMerged.dispatch-lead":76861,"Graphics.BarrierMerged.fill":31841,"Graphics.BarrierMerged.label-run":9816,"Graphics.BarrierMerged.shadow-publish":14530,"Graphics.BarrierMerged.staging-in":185758,"Graphics.BarrierMerged.staging-out":188976,"Graphics.BarrierMerged.storage-writeback":26626,"Graphics.Copy":426266,"Graphics.Copy.bytes":99082159624,"Graphics.RenderPass":92536,"Graphics.RenderPass.Close.command":36847,"Graphics.RenderPass.Close.image":16955,"Graphics.RenderPass.Close.key":20612,"Graphics.RenderPass.Close.label":9816,"Graphics.RenderPass.Close.new-batch":8245,"Graphics.RenderPass.Continued":118663},"trace_dropped":false,"trace":"aps5-trace-80fa4d510e96-10760.json.gz"} {"commit":"747f25ffe8d3","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"16384","APS5_PAD_INPUT_FILE":"<path>","APS5_PREBUILD_THREADS":"16","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"0:90"},"gpu":"AMD Radeon RX 9070 XT","driver":"AMD proprietary driver 26.10.1 (LLPC)","os":"Windows 10.0.26300","cpu":"AMD Ryzen 7 9800X3D 8-Core Processor","cpu_threads":16,"memory_mib":47941,"title_id":"PPSA13197","title":"Stellar Blade","content_version":"01.014.001","resolution":"3840x2160","window":{"spec":"seconds 0:90","first_present":0,"ms":90028.062},"presents":1078,"frame_ms":{"p50":75.603,"p90":96.100,"p99":390.207,"max":6129.082},"gpu_busy_ms_per_present":35.790,"worker_busy_pct":{"queue worker 0x0":89.624,"queue worker 0x20":66.310},"phase_totals_ms":{"Driver.Completion":2.895,"Driver.Dispatch":25786.547,"Driver.Dispatch.capture_resources":3027.255,"Driver.Dispatch.decode_key_device_setup":299.513,"Driver.Dispatch.lookup_cache":77.312,"Driver.Dispatch.materialize":1053.142,"Driver.Dispatch.prepared_invocation":265.681,"Driver.Draw":10318.057,"Driver.Draw.device_setup":173.102,"Driver.Draw.draw_enqueued":4639.376,"Driver.Draw.post_compile_prepare":44.096,"Driver.Draw.prepare":689.609,"Driver.Draw.shader_compile_and_link":4671.690,"Driver.EndSubmission":196.684,"Driver.Packet":140185.015,"Driver.Packet.device_lock":187.668,"Driver.Packet.dispatch":48985.583,"Driver.Packet.draw":10359.791,"Driver.Packet.execute":891.079,"Driver.Packet.flip_flush":36.505,"Driver.Packet.flush_between_packets":611.780,"Driver.Packet.memory_wait":56515.116,"Driver.Packet.pipeline_drain":1456.062,"Driver.Packet.pipeline_prepare":247.725,"Driver.Packet.prepare_memory":332.956,"Driver.Packet.rendering_wait":17515.909,"Driver.Present":38095.688,"Driver.Present.acquire_image":30219.153,"Driver.Present.device_setup":0.507,"Driver.Present.gpu_mutex_wait":4323.176,"Driver.Present.inflight_wait":2.646,"Driver.Present.present_display_buffer":177.828,"Driver.Present.queue_present":125.484,"Driver.Present.release_and_callback":2.373,"Driver.Present.render_fence_wait":3241.786,"Driver.Present.resize":1.720,"Driver.Present.validate":0.449,"Driver.Suspend":0.298,"GpuMutex.wait.dispatch":159.023,"GpuMutex.wait.draw":104.190,"GpuMutex.wait.end":85.032,"GpuMutex.wait.fill":10.705,"GpuMutex.wait.flush":67.521,"GpuMutex.wait.hook":1731.856,"GpuMutex.wait.indirect":0.001,"GpuMutex.wait.label":475.751,"GpuMutex.wait.other":742.459,"GpuMutex.wait.present":4320.484,"Graphics.Draw":25791.888,"Graphics.Draw.draw_and_resource_release":24076.810,"Graphics.Draw.index_upload":693.309,"Graphics.Draw.validate":394.559,"Graphics.Draw.vertex_upload":564.352,"Graphics.DrawWithRecipe":28.733,"Graphics.DrawWithRecipe.draw_and_resource_release":26.889,"Graphics.DrawWithRecipe.index_upload":0.046,"Graphics.DrawWithRecipe.validate":0.401,"Graphics.DrawWithRecipe.vertex_upload":0.210,"Graphics.Submit":19.182,"Graphics.Submit.command_end":1.191,"Graphics.Submit.queue_submit":17.879,"Graphics.Wait":1178.033,"Graphics.Wait.fence_wait":1175.845,"Recorder.Reap":366.796,"Recorder.Submit":1006.210,"Recorder.Sync":14861.205,"Recorder.WaitSerial":1294.411,"Resources.Complete":3467.787,"Resources.Prepare":2413.996,"Shader.DrawStage":4016.098,"Shader.DrawStage.capture_resources":1562.211,"Shader.DrawStage.materialize":2082.602,"Shader.DrawStage.prepared_invocation":338.067,"Shader.PrepareArtifact":731.419,"Shader.Register":126.277,"Shader.ResolveAbi":117.053,"Shader.ResolveGraphicsAbi":1.930,"Shader.ResolveGraphicsStagesAbi":103.789,"VideoOut.Flip":39376.423,"VideoOut.Flip.completion_mutex_wait":1.052,"VideoOut.Flip.config_mutex_wait":0.129,"VideoOut.Flip.frame_limit":0.868,"VideoOut.Flip.notify_game":60.926,"VideoOut.Flip.present":38086.205,"VideoOut.Flip.validate":1.203,"VideoOut.Flip.vblank_wait":1170.646,"VideoOut.Flip.window_prepare":1.557,"VideoOut.Flip.window_title":51.577,"VideoOut.Readiness":1.800,"VideoOut.Readiness.locks_validate":0.603,"Vulkan.Acquire":30217.963,"Vulkan.Acquire.acquire_fence_wait":30135.859,"Vulkan.Acquire.acquire_image":77.424,"Vulkan.Acquire.fence_reset":2.309,"Vulkan.Acquire.retired_swapchains":1.901,"Vulkan.Dispatch":14940.389,"Vulkan.Dispatch.command_record":1146.696,"Vulkan.Dispatch.shader_resources":13749.784,"Vulkan.DispatchRecipe":20.212,"Vulkan.DispatchRecipe.command_record":19.987,"Vulkan.DrawFromRecipe":29.117,"Vulkan.GraphicsPipeline":41.281,"Vulkan.GraphicsPipeline.modules_and_state":24.660,"Vulkan.GraphicsPipelineLibrary":13.536,"Vulkan.GraphicsPipelinePrebuild":42.770,"Vulkan.Present":110.154,"Vulkan.Present.command_record_scale":33.431,"Vulkan.Present.pixel_upload":58.351,"Vulkan.Present.queue_submit":17.712,"Vulkan.QueuePresent":123.312,"Vulkan.QueuePresent.queue_present":122.244,"Vulkan.Retire":3241.757,"Vulkan.Retire.wait":3231.764},"top_phases_ms_per_frame":{"Driver.Packet":130.042,"Driver.Packet.memory_wait":52.426,"Driver.Packet.dispatch":45.441,"VideoOut.Flip":36.527,"Driver.Present":35.339,"VideoOut.Flip.present":35.330,"Driver.Present.acquire_image":28.033,"Vulkan.Acquire":28.032},"owned_draw_counts":{},"graphics_track":{"Graphics.Barrier.copy":52907,"Graphics.Barrier.dcc-clear":64352,"Graphics.Barrier.dcc-keys":18370,"Graphics.Barrier.dispatch-lead":189008,"Graphics.Barrier.dispatch-trail":264640,"Graphics.Barrier.draw":166548,"Graphics.Barrier.fill":41263,"Graphics.Barrier.indirect-args":2000,"Graphics.Barrier.label-run":73064,"Graphics.Barrier.present-blit":2156,"Graphics.Barrier.shadow-publish":15043,"Graphics.Barrier.staging-in":402573,"Graphics.Barrier.staging-out":199543,"Graphics.Barrier.storage-upload":10511,"Graphics.Barrier.storage-writeback":83075,"Graphics.BarrierMerged.copy":28,"Graphics.BarrierMerged.dispatch-lead":79633,"Graphics.BarrierMerged.fill":33485,"Graphics.BarrierMerged.label-run":10070,"Graphics.BarrierMerged.shadow-publish":15041,"Graphics.BarrierMerged.staging-in":196233,"Graphics.BarrierMerged.staging-out":199543,"Graphics.BarrierMerged.storage-writeback":27614,"Graphics.Copy":448882,"Graphics.Copy.bytes":100200862224,"Graphics.RenderPass":96026,"Graphics.RenderPass.Close.command":38537,"Graphics.RenderPass.Close.image":17475,"Graphics.RenderPass.Close.key":20975,"Graphics.RenderPass.Close.label":10070,"Graphics.RenderPass.Close.new-batch":8884,"Graphics.RenderPass.Continued":120325},"trace_dropped":false,"trace":"aps5-trace-747f25ffe8d3-10164.json.gz"} ``` Traces, `trace_digest.py` output and summary lines of all captures: https://github.com/moong15/AnyPS5/releases/tag/pr6924-evidence-20261115 (archive SHA-256 `e492ce6e7c9eec7b3c058fd0af8825d4a00e8b241a726ad8bccca321af1f7059`) Tests, all on the same machine and GPU, `ctest -V -j1 -R '^agc_(shader_disk_cache|float16_conversion|denormal_flush_elimination|shader_control_flow|wave_control_decode|driver_f16_denormal_flush|driver_f32_denormal_flush)'` with `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1`, `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation` and `VK_LOADER_DEBUG=layer`, on `main` 80fa4d510e and on this branch: 14/14 pass on both. The validation layer is 1.4.335, built from `Vulkan-ValidationLayers` tag `vulkan-sdk-1.4.335.0` and found through `VK_ADD_LAYER_PATH`. Both logs show `Insert instance layer "VK_LAYER_KHRONOS_validation"` (in `agc_driver_f16_denormal_flush` and `agc_driver_f32_denormal_flush`, the two tests that create an instance); neither log reports `was not found but was requested by env var VK_INSTANCE_LAYERS`; neither log has a `VUID-` line. - `agc_shader_disk_cache` runs two child processes for a record rewritten at another size, with a 1 MiB cap. In the first, a 256 KiB module is rewritten at 640 KiB and another 640 KiB module is stored: the directory must stay within the cap with one eviction. In the second, a 640 KiB module is rewritten at 256 KiB and two more 256 KiB modules are stored: all three must remain, with no eviction. With the size change left out of the byte total, the first fails with "a module rewritten larger was counted at its old size, so the entries on disk exceed APS5_SPECIALIZED_DISK_CACHE_MAX_MIB=1 (1311130 bytes)". - It runs three child processes on one cache directory for the buffer substitutes. The first stores the binding plan of a bound slot and serves a null V# from it through the learned substitute. The second sees the null V# before any substitute is learned and must miss the binding plan and the specialized module, then loads both for the bound slot under the same base artifact. The third learns a substitute from a slot bound with another format, must not be served the stored plan for the null V#, and then still loads it for the first descriptor. With `bindingPlanIdentity` passing no substitutes to `BufferSpecializationFields`, the second process fails with "a null V# with no substitute learned was served the binding plan stored for a learned substitute" and the third with "a null V# did not specialize with the substitute this process learned". - It runs two child processes for `shaderImageMinLod` on a fixture that samples an image: the second loads the plan and module stored without the flag, then compiles with the flag and must miss both and get a different module. `shaderImageMinLod` is part of the request key the base artifact's identity is built from, so one artifact never sees both values and the key word alone cannot be shown to matter; the test shows that a request with the other value is not served the stored entries. - It runs the child process (`--uncached-specialized`) that compiles twice with `useCache=false` for a device with and one without `RoundingModeRTE` against one cache directory, and requires no specialized or binding-plan hit, miss or write and no stored entry. - It also covers store, load, damaged and truncated records, `APS5_NO_SPECIALIZED_DISK_CACHE=1`, the entry cap (an evicted record misses and is rebuilt, a recently used one survives), the byte cap, a malformed and a zero cap value, a base artifact that changes under the same specialization inputs, and the `DescriptorBinding` and specialized module round trips including `specialization`. ### 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) - [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: AMD Radeon RX 9070 XT, AMD proprietary driver 26.10.1 (LLPC), Windows 11 Pro 10.0.26300 - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
CnRJay commented 2026-10-16 22:09:56 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by CnRJay on 2026-10-16T22:09:56Z.

Review: COMMENTED


The idea is sound (rebuilding specialized modules and binding plans on every launch lands on the queue worker during loading), and the key test covers each input. The evidence does not yet show the gain, and the cache has no bound.

  • The two summary lines the description attaches point the other way in the window they cover: cache on 438 presents, p90 563 ms, p99 2145 ms, Driver.Packet 343 ms per frame; cache off 783 presents, p90 42 ms, p99 1368 ms, Driver.Packet 186 ms per frame. The description explains that the windows cover different parts of loading, which is the problem: they can't be compared. The "119 s against 138 s to the menu" is one pair read off the 10 s intervals, and the earlier runs it cites (83-112 s on, 105-159 s off) overlap. The cache-on trace also lost 344,091 worker events after 35 s (trace_dropped: true). Please post a pair that covers the same stretch (start the window at the same title milestone, e.g. the first menu present, and run to a fixed time after it), a second pair to show the spread, and traces that are whole (APS5_TRACE_EVENTS).
  • The key includes the captured descriptors and the specialization constants, so a title whose descriptors vary writes a new entry for every distinct combination. Nothing bounds the number or size of these entries or evicts them. Post the entry count and size on disk after the Stellar Blade runs, and add a cap with eviction before this lands, otherwise the shader cache grows with play time.
  • Disk cache format 37 is also taken by the rebased #5656 (SrtUserDataUse) and by JJenkx's refresh of it, and #6947 uses 38. Whoever lands second has to renumber; say which this PR expects to follow.
  • The test covers store, load, damaged and truncated records. It does not cover a base artifact that changes under the same specialization inputs (the key is the base digest, so it should miss): add that case.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5554240687 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6924#pullrequestreview-5554240687). Originally posted by [CnRJay](https://github.com/CnRJay) on 2026-10-16T22:09:56Z. **Review:** COMMENTED --- The idea is sound (rebuilding specialized modules and binding plans on every launch lands on the queue worker during loading), and the key test covers each input. The evidence does not yet show the gain, and the cache has no bound. - The two summary lines the description attaches point the other way in the window they cover: cache on 438 presents, p90 563 ms, p99 2145 ms, `Driver.Packet` 343 ms per frame; cache off 783 presents, p90 42 ms, p99 1368 ms, `Driver.Packet` 186 ms per frame. The description explains that the windows cover different parts of loading, which is the problem: they can't be compared. The "119 s against 138 s to the menu" is one pair read off the 10 s intervals, and the earlier runs it cites (83-112 s on, 105-159 s off) overlap. The cache-on trace also lost 344,091 worker events after 35 s (`trace_dropped: true`). Please post a pair that covers the same stretch (start the window at the same title milestone, e.g. the first menu present, and run to a fixed time after it), a second pair to show the spread, and traces that are whole (`APS5_TRACE_EVENTS`). - The key includes the captured descriptors and the specialization constants, so a title whose descriptors vary writes a new entry for every distinct combination. Nothing bounds the number or size of these entries or evicts them. Post the entry count and size on disk after the Stellar Blade runs, and add a cap with eviction before this lands, otherwise the shader cache grows with play time. - Disk cache format 37 is also taken by the rebased #5656 (`SrtUserDataUse`) and by JJenkx's refresh of it, and #6947 uses 38. Whoever lands second has to renumber; say which this PR expects to follow. - The test covers store, load, damaged and truncated records. It does not cover a base artifact that changes under the same specialization inputs (the key is the base digest, so it should miss): add that case.
moong15 commented 2026-10-17 05:07:41 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by moong15 on 2026-10-17T05:07:41Z.


Bound on the entries. Added. Specialized module and binding-plan entries are capped by APS5_SPECIALIZED_DISK_CACHE_ENTRIES (default 65536) and APS5_SPECIALIZED_DISK_CACHE_MAX_MIB (default 2048), read like APS5_PIPELINE_STORE_ENTRIES and APS5_PIPELINE_JOURNAL_MAX_MIB and neutral to the cache key. When either limit is exceeded the least recently used specialized entry is deleted (after each specialized write and once at start). Base artifacts and resource plans are never evicted, since only files with the specialized- prefix are candidates. 0 turns the feature off. Both defaults are guesses and are recorded in docs/dev/debt/shader.md. Start-up now prints the entry count and size on disk, and the 10 s [shader-disk-cache] line reports evictions:

[shader-disk-cache] 2044 specialized entries, 189.4 MiB on disk, of a limit of 65536 entries and 2048 MiB

Tests: --specialized-cap-entries (the cap is enforced, an evicted entry misses and is rebuilt, a recently used one survives), --specialized-cap-bytes, --specialized-cap-invalid, --specialized-cap-off.

A base artifact that changes under the same specialization inputs. Added --load-specialized-artifact-changed. It changes one code word of a stored fixture's base artifact and requires one module miss and write, one plan miss and write, and the other 15 fixtures still hitting. The entry damage test also requires KeyMismatch when an entry is decoded under another base digest with the same inputs.

Format number. It stays 37 for now. If #5656 lands first, this PR moves to 38, or to 39 if #6947 also lands. The only literal is ShaderDiskCache.hpp:17.

Tests: agc_shader_disk_cache passes; full ctest 1346/1351, and the 5 failures also fail on main or depend on the environment.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6229976601 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6924#issuecomment-6229976601). Originally posted by [moong15](https://github.com/moong15) on 2026-10-17T05:07:41Z. --- **Bound on the entries.** Added. Specialized module and binding-plan entries are capped by `APS5_SPECIALIZED_DISK_CACHE_ENTRIES` (default 65536) and `APS5_SPECIALIZED_DISK_CACHE_MAX_MIB` (default 2048), read like `APS5_PIPELINE_STORE_ENTRIES` and `APS5_PIPELINE_JOURNAL_MAX_MIB` and neutral to the cache key. When either limit is exceeded the least recently used specialized entry is deleted (after each specialized write and once at start). Base artifacts and resource plans are never evicted, since only files with the `specialized-` prefix are candidates. `0` turns the feature off. Both defaults are guesses and are recorded in `docs/dev/debt/shader.md`. Start-up now prints the entry count and size on disk, and the 10 s `[shader-disk-cache]` line reports evictions: ``` [shader-disk-cache] 2044 specialized entries, 189.4 MiB on disk, of a limit of 65536 entries and 2048 MiB ``` Tests: `--specialized-cap-entries` (the cap is enforced, an evicted entry misses and is rebuilt, a recently used one survives), `--specialized-cap-bytes`, `--specialized-cap-invalid`, `--specialized-cap-off`. **A base artifact that changes under the same specialization inputs.** Added `--load-specialized-artifact-changed`. It changes one code word of a stored fixture's base artifact and requires one module miss and write, one plan miss and write, and the other 15 fixtures still hitting. The entry damage test also requires `KeyMismatch` when an entry is decoded under another base digest with the same inputs. **Format number.** It stays 37 for now. If #5656 lands first, this PR moves to 38, or to 39 if #6947 also lands. The only literal is `ShaderDiskCache.hpp:17`. Tests: `agc_shader_disk_cache` passes; full ctest 1346/1351, and the 5 failures also fail on main or depend on the environment.
Sam-mon7 commented 2026-10-17 09:47:55 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Sam-mon7 on 2026-10-17T09:47:55Z.


From reading the diff: the disk load and store wrap buildSpecializedModule inside specializeModule, and the binding plan build inside preparedBindingPlan. On main, neither function sits inside #if ANYPS5_ENABLE_SPIRV_TOOLS, and the diff adds no tools check, so this should also cover tools-off builds (the CMake default).

That is the case raised in the Demon's Souls discussion #1283: 351 specialized modules rebuilt on every launch, about 60 s on Linux NVIDIA with the tools off, where the persistent cache in another branch only covered the tools-on path. A cold and a warm tools-off launch of that title would confirm it. I haven't measured it yet.

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6232459739 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6924#issuecomment-6232459739). Originally posted by [Sam-mon7](https://github.com/Sam-mon7) on 2026-10-17T09:47:55Z. --- From reading the diff: the disk load and store wrap `buildSpecializedModule` inside `specializeModule`, and the binding plan build inside `preparedBindingPlan`. On main, neither function sits inside `#if ANYPS5_ENABLE_SPIRV_TOOLS`, and the diff adds no tools check, so this should also cover tools-off builds (the CMake default). That is the case raised in the Demon's Souls discussion #1283: 351 specialized modules rebuilt on every launch, about 60 s on Linux NVIDIA with the tools off, where the persistent cache in another branch only covered the tools-on path. A cold and a warm tools-off launch of that title would confirm it. I haven't measured it yet. AI-assisted: yes
moong15 commented 2026-10-17 14:22:29 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by moong15 on 2026-10-17T14:22:29Z.


Rebased onto main 47a266cf9. Two conflicts, both from code main added next to this PR's: runningWriters next to buildSpecializedKeyHeader in ShaderDiskCache.cpp, and removeCacheDirectory next to the new test helpers in the test file. I kept both sides of each. agc_shader_disk_cache (all modes, including the cap and changed-artifact cases) and the shutdown thread tests main added pass on the rebased head, and check_conventions.py passes.

The disk cache format stays at 37. #5656 and #6947 are still open, so the renumbering plan from my earlier comment still applies.

@Sam-mon7, correct. Neither specializeModule nor preparedBindingPlan sits inside an ANYPS5_ENABLE_SPIRV_TOOLS block, and the cache adds no tools check. The Stellar Blade numbers in the description also came from a tools-off build (ANYPS5_ENABLE_SPIRV_TOOLS=OFF, the CMake default), so tools-off is the case that was measured. I haven't run Demon's Souls.

@CnRJay, the matched pairs you asked for are still to come: two pairs of cache on and off, each starting at the first menu present and running a fixed time after it, with whole traces. I'll post them in a separate comment. The code is ready for review in the meantime.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6235027340 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6924#issuecomment-6235027340). Originally posted by [moong15](https://github.com/moong15) on 2026-10-17T14:22:29Z. --- Rebased onto `main` 47a266cf9. Two conflicts, both from code `main` added next to this PR's: `runningWriters` next to `buildSpecializedKeyHeader` in `ShaderDiskCache.cpp`, and `removeCacheDirectory` next to the new test helpers in the test file. I kept both sides of each. `agc_shader_disk_cache` (all modes, including the cap and changed-artifact cases) and the shutdown thread tests `main` added pass on the rebased head, and `check_conventions.py` passes. The disk cache format stays at 37. #5656 and #6947 are still open, so the renumbering plan from my earlier comment still applies. @Sam-mon7, correct. Neither `specializeModule` nor `preparedBindingPlan` sits inside an `ANYPS5_ENABLE_SPIRV_TOOLS` block, and the cache adds no tools check. The Stellar Blade numbers in the description also came from a tools-off build (`ANYPS5_ENABLE_SPIRV_TOOLS=OFF`, the CMake default), so tools-off is the case that was measured. I haven't run Demon's Souls. @CnRJay, the matched pairs you asked for are still to come: two pairs of cache on and off, each starting at the first menu present and running a fixed time after it, with whole traces. I'll post them in a separate comment. The code is ready for review in the meantime.
simonbronk commented 2026-10-17 22:08:29 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by simonbronk on 2026-10-17T22:08:29Z.


Tested on Onimusha's menu: no measurable change in this scene.

Setup: Onimusha: Way of the Sword (PPSA27836), boot to the language menu with no input, APS5_TRACE_SECONDS=60:30, warm cache. Windows 11 26200, RTX 5070 (617.42), 3840x2160. Base main 84b0d2f24 + #6557 #6727 #6762 (5c521efea), 6 runs (3 before and 3 after the PR runs). The PR is merged on top of it (clean merge), 3 runs.

  • Base frame p50 (ms): 84.5, 82.6, 81.8, 81.5, 77.9, 83.5 (mean 82.0); p90 84.3-93.6.
  • With this PR, p50: 80.7, 75.8, 80.8. Within the base's run-to-run range.
  • The PR changes the disk cache format, so one 180 s warm-up run rebuilt the cache before the 3 measured runs. I can't confirm that rebuild finished inside the warm-up, and this menu scene doesn't measure the in-game compile spikes the PR targets.

This scene may simply not exercise the path this PR speeds up. Summary lines and traces available on request. AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6241966339 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6924#issuecomment-6241966339). Originally posted by [simonbronk](https://github.com/simonbronk) on 2026-10-17T22:08:29Z. --- Tested on Onimusha's menu: no measurable change in this scene. Setup: Onimusha: Way of the Sword (PPSA27836), boot to the language menu with no input, `APS5_TRACE_SECONDS=60:30`, warm cache. Windows 11 26200, RTX 5070 (617.42), 3840x2160. Base `main` 84b0d2f24 + #6557 #6727 #6762 (5c521efea), 6 runs (3 before and 3 after the PR runs). The PR is merged on top of it (clean merge), 3 runs. - Base frame p50 (ms): 84.5, 82.6, 81.8, 81.5, 77.9, 83.5 (mean 82.0); p90 84.3-93.6. - With this PR, p50: 80.7, 75.8, 80.8. Within the base's run-to-run range. - The PR changes the disk cache format, so one 180 s warm-up run rebuilt the cache before the 3 measured runs. I can't confirm that rebuild finished inside the warm-up, and this menu scene doesn't measure the in-game compile spikes the PR targets. This scene may simply not exercise the path this PR speeds up. Summary lines and traces available on request. AI-assisted: yes.
moong15 commented 2026-10-18 09:42:29 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by moong15 on 2026-10-18T09:42:29Z.


Rebased onto main 09127eada. A correction to my earlier comments about the format number: neither #5656 nor #6947 landed first. #6095 took 37 on main, so this PR now moves the disk cache format to 38 (ShaderDiskCache.hpp:17, still the only literal). #6947 also uses 38, so whichever of the two lands second renumbers.

The only conflict was that line. agc_shader_disk_cache and agc_shader_disk_cache_large_file pass on the rebased head, and check_conventions.py passes.

@simonbronk, thanks for the Onimusha numbers. A language menu right after boot probably compiles few specialized modules, so no change there is expected. The gain shows up when a title loads its scenes on a second launch.

@CnRJay, the matched pairs follow in a separate comment.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6248364765 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6924#issuecomment-6248364765). Originally posted by [moong15](https://github.com/moong15) on 2026-10-18T09:42:29Z. --- Rebased onto `main` 09127eada. A correction to my earlier comments about the format number: neither #5656 nor #6947 landed first. #6095 took 37 on `main`, so this PR now moves the disk cache format to 38 (`ShaderDiskCache.hpp:17`, still the only literal). #6947 also uses 38, so whichever of the two lands second renumbers. The only conflict was that line. `agc_shader_disk_cache` and `agc_shader_disk_cache_large_file` pass on the rebased head, and `check_conventions.py` passes. @simonbronk, thanks for the Onimusha numbers. A language menu right after boot probably compiles few specialized modules, so no change there is expected. The gain shows up when a title loads its scenes on a second launch. @CnRJay, the matched pairs follow in a separate comment.
moong15 commented 2026-10-18 10:31:49 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by moong15 on 2026-10-18T10:31:49Z.


@CnRJay, matched runs of this branch at 3483ed283 (rebased onto main 09127eada, format 38), Stellar Blade, same scene: boot, start the story, idle in the opening cutscene. All four used the same warm cache directory (07a088e75f6aaf46, warmed by three earlier runs), APS5_TRACE_SECONDS=0:240, APS5_TRACE_EVENTS=4194304, APS5_PREBUILD_THREADS=16. Order ABBA: on, off, off, on; off is APS5_NO_SPECIALIZED_DISK_CACHE=1.

The first 60 s after the first present are a loading stretch whose frame count swings in both settings (1204, 640, 710 and 663 presents), so the comparison below is 60–240 s from the first present, where all four runs show the same scenes in the same order. Numbers are from the present events and slices in the traces.

Run Specialized cache Presents, 60–240 s Frame p50 / p90 / p99 ms, 60–240 s Driver.Draw.shader_compile_and_link, 60–200 s Specialized hits / misses Binding plan hits / misses
1 on 1670 85.9 / 180.8 / 393.9 8.28 s 1307 / 106 2016 / 2373
2 off 1562 87.1 / 186.3 / 511.1 8.96 s n/a n/a
3 off 1494 92.7 / 196.1 / 498.1 9.22 s n/a n/a
4 on 1686 86.3 / 179.8 / 414.0 9.20 s 1376 / 107 2156 / 2429
  • On: 1678 presents on average against 1528 off (+10%), p99 404 ms against 505 ms (−20%), p90 180 ms against 191 ms. The two on runs agree within 16 presents, and both are above both off runs.
  • Compile and link time in 60–200 s is about the same in both settings (8.3–9.2 s), so the gain shows up as fewer long frames rather than less compile time on the draw path. The 60–200 s range stops before queue worker 0x0's slice buffer filled (at 205–212 s in all four runs); the summary totals stay complete (totals_full: false).
  • Specialized modules hit about 93% of the time on a warm cache.
  • Binding plans miss about 2400 times in each on run, and each on run adds about 2600 files to the directory (11492 → 14082 specialized entries after run 1, +2639 after run 4, about 40 MiB each time). The off runs add none. With the same scene and a warm cache, those plans look like they get a new key every run, so they never hit and the directory grows every session until eviction.
  • No FATAL in runs 1–4. One earlier off attempt crashed 26 s in on the game's FAsyncLoadingThread, with the same call chain as an intermittent load crash I have seen with both settings. It wrote no trace and was repeated as run 2.

The four traces and their tools/trace_digest.py summaries are available on request.

Windows 11, AMD Radeon RX 9070 XT, AMD 26.8.1 (LLPC), 3840×2160.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6248786202 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6924#issuecomment-6248786202). Originally posted by [moong15](https://github.com/moong15) on 2026-10-18T10:31:49Z. --- @CnRJay, matched runs of this branch at 3483ed283 (rebased onto `main` 09127eada, format 38), Stellar Blade, same scene: boot, start the story, idle in the opening cutscene. All four used the same warm cache directory (`07a088e75f6aaf46`, warmed by three earlier runs), `APS5_TRACE_SECONDS=0:240`, `APS5_TRACE_EVENTS=4194304`, `APS5_PREBUILD_THREADS=16`. Order ABBA: on, off, off, on; off is `APS5_NO_SPECIALIZED_DISK_CACHE=1`. The first 60 s after the first present are a loading stretch whose frame count swings in both settings (1204, 640, 710 and 663 presents), so the comparison below is 60–240 s from the first present, where all four runs show the same scenes in the same order. Numbers are from the present events and slices in the traces. | Run | Specialized cache | Presents, 60–240 s | Frame p50 / p90 / p99 ms, 60–240 s | `Driver.Draw.shader_compile_and_link`, 60–200 s | Specialized hits / misses | Binding plan hits / misses | |---|---|---|---|---|---|---| | 1 | on | 1670 | 85.9 / 180.8 / 393.9 | 8.28 s | 1307 / 106 | 2016 / 2373 | | 2 | off | 1562 | 87.1 / 186.3 / 511.1 | 8.96 s | n/a | n/a | | 3 | off | 1494 | 92.7 / 196.1 / 498.1 | 9.22 s | n/a | n/a | | 4 | on | 1686 | 86.3 / 179.8 / 414.0 | 9.20 s | 1376 / 107 | 2156 / 2429 | - On: 1678 presents on average against 1528 off (+10%), p99 404 ms against 505 ms (−20%), p90 180 ms against 191 ms. The two on runs agree within 16 presents, and both are above both off runs. - Compile and link time in 60–200 s is about the same in both settings (8.3–9.2 s), so the gain shows up as fewer long frames rather than less compile time on the draw path. The 60–200 s range stops before queue worker 0x0's slice buffer filled (at 205–212 s in all four runs); the summary totals stay complete (`totals_full: false`). - Specialized modules hit about 93% of the time on a warm cache. - Binding plans miss about 2400 times in each on run, and each on run adds about 2600 files to the directory (11492 → 14082 specialized entries after run 1, +2639 after run 4, about 40 MiB each time). The off runs add none. With the same scene and a warm cache, those plans look like they get a new key every run, so they never hit and the directory grows every session until eviction. - No FATAL in runs 1–4. One earlier off attempt crashed 26 s in on the game's `FAsyncLoadingThread`, with the same call chain as an intermittent load crash I have seen with both settings. It wrote no trace and was repeated as run 2. The four traces and their `tools/trace_digest.py` summaries are available on request. Windows 11, AMD Radeon RX 9070 XT, AMD 26.8.1 (LLPC), 3840×2160.
github-actions[bot] commented 2026-10-19 01:50:15 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-19T01:50:15Z.


This pull request is labeled perf, so it needs the summary line of a capture on main and one with the change, from the same title, scene and machine, as the Performance report form asks. Please paste both aps5-summary.jsonl lines, attach the two traces and add the output of tools/trace_digest.py.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6257939358 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6924#issuecomment-6257939358). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-19T01:50:15Z. --- <!-- pr-labels-perf --> This pull request is labeled `perf`, so it needs the summary line of a capture on `main` and one with the change, from the same title, scene and machine, as the Performance report form asks. Please paste both `aps5-summary.jsonl` lines, attach the two traces and add the output of `tools/trace_digest.py`.
adriadam10 commented 2026-10-19 12:38:59 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-19T12:38:59Z.

Review: CHANGES_REQUESTED


The specialized disk cache is keyed by variant.artifactIdentity, but that identity is only filled in findOrCompileVariant. The useCache=false paths (Recompiler.cpp recompileOnce, and RecompileImpl with !request.useCache || capture.source == nullptr) call compileVariant directly, so the identity stays all zeros. specializedDiskCache() (Recompiler.cpp:864) only checks that the span is 16 bytes long, so every such compile reads and writes the same zero-identity entries (module + binding plan) regardless of shader or target.

Reproduces on current main + this PR:

  • agc_float16_conversion_tests fails with an empty cache directory (ANYPS5_SHADER_CACHE_DIR=<empty dir>): "a device without RoundingModeRTE for 16-bit floats got native f16 conversion" (the second compile gets the module stored by the first, which had RoundingModeRTE).
  • agc_denormal_flush_elimination_tests fails ("0 f32 exponent masks, expected 1") once shader_cache contains specialized-8674b91093f318397fbd82aac7213630.bin, which agc_shader_control_flow_tests and agc_wave_control_decode_tests also write.
  • Both pass on main, with APS5_NO_SPECIALIZED_DISK_CACHE=1, and with ANYPS5_NO_SHADER_CACHE=1.

To fix: treat an unset identity as "no specialized disk cache" (e.g. carry an explicit hasIdentity/empty span instead of a zero-filled array, and make specializedDiskCache return false for it), and check no other path builds a CompiledVariant without going through findOrCompileVariant. A test that compiles twice with useCache=false and different targets against the same cache directory would pin it.

Also needed after rebasing on main: FormatVersion 41 (main is 40), DescriptorBinding field-count assert 24, and imageAtomic64 in the sameBinding round-trip test.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5571647754 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6924#pullrequestreview-5571647754). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-19T12:38:59Z. **Review:** CHANGES_REQUESTED --- The specialized disk cache is keyed by `variant.artifactIdentity`, but that identity is only filled in `findOrCompileVariant`. The `useCache=false` paths (`Recompiler.cpp` `recompileOnce`, and `RecompileImpl` with `!request.useCache || capture.source == nullptr`) call `compileVariant` directly, so the identity stays all zeros. `specializedDiskCache()` (`Recompiler.cpp:864`) only checks that the span is 16 bytes long, so every such compile reads and writes the same zero-identity entries (module + binding plan) regardless of shader or target. Reproduces on current main + this PR: - `agc_float16_conversion_tests` fails with an empty cache directory (`ANYPS5_SHADER_CACHE_DIR=<empty dir>`): "a device without RoundingModeRTE for 16-bit floats got native f16 conversion" (the second compile gets the module stored by the first, which had RoundingModeRTE). - `agc_denormal_flush_elimination_tests` fails ("0 f32 exponent masks, expected 1") once `shader_cache` contains `specialized-8674b91093f318397fbd82aac7213630.bin`, which `agc_shader_control_flow_tests` and `agc_wave_control_decode_tests` also write. - Both pass on main, with `APS5_NO_SPECIALIZED_DISK_CACHE=1`, and with `ANYPS5_NO_SHADER_CACHE=1`. To fix: treat an unset identity as "no specialized disk cache" (e.g. carry an explicit `hasIdentity`/empty span instead of a zero-filled array, and make `specializedDiskCache` return false for it), and check no other path builds a `CompiledVariant` without going through `findOrCompileVariant`. A test that compiles twice with `useCache=false` and different targets against the same cache directory would pin it. Also needed after rebasing on main: `FormatVersion` 41 (main is 40), `DescriptorBinding` field-count assert 24, and `imageAtomic64` in the `sameBinding` round-trip test.
moong15 commented 2026-10-19 16:49:32 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by moong15 on 2026-10-19T16:49:32Z.


Thanks, you were right: a variant compiled through the useCache=false paths never got a disk key, its artifactIdentity stayed zero-filled, and specializedDiskCache accepted it because it only checked the length, so every such compile shared the same zero-keyed module and binding plan.

Fixed in e822824b8, rebased on main 95d901b93:

  • CompiledVariant::artifactIdentity is now a vector that is only filled inside findOrCompileVariant when the disk cache is used (BuildKey + BuildArtifactIdentity); every other path leaves it empty. specializedDiskCache returns false unless it holds exactly ArtifactIdentityBytes, so these compiles neither read nor write specialized entries. No other path builds a CompiledVariant with an identity.
  • agc_shader_disk_cache runs a child process (--uncached-specialized) that compiles twice with useCache=false, for a device with and one without RoundingModeRTE, against one cache directory, and requires no specialized or binding-plan hit, miss or write and no stored entry. With the fix reverted it fails with "...was served the module compiled for a device with it (specialized hits 1, misses 1, writes 1; binding plan hits 1, misses 1, writes 1 ...)".
  • Your sequences pass with a real cache directory: agc_float16_conversion_tests into an empty directory, and control_flow, then wave_control_decode, then denormal_flush_elimination into one directory, with the specialized cache on and with APS5_NO_SPECIALIZED_DISK_CACHE=1; no specialized-* file is written.
  • After the rebase: FormatVersion 41, the DescriptorBinding field-count assert at 24, and imageAtomic64 in the sameBinding round trip.

The focused tests pass 7/7 on main and on this branch with the validation layer and ANYPS5_NO_SHADER_CACHE=1, with no VUID- lines in either log. I also replaced the performance section: the earlier numbers compared the cache on and off in one build with dropped traces, so the description now has main against this branch, three runs each, with whole traces.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6272421712 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6924#issuecomment-6272421712). Originally posted by [moong15](https://github.com/moong15) on 2026-10-19T16:49:32Z. --- Thanks, you were right: a variant compiled through the `useCache=false` paths never got a disk key, its `artifactIdentity` stayed zero-filled, and `specializedDiskCache` accepted it because it only checked the length, so every such compile shared the same zero-keyed module and binding plan. Fixed in e822824b8, rebased on main 95d901b93: - `CompiledVariant::artifactIdentity` is now a vector that is only filled inside `findOrCompileVariant` when the disk cache is used (`BuildKey` + `BuildArtifactIdentity`); every other path leaves it empty. `specializedDiskCache` returns false unless it holds exactly `ArtifactIdentityBytes`, so these compiles neither read nor write specialized entries. No other path builds a `CompiledVariant` with an identity. - `agc_shader_disk_cache` runs a child process (`--uncached-specialized`) that compiles twice with `useCache=false`, for a device with and one without `RoundingModeRTE`, against one cache directory, and requires no specialized or binding-plan hit, miss or write and no stored entry. With the fix reverted it fails with "...was served the module compiled for a device with it (specialized hits 1, misses 1, writes 1; binding plan hits 1, misses 1, writes 1 ...)". - Your sequences pass with a real cache directory: `agc_float16_conversion_tests` into an empty directory, and control_flow, then wave_control_decode, then denormal_flush_elimination into one directory, with the specialized cache on and with `APS5_NO_SPECIALIZED_DISK_CACHE=1`; no `specialized-*` file is written. - After the rebase: `FormatVersion` 41, the `DescriptorBinding` field-count assert at 24, and `imageAtomic64` in the `sameBinding` round trip. The focused tests pass 7/7 on main and on this branch with the validation layer and `ANYPS5_NO_SHADER_CACHE=1`, with no `VUID-` lines in either log. I also replaced the performance section: the earlier numbers compared the cache on and off in one build with dropped traces, so the description now has main against this branch, three runs each, with whole traces.
eliasbruno124-dev commented 2026-10-20 15:39:51 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by eliasbruno124-dev on 2026-10-20T15:39:51Z.


I tested d36ab7db8 on GTA III, PPSA03527/01.003.000, and found repeated specialization misses that may be worth fixing here.

After warming the cache, a separate diagnostic launch reported 57 specialized-module hits and 9 misses/writes, with no load or write failures. All nine newly written records already had an older record with the same base-artifact identity and every other specialized-key field, except planIdentity. Each new payload was byte-identical to its older alternatives. Across the retained starts there are 92 module records but only 66 groups when that field is excluded; all nine duplicate groups have identical payloads.

buildSpecializedModule consumes the artifact, vertex classes, constants and target. specializeModule also shares results in memory by artifact variant and constants. The disk key additionally includes the binding-plan identity, so a different descriptor snapshot can rebuild the same module on the next process. Could the specialized-module key omit that extra identity while retaining it for the separately cached binding plan? A cross-process test should vary the descriptor snapshot without changing specialization inputs, require a module hit, and still check the resulting bindings against an uncached compile. At the time of this initial report I had not changed the runtime key. No competing PR has been published.

The existing cache does work. The same eight focused test cases pass on both sides. The candidate also passes its cache round trips, changed-base-artifact, corruption, bounds and uncached different-target regressions. The real Khronos validation layer was loaded for the GPU case, with no new errors or skips. Host: RTX 3060 Laptop, NVIDIA 617.42, Windows 10.0.26300, i5-11400H, 32 GiB RAM.

The two alternating pairs of complete 20-second automatic-startup traces do not establish an overall speedup. Baseline maximum frame intervals were 4263/4314 ms; with this PR, 4065/4745 ms. All four traces had no dropped events and 61 verified loaded PRXs. Both sides used main 7526640c3 plus the same deferred-settle correction from #8527; only this PR differed. These are opening-startup observations, not gameplay or a claim that the initial long interval is a shader stall.

Update after a local regression and original-title check: changing only the guarded-image descriptor snapshot in a second process reproduces 16 module hits and 1 unnecessary miss/write on the unchanged implementation, although the result matches an uncached compile. Removing planIdentity only from the specialized-module key gives 17 hits and zero misses/writes; the changed binding plan still misses and is rebuilt, with output matching the uncached control. Artifact/target identity, module words, vertex classes, constants and registration defaults remain in the key. The new encoding uses a new format version.

The same original GTA III startup, after warming the new cache normally, now reports 66 specialized hits, zero misses and zero new module records, versus 57 hits/9 misses before. All 66 module payloads match payloads already produced by the previous build. Both runs verified 61 loaded PRXs and unchanged original files. The corrected build passes the same eight native cases with the real Khronos layer, no validation errors or skips, plus the new cross-process regression. This proves removal of redundant specialization, not a loading-time or FPS gain. The focused local patch and failing/passing regression are ready for coordination here.

Prepared with AI assistance.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6294783708 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6924#issuecomment-6294783708). Originally posted by [eliasbruno124-dev](https://github.com/eliasbruno124-dev) on 2026-10-20T15:39:51Z. --- I tested d36ab7db8 on GTA III, PPSA03527/01.003.000, and found repeated specialization misses that may be worth fixing here. After warming the cache, a separate diagnostic launch reported 57 specialized-module hits and 9 misses/writes, with no load or write failures. All nine newly written records already had an older record with the same base-artifact identity and every other specialized-key field, except `planIdentity`. Each new payload was byte-identical to its older alternatives. Across the retained starts there are 92 module records but only 66 groups when that field is excluded; all nine duplicate groups have identical payloads. `buildSpecializedModule` consumes the artifact, vertex classes, constants and target. `specializeModule` also shares results in memory by artifact variant and constants. The disk key additionally includes the binding-plan identity, so a different descriptor snapshot can rebuild the same module on the next process. Could the specialized-module key omit that extra identity while retaining it for the separately cached binding plan? A cross-process test should vary the descriptor snapshot without changing specialization inputs, require a module hit, and still check the resulting bindings against an uncached compile. At the time of this initial report I had not changed the runtime key. No competing PR has been published. The existing cache does work. The same eight focused test cases pass on both sides. The candidate also passes its cache round trips, changed-base-artifact, corruption, bounds and uncached different-target regressions. The real Khronos validation layer was loaded for the GPU case, with no new errors or skips. Host: RTX 3060 Laptop, NVIDIA 617.42, Windows 10.0.26300, i5-11400H, 32 GiB RAM. The two alternating pairs of complete 20-second automatic-startup traces do **not** establish an overall speedup. Baseline maximum frame intervals were 4263/4314 ms; with this PR, 4065/4745 ms. All four traces had no dropped events and 61 verified loaded PRXs. Both sides used main 7526640c3 plus the same deferred-settle correction from #8527; only this PR differed. These are opening-startup observations, not gameplay or a claim that the initial long interval is a shader stall. Update after a local regression and original-title check: changing only the guarded-image descriptor snapshot in a second process reproduces 16 module hits and 1 unnecessary miss/write on the unchanged implementation, although the result matches an uncached compile. Removing `planIdentity` only from the specialized-module key gives 17 hits and zero misses/writes; the changed binding plan still misses and is rebuilt, with output matching the uncached control. Artifact/target identity, module words, vertex classes, constants and registration defaults remain in the key. The new encoding uses a new format version. The same original GTA III startup, after warming the new cache normally, now reports **66 specialized hits, zero misses and zero new module records**, versus 57 hits/9 misses before. All 66 module payloads match payloads already produced by the previous build. Both runs verified 61 loaded PRXs and unchanged original files. The corrected build passes the same eight native cases with the real Khronos layer, no validation errors or skips, plus the new cross-process regression. This proves removal of redundant specialization, not a loading-time or FPS gain. The focused local patch and failing/passing regression are ready for coordination here. Prepared with AI assistance.
adriadam10 commented 2026-11-08 03:23:40 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-11-08T03:23:40Z.

Review: CHANGES_REQUESTED


main moved again (disk cache FormatVersion is 57, so this PR would be 58) and the head no longer merges: conflicts in Recompiler.cpp (8 hunks), CompiledVariant.hpp, ShaderDiskCache.cpp, ShaderDiskCache.hpp, tests/ShaderDiskCache.cpp and docs/dev/debt/shader.md. The textual conflicts are the easy part; these need a decision when rebasing:

  • preparedBindingPlan and DescriptorBindingBuilder::Prepare now also take substitutes (BufferSubstitute) and shaderImageMinLod. The disk key and stored plan for a binding plan must cover every input of Prepare, including these two; a missing one serves a plan prepared for other inputs from disk. Please add a test that changes each of them under the same artifact and requires a miss.
  • specializeModule now returns SpecializedSpirv and the registration module path uses SharedSpirv; the load/store of a specialized record has to produce and persist the same fields, not just spirv/bindings/pushData.
  • attachSubstitutes(variant) runs on loaded and compiled variants; keep artifactIdentity set only on the disk-cache path, next to it.
  • userDataRegisterReads (set in materializeResult on main) must still be computed on a plan loaded from disk.
  • Bump FormatVersion to 58 and keep the agc_shader_disk_cache run on the rebased head with ANYPS5_REQUIRE_VULKAN=1 and the validation layer, as in the template.

The rest (the useCache=false identity fix, LRU bounds, docs) looked fine on the previous head. If you can't get to it, say so here and we will do the rebase.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5816381545 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6924#pullrequestreview-5816381545). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-11-08T03:23:40Z. **Review:** CHANGES_REQUESTED --- `main` moved again (disk cache `FormatVersion` is 57, so this PR would be 58) and the head no longer merges: conflicts in `Recompiler.cpp` (8 hunks), `CompiledVariant.hpp`, `ShaderDiskCache.cpp`, `ShaderDiskCache.hpp`, `tests/ShaderDiskCache.cpp` and `docs/dev/debt/shader.md`. The textual conflicts are the easy part; these need a decision when rebasing: - `preparedBindingPlan` and `DescriptorBindingBuilder::Prepare` now also take `substitutes` (`BufferSubstitute`) and `shaderImageMinLod`. The disk key and stored plan for a binding plan must cover every input of `Prepare`, including these two; a missing one serves a plan prepared for other inputs from disk. Please add a test that changes each of them under the same artifact and requires a miss. - `specializeModule` now returns `SpecializedSpirv` and the registration module path uses `SharedSpirv`; the load/store of a specialized record has to produce and persist the same fields, not just `spirv`/`bindings`/`pushData`. - `attachSubstitutes(variant)` runs on loaded and compiled variants; keep `artifactIdentity` set only on the disk-cache path, next to it. - `userDataRegisterReads` (set in `materializeResult` on `main`) must still be computed on a plan loaded from disk. - Bump `FormatVersion` to 58 and keep the `agc_shader_disk_cache` run on the rebased head with `ANYPS5_REQUIRE_VULKAN=1` and the validation layer, as in the template. The rest (the `useCache=false` identity fix, LRU bounds, docs) looked fine on the previous head. If you can't get to it, say so here and we will do the rebase.
MarcZX10 commented 2026-11-23 02:52:15 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-23T02:52:15Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

Changes are required before merge: reject or safely clamp out-of-range decimal values for APS5_SPECIALIZED_DISK_CACHE_ENTRIES so the advertised cache bound is enforced.

What I ran

Reviewed head 77f6d9eb873a3caf22609893946f04f99cf984a9; no build or tests were run. Read the prepared description, commits, manifest and diff, plus targeted code in the four implementation files listed below. Also read the changed documentation files. All eight changed files were marked included: true in the manifest; no exclusions were listed there. files.json was unavailable through the reader.

Results

Check Result Note
Source review failed One verified bound-parsing defect
Build and tests not run No execution performed
Other changed-file review passed All eight changed files read

Findings

Blocking

  • core/shader/recompiler/ShaderDiskCache.cpp:1589: the parser accepts any string of decimal digits, but strtoull returns ULLONG_MAX on overflow and the return value is used without checking errno. For example, an entry limit larger than uint64_t silently becomes the maximum limit instead of falling back to the documented default. The cache can then retain far more entries than the configured limit. Check conversion overflow and use the documented fallback (or safely clamp) before computing the bounds.

Non-blocking

None.

Not verified

No build, automated tests, or runtime measurements were performed. The reported Windows title measurements and test results in the description were author supplied, not independently confirmed. files.json could not be read; exclusions therefore were not verified independently.

To get this to a good state

Handle decimal conversion overflow for the entry-count setting, then rerun the cache tests and build on the new head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6016045507 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6924#pullrequestreview-6016045507). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-23T02:52:15Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested Changes are required before merge: reject or safely clamp out-of-range decimal values for `APS5_SPECIALIZED_DISK_CACHE_ENTRIES` so the advertised cache bound is enforced. ## What I ran Reviewed head `77f6d9eb873a3caf22609893946f04f99cf984a9`; no build or tests were run. Read the prepared description, commits, manifest and diff, plus targeted code in the four implementation files listed below. Also read the changed documentation files. All eight changed files were marked `included: true` in the manifest; no exclusions were listed there. `files.json` was unavailable through the reader. ## Results | Check | Result | Note | |---|---|---| | Source review | failed | One verified bound-parsing defect | | Build and tests | not run | No execution performed | | Other changed-file review | passed | All eight changed files read | ## Findings ### Blocking - `core/shader/recompiler/ShaderDiskCache.cpp:1589`: the parser accepts any string of decimal digits, but `strtoull` returns `ULLONG_MAX` on overflow and the return value is used without checking `errno`. For example, an entry limit larger than `uint64_t` silently becomes the maximum limit instead of falling back to the documented default. The cache can then retain far more entries than the configured limit. Check conversion overflow and use the documented fallback (or safely clamp) before computing the bounds. ### Non-blocking None. ## Not verified No build, automated tests, or runtime measurements were performed. The reported Windows title measurements and test results in the description were author supplied, not independently confirmed. `files.json` could not be read; exclusions therefore were not verified independently. ## To get this to a good state Handle decimal conversion overflow for the entry-count setting, then rerun the cache tests and build on the new head.
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/6924:upstream-pr/6924'
git switch 'upstream-pr/6924'

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