Removal and Replacement of the CryTimer (gEnv->pTimer) (#5409)
Replaced and removed the CryTimer (gEnv->pTimer). The new TimeSystem is a merger of the current time functionality found in the engine.
* Rename TimeSystemComponent.h/.cpp to TimeSystem.h/.cpp
* Adding New TimeSystem
* remove old timer cvars
* small improvements to the time system.
- updated parts to use the time conversion functions.
- in AdvanceTickDeltaTimes applying t_simulationTickScale is now uses doubles instead of floats.
* Replace gEnv->pTimer / ITimer usages with TimeSystem
* Updating usages of AZ::TimeMs{ 0 } and AZ::TimeUs{ 0 } to AZ::Time::ZeroTimeMs and AZ::Time::ZeroTimeUs
* red code the CryTimer
* using TimeUs instead of TimeMs is some cases + updating usages of old cvars to new
Signed-off-by: amzn-sean <75276488+amzn-sean@users.noreply.github.com>
This commit is contained in:
@@ -7,7 +7,6 @@
|
||||
*/
|
||||
|
||||
#include <AzTest/AzTest.h>
|
||||
#include <Mocks/ITimerMock.h>
|
||||
#include <Mocks/ICryPakMock.h>
|
||||
#include <Mocks/IConsoleMock.h>
|
||||
#include <Mocks/ISystemMock.h>
|
||||
@@ -31,7 +30,6 @@ struct MockGlobalEnvironment
|
||||
{
|
||||
MockGlobalEnvironment()
|
||||
{
|
||||
m_stubEnv.pTimer = &m_stubTimer;
|
||||
m_stubEnv.pCryPak = &m_stubPak;
|
||||
m_stubEnv.pConsole = &m_stubConsole;
|
||||
m_stubEnv.pSystem = &m_stubSystem;
|
||||
@@ -45,7 +43,6 @@ struct MockGlobalEnvironment
|
||||
|
||||
private:
|
||||
SSystemGlobalEnvironment m_stubEnv;
|
||||
testing::NiceMock<TimerMock> m_stubTimer;
|
||||
testing::NiceMock<CryPakMock> m_stubPak;
|
||||
testing::NiceMock<ConsoleMock> m_stubConsole;
|
||||
testing::NiceMock<SystemMock> m_stubSystem;
|
||||
|
||||
Reference in New Issue
Block a user