From 1b20362583a54c19a8394d136d1234cc748c9361 Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Wed, 27 Mar 2024 16:33:21 +1100 Subject: [PATCH] remove redundant logMap, now that lighting is 100% asynchronous --- source/rendering/StarWorldPainter.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/source/rendering/StarWorldPainter.cpp b/source/rendering/StarWorldPainter.cpp index be28119..e15f00b 100644 --- a/source/rendering/StarWorldPainter.cpp +++ b/source/rendering/StarWorldPainter.cpp @@ -76,12 +76,7 @@ void WorldPainter::render(WorldRenderData& renderData, function lightWai m_renderer->flush(); - bool lightMapUpdated = false; - if (lightWaiter) { - auto start = Time::monotonicMicroseconds(); - lightMapUpdated = lightWaiter(); - LogMap::set("client_render_world_async_light_wait", strf(u8"{:05d}\u00b5s", Time::monotonicMicroseconds() - start)); - } + bool lightMapUpdated = lightWaiter ? lightWaiter() : false; m_renderer->setEffectParameter("lightMapEnabled", !renderData.isFullbright); if (renderData.isFullbright) {