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:
authorBrecht Van Lommel <brecht@blender.org>2020-03-24 03:27:38 +0300
committerBrecht Van Lommel <brecht@blender.org>2020-03-24 18:49:46 +0300
commit2bec6f1f06dff400d3b5abd08064ef05312a29bf (patch)
treefa29587da36fa7b9bb549d7779f7728d79fa42db /intern/cycles/render/nodes.h
parentf8a4fb43fba508958c4f0eb350e87149d464ac55 (diff)
Cycles: work around OpenCL performance regression after AOVs and vector rotate
We appear to be hitting some limit where adding any amount of code causes a significant performance regression, no matter what it does. To work around that a new node level was added. Ref T71479
Diffstat (limited to 'intern/cycles/render/nodes.h')
-rw-r--r--intern/cycles/render/nodes.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/intern/cycles/render/nodes.h b/intern/cycles/render/nodes.h
index e79de34bc2c..e201118574b 100644
--- a/intern/cycles/render/nodes.h
+++ b/intern/cycles/render/nodes.h
@@ -197,6 +197,11 @@ class OutputAOVNode : public ShaderNode {
ustring name;
+ virtual int get_group()
+ {
+ return NODE_GROUP_LEVEL_4;
+ }
+
/* Don't allow output node de-duplication. */
virtual bool equals(const ShaderNode & /*other*/)
{
@@ -339,7 +344,7 @@ class PointDensityTextureNode : public ShaderNode {
SHADER_NODE_NO_CLONE_CLASS(PointDensityTextureNode)
virtual int get_group()
{
- return NODE_GROUP_LEVEL_3;
+ return NODE_GROUP_LEVEL_4;
}
~PointDensityTextureNode();