MCPcopy Create free account
hub / github.com/ZDoom/Raze / I_ResetFrameTime

Function I_ResetFrameTime

source/common/utility/i_time.cpp:205–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203}
204
205void I_ResetFrameTime()
206{
207 // Reset the starting point of the current frame to now. For use after lengthy operations that should not result in tic accumulation.
208 auto ft = CurrentFrameStartTime;
209 I_SetFrameTime();
210 FirstFrameStartTime += (CurrentFrameStartTime - ft);
211}
212
213double I_GetInputFrac()
214{

Callers 1

ScreenJobValidateFunction · 0.85

Calls 1

I_SetFrameTimeFunction · 0.85

Tested by

no test coverage detected