mirror of
https://github.com/SAT-R/sa2.git
synced 2026-10-28 09:43:38 +00:00
Remove VBlank check in targets that don't need it (#256)
This commit is contained in:
1 parent
cefd62e345
commit
9543ad304e
1 file changed
+4
-2
+4
-2
@@ -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))
|
||||
;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user