mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 04:14:00 +00:00
Simplify rarch_limit_frame_time
This commit is contained in:
parent
7dcd98471f
commit
359349895f
10
runloop.c
10
runloop.c
@ -762,16 +762,14 @@ static void rarch_update_frame_time(void)
|
||||
**/
|
||||
static void rarch_limit_frame_time(void)
|
||||
{
|
||||
double effective_fps, mft_f;
|
||||
retro_time_t current, target = 0, to_sleep_ms = 0;
|
||||
retro_time_t target = 0, to_sleep_ms = 0;
|
||||
runloop_t *runloop = rarch_main_get_ptr();
|
||||
settings_t *settings = config_get_ptr();
|
||||
global_t *global = global_get_ptr();
|
||||
|
||||
current = rarch_get_time_usec();
|
||||
effective_fps = global->system.av_info.timing.fps
|
||||
retro_time_t current = rarch_get_time_usec();
|
||||
double effective_fps = global->system.av_info.timing.fps
|
||||
* settings->fastforward_ratio;
|
||||
mft_f = 1000000.0f / effective_fps;
|
||||
double mft_f = 1000000.0f / effective_fps;
|
||||
|
||||
runloop->frames.limit.minimum_time = (retro_time_t) roundf(mft_f);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user