3DS: Fix #1294 slightly better this time

This commit is contained in:
Vicki Pfau 2021-03-28 18:27:07 -07:00
parent 9a5546867b
commit a04baac2cb
1 changed files with 11 additions and 6 deletions

View File

@ -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; #ifdef _3DS
if (!frames) {
#endif
runner->params.drawStart(); runner->params.drawStart();
runner->drawFrame(runner, true); runner->drawFrame(runner, true);
runner->params.drawEnd(); runner->params.drawEnd();
#ifdef _3DS #ifdef _3DS
} else {
// XXX: Why does this fix #1294? // XXX: Why does this fix #1294?
usleep(1000); usleep(15000);
}
#endif #endif
++frames;
GUIPollInput(&runner->params, 0, &keys); GUIPollInput(&runner->params, 0, &keys);
} }
if (runner->unpaused) { if (runner->unpaused) {