From 93c4202c75cfed2a6e6697c45d50b25ebc00ebcf Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 3 Mar 2024 09:37:42 +0100 Subject: a --- main/draw.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'main') diff --git a/main/draw.cpp b/main/draw.cpp index 10590fce..435309a0 100644 --- a/main/draw.cpp +++ b/main/draw.cpp @@ -27,11 +27,11 @@ void main_impl::do_update() if (auto secs = Time::to_seconds(dt); secs > eps) { #if 1 - constexpr float RC = 60; - constexpr auto alpha = 1 / (1 + RC); + constexpr double RC = 60; + constexpr double alpha = 1 / (1 + RC); auto& value = _frame_timings.smoothed_frame_time; - value = value*(1 - alpha) + alpha * secs; + value = (float)(value*(1 - alpha) + alpha * secs); #else value = secs; #endif -- cgit v1.2.3