Merge pull request #1443 from lakkatv/xmb

(Menu) Limit delta time to an acceptable range
This commit is contained in:
Twinaphex 2015-02-24 10:44:15 +11:00
commit d4e6a1ddda
2 changed files with 5 additions and 1 deletions

View File

@ -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);

View File

@ -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)