summaryrefslogtreecommitdiffhomepage
path: root/floormat
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-03-01 19:33:40 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-03-01 19:44:18 +0100
commitf9767c694e85fe774a68072f10facc5fcf4c6403 (patch)
tree2da67803cdd7ca26c2e1e67bf36d69225e4a00a0 /floormat
parente25a350f907a3833b39b8a7629a4a880fe7b0df4 (diff)
main: reorganize frame timing code
Diffstat (limited to 'floormat')
-rw-r--r--floormat/main.hpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/floormat/main.hpp b/floormat/main.hpp
index f28ffebc..2ed8518f 100644
--- a/floormat/main.hpp
+++ b/floormat/main.hpp
@@ -55,7 +55,7 @@ struct floormat_main
virtual struct lightmap_shader& lightmap_shader() noexcept = 0;
virtual const tile_shader& shader() const noexcept = 0;
virtual void bind() noexcept = 0;
- float smoothed_frame_time() const noexcept;
+ virtual float smoothed_frame_time() const noexcept = 0;
virtual fm_settings& settings() noexcept = 0;
virtual const fm_settings& settings() const noexcept = 0;
@@ -92,7 +92,6 @@ struct floormat_main
[[maybe_unused]] static void debug_break();
protected:
- float _smoothed_frame_time = 0;
Vector2 _dpi_scale{ 1, 1 }, _virtual_scale{ 1, 1 };
Vector2i _framebuffer_size;
bool _do_render_vobjs : 1 = true;