mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-22 00:22:57 -05:00
On Windows a host import without a section alias left guest write tracking, and its changes were found by comparison. Since resident direct memory became private MEM_WRITE_WATCH memory, its imports take that path, and every storage-texture refresh over it compares its whole snapshot. ProbeImportWriteProtection gets a Windows body on MEM_WRITE_WATCH scratch memory, and decideImportWatch keeps direct imports of private read-write memory watched when GetWriteWatch stays honest after an import's first GPU use. The driver marks every imported page written until that use completes, so each such import is settled inside ImportWatched's window by a 4-byte read on a second queue of the graphics family (the imports lock comes after GpuMutex, so the main queue cannot be used there). APS5_NO_WATCHED_PRIVATE_IMPORTS=1 keeps the comparisons.