From f9767c694e85fe774a68072f10facc5fcf4c6403 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 1 Mar 2024 19:33:40 +0100 Subject: main: reorganize frame timing code --- floormat/main.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'floormat') 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; -- cgit v1.2.3