Skip to content

feat(agc): let APS5_WRITE_WATCH_IMPORTS=watch keep Windows host imports watched - #1994

Closed
lubaxe wants to merge 1 commit into
boykopovar:mainfrom
lubaxe:feat/agc-windows-watch-imports-opt-in
Closed

lubaxe wants to merge 1 commit into
boykopovar:mainfrom
lubaxe:feat/agc-windows-watch-imports-opt-in

Conversation

@lubaxe

@lubaxe lubaxe commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

What

Since #1441, Windows host-pointer imports are always compared instead of write-watched. On Windows APS5_WRITE_WATCH_IMPORTS was ignored; on Linux it already chooses probe, watch or unwatch.

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_01 measured:

main (compared) APS5_WRITE_WATCH_IMPORTS=watch
presents per 10 s 50-61 600
GPU busy per present 89-116 ms 2.8-3.0 ms
storage uploads per 10 s (reason) about 14,000 (untracked) fewer than 2,000 (keys, cpu)
storage-upload / write-back GPU time per present (APS5_PROFILE_GPU) 36 ms / 57 ms (about 2.1 GiB)

Tested

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

  • 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 in TechnicalDebt
  • 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
  • AI-assisted: yes

🤖 Generated with Claude Code

…ts watched

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Rohan03x

Rohan03x commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

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 with APS5_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: #1847 (comment)

AI-assisted: yes.

@lubaxe

lubaxe commented Oct 9, 2026

Copy link
Copy Markdown
Contributor Author

Closing: #2096 fixes the same regression from 838d02a by keeping write tracking for separate shared aliases. On main d70b899 with #846, #425, #1836, #1599, #1968, #1969 and #1995, PPSA12544 runs gameplay (tut_01, tut_02) at 600 presents / 10 s with only APS5_STORE_AT_FLIP=1, without APS5_WRITE_WATCH_IMPORTS=watch (Windows 11, RTX 5090; three runs of 180 s). Thanks @Rohan03x for the Dreaming Sarah numbers.

(AI-assisted: Claude Code.)

@lubaxe lubaxe closed this Oct 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agc libSceAgc* docs needs rebase Conflicts with main, rebase needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants