feat(agc): let APS5_WRITE_WATCH_IMPORTS=watch keep Windows host imports watched #1994
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1994"
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 lubaxe on 2026-10-09T04:14:19Z.
What
Since #1441, Windows host-pointer imports are always compared instead of write-watched. On Windows
APS5_WRITE_WATCH_IMPORTSwas ignored; on Linux it already choosesprobe,watchorunwatch.When a title renders into large imported targets, a comparison cannot prove a target unchanged. Each lookup then stores the image and uploads it again. In PPSA12544 (Hollow Knight: Silksong) on an RTX 5090, gameplay in
tut_01measured:main(compared)APS5_WRITE_WATCH_IMPORTS=watchuntracked)keys,cpu)APS5_PROFILE_GPU)importWatchRequestis now shared by both platforms.watchkeeps imports watched.probe,unwatchand an unset variable keep #1441's comparison, since there is no Windows probe. Other values throw, as on Linux.watch, a late driver mark is taken for a CPU store again (#1434). USAGE.md and TechnicalDebt.md say so.APS5_STORE_AT_FLIP=1). In PPSA12544,watchalone crashed whiletut_01loaded (vertex fetch exceeds descriptor record count) after reading stale memory. See the four-way result in #1995.Tested
importWatchTestsinagc_driver_recorder_tests, run directly:APS5_WRITE_WATCH_IMPORTS=watch: watched. Without the change, this case fails withWindows host imports were compared with APS5_WRITE_WATCH_IMPORTS=watch.ctest: 487 of 488 passed. The failure isagc_driver_pixel_lds, which also fails on unmodifiedmainon this GPU (vkWaitForFences graphics: Vulkan result -4).tools/check_conventions.py --base origin/mainpasses.Conflicts with #1995 only in
docs/user/USAGE.md, where both add a section at the same place. I'll rebase whichever merges second.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by Rohan03x on 2026-10-09T11:38:10Z.
Tested this alongside #1847 on Windows 11, Ryzen 7 5700X, RTX 3070 with Dreaming Sarah (PPSA02929), merged onto main
f1451396(ctest 488/488): 17.1 FPS on main, 59.97 FPS withAPS5_WRITE_WATCH_IMPORTS=watch, 0 of 1190 presents refreshed first. No crash, but the run was under a minute and stayed on the title screen and main menu. Full numbers: https://github.com/boykopovar/AnyPS5/pull/1847#issuecomment-6080097305AI-assisted: yes.
Imported from boykopovar/AnyPS5. Originally posted by lubaxe on 2026-10-09T13:10:46Z.
Closing: #2096 fixes the same regression from
838d02a8by keeping write tracking for separate shared aliases. Onmaind70b8998with #846, #425, #1836, #1599, #1968, #1969 and #1995, PPSA12544 runs gameplay (tut_01,tut_02) at 600 presents / 10 s with onlyAPS5_STORE_AT_FLIP=1, withoutAPS5_WRITE_WATCH_IMPORTS=watch(Windows 11, RTX 5090; three runs of 180 s). Thanks @Rohan03x for the Dreaming Sarah numbers.(AI-assisted: Claude Code.)
Pull request closed