summaryrefslogtreecommitdiff
path: root/src/game/interface.cpp
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2018-03-26 19:27:17 +0200
committerPaweł Redman <pawel.redman@gmail.com>2018-03-26 19:27:17 +0200
commitc9a0aff5a9333cf5e0ee55ba5c8551457a3ae13c (patch)
treeaf5175e56edcb50062555933eb9779a9e7c231a6 /src/game/interface.cpp
parent2f978ea5085678e98e391317cc50ac991cd726a8 (diff)
Diffstat (limited to 'src/game/interface.cpp')
-rw-r--r--src/game/interface.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/game/interface.cpp b/src/game/interface.cpp
index 262c3ae..bd70dbb 100644
--- a/src/game/interface.cpp
+++ b/src/game/interface.cpp
@@ -277,7 +277,11 @@ void state_t::render_to(render::state_t *render)
x[1] += em;
ss.str(std::string());
ss << std::fixed << std::setprecision(3);
- ss << "Game t/F/B: " << game->time * 1.0e-9 << "/" << game->frames << "/" << game->frames_behind;
+ ss << "Game t/F/B/PFT: ";
+ ss << game->time * 1.0e-9 << "/";
+ ss << game->frames << "/";
+ ss << game->frames_behind << "/";
+ ss << game->pathfinder_time * 1.0e-9 << " (" << ((float)game->pathfinder_time / game->time * 100.0f) << "%)";
render->render_text(x, em, ss.str(), render::ALIGN_LEFT_TOP, sf::Color::White);
}