We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cefd62e commit 9543ad3Copy full SHA for 9543ad3
1 file changed
src/core.c
@@ -609,8 +609,10 @@ void EngineMainLoop(void)
609
}
610
#endif
611
612
- // Wait for vblank to finish
613
- while (REG_DISPSTAT & DISPSTAT_VBLANK)
+ // NOTE: If other platforms do V-Sync asynchronously, we may need to incorporate this wait.
+ //
614
+ // Wait for vblank to finish, we only compute the frame once the new frame started.
615
+ while (PLATFORM_GBA && (REG_DISPSTAT & DISPSTAT_VBLANK))
616
;
617
};
618
0 commit comments