Blender Git Loki
Git Commits -> Revision b225a7c
Revision b225a7c by Manuel Castilla (master) September 4, 2021, 15:09 (GMT) |
Compositor: Merge equal operations Some operations can take a lot of time to execute and any duplication should be avoided. This patch implements a compile step that detects operations with the same type, inputs and parameters that produce the same result and merge them. Now operations can generate a hash that represents their output result. They only need to implement `hash_output_params` and hash any parameter that affects the output result. Reviewed By: jbakker Differential Revision: https://developer.blender.org/D12341 |
Commit Details:
Full Hash: b225a7c4705104245c2267101adec2f2ee2fe20a
Parent Commit: d84c79a
Lines Changed: +373, -11
1 Added Path:
/source/blender/compositor/tests/COM_NodeOperation_test.cc (+169, -0) (View)
8 Modified Paths:
/source/blender/compositor/CMakeLists.txt (+1, -0) (Diff)
/source/blender/compositor/intern/COM_Debug.cc (+2, -1) (Diff)
/source/blender/compositor/intern/COM_NodeOperation.cc (+43, -0) (Diff)
/source/blender/compositor/intern/COM_NodeOperation.h (+70, -0) (Diff)
/source/blender/compositor/intern/COM_NodeOperationBuilder.cc (+65, -9) (Diff)
/source/blender/compositor/intern/COM_NodeOperationBuilder.h (+4, -1) (Diff)
/source/blender/compositor/operations/COM_ConvertOperation.cc (+16, -0) (Diff)
/source/blender/compositor/operations/COM_ConvertOperation.h (+3, -0) (Diff)
/source/blender/compositor/intern/COM_Debug.cc (+2, -1) (Diff)
/source/blender/compositor/intern/COM_NodeOperation.cc (+43, -0) (Diff)
/source/blender/compositor/intern/COM_NodeOperation.h (+70, -0) (Diff)
/source/blender/compositor/intern/COM_NodeOperationBuilder.cc (+65, -9) (Diff)
/source/blender/compositor/intern/COM_NodeOperationBuilder.h (+4, -1) (Diff)
/source/blender/compositor/operations/COM_ConvertOperation.cc (+16, -0) (Diff)
/source/blender/compositor/operations/COM_ConvertOperation.h (+3, -0) (Diff)