From 271c6794d6295e0022a4088cd0bf6b0592b7abf2 Mon Sep 17 00:00:00 2001 From: Jeroen Bakker Date: Fri, 13 Sep 2019 12:43:57 +0200 Subject: 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 --- intern/cycles/blender/blender_sync.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'intern/cycles/blender/blender_sync.cpp') diff --git a/intern/cycles/blender/blender_sync.cpp b/intern/cycles/blender/blender_sync.cpp index 1a166d171bc..f04455ff75e 100644 --- a/intern/cycles/blender/blender_sync.cpp +++ b/intern/cycles/blender/blender_sync.cpp @@ -344,7 +344,7 @@ void BlenderSync::sync_film(BL::SpaceView3D &b_v3d) Film prevfilm = *film; if (b_v3d) { - film->display_pass = update_viewport_display_passes(b_v3d, film->passes, true); + film->display_pass = update_viewport_display_passes(b_v3d, film->passes); } film->exposure = get_float(cscene, "film_exposure"); @@ -520,7 +520,6 @@ int BlenderSync::get_denoising_pass(BL::RenderPass &b_pass) vector BlenderSync::sync_render_passes(BL::RenderLayer &b_rlay, BL::ViewLayer &b_view_layer) { vector passes; - Pass::add(PASS_COMBINED, passes); /* loop over passes */ BL::RenderLayer::passes_iterator b_pass_iter; -- cgit v1.2.3