Skip to content

[IDEA] Make DrawableLineMessage serialize Vector3[][] instead of Vector3[] #354

@Someone-193

Description

@Someone-193

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    ideaThis is an idea to doimportedImported to internal git

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions