diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-01 07:14:51 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-01 11:08:43 +0100 |
commit | fa8fb9598ed255057badc888da7e22227c45de1c (patch) | |
tree | b102acae5bc15c08ffe913409b6328f4b661ec0d /editor/imgui-misc.cpp | |
parent | 486e591169af724107ffaf6f24cd1e81b24529a9 (diff) |
wip1
Diffstat (limited to 'editor/imgui-misc.cpp')
-rw-r--r-- | editor/imgui-misc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/imgui-misc.cpp b/editor/imgui-misc.cpp index b397945f..9add31b1 100644 --- a/editor/imgui-misc.cpp +++ b/editor/imgui-misc.cpp @@ -9,7 +9,7 @@ using namespace floormat::imgui; void app::draw_fps() { const auto dpi = M->dpi_scale(); - const auto frame_time = M->smoothed_dt(); + const auto frame_time = M->smoothed_frame_time(); char buf[16]; const double hz = frame_time > 1e-6f ? (int)std::round(10./(double)frame_time + .05) * .1 : 9999; snformat(buf, "{:.1f} FPS"_cf, hz); |