mirror of https://github.com/mgba-emu/mgba.git
3DS: Fix framelimiter on newer citro3d (fixes #1771)
This commit is contained in:
parent
394b69b098
commit
fdbdcb850d
1
CHANGES
1
CHANGES
|
@ -16,6 +16,7 @@ Emulation fixes:
|
||||||
- GBA Video: Simplify sprite cycle counting (fixes mgba.io/i/1279)
|
- GBA Video: Simplify sprite cycle counting (fixes mgba.io/i/1279)
|
||||||
- GBA Video: Add sprite cycle counting to GL (fixes mgba.io/i/1635)
|
- GBA Video: Add sprite cycle counting to GL (fixes mgba.io/i/1635)
|
||||||
Other fixes:
|
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: 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)
|
- 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)
|
- CMake: Always use devkitPro toolchain when applicable (fixes mgba.io/i/1755)
|
||||||
|
|
|
@ -193,14 +193,13 @@ static void _drawStart(void) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
frameStarted = true;
|
frameStarted = true;
|
||||||
u8 flags = 0;
|
if (frameLimiter) {
|
||||||
if (!frameLimiter) {
|
|
||||||
if (tickCounter + 4481000 > svcGetSystemTick()) {
|
if (tickCounter + 4481000 > svcGetSystemTick()) {
|
||||||
flags = C3D_FRAME_NONBLOCK;
|
C3D_FrameSync();
|
||||||
}
|
}
|
||||||
tickCounter = svcGetSystemTick();
|
tickCounter = svcGetSystemTick();
|
||||||
}
|
}
|
||||||
C3D_FrameBegin(flags);
|
C3D_FrameBegin(0);
|
||||||
ctrStartFrame();
|
ctrStartFrame();
|
||||||
|
|
||||||
C3D_FrameDrawOn(bottomScreen[doubleBuffer]);
|
C3D_FrameDrawOn(bottomScreen[doubleBuffer]);
|
||||||
|
|
Loading…
Reference in New Issue