Closed thegrb93 closed 3 months ago
Is this meant to be a replacement for NetworkVars?
Is this meant to be a replacement for NetworkVars?
No, it's for entities that sync their 'memory' variable to client
The only problem I foresee with my current approach is that it doesn't preserve write order or writing over a memory address multiple times, which I imagine may cause bugs in some entities. Maybe need to remove those optimizations.
Or maybe make a WireLib.MemoryTrackerPreserveOrder version of WireLib.MemoryTracker
This pull request has been marked as stale as there haven't been any changes in the past month. It will be closed in 15 days.
This pull request has been marked as stale as there haven't been any changes in the past month. It will be closed in 15 days.
Not really happy with this. I think I should've done a queue per entity instead of globbing all the entity data together. Also I don't have the energy to do the memory playback management for each entity that syncs its memory.
Will also require stringstream class