diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-04-10 08:55:09 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-04-10 10:35:00 +0200 |
commit | 94acd44723424f8ff5a9532c3030a637956c738a (patch) | |
tree | eae74dbff526460640e5dba1b5b152536fa358d1 /floormat | |
parent | fdcff54e1d845343cdfe39040aac6f7ff9b4163a (diff) |
main: rewrite flaky fps counter
Diffstat (limited to 'floormat')
-rw-r--r-- | floormat/main.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<int> 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; }; |