fix(agc): make DCC key fills clear what reads through the surface's keys #163
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/163"
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 MichonGoddijn231849 on 2026-09-29T21:42:40Z.
What
APS5_KEYS_FILL_CLEAR=1). It fixes titles whose sampled reads reach the pending image before a refresh, but it breaks reads that bypass the keys. @oneandonlydean found that with Astro Bot's title logo. Thanks!In GTA V the per-frame clear of the bloom buffer was missed, and the bloom fed back into the lighting until the frame turned white. GTA V currently still needs
APS5_KEYS_FILL_CLEAR=1for a stable frame: with the per-read path alone, the frame still pulses. That remaining gap is a follow-up.Tested
Windows 11 Pro, AMD Ryzen 5 7600 (6-core), NVIDIA GeForce RTX 5080 (driver 32.0.16.1074), 32 GB DDR5-5600, MinGW-w64 GCC 15.2.0.
APS5_KEYS_FILL_CLEAR=1the frame stays stable; without it, it no longer fades fully white but still pulses.maindoes not have yet.Overlaps
cachedTexture(ShaderResources.cpp, around L290). The two are compatible: #177 drops a pending image whose DCC address moved, and this PR then checks the keys filled over the image that is left. Whichever lands second keeps both; I'll update this one if #177 goes first.Checklist
main; no other open PR implements the same functions.mdfiles or images added to the repositoryImported from boykopovar/AnyPS5. Originally posted by MichonGoddijn231849 on 2026-09-30T11:47:48Z.
@oneandonlydean thanks for testing this on Astro Bot and for the analysis in 32ee4c2. You're right: a key fill only changes the metadata, so reads that bypass the keys must keep the texels. I've reworked the PR along those lines:
GTA V still needs that switch for a stable frame for now; the remaining gap on the per-read path is a follow-up.
Imported from boykopovar/AnyPS5. Originally posted by boykopovar on 2026-09-30T17:47:09Z.
As I understand it, at the moment APS5_KEYS_FILL_CLEAR=0 also enables bypass?
Imported from boykopovar/AnyPS5. Originally posted by MichonGoddijn231849 on 2026-09-30T19:58:02Z.
Good catch, yes: it only checked that the variable exists, so any value (including 0) turned the immediate clear on. It now turns on only with
APS5_KEYS_FILL_CLEAR=1; every other value, or no variable, leaves it off. I also rebased onto current main, where the one conflict was the newMetadataMovedcheck incachedTexture; both are kept.