diff --git a/src/blackcore/fsd/fsdclient.cpp b/src/blackcore/fsd/fsdclient.cpp index 85a08108d4..5c5971a7a3 100644 --- a/src/blackcore/fsd/fsdclient.cpp +++ b/src/blackcore/fsd/fsdclient.cpp @@ -1706,9 +1706,9 @@ namespace BlackCore::Fsd const qint64 avgTimeMs = this->averageOffsetTimeMs(callsign, count, 3); // latest average qint64 offsetTime = CFsdSetup::c_positionTimeOffsetMsec; - if (avgTimeMs < CFsdSetup::c_interimPositionTimeOffsetMsec && count >= 3) + if (avgTimeMs < CFsdSetup::c_minimumPositionTimeOffsetMsec && count >= 3) { - offsetTime = CFsdSetup::c_interimPositionTimeOffsetMsec; + offsetTime = CFsdSetup::c_minimumPositionTimeOffsetMsec; } return m_additionalOffsetTime + offsetTime; diff --git a/src/blackmisc/network/fsdsetup.h b/src/blackmisc/network/fsdsetup.h index 300a0923e8..42646a5ff6 100644 --- a/src/blackmisc/network/fsdsetup.h +++ b/src/blackmisc/network/fsdsetup.h @@ -64,7 +64,7 @@ namespace BlackMisc::Network //! \remark related to CNetworkVatlib::c_updatePostionIntervalMsec / c_updateInterimPostionIntervalMsec //! @{ static constexpr qint64 c_positionTimeOffsetMsec = 6000; //!< offset time for received position updates Ref T297 - static constexpr qint64 c_interimPositionTimeOffsetMsec = 1500; //!< offset time for received interim position updates Ref T297 + static constexpr qint64 c_minimumPositionTimeOffsetMsec = 700; //!< offset time for vatsim high frequency position updates //! @} //! Default constructor. diff --git a/src/blackmisc/simulation/interpolatorspline.cpp b/src/blackmisc/simulation/interpolatorspline.cpp index 2fd53a2bbd..37b124b31d 100644 --- a/src/blackmisc/simulation/interpolatorspline.cpp +++ b/src/blackmisc/simulation/interpolatorspline.cpp @@ -132,7 +132,7 @@ namespace BlackMisc::Simulation } // set some default values - const qint64 os = qMax(CFsdSetup::c_interimPositionTimeOffsetMsec, m_s[2].getTimeOffsetMs()); + const qint64 os = qMax(CFsdSetup::c_minimumPositionTimeOffsetMsec, m_s[2].getTimeOffsetMs()); m_s[0].addMsecs(-os); // oldest, Ref T297 default offset time to fill data m_s[2].addMsecs(os); // latest, Ref T297 default offset time to fill data if (m_currentSituations.isEmpty()) { return false; }