mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +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;
|
||||
|
||||
#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;
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user