mirror of https://github.com/mgba-emu/mgba.git
3DS: Fix #1294 slightly better this time
This commit is contained in:
parent
9a5546867b
commit
a04baac2cb
|
@ -623,14 +623,19 @@ void mGUIRun(struct mGUIRunner* runner, const char* path) {
|
||||||
int frames = 0;
|
int frames = 0;
|
||||||
GUIPollInput(&runner->params, 0, &keys);
|
GUIPollInput(&runner->params, 0, &keys);
|
||||||
while (keys && frames < 30) {
|
while (keys && frames < 30) {
|
||||||
++frames;
|
|
||||||
runner->params.drawStart();
|
|
||||||
runner->drawFrame(runner, true);
|
|
||||||
runner->params.drawEnd();
|
|
||||||
#ifdef _3DS
|
#ifdef _3DS
|
||||||
// XXX: Why does this fix #1294?
|
if (!frames) {
|
||||||
usleep(1000);
|
|
||||||
#endif
|
#endif
|
||||||
|
runner->params.drawStart();
|
||||||
|
runner->drawFrame(runner, true);
|
||||||
|
runner->params.drawEnd();
|
||||||
|
#ifdef _3DS
|
||||||
|
} else {
|
||||||
|
// XXX: Why does this fix #1294?
|
||||||
|
usleep(15000);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
++frames;
|
||||||
GUIPollInput(&runner->params, 0, &keys);
|
GUIPollInput(&runner->params, 0, &keys);
|
||||||
}
|
}
|
||||||
if (runner->unpaused) {
|
if (runner->unpaused) {
|
||||||
|
|
Loading…
Reference in New Issue