Go back to only calling core_poll() if menu is alive or RetroArch

is paused
This commit is contained in:
twinaphex 2016-09-17 12:05:00 +02:00
parent 042eadd39e
commit 96d4347c4a

View File

@ -1459,12 +1459,13 @@ int runloop_iterate(unsigned *sleep_ms)
return -1;
}
core_poll();
#ifdef HAVE_MENU
if (menu_driver_ctl(RARCH_MENU_CTL_IS_ALIVE, NULL))
{
int ret = runloop_iterate_menu((enum menu_action)
int ret;
core_poll();
ret = runloop_iterate_menu((enum menu_action)
menu_event(cmd.state[0], cmd.state[2]),
sleep_ms);
@ -1483,6 +1484,7 @@ int runloop_iterate(unsigned *sleep_ms)
if (!runloop_check_state(&cmd, &runloop_shader_dir))
{
/* RetroArch has been paused. */
core_poll();
#ifdef HAVE_NETPLAY
/* FIXME: This is an ugly way to tell Netplay this... */
netplay_driver_ctl(RARCH_NETPLAY_CTL_PAUSE, NULL);