summaryrefslogtreecommitdiff
path: root/src/game/interface.cpp
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2017-12-18 19:55:43 +0000
committerPaweł Redman <pawel.redman@gmail.com>2017-12-18 19:55:43 +0000
commitb0cb2054fae07a688174d6b78fd310c986233de3 (patch)
treecc6f480fc2a1f7c0fc0b3de7226d352f5c005f85 /src/game/interface.cpp
parent2d0ca20e5f8775960e1e93add81876ed6fa26707 (diff)
Drastically reduce the number of awake entities.
Diffstat (limited to 'src/game/interface.cpp')
-rw-r--r--src/game/interface.cpp16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/game/interface.cpp b/src/game/interface.cpp
index f4403ea..d125392 100644
--- a/src/game/interface.cpp
+++ b/src/game/interface.cpp
@@ -180,14 +180,18 @@ void state_t::render_to(render::state_t *render)
x[1] += em;
}
- x = v2f_t(0.0f, h - em * 1.5);
- ss << "World S/T/E: ";
+ x = v2f_t(0.0f, h - em * 4.5);
+ ss << "World S/T:";
ss << game->world.stats.sectors << "/";
- ss << game->world.stats.tiles << "/";
- ss << game->world.stats.entities;
+ ss << game->world.stats.tiles;
render->render_text(x, em, ss.str(), render::ALIGN_LEFT_TOP, sf::Color::White);
- x[1] -= em;
+ x[1] += em;
+ ss.str(std::string());
+ ss << "Awake: " << game->awake_entities.size() << "/" << game->world.stats.entities;
+ render->render_text(x, em, ss.str(), render::ALIGN_LEFT_TOP, sf::Color::White);
+
+ x[1] += em;
ss.str(std::string());
ss << "View S/T/E: ";
ss << render->stats.sectors << "/";
@@ -203,7 +207,7 @@ void state_t::render_to(render::state_t *render)
fps += perf_hist[i];
fps /= count(perf_hist);
- x[1] -= em;
+ x[1] += em;
ss.str(std::string());
ss << std::fixed << std::setprecision(1);
ss << "FPS: " << fps;