Search Unity

Editor calling AssetDatabase.ImportAtPath every 5 seconds

Discussion in 'Asset Database' started by bug5532, Nov 24, 2019.

  1. bug5532

    bug5532

    Joined:
    Aug 16, 2011
    Posts:
    307
    For some reaon my editor has started calling AssetDatabase.ImportAtPath every 5 seconds and it's driving me insane, as it locks up for a second each time. Doesn't happen if I reload the scene, but as soon as I edit a script it starts again. Any clue as what could cause this as I'm lost? upload_2019-11-24_0-20-14.png
     

    Attached Files:

    Cambesa likes this.
  2. Cambesa

    Cambesa

    Joined:
    Jun 6, 2011
    Posts:
    119
    Hi Bug, We're facing the exact same issue after importing cinemachine, fmod and using collab. As you can see in your screenshot, it is calling Loading.IDRemapping 204664 times during that hiccup(80000 in my case). I expect the aftermath of this method is causing the extreme lag. I'm currently tracking down which piece of code is remapping the file id so often. It might have something to do with assetbundles or resources.load.
     
  3. Cambesa

    Cambesa

    Joined:
    Jun 6, 2011
    Posts:
    119
    If you are using FMOD, replace the EventManager.cs by the one in version 2.00.05. It's reloading all banks every 5 seconds in an inefficient way.
     
  4. bug5532

    bug5532

    Joined:
    Aug 16, 2011
    Posts:
    307
    I am using FMOD, I will give that a go, thank you!
    Edit: You absolute life saver, that did the trick! Thank you!!!!!
     
    Last edited: Nov 28, 2019
    Cambesa likes this.
  5. wlad_s

    wlad_s

    Joined:
    Feb 18, 2011
    Posts:
    148
    Thanks Cambesa!