Cycles: Viewport Rendering Memory Improvement
Small memory reduction change by only storing the pixels of the combined pass when it is being shown in the viewport. Previously the combined pass was always calculated and present in the output buffer. The combined pass will still be calculated. It is a limitation in Blender that Cycles always had a combined pass. This patch will remove the limitation from the code base of Cycles. Blender still has the limitation, but will always request the combined renderpass when doing final rendering. Reviewed By: brecht Differential Revision: https://developer.blender.org/D5784
This commit is contained in:
@@ -397,7 +397,9 @@ ccl_device_inline void kernel_write_result(KernelGlobals *kg,
|
||||
float alpha;
|
||||
float3 L_sum = path_radiance_clamp_and_sum(kg, L, &alpha);
|
||||
|
||||
kernel_write_pass_float4(buffer, make_float4(L_sum.x, L_sum.y, L_sum.z, alpha));
|
||||
if (kernel_data.film.pass_flag & PASSMASK(COMBINED)) {
|
||||
kernel_write_pass_float4(buffer, make_float4(L_sum.x, L_sum.y, L_sum.z, alpha));
|
||||
}
|
||||
|
||||
kernel_write_light_passes(kg, buffer, L);
|
||||
|
||||
|
Reference in New Issue
Block a user