Warning fixes

This commit is contained in:
Connor McLaughlin
2021-07-07 19:53:10 +10:00
parent 2cf6e8f5c9
commit 8f3162675f
3 changed files with 4 additions and 7 deletions

View File

@ -1537,9 +1537,6 @@ void Throttle()
static constexpr double MAX_VARIANCE_TIME_NS = 50 * 1000000;
#endif
// Don't sleep for <1ms or >=period.
static constexpr double MINIMUM_SLEEP_TIME_NS = 1 * 1000000;
// Use unsigned for defined overflow/wrap-around.
const Common::Timer::Value time = Common::Timer::GetValue();
const double sleep_time = (s_next_frame_time >= time) ?