all repos — mgba @ fdbdcb850d13b1ba8e4f94bb1ffb578963aad73b

mGBA Game Boy Advance Emulator

3DS: Fix framelimiter on newer citro3d (fixes #1771)
Vicki Pfau vi@endrift.com
Mon, 01 Jun 2020 21:16:21 -0700
commit

fdbdcb850d13b1ba8e4f94bb1ffb578963aad73b

parent

394b69b098c84ab289b1d865409fc8aaff127394

2 files changed, 4 insertions(+), 4 deletions(-)

jump to
M CHANGESCHANGES

@@ -16,6 +16,7 @@ - GBA Video: Fix double-size OBJ wrapping in GL renderer (fixes mgba.io/i/1712)

- GBA Video: Simplify sprite cycle counting (fixes mgba.io/i/1279) - GBA Video: Add sprite cycle counting to GL (fixes mgba.io/i/1635) Other fixes: + - 3DS: Fix framelimiter on newer citro3d (fixes mgba.io/i/1771) - ARM: Fix disassembling of several S-type instructions (fixes mgba.io/i/1778) - ARM Debugger: Clear low bit on breakpoint addresses (fixes mgba.io/i/1764) - CMake: Always use devkitPro toolchain when applicable (fixes mgba.io/i/1755)
M src/platform/3ds/main.csrc/platform/3ds/main.c

@@ -193,14 +193,13 @@ if (frameStarted) {

return; } frameStarted = true; - u8 flags = 0; - if (!frameLimiter) { + if (frameLimiter) { if (tickCounter + 4481000 > svcGetSystemTick()) { - flags = C3D_FRAME_NONBLOCK; + C3D_FrameSync(); } tickCounter = svcGetSystemTick(); } - C3D_FrameBegin(flags); + C3D_FrameBegin(0); ctrStartFrame(); C3D_FrameDrawOn(bottomScreen[doubleBuffer]);