private static bool FlightStateUpdateIsTooOld(VesselFlightStateUpdate update) { var maxInterpolationTime = WarpSystem.Singleton.SubspaceIsEqualOrInThePast(update.SubspaceId) ? TimeSpan.FromMilliseconds(SettingsSystem.ServerSettings.VesselUpdatesMsInterval).TotalSeconds * 2 : double.MaxValue; return(update.GameTimeStamp < TimeSyncSystem.UniversalTime - maxInterpolationTime); }
public void CopyFrom(VesselFlightStateUpdate update) { VesselId = update.VesselId; GameTimeStamp = update.GameTimeStamp; SubspaceId = update.SubspaceId; CtrlState.CopyFrom(update.CtrlState); }