summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--logic/pipeline.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/logic/pipeline.cpp b/logic/pipeline.cpp
index 6a01b272..021a576b 100644
--- a/logic/pipeline.cpp
+++ b/logic/pipeline.cpp
@@ -588,8 +588,10 @@ void pipeline::run()
backlog_time += ns{elapsed_nsecs - const_sleep_ms};
- const int sleep_time_ms = ms{clamp(const_sleep_ms - backlog_time,
- ms{}, ms{10})}.count() + .1f;
+ const int sleep_time_ms = (int)(
+ clamp(ms{const_sleep_ms - backlog_time},
+ ms{0}, ms{10}).count() - .45f
+ );
#ifdef DEBUG_TIMINGS
{