void ReadLastMoveProcessedOnServerTimestamp(NetIncomingMessage inInputStream) { bool isTimestampDirty = inInputStream.ReadBoolean(); if (isTimestampDirty) { mLastMoveProcessedByServerTimestamp = inInputStream.ReadFloat(); float rtt = core.Timing.sInstance.GetFrameStartTime() - mLastMoveProcessedByServerTimestamp; mLastRoundTripTime = rtt; mAvgRoundTripTime.Update(rtt); InputManager.sInstance.GetMoveList().RemovedProcessedMoves(mLastMoveProcessedByServerTimestamp); } }
void ReadLastMoveProcessedOnServerTimestamp(NetIncomingMessage inInputStream) { bool isTimestampDirty = inInputStream.ReadBoolean(); if (isTimestampDirty) { mLastMoveProcessedByServerTimestamp = inInputStream.ReadFloat(); float rtt = core.Timing.sInstance.GetFrameStartTime() - mLastMoveProcessedByServerTimestamp; mLastRoundTripTime = rtt; mAvgRoundTripTime.Update(rtt); //Debug.Log($"ReadLastMoveProcessedOnServerTimestamp rtt {mAvgRoundTripTime.GetValue()}"); } }