diff options
author | Jacques Lucke <jacques@blender.org> | 2022-05-18 17:42:49 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2022-05-18 17:42:49 +0300 |
commit | f517b3a29568fd43b722973c7c46d3c358ba0dda (patch) | |
tree | c166fc983bb0a717fcf3e49f6f2bd604dc8998a3 /source/blender/blenkernel/intern/node.cc | |
parent | 136a06285f0e953f65dc432a4dba1ff3d1f781ee (diff) |
Fix T98157: improve animation fps with better check in depsgraph
Previously, the depsgraph assumed that every node tree might contain
a reference to a video. This resulted noticeable overhead when there
was no video.
Checking whether a node tree contained a video was relatively expensive
to do in the depsgraph. It is cheaper now due to the structure of the new
node tree updater.
This also adds an additional run-time field to `bNodeTree` (there are
quite a few already). We should move those to a separate run-time
struct, but not as part of a bug fix.
Differential Revision: https://developer.blender.org/D14957
Diffstat (limited to 'source/blender/blenkernel/intern/node.cc')
-rw-r--r-- | source/blender/blenkernel/intern/node.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/node.cc b/source/blender/blenkernel/intern/node.cc index 200eefb73ec..e9c8b438284 100644 --- a/source/blender/blenkernel/intern/node.cc +++ b/source/blender/blenkernel/intern/node.cc @@ -670,6 +670,7 @@ void ntreeBlendReadData(BlendDataReader *reader, bNodeTree *ntree) ntree->progress = nullptr; ntree->execdata = nullptr; + ntree->runtime_flag = 0; ntree->field_inferencing_interface = nullptr; BKE_ntree_update_tag_missing_runtime_data(ntree); |