Don't busy-wait if the emulator is paused
Jeffrey Pfau jeffrey@endrift.com
Thu, 24 Oct 2013 01:09:01 -0700
1 files changed,
2 insertions(+),
0 deletions(-)
jump to
M
src/platform/sdl/gl-main.c
→
src/platform/sdl/gl-main.c
@@ -148,6 +148,8 @@ #endif
glDrawArrays(GL_TRIANGLE_FAN, 0, 4); SDL_GL_SwapBuffers(); + } else { + usleep(50000); } GBASyncWaitFrameEnd(&context->sync);