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)
|
if (!gl)
|
||||||
return;
|
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);
|
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->cur_time = rarch_get_time_usec();
|
||||||
menu->dt = menu->cur_time - menu->old_time;
|
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;
|
menu->old_time = menu->cur_time;
|
||||||
|
|
||||||
if (driver.menu_ctx)
|
if (driver.menu_ctx)
|
||||||
|
|
Loading…
Reference in New Issue