diff options
author | Hans Goudey <h.goudey@me.com> | 2021-12-22 20:25:55 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-12-22 20:25:55 +0300 |
commit | e2a9e7e80395c7706e20d4574851d698d7d01bac (patch) | |
tree | de2c3eecfcd250fd0b5a9167a87a86c6cd28f7e5 /source/blender/editors/space_node | |
parent | 6a71b2af66cf10556b21361cc609d54e45be5e3b (diff) |
Nodes: Remove unnecessary node tree socket tagging
`SOCK_IN_USE` is now set in `update_socket_used_tags` in
`node_tree_update.cc` when a node tree is changed.
It doesn't need to run every single redraw. Removing this
results in a small speedup of 0.4 ms when drawing a tree
with about 4000 nodes (from about 70 ms total).
Differential Revision: https://developer.blender.org/D13645
Diffstat (limited to 'source/blender/editors/space_node')
-rw-r--r-- | source/blender/editors/space_node/node_draw.cc | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/source/blender/editors/space_node/node_draw.cc b/source/blender/editors/space_node/node_draw.cc index 635ef41d859..2d3c42b16d1 100644 --- a/source/blender/editors/space_node/node_draw.cc +++ b/source/blender/editors/space_node/node_draw.cc @@ -2380,7 +2380,6 @@ static void node_update_nodetree(const bContext &C, { /* Make sure socket "used" tags are correct, for displaying value buttons. */ SpaceNode *snode = CTX_wm_space_node(&C); - ntreeTagUsedSockets(&ntree); count_multi_input_socket_links(ntree, *snode); |