diff --git a/Code/Framework/AzCore/AzCore/Time/TimeSystem.cpp b/Code/Framework/AzCore/AzCore/Time/TimeSystem.cpp index cd0170749f..a5e0908ac4 100644 --- a/Code/Framework/AzCore/AzCore/Time/TimeSystem.cpp +++ b/Code/Framework/AzCore/AzCore/Time/TimeSystem.cpp @@ -124,14 +124,13 @@ namespace AZ const TimeUs currentTimeUs = static_cast(AZStd::GetTimeNowMicroSecond()); //real time - m_realTickDeltaTimeUs = currentTimeUs - m_lastRealTickTimeUs; - m_lastRealTickTimeUs = currentTimeUs; + m_realTickDeltaTimeUs = currentTimeUs - m_lastSimulationTickTimeUs; //game time if (m_simulationTickDeltaOverride > AZ::Time::ZeroTimeUs) { m_simulationTickDeltaTimeUs = m_simulationTickDeltaOverride; - m_lastSimulationTickTimeUs = m_simulationTickDeltaTimeUs; + m_lastSimulationTickTimeUs = currentTimeUs; return m_simulationTickDeltaTimeUs; } diff --git a/Code/Framework/AzCore/AzCore/Time/TimeSystem.h b/Code/Framework/AzCore/AzCore/Time/TimeSystem.h index d2587c76d8..ded70c9be5 100644 --- a/Code/Framework/AzCore/AzCore/Time/TimeSystem.h +++ b/Code/Framework/AzCore/AzCore/Time/TimeSystem.h @@ -74,8 +74,7 @@ namespace AZ //! Updated in AdvanceTickDeltaTimes(). TimeUs m_realTickDeltaTimeUs = AZ::Time::ZeroTimeUs; - TimeUs m_lastSimulationTickTimeUs = AZ::Time::ZeroTimeUs; //!< Used to determine the game tick delta time (affected by cvars). - TimeUs m_lastRealTickTimeUs = AZ::Time::ZeroTimeUs; //!< Used to determine the real game tick delta time (not affected by cvars). + TimeUs m_lastSimulationTickTimeUs = AZ::Time::ZeroTimeUs; //!< Used to determine the game tick delta time. TimeUs m_simulationTickDeltaOverride = AZ::Time::ZeroTimeUs; //