| 108 | } |
| 109 | |
| 110 | void 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 | |
| 120 | int I_WaitForTic(int prevtic, double const ticrate) |
| 121 | { |
no test coverage detected