diff options
author | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2017-08-17 17:11:52 +0200 |
---|---|---|
committer | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2017-08-17 17:11:52 +0200 |
commit | c71fd5f2312bc70eec960c2785bf26d73334d6c3 (patch) | |
tree | a2552e127d69db6385cf84846b74c70c646f88f1 /src/Render.cpp | |
parent | 2017-08-16 (diff) | |
download | AltCraft-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.cpp | 8 |
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{}); |