diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-03-27 16:33:21 +1100 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-03-27 16:33:21 +1100 |
commit | 1b20362583a54c19a8394d136d1234cc748c9361 (patch) | |
tree | 4c2af5c15fc0da53b9afbc657a5f9b15b7c0e830 /source/rendering/StarWorldPainter.cpp | |
parent | f08ffe2162f9c3298f04174de7303bcbcdaf2a01 (diff) |
remove redundant logMap, now that lighting is 100% asynchronous
Diffstat (limited to 'source/rendering/StarWorldPainter.cpp')
-rw-r--r-- | source/rendering/StarWorldPainter.cpp | 7 |
1 files changed, 1 insertions, 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<bool()> 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) { |