| 92 | } |
| 93 | |
| 94 | void 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 | |
| 110 | void I_WaitVBL(int count) |
| 111 | { |
no test coverage detected