summaryrefslogtreecommitdiffhomepage
path: root/editor
diff options
context:
space:
mode:
Diffstat (limited to 'editor')
-rw-r--r--editor/app.cpp2
-rw-r--r--editor/imgui-misc.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/editor/app.cpp b/editor/app.cpp
index 10f4b25d..bda4dc6c 100644
--- a/editor/app.cpp
+++ b/editor/app.cpp
@@ -68,7 +68,7 @@ shared_ptr_wrapper<critter> app::ensure_player_character(world& w)
{
critter_proto cproto;
cproto.name = "Player"_s;
- cproto.speed = 10;
+ cproto.speed = 1; // todo! was: 10
cproto.playable = true;
ret.ptr = w.make_object<critter>(w.make_id(), global_coords{}, cproto);
_character_id = ret.ptr->id;
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);