Don't busy-wait if the emulator is paused

This commit is contained in:
Jeffrey Pfau 2013-10-24 01:09:01 -07:00
parent 17ccb35c33
commit c12eca835f
1 changed files with 2 additions and 0 deletions

View File

@ -148,6 +148,8 @@ static void _GBASDLRunloop(struct GBAThread* context, struct GLSoftwareRenderer*
glDrawArrays(GL_TRIANGLE_FAN, 0, 4); glDrawArrays(GL_TRIANGLE_FAN, 0, 4);
SDL_GL_SwapBuffers(); SDL_GL_SwapBuffers();
} else {
usleep(50000);
} }
GBASyncWaitFrameEnd(&context->sync); GBASyncWaitFrameEnd(&context->sync);