Support Borsh Serialization #324
cybersoulK
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
while the orphan rules do not get relaxed, we must support borsh.
Because: it's the only one allowing enums to respect repr 1 byte, i tried 5 different crates. (bincode, postcard, rykv, speedy, borsh)
that increases throughput by 25% in multiplayer games for udp state data, like compact positions.
for example. Enum - [u16; 3] (position) [u8; 3] (rotation)
1000 bytes instead of 1300 per udp package.
postcard and bincode (which use serde) with varint enabled, decreases the enum size, but increases u16 from 2 bytes to 3 bytes
Beta Was this translation helpful? Give feedback.
All reactions