diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-07-28 13:13:11 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-07-28 13:13:11 +0300 |
commit | aaac4e965e001d9a491f0bbca02893641cdf3ddc (patch) | |
tree | d346a8ccf588d3ebede25fe7b9aea04445c46d9b /intern/cycles/render | |
parent | 402d4ea0b60ef96085f87ce9ff3b9aa000fb462e (diff) |
Cycles: Add some extra logging for light debugging
Diffstat (limited to 'intern/cycles/render')
-rw-r--r-- | intern/cycles/render/light.cpp | 6 |
1 files 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; |