diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-04-11 13:39:36 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-04-12 12:05:18 +0300 |
commit | fac1892e110956c7ed285ef2d7b097d632bcc25e (patch) | |
tree | 85c9d33dcdbe1e167e08c452e36064e1dfe6eec8 /source/blender/makesdna/DNA_layer_types.h | |
parent | 9c406b786faea9fee6489f0a1a21cab42a3d5cf3 (diff) |
Depsgraph: Bind base by it's index
For the performance we convert object bases list to an array
during view layer evaluation. This makes it possible to have
very cheap index-based base lookup.
The goal of this change is to get rid of base used for function
binding, and avoid scene datablock expansion at the depsgraph
construction time.
Diffstat (limited to 'source/blender/makesdna/DNA_layer_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_layer_types.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_layer_types.h b/source/blender/makesdna/DNA_layer_types.h index 806c1ca76fc..2ee0eff7a9c 100644 --- a/source/blender/makesdna/DNA_layer_types.h +++ b/source/blender/makesdna/DNA_layer_types.h @@ -97,6 +97,7 @@ typedef struct ViewLayer { /* Runtime data */ ListBase drawdata; /* ViewLayerEngineData */ + struct Base **object_bases_array; } ViewLayer; typedef struct SceneCollection { |