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