Add Quaternion quantization for network stream
Reduced send rate by 56% in average. Identity quat is just 8-bits (flags) Added tests with full-sphere rotation to ensure this works correctly.
This commit is contained in:
@@ -72,10 +72,12 @@ public:
|
||||
using ReadStream::Read;
|
||||
void Read(INetworkSerializable& obj);
|
||||
void Read(INetworkSerializable* obj);
|
||||
void Read(Quaternion& data);
|
||||
|
||||
using WriteStream::Write;
|
||||
void Write(INetworkSerializable& obj);
|
||||
void Write(INetworkSerializable* obj);
|
||||
void Write(const Quaternion& data);
|
||||
|
||||
public:
|
||||
// [Stream]
|
||||
|
||||
Reference in New Issue
Block a user