From f663937dd4aa3a745a9a4fb21a7850ac5804014c Mon Sep 17 00:00:00 2001 From: Luan Luciano Date: Thu, 13 Nov 2025 16:25:41 -0300 Subject: [PATCH] Log LightView interactions --- src/client/lightview.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/client/lightview.cpp b/src/client/lightview.cpp index d3fad4b111..22af3709ef 100644 --- a/src/client/lightview.cpp +++ b/src/client/lightview.cpp @@ -25,6 +25,7 @@ #include #include +#include #include LightView::LightView(const Size& size) : m_pool(g_drawPool.get(DrawPoolType::LIGHT)) { @@ -141,6 +142,7 @@ void LightView::updatePixels() const auto invTileSize = 1.0f / m_tileSize; auto* pixelData = m_pixels[0].data(); + std::size_t interactions = 0; for (int y = 0; y < mapHeight; ++y) { for (int x = 0; x < mapWidth; ++x) { @@ -153,6 +155,7 @@ void LightView::updatePixels() auto b = m_globalLightColor.b(); for (auto i = m_lightData.tiles[index]; i < lightSize; ++i) { + ++interactions; const auto& light = m_lightData.lights[i]; const auto dx = centerX - light.pos.x; @@ -183,4 +186,6 @@ void LightView::updatePixels() pixelData[colorIndex + 3] = 255; } } + + g_logger.info("LightView::updatePixels interactions: {}", interactions); } \ No newline at end of file