mirror of https://github.com/mgba-emu/mgba.git
Don't busy-wait if the emulator is paused
This commit is contained in:
parent
17ccb35c33
commit
c12eca835f
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue