Skip to content

Commit

Permalink
Merge pull request #2354 from borbware/main
Browse files Browse the repository at this point in the history
fix high fps bug for >60Hz displays
  • Loading branch information
nesbox authored Nov 11, 2023
2 parents 6267102 + afa8022 commit 5061bb2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/system/sdl/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1920,6 +1920,8 @@ static s32 start(s32 argc, char **argv, const char* folder)

if(delay > 0)
SDL_Delay((u32)(delay * 1000 / SDL_GetPerformanceFrequency()));
else if(delay < 0)
nextTick = SDL_GetPerformanceCounter();
}
}
#endif
Expand Down

0 comments on commit 5061bb2

Please sign in to comment.