Blender Git Loki

Git Commits -> Revision 39cf1ee

Revision 39cf1ee by Manuel Castilla
September 4, 2021, 13:37 (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 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: 39cf1ee6d8d849908b5cf17572d2378d7b1690a2
Parent Commit: c78cd1c
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)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021