mirror of https://github.com/mgba-emu/mgba.git
GUI: Only wait up to 30 frames when unpausing
This commit is contained in:
parent
4866164613
commit
83e23e9cce
|
@ -267,7 +267,13 @@ void GBAGUIRunloop(struct GBAGUIRunner* runner) {
|
|||
break;
|
||||
}
|
||||
}
|
||||
while (keys) {
|
||||
int frames = 0;
|
||||
GUIPollInput(&runner->params, 0, &keys);
|
||||
while (keys && frames < 30) {
|
||||
++frames;
|
||||
runner->params.drawStart();
|
||||
runner->drawFrame(runner, true);
|
||||
runner->params.drawEnd();
|
||||
GUIPollInput(&runner->params, 0, &keys);
|
||||
}
|
||||
if (runner->unpaused) {
|
||||
|
|
Loading…
Reference in New Issue