mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-19 02:09:57 -04:00
Remove the read-back refresh of the VRAM mirror, which brought back the tree columns.
Copying the invalidated ranges from guest memory into the mirror at every submission put the guest's copy of those pages over GPU results that live only in the mirror. In adult Hyrule Field that wiped tree records, and the trees stretched into columns reaching the sky again. With NX2NAVI_READBACK_SYNC=0 the columns did not appear at the same spot. The memory check (NX2NAVI_MEMORY=verify) still finds mirror pages newer than guest memory there with or without the refresh, about 3 per 60 frames, which is left for later. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -114,9 +114,6 @@ const char *nvn_op_name(uint32_t op); // "DRAW_IDX", ...; "
|
||||
// MemoryPoolInvalidateMappedRange: the CPU is about to read pool storage the GPU wrote. Weak no-op in nvn_ext.c; a back
|
||||
// end that renders into host-side copies defines it and writes them back.
|
||||
void nvn_pool_invalidate(const pool_t *p, uint64_t off, uint64_t size);
|
||||
// The range nvn_pool_invalidate is about to read back. Weak no-op in nvn_ext.c; a back end that keeps device-side copies
|
||||
// of pool memory (vk_memory.c, "read-back ranges") defines it and refreshes the range from guest memory at every use.
|
||||
void nvn_pool_invalidated(const pool_t *p, uint64_t off, uint64_t size);
|
||||
// MemoryPoolFlushMappedRange: the CPU wrote [mem + off, mem + off + size). Weak no-op in nvn_ext.c; a back end that keeps
|
||||
// device-side copies of pool memory (vk_memory.c's VRAM mirror) defines it and copies the range again.
|
||||
void nvn_pool_flushed(const pool_t *p, uint64_t off, uint64_t size);
|
||||
|
||||
Reference in New Issue
Block a user