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_viewport.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'intern/cycles/blender/blender_viewport.h') diff --git a/intern/cycles/blender/blender_viewport.h b/intern/cycles/blender/blender_viewport.h index 564c4f2b210..f26d0d38115 100644 --- a/intern/cycles/blender/blender_viewport.h +++ b/intern/cycles/blender/blender_viewport.h @@ -49,9 +49,7 @@ class BlenderViewportParameters { static PassType get_viewport_display_render_pass(BL::SpaceView3D &b_v3d); }; -PassType update_viewport_display_passes(BL::SpaceView3D &b_v3d, - vector &passes, - bool reset_passes); +PassType update_viewport_display_passes(BL::SpaceView3D &b_v3d, vector &passes); CCL_NAMESPACE_END -- cgit v1.2.3