o3de icon indicating copy to clipboard operation
o3de copied to clipboard

Undo-Redo on Prefab System Need Performance Optimization

Open djfos opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe. When authoring a big scene, simply moving an entity would cause the window to freeze about 10 seconds.

Untitled Above image shows that CPU is busy on load instance from PrefabDom, even if only a position change.

By passing the modified instance as instanceToExclude to PrefabSystemComponent::PropagateTemplateChanges, the unnecessary instance reload could be avoid during redo. But this doesn't work in undo. Because, currently, updates from PrefabDom to components relies on reload the whole modified instance.

Describe the solution you'd like Need a way to undo changes on the granularity of entity or component instead of instance.

Additional context Our scene is generated by tools. It contains 13500 entities and a lot of nested prefabs.

djfos avatar Feb 23 '24 08:02 djfos

We realize that it was tested in debug build. After switching to profile, the lag is alleviated. Close this issue.

djfos avatar Feb 27 '24 03:02 djfos