mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-16 18:09:58 -04:00
Where the lazy write-back is off (AMD's driver, outside Windows), what a binding written by a shader or a copy holds goes back to guest memory at the end of every submission. With NX2NAVI_WB_SKIP_MB=n a written range of n MiB or more goes back for its first 64 KiB, which carries the few words the CPU reads at the start of such buffers, and the rest stays in the mirror, whose pool is then never evicted. A CPU read further in would see older bytes, and a CPU write further in would have the next sync copy that page's older guest bytes over the GPU's, so it is a test switch, default 0. Measured with NX2NAVI_WB_LAZY=0 on an RTX 5090, 75 s runs with warm caches, off against NX2NAVI_WB_SKIP_MB=1: Kakariko walk GPU median 6.60 against 4.20 ms a frame, 98 against 132 fps; Hyrule Field walk GPU 10.09 against 4.88 ms, 76 against 132 fps, 1% low 61 against 98 fps. 78 to 94 MiB a frame stayed in the mirrors. The last frames of both runs in each area show the same picture, and the logs have no errors. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
258 KiB
258 KiB