mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-16 13:59:56 -04:00
A fetch copies the mirror over the whole range, not the merge of the bytes the GPU changed that a write-back does. The completion thread arms a range after its write-back reached guest memory; a CPU write into those pages in between, not yet carried up by a sync of the mirror, was then overwritten by the mirror's older bytes at the first fetch. In play that was single frames with another frame's constants: the night lighting missing from the whole scene in Hyrule Field every 0.1 to 0.4 s, and a black scene in Kakariko, gone with wb_lazy = 0. Now the pages are made inaccessible first and the back end then checks the CPU-write page generations against the mirror's last sync and the write-watch bits nobody has read yet; when either shows a write the mirror lacks, the pages are given back and the range arms at a later write-back. The lazy line counts the arms refused. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
54 KiB
54 KiB