Skip to content

Comments

Improve performance of ObjectSelectionTree#90

Merged
Birdy2014 merged 2 commits intomainfrom
object-selection-tree-perf
Mar 12, 2025
Merged

Improve performance of ObjectSelectionTree#90
Birdy2014 merged 2 commits intomainfrom
object-selection-tree-perf

Conversation

@Birdy2014
Copy link
Collaborator

@Birdy2014 Birdy2014 commented Mar 11, 2025

Fixes a stupid mistake that causes huge performance loss when a node is dragged and held over the ObjectSelectionTree.

The IDs are now set more efficiently, which makes the performance of the ObjectSelectionTree finally acceptable.

@Birdy2014 Birdy2014 changed the title Draft: Improve performance of ObjectSelectionTree Improve performance of ObjectSelectionTree Mar 12, 2025
Copy link
Owner

@pixelsandpointers pixelsandpointers left a comment

Choose a reason for hiding this comment

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

It would not be practical to introduce a variable like: requires_compute_transforms and just compute them once at the end of the method?

@Birdy2014
Copy link
Collaborator Author

Birdy2014 commented Mar 12, 2025

It would not be practical to introduce a variable like: requires_compute_transforms and just compute them once at the end of the method?

In the future, if I continue working on this, having such a flag in Project would certainly be beneficial, but for now this is not needed as the if statements can't be true at the same time.

@Birdy2014 Birdy2014 merged commit ccfb39b into main Mar 12, 2025
2 checks passed
@Birdy2014 Birdy2014 deleted the object-selection-tree-perf branch March 12, 2025 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants