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

Function I_WaitVBL

source/common/utility/i_time.cpp:110–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110void I_WaitVBL(int count)
111{
112 // I_WaitVBL is never used to actually synchronize to the vertical blank.
113 // Instead, it's used for delay purposes. Doom used a 70 Hz display mode,
114 // so that's what we use to determine how long to wait for.
115
116 std::this_thread::sleep_for(std::chrono::milliseconds(1000 * count / 70));
117 I_SetFrameTime();
118}
119
120int I_WaitForTic(int prevtic, double const ticrate)
121{

Callers 2

D_QuitNetGameFunction · 0.85
PerformWipeFunction · 0.85

Calls 1

I_SetFrameTimeFunction · 0.85

Tested by

no test coverage detected