summaryrefslogtreecommitdiffstats
path: root/src/Render.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/Render.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Render.cpp b/src/Render.cpp
index c44c346..4d0f4b7 100644
--- a/src/Render.cpp
+++ b/src/Render.cpp
@@ -221,8 +221,12 @@ void Render::ExecuteRenderLoop() {
RenderFrame();
while (listener.IsEventsQueueIsNotEmpty())
listener.HandleEvent();
- if (renderWorld)
- window->setTitle("FPS: " + std::to_string(1.0 / timer.GetRealDeltaS()));
+ if (renderWorld) {
+ world->renderDataMutex.lock();
+ size_t size = world->renderData.size();
+ world->renderDataMutex.unlock();
+ window->setTitle("Size: " + std::to_string(size) + " FPS: " + std::to_string(1.0 / timer.GetRealDeltaS()));
+ }
timer.Update();
}
EventAgregator::PushEvent(EventType::Exit, ExitData{});