(iOS/OSX) Only call CFRunLoopWakeUp if menu framebuffer is dirty or the menu

currently has an animation effect running
This commit is contained in:
Twinaphex 2015-03-07 17:37:26 +01:00
parent 1a62614c78
commit 0146bf15db

View File

@ -74,6 +74,9 @@ static void do_iteration(CFRunLoopObserverRef observer, CFRunLoopActivity activi
if (ret == -1)
return;
if ( g_runloop.frames.video.current.menu.framebuf_dirty
|| g_runloop.frames.video.current.menu.is_animated
)
CFRunLoopWakeUp(CFRunLoopGetMain());
/* TODO/FIXME