Clamp min/max frame rate for player
This commit is contained in:
@@ -701,6 +701,7 @@ static int ghost_event_proc(GHOST_EventHandle evt, GHOST_TUserDataPtr ps_void)
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
swaptime /= 1.1;
|
swaptime /= 1.1;
|
||||||
|
swaptime = MAX2(ps->fstep / 60.0, swaptime);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -713,6 +714,7 @@ static int ghost_event_proc(GHOST_EventHandle evt, GHOST_TUserDataPtr ps_void)
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
swaptime *= 1.1;
|
swaptime *= 1.1;
|
||||||
|
swaptime = MIN2(ps->fstep / 5.0, swaptime);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user