From d1e2b892827a5aee8173259ac3860d843b61dded Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Tue, 16 Aug 2022 08:56:01 +0000 Subject: [PATCH] [util] Use chrono literal for ms in fps limiter --- src/util/util_fps_limiter.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/util/util_fps_limiter.cpp b/src/util/util_fps_limiter.cpp index 66737eaf..9354d663 100644 --- a/src/util/util_fps_limiter.cpp +++ b/src/util/util_fps_limiter.cpp @@ -7,6 +7,8 @@ #include "./log/log.h" +using namespace std::chrono_literals; + namespace dxvk { FpsLimiter::FpsLimiter() { @@ -162,7 +164,7 @@ namespace dxvk { } } else { // Assume 1ms sleep granularity by default - m_sleepGranularity = TimerDuration(10000); + m_sleepGranularity = TimerDuration(1ms); } }