Lighter Vector3 stream
Options
I'm making a VR game and I have to send over a lot of IK data in SeralizeMovementState.
Is there a cheaper way to send over Vector3 in a stream?
If I compress Vector3's down to bytes and then send them over will that be more effective? Or does photon do this for us?
Is there a cheaper way to send over Vector3 in a stream?
If I compress Vector3's down to bytes and then send them over will that be more effective? Or does photon do this for us?
0
Comments
-
Hi, as far as I know photon does not compress/pack data.
That's my compression stuff im using
https://github.com/SradnickDev/Photon-Misc/blob/master/Assets/Utilities/Compression.cs
With this you can reduce the size from a vector 3 with 12bytes to 1float with 4bytes.0 -
fantastic! Thank you1