NetworkTransformReliable - disabled sending last snapshot

This commit is contained in:
MrGadget1024 2023-01-12 22:07:43 -05:00
parent cfdd241e8a
commit 3acd342a86

View File

@ -178,11 +178,11 @@ public override void OnSerialize(NetworkWriter writer, bool initialState)
// for interpolated client owned identities,
// always broadcast the latest known snapshot so other clients can
// interpolate immediately instead of catching up too
if (SkipQueue())
{
snapshot = serverSnapshots.Values[serverSnapshots.Count - 1];
// Debug.Log($"Skipped snapshot queue for {name} to snapshot[{serverSnapshots.Count-1}]");
}
//if (SkipQueue())
//{
// snapshot = serverSnapshots.Values[serverSnapshots.Count - 1];
// // Debug.Log($"Skipped snapshot queue for {name} to snapshot[{serverSnapshots.Count-1}]");
//}
// TODO dirty mask? [compression is very good w/o it already]
// each vector's component is delta compressed.