Skip to content

Commit 9543ad3

Browse files
authored
Remove VBlank check in targets that don't need it (#256)
1 parent cefd62e commit 9543ad3

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/core.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -609,8 +609,10 @@ void EngineMainLoop(void)
609609
}
610610
#endif
611611

612-
// Wait for vblank to finish
613-
while (REG_DISPSTAT & DISPSTAT_VBLANK)
612+
// NOTE: If other platforms do V-Sync asynchronously, we may need to incorporate this wait.
613+
//
614+
// Wait for vblank to finish, we only compute the frame once the new frame started.
615+
while (PLATFORM_GBA && (REG_DISPSTAT & DISPSTAT_VBLANK))
614616
;
615617
};
616618
}

0 commit comments

Comments
 (0)