mirror of
https://github.com/valentderah/totk-pc-recomp.git
synced 2026-11-18 12:08:38 +00:00
On Linux, write-protecting memory the GPU imported costs milliseconds per submit and the import's pinning clears the write watch, so each CPU-visible pool gets a host-visible copy instead: the pages the CPU wrote since the last sync go in right before each submit (skipping bytes the GPU still has to write back), and the replay's GPU writes are copied back into guest memory at their fence (vk_gpu_written). In 1.2.1 play it costs about 0.2 ms a frame. TOTK_SHADOW=1 turns it on under Windows too. Also: build_game.py fetches the VMA header the Windows release pins when the system has none; plat_localtime and plat_gmtime reject the times Windows rejects; the SDL text entry honours TOTK_SWKBD_TEST=cancel; probe-vkmem follows the replay's protocol for GPU writes and syncs.