Defer EditorInspector::update_tree to the process stage to improve performance

`EditorInspector::update_tree` is expensive, so defer the call to the process phase
to prevent multiple calls in a single frame (when switching scene tabs).
This commit is contained in:
Rindbee
2022-11-11 08:16:45 +08:00
parent 2e657e51f8
commit f352c30ad5
2 changed files with 8 additions and 3 deletions
+2
View File
@@ -540,6 +540,8 @@ class EditorInspector : public ScrollContainer {
void _show_add_meta_dialog();
void _check_meta_name(const String &p_name);
void _update_tree();
protected:
static void _bind_methods();
void _notification(int p_what);