From 94acd44723424f8ff5a9532c3030a637956c738a Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 10 Apr 2023 08:55:09 +0200 Subject: main: rewrite flaky fps counter --- floormat/main.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'floormat') diff --git a/floormat/main.hpp b/floormat/main.hpp index b80ac289..1854010e 100644 --- a/floormat/main.hpp +++ b/floormat/main.hpp @@ -45,7 +45,7 @@ struct floormat_main virtual Magnum::Math::Vector2 window_size() const noexcept; virtual tile_shader& shader() noexcept = 0; virtual const tile_shader& shader() const noexcept = 0; - constexpr float smoothed_dt() const noexcept { return _frame_time1; } + constexpr float smoothed_dt() const noexcept { return _frame_time; } virtual fm_settings& settings() noexcept = 0; virtual const fm_settings& settings() const noexcept = 0; @@ -75,7 +75,7 @@ struct floormat_main [[maybe_unused]] static void debug_break(); protected: - float _frame_time1 = 0, _frame_time2 = 0; + float _frame_time = 0; Vector2 _dpi_scale{1, 1}, _virtual_scale{1, 1}; Vector2i _framebuffer_size; }; -- cgit v1.2.3