summaryrefslogtreecommitdiffstats
path: root/src/Render.cpp
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2017-08-17 17:11:52 +0200
committerLaG1924 <12997935+LaG1924@users.noreply.github.com>2017-08-17 17:11:52 +0200
commitc71fd5f2312bc70eec960c2785bf26d73334d6c3 (patch)
treea2552e127d69db6385cf84846b74c70c646f88f1 /src/Render.cpp
parent2017-08-16 (diff)
downloadAltCraft-c71fd5f2312bc70eec960c2785bf26d73334d6c3.tar
AltCraft-c71fd5f2312bc70eec960c2785bf26d73334d6c3.tar.gz
AltCraft-c71fd5f2312bc70eec960c2785bf26d73334d6c3.tar.bz2
AltCraft-c71fd5f2312bc70eec960c2785bf26d73334d6c3.tar.lz
AltCraft-c71fd5f2312bc70eec960c2785bf26d73334d6c3.tar.xz
AltCraft-c71fd5f2312bc70eec960c2785bf26d73334d6c3.tar.zst
AltCraft-c71fd5f2312bc70eec960c2785bf26d73334d6c3.zip
Diffstat (limited to 'src/Render.cpp')
-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{});