all repos — mgba @ a04baac2cb7267576444c8bc320d675108cd7d17

mGBA Game Boy Advance Emulator

3DS: Fix #1294 slightly better this time
Vicki Pfau vi@endrift.com
Sun, 28 Mar 2021 18:27:07 -0700
commit

a04baac2cb7267576444c8bc320d675108cd7d17

parent

9a5546867b1d602a1d22bcfacfa64720e0691cc6

1 files changed, 11 insertions(+), 6 deletions(-)

jump to
M src/feature/gui/gui-runner.csrc/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) {