mirror of
https://github.com/sal063/AC6_recomp
synced 2026-07-08 22:45:01 -04:00
bb4f4855ac
Missile/jet trail position history is a fixed guest-address ring, so its vertex fetch constants never change and the command processor's vertex_buffer_states_ address cache skipped RequestRange forever, the GPU copy of the trail history froze at zero (trails invisible) while CPU memory was correct. Register a physical-memory invalidation callback that flags when the CPU writes watched GPU-visible memory, and drop the cached vertex-buffer states at the next draw so the ring's pages get re-uploaded. Also notify those callbacks from the access-violation page-recovery path (xmemory), since a recovered page becomes read-write and would otherwise never fault again to report the write. Gated by ac6_fix_trails (default ON).