summaryrefslogtreecommitdiffhomepage
path: root/main/main-impl.cpp
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 /main/main-impl.cpp
parente25a350f907a3833b39b8a7629a4a880fe7b0df4 (diff)
main: reorganize frame timing code
Diffstat (limited to 'main/main-impl.cpp')
-rw-r--r--main/main-impl.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/main/main-impl.cpp b/main/main-impl.cpp
index 9f1e1e97..fab0d249 100644
--- a/main/main-impl.cpp
+++ b/main/main-impl.cpp
@@ -57,11 +57,9 @@ const Platform::Sdl2Application& main_impl::application() const noexcept { retur
struct texture_unit_cache& main_impl::texture_unit_cache() { return _tuc; }
path_search& main_impl::search() { return *_search; }
astar& main_impl::astar() { return *_astar; }
-
Vector2i floormat_main::window_size() const noexcept { return _framebuffer_size; }
+float main_impl::smoothed_frame_time() const noexcept { return _frame_timings.smoothed_frame_time; }
void floormat_main::set_render_vobjs(bool value) { _do_render_vobjs = value; }
bool floormat_main::is_rendering_vobjs() const { return _do_render_vobjs; }
-float floormat_main::smoothed_frame_time() const noexcept { return _smoothed_frame_time; }
-
} // namespace floormat