mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 04:14:00 +00:00
Merge pull request #1443 from lakkatv/xmb
(Menu) Limit delta time to an acceptable range
This commit is contained in:
commit
d4e6a1ddda
@ -1136,7 +1136,7 @@ static void xmb_frame(void)
|
||||
if (!gl)
|
||||
return;
|
||||
|
||||
menu_animation_update(menu->animation, menu->dt / 7500000.0);
|
||||
menu_animation_update(menu->animation, menu->dt / 8000000.0);
|
||||
|
||||
glViewport(0, 0, gl->win_width, gl->win_height);
|
||||
|
||||
|
@ -382,6 +382,10 @@ int menu_iterate(retro_input_t input,
|
||||
|
||||
menu->cur_time = rarch_get_time_usec();
|
||||
menu->dt = menu->cur_time - menu->old_time;
|
||||
if (menu->dt > 30000)
|
||||
menu->dt = 30000;
|
||||
if (menu->dt < 4000)
|
||||
menu->dt = 4000;
|
||||
menu->old_time = menu->cur_time;
|
||||
|
||||
if (driver.menu_ctx)
|
||||
|
Loading…
x
Reference in New Issue
Block a user