3DS: Fix #1294 slightly better this time
Vicki Pfau vi@endrift.com
Sun, 28 Mar 2021 18:27:07 -0700
1 files changed,
11 insertions(+),
6 deletions(-)
jump to
M
src/feature/gui/gui-runner.c
→
src/feature/gui/gui-runner.c
@@ -623,14 +623,19 @@ }
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 + if (!frames) { +#endif + runner->params.drawStart(); + runner->drawFrame(runner, true); + runner->params.drawEnd(); #ifdef _3DS - // XXX: Why does this fix #1294? - usleep(1000); + } else { + // XXX: Why does this fix #1294? + usleep(15000); + } #endif + ++frames; GUIPollInput(&runner->params, 0, &keys); } if (runner->unpaused) {