mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 04:20:28 +00:00
Add slow motion check to frame time.
This commit is contained in:
parent
6a82db13d5
commit
8b655f491a
@ -3000,6 +3000,9 @@ static inline void update_frame_time(void)
|
||||
else
|
||||
delta = time - g_extern.system.frame_time_last;
|
||||
|
||||
if (!is_locked_fps && g_extern.is_slowmotion)
|
||||
delta /= g_settings.slowmotion_ratio;
|
||||
|
||||
g_extern.system.frame_time_last = is_locked_fps ? 0 : time;
|
||||
g_extern.system.frame_time.callback(delta);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user