all repos — mgba @ c12eca835f8f8c2550fd17ef3870ebc511fe6e23

mGBA Game Boy Advance Emulator

Don't busy-wait if the emulator is paused
Jeffrey Pfau jeffrey@endrift.com
Thu, 24 Oct 2013 01:09:01 -0700
commit

c12eca835f8f8c2550fd17ef3870ebc511fe6e23

parent

17ccb35c33c80580d0e2043413bd045e4d201ab1

1 files changed, 2 insertions(+), 0 deletions(-)

jump to
M src/platform/sdl/gl-main.csrc/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);