misc bug fixes, enabled sleep from options menus

This commit is contained in:
Shaun Inman 2023-01-29 10:36:35 -05:00
parent f9eee026f3
commit 4bb5bf11ba
2 changed files with 12 additions and 20 deletions

View file

@ -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);