Compressing FixedString and IRpcCommandSerializer<T> List Serialization with Netcode for ECS

Hi everyone,

I’m working on optimizing network bandwidth I have a couple of questions regarding efficient serialization of data:

1-FixedString Compression:

I’m using FixedString32Bytes (and similar FixedString types) to store relatively short strings. While FixedString is already efficient in terms of memory allocation, I’m looking for ways to further reduce the network payload when sending these strings over the network, especially when they are sent frequently. However, the strings are mostly static after creation.

2-IRpcCommandSerialization Support for NativeList:

I’m also curious whether the IRpcCommandSerialization interface supports NativeList serialization. Does anyone know if this is supported or if there are any workarounds for serializing NativeList data in a compact way for network communication?

Any help or guidance on these topics would be greatly appreciated.

Thanks in advance!

1 Like