Skip to content

Commit

Permalink
Add sanity check
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Dec 18, 2023
1 parent e801876 commit 38e88c1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Core/FrameTiming.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ void WaitUntil(double now, double timestamp) {
}
#else
const double left = timestamp - now;
usleep((long)(left * 1000000));
if (left > 0.0) {
usleep((long)(left * 1000000));
}
#endif
}

Expand Down

0 comments on commit 38e88c1

Please sign in to comment.