Skip to content

Commit

Permalink
3DS: Fix #1294 slightly better this time
Browse files Browse the repository at this point in the history
  • Loading branch information
endrift committed Mar 29, 2021
1 parent 9a55468 commit a04baac
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions src/feature/gui/gui-runner.c
Original file line number Diff line number Diff line change
Expand Up @@ -623,14 +623,19 @@ void mGUIRun(struct mGUIRunner* runner, const char* path) {
int frames = 0;
GUIPollInput(&runner->params, 0, &keys);
while (keys && frames < 30) {
++frames;
runner->params.drawStart();
runner->drawFrame(runner, true);
runner->params.drawEnd();
#ifdef _3DS
// XXX: Why does this fix #1294?
usleep(1000);
if (!frames) {
#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);
}
if (runner->unpaused) {
Expand Down

0 comments on commit a04baac

Please sign in to comment.