Need to sleep for 10ms and return 1 to prevent high CPU usage

in unfocused mode
This commit is contained in:
twinaphex 2015-11-28 03:41:30 +01:00
parent da8c36b0c3
commit 778842abe3

View File

@ -934,7 +934,14 @@ int rarch_main_iterate(unsigned *sleep_ms)
rarch_ctl(RARCH_ACTION_STATE_MENU_RUNNING_FINISHED, NULL);
if (check_focus(settings) && !ui_companion_is_on_foreground())
{
menu_iterate_render();
}
else
{
*sleep_ms = 10;
return 1;
}
if (!input && settings->menu.pause_libretro)
ret = 1;