diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-07-04 06:03:07 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-07-04 06:03:07 +1000 |
commit | 1b8f117baced50eac2d948021551b167dc62ce22 (patch) | |
tree | 531924c7ec11bafce7d8a05bf8f2ba4269563f94 /source/client/StarClientApplication.cpp | |
parent | a45d16b4ed2698361ff68c5502bcabfc908099a7 (diff) |
Update StarClientApplication.cpp
Diffstat (limited to 'source/client/StarClientApplication.cpp')
-rw-r--r-- | source/client/StarClientApplication.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/client/StarClientApplication.cpp b/source/client/StarClientApplication.cpp index de51f99..80902be 100644 --- a/source/client/StarClientApplication.cpp +++ b/source/client/StarClientApplication.cpp @@ -386,7 +386,9 @@ void ClientApplication::render() { WorldClientPtr worldClient = m_universeClient->worldClient(); RendererPtr renderer = Application::renderer(); if (worldClient) { - auto start = Time::monotonicMicroseconds(); + auto totalStart = Time::monotonicMicroseconds(); + auto start = totalStart; + renderer->switchEffectConfig("world"); worldClient->render(m_renderData, TilePainter::BorderTileSize); LogMap::set("client_render_world_client", strf(u8"{:05d}\u00b5s", Time::monotonicMicroseconds() - start)); @@ -400,7 +402,7 @@ void ClientApplication::render() { LogMap::set("client_render_world_elements", strf(u8"{:05d}\u00b5s", Time::monotonicMicroseconds() - start)); renderer->switchEffectConfig("default"); - LogMap::set("client_render_world_total", strf(u8"{:05d}\u00b5s", Time::monotonicMicroseconds() - start)); + LogMap::set("client_render_world_total", strf(u8"{:05d}\u00b5s", Time::monotonicMicroseconds() - totalStart)); } auto start = Time::monotonicMicroseconds(); m_mainInterface->render(); |