diff --git a/Core/FrameTiming.cpp b/Core/FrameTiming.cpp index f89119daef39..f926cae09577 100644 --- a/Core/FrameTiming.cpp +++ b/Core/FrameTiming.cpp @@ -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 }