StringTableEditor.UndoRedoPerformed incredibly (very) slow !

Hello @karl_jones ,

I’m working in a project using localized string inside a Timeline and when performing an undo action (ctrl + z) the application freeze for few seconds, like 7 seconds or more. Using the profiler I was able to tracks down what was taking so long and it appears to be StringTableEditor.UndoRedoPerformed.

I attach a screenshot showing how a Menu.Undo took 7204.58 ms and how StringTableEditor.UndoRedoPerformed takes 6704.59 ms alone. That’s really a lot and makes edit our Timeline really painful.

Any idea how to improve that ?
Thanks

This sounds familiar. We are aware of some performance issues with Undo but I don’t know the current status. I’m away at the moment but I can check next week. I don’t believe there are any workarounds at the moment.

Hello,

At least that something known by the team so I keep hope it will be fixed at some point.

Thanks

Any updates on this? My Undo is taking close to 10 minutes…

Some additional info, I have ~30 objects with the script that are listening for UndoRedoPerformed, but all they do is call a simple “Recalculate” function that takes <1 second when called in other contexts. I do have those 30 objects as part of a prefab, and the problem does seem to get better when I break the prefab connection, but for various reasons it’s helpful having them part of a prefab.

Any idea what’s going on or how I could prevent this?

Yes this was fixed. It was a bug in the undo system. Updating to the latest unity version should fix it and you can also update to the latest location package which also includes improvements to this. 1.5.4