Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/eevee/eevee_lightcache.c
| Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
| if (lcache != NULL) { | if (lcache != NULL) { | ||||
| if (lcache->flag & LIGHTCACHE_BAKING) { | if (lcache->flag & LIGHTCACHE_BAKING) { | ||||
| BLI_strncpy( | BLI_strncpy( | ||||
| eevee->light_cache_info, TIP_("Baking light cache"), sizeof(eevee->light_cache_info)); | eevee->light_cache_info, TIP_("Baking light cache"), sizeof(eevee->light_cache_info)); | ||||
| return; | return; | ||||
| } | } | ||||
| char formatted_mem[15]; | char formatted_mem[15]; | ||||
| BLI_str_format_byte_unit(formatted_mem, eevee_lightcache_memsize_get(lcache), true); | BLI_str_format_byte_unit(formatted_mem, eevee_lightcache_memsize_get(lcache)); | ||||
| int irr_samples = eevee_lightcache_irradiance_sample_count(lcache); | int irr_samples = eevee_lightcache_irradiance_sample_count(lcache); | ||||
| BLI_snprintf(eevee->light_cache_info, | BLI_snprintf(eevee->light_cache_info, | ||||
| sizeof(eevee->light_cache_info), | sizeof(eevee->light_cache_info), | ||||
| TIP_("%d Ref. Cubemaps, %d Irr. Samples (%s in memory)"), | TIP_("%d Ref. Cubemaps, %d Irr. Samples (%s in memory)"), | ||||
| lcache->cube_len - 1, | lcache->cube_len - 1, | ||||
| irr_samples, | irr_samples, | ||||
| ▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines | |||||