Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Carlisle <Blendify>2022-01-04 07:10:09 +0300
committerAaron Carlisle <carlisle.b3d@gmail.com>2022-01-04 07:10:36 +0300
commit7af01de802e6528af730c0118e88681e591a3c31 (patch)
tree4d1b6d8cada82b8de2a8a5d7e08b5b22aebb118d
parenta9e0caa92d68bbfd1ef332b47e321fafda3e9975 (diff)
Shader Nodes: Unity Build
Enable unity builds for `bf_nodes_shader`, gives about a 2.7x speedup of total compile times when just building `bf_nodes_shader`. On my machine, this equates to saving about 30 seconds. Differential Revision: https://developer.blender.org/D13720
-rw-r--r--source/blender/nodes/shader/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/nodes/shader/CMakeLists.txt b/source/blender/nodes/shader/CMakeLists.txt
index 6e2ad57865b..a665aaee5b1 100644
--- a/source/blender/nodes/shader/CMakeLists.txt
+++ b/source/blender/nodes/shader/CMakeLists.txt
@@ -166,3 +166,8 @@ if(WITH_FREESTYLE)
endif()
blender_add_lib(bf_nodes_shader "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")
+
+if(WITH_UNITY_BUILD)
+ set_target_properties(bf_nodes_shader PROPERTIES UNITY_BUILD ON)
+ set_target_properties(bf_nodes_shader PROPERTIES UNITY_BUILD_BATCH_SIZE 10)
+endif()