[Bf-blender-cvs] [4e0a5356706] blender2.8: EEVEE: Group Timing stats for probe rendering.

Clément Foucault noreply at git.blender.org
Tue Apr 24 15:06:40 CEST 2018


Commit: 4e0a5356706f2457494f25f6908ed9d74161f575
Author: Clément Foucault
Date:   Tue Apr 24 13:01:04 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB4e0a5356706f2457494f25f6908ed9d74161f575

EEVEE: Group Timing stats for probe rendering.

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

M	source/blender/draw/engines/eevee/eevee_lightprobes.c

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

diff --git a/source/blender/draw/engines/eevee/eevee_lightprobes.c b/source/blender/draw/engines/eevee/eevee_lightprobes.c
index 3a7aa2b75d9..2a36c4b9e6a 100644
--- a/source/blender/draw/engines/eevee/eevee_lightprobes.c
+++ b/source/blender/draw/engines/eevee/eevee_lightprobes.c
@@ -1252,6 +1252,8 @@ static void render_scene_to_probe(
 	txl->planar_pool = e_data.planar_pool_placeholder;
 	txl->maxzbuffer = e_data.depth_placeholder;
 
+	DRW_stats_group_start("Cubemap Render");
+
 	/* Update common uniforms */
 	DRW_uniformbuffer_update(sldata->common_ubo, &sldata->common_data);
 
@@ -1259,6 +1261,8 @@ static void render_scene_to_probe(
 		/* Recompute only on 1st drawloop. */
 		pinfo->vis_data.cached = (i != 0);
 
+		DRW_stats_group_start("Cubemap Face");
+
 		/* Setup custom matrices */
 		mul_m4_m4m4(viewmat, cubefacemat[i], posmat);
 		mul_m4_m4m4(persmat, winmat, viewmat);
@@ -1289,8 +1293,12 @@ static void render_scene_to_probe(
 		EEVEE_draw_default_passes(psl);
 		DRW_draw_pass(psl->material_pass);
 		DRW_draw_pass(psl->sss_pass); /* Only output standard pass */
+
+		DRW_stats_group_end();
 	}
 
+	DRW_stats_group_end();
+
 	/* Make sure no aditionnal visibility check runs after this. */
 	pinfo->vis_data.group = NULL;
 
@@ -1319,6 +1327,8 @@ static void render_scene_to_planar(
 	invert_m4_m4(persinv, persmat);
 	invert_m4_m4(wininv, winmat);
 
+	DRW_stats_group_start("Planar Reflection");
+
 	DRW_viewport_matrix_override_set_all(&ped->mats);
 
 	/* Don't reuse previous visibility. */
@@ -1386,6 +1396,8 @@ static void render_scene_to_planar(
 	DRW_state_invert_facing();
 	DRW_state_clip_planes_reset();
 
+	DRW_stats_group_end();
+
 	/* Make sure no aditionnal visibility check runs after this. */
 	pinfo->vis_data.group = NULL;



More information about the Bf-blender-cvs mailing list