Skip to main content

Bit Packing

Bit packing is a form of data compression that reduces the number of bits it takes to serialize a value.

A simple example of this is an integer that is always between 0 and 100. Normally an integer will be serialized as 32 bits, but knowing its range is 100 it can be packed into only 7 bits.

Bit Packing in Mirage

Mirage has many attributes that can be applied to SyncVars and Rpc parameters