From 1b8f117baced50eac2d948021551b167dc62ce22 Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Tue, 4 Jul 2023 06:03:07 +1000 Subject: [PATCH] Update StarClientApplication.cpp --- source/client/StarClientApplication.cpp | 6 ++++-- 1 file 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();