Skip to content

Optimize AnimationTree#113444

Closed
TokageItLab wants to merge 2 commits into
godotengine:masterfrom
TokageItLab:opt-tree
Closed

Optimize AnimationTree#113444
TokageItLab wants to merge 2 commits into
godotengine:masterfrom
TokageItLab:opt-tree

Conversation

@TokageItLab
Copy link
Copy Markdown
Member

@fire
Copy link
Copy Markdown
Member

fire commented Dec 2, 2025

Master was updated @TokageItLab if we're trying to get this into 4.6.

@TokageItLab
Copy link
Copy Markdown
Member Author

TokageItLab commented Dec 2, 2025

We may need to test benchmark measurements for #113448 first.

@fire fire changed the title Optimization AnimationTree Optimize AnimationTree Dec 4, 2025
co-authored-by: Ryan-000 <73148864+Ryan-000@users.noreply.github.com>
co-authored-by: Ryan-000 <73148864+Ryan-000@users.noreply.github.com>
Comment on lines +823 to +825
Pair<Variant, bool> *param = property_map.getptr(key);
if (!param) {
param = &property_map.insert(key, Pair<Variant, bool>())->value;
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Ryan-000 Do you have any idea to remove get_value_ref_or_add_default() like #113448 (comment) ?

In my PR, this migration is not properly completed, so the AnimationTree is not displayed.

image

Comment on lines +827 to +828
param->first = p_node->get_parameter_default_value(pname);
param->second = p_node->is_parameter_read_only(pname);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should only be run when added for the first time, so it needs to be moved inside the if (!param) { block.

@akien-mga
Copy link
Copy Markdown
Member

Superseded by #117277.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants