(iOS) Move g_view display to outside - into rarch_main - should reduce

CPU usage a bit further
This commit is contained in:
Twinaphex 2015-03-11 05:04:40 +01:00
parent 20fde53b3b
commit 340fdfb342
2 changed files with 3 additions and 5 deletions

View File

@ -322,17 +322,12 @@ static void apple_gfx_ctx_swap_buffers(void *data)
return;
#ifdef OSX
#ifdef HAVE_NSOPENGL
[g_context flushBuffer];
#else
if (g_context.CGLContextObj)
CGLFlushDrawable(g_context.CGLContextObj);
#endif
#else
if (g_view)
[g_view display];
#endif
g_fast_forward_skips = g_is_syncing ? 0 : 3;

View File

@ -280,6 +280,9 @@ void notify_content_loaded(void)
{
ret = rarch_main_iterate();
while(CFRunLoopRunInMode(kCFRunLoopDefaultMode, 0.002, FALSE) == kCFRunLoopRunHandledSource);
if (g_view && !g_runloop.is_idle)
[g_view display];
}
main_exit(NULL);