MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / OnReset

Method OnReset

Source/Engine/Engine/Time.cpp:86–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86void Time::TickData::OnReset(float targetFps, double currentTime)
87{
88 DeltaTime = UnscaledDeltaTime = targetFps > ZeroTolerance ? TimeSpan::FromSeconds(1.0f / targetFps) : TimeSpan::Zero();
89 LastLength = static_cast<double>(DeltaTime.Ticks) / TimeSpan::TicksPerSecond;
90 LastBegin = currentTime - LastLength;
91 LastEnd = currentTime;
92}
93
94bool Time::TickData::OnTickBegin(double time, float targetFps, float maxDeltaTime)
95{

Callers 2

SetGamePausedMethod · 0.80
OnBeginUpdateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected