This commit is contained in:
Ronald M. Clifford 2018-04-22 19:28:20 -07:00 committed by GitHub
parent fca9750105
commit 19dbc3c13c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -479,7 +479,13 @@ void calc_frame_time()
FrameTime = timer_value - last_timer_value;
if (FrameTime >= bound)
{
last_timer_value = timer_value;
// For constant target FPS rates, we increase the last timer value by the bound.
last_timer_value += bound;
// If this frame ran long, we're not going to meet our target FPS, so just set the last timer value to the current timer value.
if (last_timer_value < timer_value) {
last_timer_value = timer_value;
}
break;
}
if (Game_mode & GM_MULTI)