From aaac4e965e001d9a491f0bbca02893641cdf3ddc Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Thu, 28 Jul 2016 12:13:11 +0200 Subject: [PATCH] Cycles: Add some extra logging for light debugging --- intern/cycles/render/light.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/intern/cycles/render/light.cpp b/intern/cycles/render/light.cpp index 6a1437fefb9..34c5eac76fd 100644 --- a/intern/cycles/render/light.cpp +++ b/intern/cycles/render/light.cpp @@ -260,6 +260,7 @@ void LightManager::device_update_distribution(Device *device, DeviceScene *dscen } size_t num_distribution = num_triangles + num_lights; + VLOG(1) << "Total " << num_distribution << " of light distribution primitives."; /* emission area */ float4 *distribution = dscene->light_distribution.resize(num_distribution + 1); @@ -617,11 +618,12 @@ void LightManager::device_update_points(Device *device, } } - float4 *light_data = dscene->light_data.resize(num_lights*LIGHT_SIZE); - if(num_lights == 0) + if(num_lights == 0) { + VLOG(1) << "No effective light, ignoring points update."; return; + } int light_index = 0;