leafreynolds / cosmere

Bringing The Cosmere to Minecraft!
MIT License
25 stars 19 forks source link

Better NetworkPacket chunking #105

Open leafreynolds opened 1 month ago

leafreynolds commented 1 month ago

There's a lot of data on the player's spiritweb and often we just send the entire thing (regardless of what's changed) to every client. We probably do this via multiple triggers: general syncing, mode changes, etc.

We should refine this, with the ability to mark certain sections of the spiritweb as needing re-syncing. That way we can drastically reduce the number of packets and size of those packets.

Basically mark things as only being sent if they have changed.