[Bf-blender-cvs] [8163fda9fb8] master: Fix T70609 EEVEE: Shader using lots of nodegroups are slow to update

Clément Foucault noreply at git.blender.org
Wed Oct 9 23:48:04 CEST 2019


Commit: 8163fda9fb8b89ce9a58fcbb6310b2bb9d78da73
Author: Clément Foucault
Date:   Wed Oct 9 23:45:31 2019 +0200
Branches: master
https://developer.blender.org/rB8163fda9fb8b89ce9a58fcbb6310b2bb9d78da73

Fix T70609 EEVEE: Shader using lots of nodegroups are slow to update

===================================================================

M	source/blender/nodes/shader/node_shader_tree.c

===================================================================

diff --git a/source/blender/nodes/shader/node_shader_tree.c b/source/blender/nodes/shader/node_shader_tree.c
index cb73931a381..b2d979074fe 100644
--- a/source/blender/nodes/shader/node_shader_tree.c
+++ b/source/blender/nodes/shader/node_shader_tree.c
@@ -412,7 +412,8 @@ static void flatten_group_do(bNodeTree *ntree, bNode *gnode)
     BLI_remlink(&ngroup->nodes, node);
     BLI_addtail(&ntree->nodes, node);
     /* ensure unique node name in the node tree */
-    nodeUniqueName(ntree, node);
+    /* This is very slow and it has no use for GPU nodetree. (see T70609) */
+    // nodeUniqueName(ntree, node);
   }
 
   /* Save first and last link to iterate over flattened group links. */



More information about the Bf-blender-cvs mailing list