Clamp min/max frame rate for player

This commit is contained in:
Antony Riakiotakis
2015-05-27 20:02:53 +02:00
parent 07def553d2
commit 930bf58478

View File

@@ -701,6 +701,7 @@ static int ghost_event_proc(GHOST_EventHandle evt, GHOST_TUserDataPtr ps_void)
}
else {
swaptime /= 1.1;
swaptime = MAX2(ps->fstep / 60.0, swaptime);
}
break;
}
@@ -713,6 +714,7 @@ static int ghost_event_proc(GHOST_EventHandle evt, GHOST_TUserDataPtr ps_void)
}
else {
swaptime *= 1.1;
swaptime = MIN2(ps->fstep / 5.0, swaptime);
}
break;
}