1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-06 17:25:19 +00:00

Merge pull request #110650 from WhalesState/node-cache-less-dirty

Optimize children cache updates and refine special-case handling
This commit is contained in:
Thaddeus Crews
2025-10-13 12:30:14 -05:00
2 changed files with 10 additions and 3 deletions

View File

@@ -196,7 +196,7 @@ private:
Node *parent = nullptr;
Node *owner = nullptr;
HashMap<StringName, Node *> children;
mutable bool children_cache_dirty = true;
mutable bool children_cache_dirty = false;
mutable LocalVector<Node *> children_cache;
HashMap<StringName, Node *> owned_unique_nodes;
bool unique_name_in_owner = false;