From 3acd342a8658efe6a7a7958ba95abbaf7d6c0f74 Mon Sep 17 00:00:00 2001 From: MrGadget1024 <9826063+MrGadget1024@users.noreply.github.com> Date: Thu, 12 Jan 2023 22:07:43 -0500 Subject: [PATCH] NetworkTransformReliable - disabled sending last snapshot --- .../NetworkTransformReliable.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Assets/Mirror/Components/NetworkTransformReliable/NetworkTransformReliable.cs b/Assets/Mirror/Components/NetworkTransformReliable/NetworkTransformReliable.cs index 82dbe935b..95f1f4b77 100644 --- a/Assets/Mirror/Components/NetworkTransformReliable/NetworkTransformReliable.cs +++ b/Assets/Mirror/Components/NetworkTransformReliable/NetworkTransformReliable.cs @@ -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.