perf(agc): data-only draw hits compare only the user words a stage reads #5656
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/5656"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by Raghav314 on 2026-10-14T04:28:43Z.
What
A data-only draw hit (#494) reuses a cached stage only when every user data word of the stage is unchanged. A title that changes a user word per draw that a stage never reads (a per-draw counter, a pointer only another stage follows) gets no reuse for that stage, though its compiled result and captured memory would be the same.
SrtUserDataUse::asValue | asBase);userDataRegisterReads), which covers words a stage reads straight from its SGPRs;PPSA36082
In Hades II most draws change user words between draws (a per-draw counter and ring pointers). In the level UI/menu, the stage preparation in the draw path (
Shader.DrawStage) goes from 6.5 to 5.1 ms per frame and the frame time p50 from 18.5 to 17.6 ms (530 to 560 presents in 10 s). The picture is unchanged.Level UI/menu standing still,
APS5_HOST_IMPORT_MIB=6784, noAPS5_PROFILE_*switch,APS5_TRACE_EVENTS=1048576so the traces are whole, shader cache warmed for each build, one run each (measured onmain93e54cedd):main:The frame time moves with the window position (an earlier pair at
150:10gave 466 to 574 presents), so the stage time is the steadier number.Tested
Linux (CachyOS), x86-64, GCC, 7800X3D / RTX 4090, NVIDIA 615.78.08, on
main0d8c51a54.agc_driver_draw_data_hit_user_words: the pixel stage loads a buffer descriptor through user words 0 and 1 and never reads word 2. A draw that changes only word 2 is a data-only hit that reuses both stages; a draw that points words 0 and 1 at another descriptor compiles the pixel stage again and reuses the vertex stage._verifyruns the same draws withAPS5_VERIFY_DRAW_DATA_HITS=1.userDataRegisterReadsleft out of the mask the draw reuses the old stage, writes 127, and verify mode aborts.main's second-sight admission needs.build.ymlrun locally on #6946's branch, which is this PR with #6946 on top: configure with SPIRV tools on, test registration check, build, libs, the whole ctest and conventions. 1693/1693 pass, 16 expected skips, conventions OK.APS5_VERIFY_DRAW_DATA_HITS=1 APS5_VERIFY_DRAW_ENTRIES=1 APS5_VERIFY_REGISTER_KEYS=1on the earlier #494-based version of this change: 0 stages differed, picture fine.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by CnRJay on 2026-10-14T16:56:10Z.
Review: COMMENTED
Comparing only the user words a stage depends on is a natural refinement of #494. Running Hades II with
APS5_VERIFY_DRAW_DATA_HITS=1and 0 differing stages is the right correctness check.On the evidence: both summary lines were captured with
APS5_PROFILE_DRAW=1set (it is in theirenv). The Performance report form asks for runs with noAPS5_PROFILE_*switch, because the draw profiler times every draw and changes the cost being measured, here on the draw path itself. Please capture the two lines again with onlyAPS5_HOST_IMPORT_MIBandAPS5_TRACE_SECONDS. If the p50 gain (34.0 → 26.9 ms) holds without the profiler, that settles it. Both lines also showtrace_dropped: true, so the attached traces are incomplete; a shorter window keeps them whole.One question on the mask: are user words a stage uses as plain values, read straight from user SGPRs into ALU work rather than through the SRT walk or forwarded shader data, always covered by
userDataRegisterReads? If a stage can consume a user word that neither source records, a change to that word would leave it outside the mask and reuse a stage compiled for the old value. Either a sentence saying which path covers it, or a test with a pixel stage that does arithmetic on a user word (and nothing else), would close that.Imported from boykopovar/AnyPS5. Originally posted by Gashrod1 on 2026-10-14T20:42:53Z.
Measured on DAVE THE DIVER (PPSA19115), as announced in #5436. Short version: data-only hits trigger on almost every keyless draw, but the frame time barely moves, because the user words that change in this title are pointers the stages read.
Setup. Windows 11, RTX 5060 (596.36), Ryzen 7 5800X; build with
-fno-omit-frame-pointer -g1, Release otherwise. Same underwater scene each time,APS5_PROFILE_DRAW=1 APS5_TRACE_SUMMARY_EVERY=10. Base:main956269ad1plus the MSAA stack this title needs (#4820, #5496, #5445, #5892, #5558, local changes listed in #5963). The test build merges 8267abd21 (this PR with #494) into that base.Median over the 10 s intervals after the first 50 s:
APS5_DRAW_CACHE_ENTRIES=65536The gain is within run-to-run noise (the #5656 run had 9 intervals in the scene, the base 28). From the
[draw-cache] register keylines (10 s windows):So the shape lookup works and the decode is skipped nearly everywhere, but the stages are still captured and compiled. A churn trace on the base (exact key vs shape, logged per user word) showed 288 shapes against ~456k exact keys in a few minutes, every new key differing only in user words, about 95% of the changed words increasing: ring-buffer pointers that the SRT walk reads, so
userDataMaskrightly keeps them. A stage that could be reused here would need its captured addresses relocated rather than compared as-is.Port notes, in case they are useful for a rebase:
mainnow reads the vertex user-data tail continuation from the user words (DrawProgram::tailContinuation). I moved that read intoReadUserWordsso a data-only refresh recomputes it, and skip the candidates of a stage whose continuation changed.main's0adbdcf45caches a draw key only at its second sight, so the first draw of a shape never gets an entry andagc_driver_draw_data_hit_user_wordsfails. I admitted the first key of a shape that has no entry yet (at most one key per shape skips the second sight), and ranagc_driver_draw_cache_reusewithAPS5_NO_DRAW_DATA_HITS=1, since it checks the second-sight rule. With that, the fiveagc_driver_draw*tests pass on Linux. The lower full-hit rate above may come from this admission rule or from the scene; I have not separated the two.ShaderDiskCachesizes on currentmain:ShaderInvocation120,RecompileResult360, format version bumped past 32.Most of the frame in this title is on the resource side (
Graphics.Draw, ~27 ms), which neither variant touches; I will look there next.AI-assisted: yes
Imported from boykopovar/AnyPS5. Originally posted by fma-rc on 2026-10-15T06:00:58Z.
Stacked this on #6188 (0eb0d8903) over
d92a8dad3in Astro's Playroom on Linux (RTX 5080, heavy in-game scene, one 20 s run each,APS5_PROFILE_DRAW=1). The frames match.d92a8dad3So with 6188 compiling ahead, 5656's data-only hits cover almost every draw in this scene. In the merge I applied the user-word mask in 6188's
compileDrawAheadtoo.Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-15T12:08:22Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)core/shader/recompiler/ShaderDiskCache.cppL87-89core/shader/recompiler/Recompiler.cppL991-992core/shader/recompiler/ShaderDiskCache.cppL88-90core/shader/recompiler/ShaderDiskCache.cppL88-90core/libs/prx/libSceAgcDriver/Graphics/src/PipelineJournal.cppL45-47core/libs/prx/libSceAgcDriver/Graphics/src/PipelineJournal.cppL45-47Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
core/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/shader/recompiler/Recompiler.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/shader/recompiler/Recompiler.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hppcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cppcore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/Recompiler.hppcore/shader/recompiler/ShaderDiskCache.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Graphics/src/PipelineJournal.cppcore/shader/recompiler/Recompiler.hppcore/shader/recompiler/ShaderDiskCache.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cppcore/shader/recompiler/Recompiler.hppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cppcore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppcore/shader/recompiler/Recompiler.hppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppcore/shader/recompiler/ShaderDiskCache.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/Recompiler.hppcore/shader/recompiler/ShaderDiskCache.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/ShaderDiskCache.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hppcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cppcore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/Recompiler.hppcore/shader/recompiler/ShaderDiskCache.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cppcore/shader/recompiler/Recompiler.hppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/ShaderDiskCache.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppcore/shader/recompiler/ShaderDiskCache.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cppcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/Recompiler.hppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/ShaderDiskCache.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/Recompiler.hppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppcore/shader/recompiler/ShaderDiskCache.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppcore/shader/recompiler/ShaderDiskCache.cppcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/Recompiler.hppcore/shader/recompiler/ShaderDiskCache.cppcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/Recompiler.hppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppcore/shader/recompiler/ShaderDiskCache.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cppImported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-10-15T19:11:33Z.
Refreshed the serial user-word mask change onto main
44df21632125dbe3113a19173e7ebb879da53003, retaining your authorship: source comparison. This preserves main's pending-write/bulk-read hooks and newer image-table serialization, uses cache format 37 and the current layout sizes, and admits the repeated register key before the data-only-hit test.Added a full-width mask serialization regression: the synthetic result includes bits 63 and 32 plus low bits. A negative control truncating the decoded mask to 32 bits fails with
result round trip: user data register read mask differs; restoring the decoder passes. That negative control was run before the final rebase, on the same serialization implementation.Full
libsbuild and eight selected checks pass with zero skips on both AMD Radeon RX 6650 XT / RADV Mesa 26.2.4-arch1.1 and lavapipe Mesa 26.2.4-arch1.1 (LLVM 23.1.1), Arch Linux: both user-word tests, four draw-cache reuse variants, shader-disk-cache and validator-exit. Conventions, registration and whitespace pass. Exact validation source adds only #6476's bundled-validator build repair to the source comparison, with official dependency pins.No standalone Astro Bot speedup claim from this pass. I excluded a b7cedd900-based timing pair after finding stale XComposite captures: in a separate same-source run the 270/365-second window images remained byte-identical while the last four direct GPU readbacks all changed. The candidate cache also originated in the earlier draw-ahead integration, rather than an independent cold run of this source. The previously reported draw-ahead-plus-masks result remains a separate conditional experiment; it is not a main-versus-this-change baseline. No screenshots, game binaries, assets, caches or raw game logs are attached.
Imported from boykopovar/AnyPS5. Originally posted by EdouardSence on 2026-10-16T13:14:58Z.
Measured JJenkx's refresh (
integration/main-user-word-masks-44d, 40e79b809) on Astro Bot (PPSA21567 v01.019.000), since that comparison noted no standalone Astro Bot number. Short version: in this scene the mask does not change reuse, because the user words that change between draws are words the stages do read.Setup. Linux (CachyOS 7.2.10), RX 9070 XT, RADV Mesa 26.2.4, GCC Release.
app.elf -lvl hub_crashsite(Crash Site, no input), headless gamescope 1920x1080, warm shader cache, one 200 s warm-up run, thenAPS5_TRACE_SECONDS=60:60. Build = maineb901bcf4merged with 40e79b809. That merge had four conflicts against main's #4943 relocation fields (DispatchVariant,StageCapture,SrtRuntime, disk-cache size asserts). I kept both sides and set the asserts to the new sizes (ShaderInvocation208,RecompileResult472). The baseline is maineb901bcf4+ #6341 (#6341 only adds tracing).shader_compile_and_linkms/frameOne run each, so I am not claiming the 4% difference; there is no gain.
Why.
APS5_TRACE_DRAW_CACHE=1on main: of ~170k lookups per 10 s, ~169k are "user words/pointers only" misses; registers and shaders almost never differ. With the masks I added a local counter (not pushed) in the data-only candidate loop ofDrawLookup.cpp. It counts how often a cached variant is skipped, and which changed words fall inside itsuserDataMask:relocatableWords(449k of 11.05M), so #4943's relocation does not cover them either.So on this title the per-draw cost (~5,600 draws per frame, capture plus recompile on ~73% of stages) comes from pointers the shaders follow, not from unread words. The mask stays correct and cheap here; it just has nothing to skip. Happy to rerun with a different counter if that helps.
Tested and written by Claude (AI assistant) on a contributor's machine. AI-assisted: yes.
Imported from boykopovar/AnyPS5. Originally posted by Raghav314 on 2026-10-16T19:19:57Z.
Rebased onto
mainf474fb776(the mask now comes from main'sSrtUserDataUse, disk cache format 37) with JJenkx's two test commits, and the description is updated.APS5_PROFILE_*switch, level UI/menu, withAPS5_TRACE_EVENTS=1048576so both traces are whole: 530 to 560 presents in 10 s, p50 18.5 to 17.6 ms,Shader.DrawStage6.5 to 5.1 ms per frame. An earlier pair without the profiler but with the default buffer gave 466 to 574 and 21.1 to 17.1 ms. So the gain holds without the profiler, smaller in this pair; the stage time drops in both.userDataRegisterReads, which is part of the mask. The new test does what you described: a pixel stage that only adds user word 2, read from its SGPR, to its output. A draw that changes only word 2 writes 191 instead of 128. WithuserDataRegisterReadsleft out of the mask, the draw reuses the old stage, writes 127, andAPS5_VERIFY_DRAW_DATA_HITS=1aborts.LLM assistance used.
Imported from boykopovar/AnyPS5. Originally posted by EdouardSence on 2026-10-16T20:49:07Z.
Follow-up on the rebased head (1b62f5927, on main
f474fb776), same Astro Bot scene as above (-lvl hub_crashsite, Linux, RX 9070 XT, RADV Mesa 26.2.4), one 240 s run withAPS5_TRACE_DRAW_CACHE=1:eb901bcf4(earlier run)Same result as with JJenkx's refresh: in this scene the user words that change are read by the stages, so the mask does not add reuse. This run had the draw-cache trace enabled and is on a newer main, so I am not comparing frame rates (439 presents in the 120:60 window). Nothing new in the kernel log. This is not a regression report; I am only noting that the gain does not reach this title's in-game scene.
Tested and written by Claude (AI assistant) on a contributor's machine. AI-assisted: yes.
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-18T17:52:24Z.
FormatVersion36 → 37 because "the mask is stored with the stage". But on current mainencodeInvocationis reached only throughEncodeResult, whose only user is the pipeline journal (PipelineJournal.cpp:746 in the merged tree). Disk-cache entries go throughEncodeEntry, andmaterializeResultrecomputesuserDataRegisterReadsfrom the variant. Main is already atFormatVersion37 (from #6243), so the PR's bump is a silent no-op after the merge, while the journalFileFormatstays 3 although its record layout grew by 8 bytes. Old journals would mis-decode and, I'd expect, be dropped by the reader/identity checks. That fails safe, but it isn't the intended hygiene. Fix: revert theFormatVersionhunk and bump the journalFileFormatinstead. Note that number 4 is contested by #4650, #6959, #6801, #6639, #6612 and #6530.DispatchVariant::userDataMask(DispatchCache.hpp) is declared but never set or read. Drop it, or wire dispatch lookups to it.sizeofasserts: ShaderInvocation 200 → 208 and RecompileResult 472 → 480 are the same numbers #4650 uses (for itsreadsDepthRemapPush). Whichever lands second must move them again (216/488) and encode both fields.Imported from boykopovar/AnyPS5. Originally posted by Raghav314 on 2026-10-18T19:34:43Z.
Thanks. Rebased on
c4c2b3a, and the format and size points are fixed:FormatVersionhunk is reverted (main is at 38). Disk cache entries go throughEncodeEntry, andmaterializeResultrebuildsuserDataRegisterReadsfrom the variant'suserDataRegisters, so only the journal stores the mask. The journalFileFormatgoes 3 → 4. If one of #4650, #6959, #6801, #6639, #6612 or #6530 lands first, I'll move this to the next free number.ShaderInvocationis 208 andRecompileResult480. Whichever of this and #4650 lands second moves them to 216/488 and encodes both fields.DispatchVariant::userDataMaskisn't dead: a draw keeps its stages asDispatchVariants (DrawCache.hpp), and the mask is set when a stage is captured (DrawCapture.cpp) and read on a data-only hit (DrawLookup.cpp). Dispatches themselves don't use it in this PR.LLM assistance used.
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-19T09:22:48Z.
@Raghav314 This one is reviewed and CI was green on
fe87a2cea0, but it conflicts with currentmainagain, and part of the conflict is one git won't show you.#4650 has merged (
b876d43fb1). It movedShaderInvocation/RecompileResultto 208 / 480 with its own new field, the same sizes this PR asserts. So git auto-merges thosestatic_asserts without complaint, but the combined structs now carry both fields. When you merge or rebase ontomain, please:ShaderInvocationandRecompileResultsize asserts for the combined layout, and keep both encoder lines inShaderDiskCache.cpp(main's and yours), in the journal's field order;DescriptorBindingsize assert (main 656, PR 632) the same way, from the real combined struct;mainwrites now.Once it's pushed we'll check the resolution, run full CI again (
agc_driver_draw_data_hit_user_words,_verifyandagc_shader_disk_cache) and then the draw-cache gate. Thanks!Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-10-20T16:58:23Z.
Retested your current head
5892c846c75bb17c10e1c5ebe96bea0d2db30c5ain the Hades II (PPSA36082) integration refreshed to maind0852defa2a5fbc7f64ab20abddb7e1c24733345. The candidate reaches the hub with the character visible in the 170-second capture and closes normally. The baseline also reaches the hub; both restore runtime configuration and leave no game process.This is integration evidence, not an isolated main-versus-PR acceptance test: the preserved baseline
50d7ce6043ef3ae9d409e07e3589bdad207d2c53includes the existing #6300 HTILE and #6539 SRT work plus local correctness fixes. Candidate00e19490602563f74c50b6e189e8b1de4039ac1cadds your four PR commits. Resolving the overlap preserves both sets of stage/variant metadata and adjusts the combinedRecompileResultsize assertion to 552.On AMD Radeon RX 6650 XT / RADV Mesa 26.2.4-1, Arch Linux:
agc_driver_draw_cache_reusevariants pass on both baseline and candidate.agc_driver_draw_data_hit_user_wordsvariants additionally pass on the candidate.ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, with zero skips, missing-layer messages orVUID-errors. The new tests were explicitly enabled in the selective execution-test build before the final run.Evidence archive includes the complete focused logs, source delta/history, native reports/logs and reviewed hub captures. Native runs themselves did not enable core validation. No FPS claim: these runs differ in capture timing/duration and do not contain matched official performance traces.
Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-10-20T17:21:26Z.
Follow-up with matched Hades II (PPSA36082, 01.006.000) hub traces on the same RX 6650 XT/RADV machine. The four runs use baseline → candidate → candidate → baseline order, warm caches with title restart, the exact same eight-file save manifest, identical scheduled inputs, window and settings. Reviewed 155/175-second captures show the same character/camera position in the idle hub; animation phases differ.
Both candidate medians are lower than both baseline medians. The average of the two run medians is about 9% lower, and shader compile/link time per present about 23% lower. This is limited evidence from two five-second idle-hub captures per build, not a gameplay-wide speed claim.
As in the earlier comment, baseline
50d7ce6043ef3ae9d409e07e3589bdad207d2c53is the Hades integration on maind0852defa2a5fbc7f64ab20abddb7e1c24733345with #6300/#6539 and local correctness fixes. Candidate00e19490602563f74c50b6e189e8b1de4039ac1cadds this PR's four commits through head5892c846c75bb17c10e1c5ebe96bea0d2db30c5a. This is not stock-main versus the standalone PR and does not replace that acceptance comparison.Capture:
APS5_TRACE_SECONDS=160:5, identicalAPS5_TRACE_EVENTS=1048576capacity override to avoid truncated traces; no draw profiling or other diagnostic trace modes. Native stdout remained attached to a PTY recorded with util-linuxscript, rather than redirected to a game log file. Thus the event-capacity override is explicit rather than claiming literally only oneAPS5_TRACE_*variable. All four traces report no dropped events, and all four runs close normally and restore the kernel setting. Native core validation was disabled; the previously attached matched focused GPU validation results still apply to these unchanged source pins.Trace/evidence archive contains all four traces and
trace_digest.pyoutputs, summary lines, native reports, terminal recordings, reviewed hub captures, exact candidate delta and reproduction harness. No save files or game assets are included.Official summary lines, in run order:
Imported from boykopovar/AnyPS5. Originally posted by EdouardSence on 2026-10-20T20:22:25Z.
A small positive result on ASTRO BOT now that #7844 removes the import-budget regression that hid it in my earlier A/B.
Builds: the merge parent
2185dbf92^1and the merge2185dbf92, both + #7844 (pre/post). Linux, RX 9070 XT / RADV Mesa 26.2.4, PPSA21567 01.019.000, Sky Garden (-lvl underwater_aerial_garden), headless, level start,APS5_TRACE_SECONDS=90:50, warm caches, order pre → post → post → pre.Both post medians are below both pre medians: about 2 % lower frame time, with a tighter p99. GPU busy time per present is unchanged (~136 ms), so the gain is on the CPU side.
Edit: where the remaining data-only misses come from on this level (corrected). A local counter in
lookupDraw's data-candidate loop (post build, Sky Garden, not pushed) shows that about 87 % of the stage variants it checks are rejected because a user data word the stage uses changed. The changing words come in steps of four (w0, w4 … w28), which first made me think of inline buffer descriptors. A prototype that reuses the stage when only inline V# words (or user words the shader only reads at run time through push constants) change, and patches the bindings and push constants, passesAPS5_VERIFY_DRAW_DATA_HITSbut gives no measurable gain (255–258 ms against 256–259 ms). Classifying what still blocks the candidates explains why:asBase, a per-draw table pointer)So on this title the per-draw cost comes from per-object descriptor tables in memory, at a new address and with new contents for each draw. The existing relocation (
relocateDrawEntry) only covers moved tables with the same contents. Reusing a stage here would need the captured table to be re-read and its descriptors patched without recompiling, like the flattened-SRT data positions, but for tables reached through a user pointer. I haven't tried that.Tested and written by Claude (AI assistant) on a contributor's machine.
AI-assisted: yes