misc bug fixes, enabled sleep from options menus
This commit is contained in:
parent
f9eee026f3
commit
4bb5bf11ba
2 changed files with 12 additions and 20 deletions
|
|
@ -291,12 +291,7 @@ int main(int argc , char* argv[]) {
|
|||
|
||||
GFX_flip(screen);
|
||||
}
|
||||
else {
|
||||
// slow down to 60fps
|
||||
uint32_t frame_duration = SDL_GetTicks() - frame_start;
|
||||
#define kTargetFrameDuration 17
|
||||
if (frame_duration<kTargetFrameDuration) SDL_Delay(kTargetFrameDuration-frame_duration);
|
||||
}
|
||||
else GFX_sync();
|
||||
}
|
||||
|
||||
SDL_FreeSurface(digits);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue