TeamHypersomnia / Hypersomnia

Multiplayer top-down shooter made from scratch in C++. Play in your Browser! https://hypersomnia.io Made in 🇵🇱
https://hypersomnia.io/
GNU Affero General Public License v3.0
1.17k stars 52 forks source link

Reimplement delta compression for trivially copyable types by way of augs::introspect #243

Closed geneotech closed 7 years ago

geneotech commented 7 years ago

I do not know when/if the delta compression will be needed at all, but this is a thought that I've stumbled upon and need to write down.

Currently, augs::object_delta specialization for types that are memcpy-safe does a bytewise delta compression that is completely unaware of the underlying structure layout. This is rather inefficient in light of this new strategy:

Pros:

Cons:

geneotech commented 7 years ago

Closed due to low priority