-
Notifications
You must be signed in to change notification settings - Fork 35
Description
Goal Description
I would like the DrawableLineMessage next update to be serialized using a Vector3[][] instead of a Vector3[] that way many different segments can be sent in a single line message rather than multiple (you can technically accomplish this by inserting a bad vector (new Vector3(float.NaN, float.NaN, float.NaN)) into the array but it's a crude solution)
This change makes more sense as it would reduce network overhead for complex line objects at a minimal cost (even if you limited the size of the outer array to a byte, 255 different connected line segments is nice and then the added cost for single connected segment packets would only be a byte, which is 1/24th the cost of an extra Vector3, so very small)
Notes
Idk how you'd want to implement this with mirror, but a whole extra int for each message to indicate the length of the outer array seems excessive