Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/eevee/eevee_render.c
| Show First 20 Lines • Show All 536 Lines • ▼ Show 20 Lines | if ((stl->effects->enabled_effects & EFFECT_SSR) && (render_samples == 1) && | ||||
| * This iteration was done, reset to the original target sample count. */ | * This iteration was done, reset to the original target sample count. */ | ||||
| render_samples--; | render_samples--; | ||||
| tot_sample--; | tot_sample--; | ||||
| /* Reset sampling (and accumulation) after the first sample to avoid | /* Reset sampling (and accumulation) after the first sample to avoid | ||||
| * washed out first bounce for SSR. */ | * washed out first bounce for SSR. */ | ||||
| EEVEE_temporal_sampling_reset(vedata); | EEVEE_temporal_sampling_reset(vedata); | ||||
| stl->effects->ssr_was_valid_double_buffer = stl->g_data->valid_double_buffer; | stl->effects->ssr_was_valid_double_buffer = stl->g_data->valid_double_buffer; | ||||
| } | } | ||||
| /* Don't print every samples as it can lead to bad performance. (see T59649) */ | else { | ||||
| else if ((render_samples % 25) == 0 || (render_samples + 1) == tot_sample) { | |||||
| char info[42]; | char info[42]; | ||||
| BLI_snprintf( | BLI_snprintf( | ||||
| info, sizeof(info), "Rendering %u / %u samples", render_samples + 1, tot_sample); | info, sizeof(info), "Rendering %u / %u samples", render_samples + 1, tot_sample); | ||||
| RE_engine_update_stats(engine, NULL, info); | RE_engine_update_stats(engine, NULL, info); | ||||
| } | } | ||||
| /* Copy previous persmat to UBO data */ | /* Copy previous persmat to UBO data */ | ||||
| copy_m4_m4(sldata->common_data.prev_persmat, stl->effects->prev_persmat); | copy_m4_m4(sldata->common_data.prev_persmat, stl->effects->prev_persmat); | ||||
| ▲ Show 20 Lines • Show All 126 Lines • Show Last 20 Lines | |||||