diff options
Diffstat (limited to 'source/client/StarClientApplication.cpp')
-rw-r--r-- | source/client/StarClientApplication.cpp | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/source/client/StarClientApplication.cpp b/source/client/StarClientApplication.cpp index 7a813c4..ebaa211 100644 --- a/source/client/StarClientApplication.cpp +++ b/source/client/StarClientApplication.cpp @@ -386,20 +386,26 @@ void ClientApplication::render() { WorldClientPtr worldClient = m_universeClient->worldClient(); RendererPtr renderer = Application::renderer(); if (worldClient) { - int64_t start = Time::monotonicMilliseconds(); - + auto start = Time::monotonicMicroseconds(); renderer->switchEffectConfig("world"); worldClient->render(m_renderData, TilePainter::BorderTileSize); + LogMap::set("render_world_client", strf(u8"{:05d}s", Time::monotonicMicroseconds() - start)); + + start = Time::monotonicMicroseconds(); m_worldPainter->render(m_renderData, [&]() { worldClient->waitForLighting(); }); + LogMap::set("render_world_painter", strf(u8"{:05d}s", Time::monotonicMicroseconds() - start)); + + start = Time::monotonicMicroseconds(); m_mainInterface->renderInWorldElements(); + LogMap::set("render_world_elements", strf(u8"{:05d}s", Time::monotonicMicroseconds() - start)); renderer->switchEffectConfig("default"); - LogMap::set("render_world", strf("{}ms", Time::monotonicMilliseconds() - start)); + LogMap::set("render_world_total", strf(u8"{:05d}s", Time::monotonicMicroseconds() - start)); } - int64_t start = Time::monotonicMilliseconds(); + auto start = Time::monotonicMicroseconds(); m_mainInterface->render(); m_cinematicOverlay->render(); - LogMap::set("render_ui", strf("{}ms", Time::monotonicMilliseconds() - start)); + LogMap::set("render_interface", strf(u8"{:05d}s", Time::monotonicMicroseconds() - start)); } if (!m_errorScreen->accepted()) |