summaryrefslogtreecommitdiffhomepage
path: root/floormat
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-25 20:51:18 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-25 20:51:18 +0200
commit22998e309dcf6c95c36730f86030bece0fca9667 (patch)
treec35f1747655a3112f09ff23372811c8ac0259902 /floormat
parent343ce367077777dab463816a0d1c5bb9bee9c837 (diff)
a
Diffstat (limited to 'floormat')
-rw-r--r--floormat/main.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/floormat/main.hpp b/floormat/main.hpp
index 6ba3b4c8..da7e59b9 100644
--- a/floormat/main.hpp
+++ b/floormat/main.hpp
@@ -26,7 +26,7 @@ struct floormat_main
virtual Magnum::Math::Vector2<int> window_size() const noexcept = 0;
virtual tile_shader& shader() noexcept = 0;
virtual const tile_shader& shader() const noexcept = 0;
- constexpr float smoothed_dt() const noexcept { return _frame_time; }
+ constexpr float smoothed_dt() const noexcept { return _frame_time1; }
virtual fm_settings& settings() noexcept = 0;
virtual const fm_settings& settings() const noexcept = 0;
@@ -42,7 +42,7 @@ struct floormat_main
[[nodiscard]] static floormat_main* create(floormat_app& app, fm_settings&& options);
protected:
- float _frame_time = 0;
+ float _frame_time1 = 0, _frame_time2 = 0;
};
} // namespace floormat