diff --git a/BeatTogether.DedicatedServer.Kernel/DedicatedInstance.cs b/BeatTogether.DedicatedServer.Kernel/DedicatedInstance.cs index 1a8ab84..467b8e8 100644 --- a/BeatTogether.DedicatedServer.Kernel/DedicatedInstance.cs +++ b/BeatTogether.DedicatedServer.Kernel/DedicatedInstance.cs @@ -380,7 +380,7 @@ public override void OnConnect(EndPoint endPoint) new MpNodePoseSyncStatePacket { fullStateUpdateFrequency = Math.Max(_playerRegistry.GetMillisBetweenPoseSyncStateDeltaPackets(), 100L), - deltaUpdateFrequency = _playerRegistry.GetMillisBetweenPoseSyncStateDeltaPackets() + deltaUpdateFrequency = Math.Min(_playerRegistry.GetMillisBetweenPoseSyncStateDeltaPackets(), 200L) }, new MpScoreSyncStatePacket { @@ -423,8 +423,8 @@ public override void OnConnect(EndPoint endPoint) new MpNodePoseSyncStatePacket { fullStateUpdateFrequency = Math.Max(_playerRegistry.GetMillisBetweenPoseSyncStateDeltaPackets(), 100L), - deltaUpdateFrequency = _playerRegistry.GetMillisBetweenPoseSyncStateDeltaPackets() - }, + deltaUpdateFrequency = Math.Min(_playerRegistry.GetMillisBetweenPoseSyncStateDeltaPackets(), 200L) + }, new MpScoreSyncStatePacket { fullStateUpdateFrequency = Math.Max(_playerRegistry.GetMillisBetweenScoreSyncStateDeltaPackets(), 500L), @@ -586,7 +586,7 @@ public override void OnDisconnect(EndPoint endPoint) new MpNodePoseSyncStatePacket { fullStateUpdateFrequency = Math.Max(_playerRegistry.GetMillisBetweenPoseSyncStateDeltaPackets(), 100L), - deltaUpdateFrequency = _playerRegistry.GetMillisBetweenPoseSyncStateDeltaPackets() + deltaUpdateFrequency = Math.Min(_playerRegistry.GetMillisBetweenPoseSyncStateDeltaPackets(), 200L) }, new MpScoreSyncStatePacket {