Skip to content

Commit

Permalink
Improve Scene Tree editor performance
Browse files Browse the repository at this point in the history
We now cache the Node*<>TreeItem* mapping in the SceneTreeEditor. This
allows us to make targeted updates to the Tree used to display the scene
tree in the editor.

Previously on almost all changes to the scene tree the editor would
rebuild the entire widget, causing a large number of deallocations an
allocations. We now carefully manipulate the Tree widget in-situ saving
a large number of these allocations.

There is definitely more that could be done, but this is already a
massive improvement.

This fixes #83460
  • Loading branch information
hpvb committed Nov 26, 2024
1 parent d09d82d commit 6aefc0b
Show file tree
Hide file tree
Showing 4 changed files with 171 additions and 74 deletions.
Loading

0 comments on commit 6aefc0b

Please sign in to comment.