mirror of
https://github.com/libretro/RetroArch
synced 2025-04-02 07:20:34 +00:00
(iOS) Move g_view display to outside - into rarch_main - should reduce
CPU usage a bit further
This commit is contained in:
parent
20fde53b3b
commit
340fdfb342
@ -322,17 +322,12 @@ static void apple_gfx_ctx_swap_buffers(void *data)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
#ifdef OSX
|
#ifdef OSX
|
||||||
|
|
||||||
#ifdef HAVE_NSOPENGL
|
#ifdef HAVE_NSOPENGL
|
||||||
[g_context flushBuffer];
|
[g_context flushBuffer];
|
||||||
#else
|
#else
|
||||||
if (g_context.CGLContextObj)
|
if (g_context.CGLContextObj)
|
||||||
CGLFlushDrawable(g_context.CGLContextObj);
|
CGLFlushDrawable(g_context.CGLContextObj);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#else
|
|
||||||
if (g_view)
|
|
||||||
[g_view display];
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
g_fast_forward_skips = g_is_syncing ? 0 : 3;
|
g_fast_forward_skips = g_is_syncing ? 0 : 3;
|
||||||
|
@ -280,6 +280,9 @@ void notify_content_loaded(void)
|
|||||||
{
|
{
|
||||||
ret = rarch_main_iterate();
|
ret = rarch_main_iterate();
|
||||||
while(CFRunLoopRunInMode(kCFRunLoopDefaultMode, 0.002, FALSE) == kCFRunLoopRunHandledSource);
|
while(CFRunLoopRunInMode(kCFRunLoopDefaultMode, 0.002, FALSE) == kCFRunLoopRunHandledSource);
|
||||||
|
|
||||||
|
if (g_view && !g_runloop.is_idle)
|
||||||
|
[g_view display];
|
||||||
}
|
}
|
||||||
|
|
||||||
main_exit(NULL);
|
main_exit(NULL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user