EEVEE: Group Timing stats for probe rendering.

This commit is contained in:
Clément Foucault 2018-04-24 13:01:04 +02:00
parent 40199c1d10
commit 4e0a535670
1 changed files with 12 additions and 0 deletions

View File

@ -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;