Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -609,8 +609,10 @@ void EngineMainLoop(void)
}
#endif

// Wait for vblank to finish
while (REG_DISPSTAT & DISPSTAT_VBLANK)
// NOTE: If other platforms do V-Sync asynchronously, we may need to incorporate this wait.
//
// Wait for vblank to finish, we only compute the frame once the new frame started.
while (PLATFORM_GBA && (REG_DISPSTAT & DISPSTAT_VBLANK))
;
};
}
Expand Down
Loading