diff options
author | Erik <ecke101@gmail.com> | 2021-11-23 19:37:31 +0300 |
---|---|---|
committer | Erik <ecke101@gmail.com> | 2021-11-23 19:37:31 +0300 |
commit | e4986f92f32b096aa85440f8f517e38fcdf15e07 (patch) | |
tree | bde68bc3eb6ab0f656676417e92be0c122ef313c /release/scripts | |
parent | fab39440e94d94b0a6ea8ef7771312adbab98e66 (diff) |
Geometry Nodes: Node execution time overlay
Adds a new overlay called "Timings" to the Geometry Node editor.
This shows the node execution time in milliseconds above the node.
For group nodes and frames, the total time for all nodes inside
(recursively) is shown. Group output node shows the node tree total.
The code is prepared for easily adding new rows of information
to the box above the node in the future.
Differential Revision: https://developer.blender.org/D13256
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/startup/bl_ui/space_node.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/space_node.py b/release/scripts/startup/bl_ui/space_node.py index 2b3f0cfbf7c..afbd7e61aaa 100644 --- a/release/scripts/startup/bl_ui/space_node.py +++ b/release/scripts/startup/bl_ui/space_node.py @@ -721,6 +721,10 @@ class NODE_PT_overlay(Panel): col.prop(snode, "show_annotation", text="Annotations") + if snode.tree_type == 'GeometryNodeTree': + col.separator() + col.prop(overlay, "show_timing", text="Timings") + class NODE_UL_interface_sockets(bpy.types.UIList): def draw_item(self, context, layout, _data, item, icon, _active_data, _active_propname, _index): |