Prefabs Lag

Issue #777 duplicate
The Code Hermit created an issue


I have noticed consistent lag on prefabs which have multiple scripts who use Odin. The example (gif and project) is reproduced with nested prefabs, but I have seen this even with single prefabs.

Here is a gif:

Basically every time I select the Hermit prefab, Odin starts to repaint no stop, resulting in 15 fps and lower. The Hermit prefab has 3 open scripts. I have cut down the whole project to only the essentials to reproduce the bug. So at the moment those scripts are basically empty, just having bunch of public variables and the “using Sierenix .Odininspector” on the top.

Closing the scripts from the inspector stops the lag. So does unpacking the prefab/s. I have noticed that after unpacking and then making a new prefab the bug disappears, but after a while (5 mins or 1+ hours … ) it comes back. Sometimes the repaint lasts for 3-4 secs, other times it lasts till you unselect the prefab as is the example project.

Unity version: Unity 2021.1.4f1 (64-bit)

OS: Windows: 10

Odin version:

Since Bitbucket doesnt allow me to upload the project here, I have uploaded it online

Comments (4)

  1. Tor Esa Vestergaard

    To give an update, we are still working on this, but solving it correctly and in a future-proof way is a problem of some algorithmic complexity, so we have not yet crafted a solution where we are happy with all the performance and memory characteristics.

  2. Log in to comment