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

Function I_SetFrameTime

source/common/utility/i_time.cpp:94–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94void I_SetFrameTime()
95{
96 // Must only be called once per frame/swapbuffers.
97 //
98 // Caches all timing information for the current rendered frame so that any
99 // calls to I_GetTime or I_GetTimeFrac will return
100 // the same time.
101
102 if (FreezeTime == 0)
103 {
104 CurrentFrameStartTime = GetClockTimeNS();
105 if (FirstFrameStartTime == 0)
106 FirstFrameStartTime = CurrentFrameStartTime;
107 }
108}
109
110void I_WaitVBL(int count)
111{

Callers 7

Net_ClearFifoFunction · 0.85
TryRunTicsFunction · 0.85
MainLoopFunction · 0.85
I_WaitVBLFunction · 0.85
I_WaitForTicFunction · 0.85
I_FreezeTimeFunction · 0.85
I_ResetFrameTimeFunction · 0.85

Calls 1

GetClockTimeNSFunction · 0.85

Tested by

no test coverage detected