[Bf-blender-cvs] [aaac4e9] master: Cycles: Add some extra logging for light debugging

Sergey Sharybin noreply at git.blender.org
Thu Jul 28 12:51:43 CEST 2016


Commit: aaac4e965e001d9a491f0bbca02893641cdf3ddc
Author: Sergey Sharybin
Date:   Thu Jul 28 12:13:11 2016 +0200
Branches: master
https://developer.blender.org/rBaaac4e965e001d9a491f0bbca02893641cdf3ddc

Cycles: Add some extra logging for light debugging

===================================================================

M	intern/cycles/render/light.cpp

===================================================================

diff --git a/intern/cycles/render/light.cpp b/intern/cycles/render/light.cpp
index 6a1437f..34c5eac 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;




More information about the Bf-blender-cvs mailing list