Search Unity

  1. Click here to see what's on sale for the "Best of Super Sale" on the Asset Store
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Feedback (Case 1171423) Asset import significantly slower than in Unity 4.6

Discussion in '2019.3 Beta' started by Peter77, Jul 23, 2019.

  1. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    5,312
    The provided test project creates 100 text files, triggers
    AssetDatabase.Refresh()
    and then outputs how long the AssetDatabase.Refresh call needed.

    Here are the test results on my PC:
    • Unity 2019.3.0f5 = 8.12 seconds
    • Unity 2019.3.0a8 = 10.66 seconds
    • Unity 4.6.3f1 = 4.46 seconds

    Reproduce
    1. Open attached project on a PC similar to the hardware I used to submit the bug-report with
    2. Delete all assets in Assets/Files
    3. Press from main menu BugReport > Create 100 assets
    4. Repeat this in Unity 2019.3 and Unity 4.6

    Actual
    Unity 2019.3.0a8 takes significantly longer to refresh its AssetDatabase.

    Expected
    Newer Unity releases should be faster or equally fast as older Unity releases.
     
    Last edited: Jan 13, 2020
  2. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    5,312
  3. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    5,312
    Tested this with Unity 2019.3.0f1. It's still as slow as I described in the first post, not improved yet.

    Bug-report updated with this information.
     
  4. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    2,299
  5. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    5,312
    @Unity_Javier sent me an early build of 2019.3.0f4, which comes with various performance improvements. The editor does feel faster than earlier Unity 2019.3 releases, but there are still a few things that should get ironed out.

    Unfortunately the asset import performance didn't improve, it still costs the same amount of time as mentioned in the first post, which is about twice as slow as Unity 4.6.
     
  6. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    5,312
    I tested this with Unity 2019.3.0f5. Import times of the test attached to the bug-report improved about 2s. Down from 10.66s to 8.1s.

    However, 2019.3.0f5 continues to be twice as slow as Unity 4.6, so why has the case been marked as fixed?
     
    Last edited: Aug 4, 2020
  7. LoneDev6

    LoneDev6

    Joined:
    May 22, 2013
    Posts:
    4
    I can confirm it's still a problem today
     
  8. RoyM_Daemon

    RoyM_Daemon

    Joined:
    Nov 10, 2015
    Posts:
    2
    It's Funny. So it is in their known issues list. for version 2020.1.0a15 but it links to the solved ticket of 2019.3 So there is not way for us to vote on it. since they seem to be referencing an old completed ticket for a reoccurring issue.
     
    darthdeus likes this.
  9. darthdeus

    darthdeus

    Joined:
    Oct 13, 2013
    Posts:
    48
    Having just submitted a bug report on this, I suggest you probably do the same. This issue is still in 2020.1.2f1, and I don't see a public tracking issue that we can vote for. To be honest I fear that Unity thinks this issue is resolved, even though there are comments everywhere from people saying that it's still a problem, including me.
     
    f4bisRTS likes this.
  10. Sussifix

    Sussifix

    Joined:
    Dec 1, 2015
    Posts:
    9
    Same problem here. Very frustrating.
     
  11. darthdeus

    darthdeus

    Joined:
    Oct 13, 2013
    Posts:
    48
    Make sure you submit an issue as well like Peter77 suggested. The above linked issue from Unity (https://issuetracker.unity3d.com/issues/focusing-the-editor-window-causes-noticeable-slowdowns) is closed, even though there's clearly tons of people on the forums and reddit posting about how there are performance regressions in the latest couple versions (seems since 2019.3 way up to 2020.2.x).

    We really need to bring enough attention to this so they at least re-open the closed ticket (or give us a new one) so everyone can vote on it. Or at least get some feedback from Unity acknowledging that they know that this issue exists and is being at least investigated.

    I'm not sure if there's any other way we can help, but I'd be very willing to help with anything related to speeding up the editor and development speed. If Unity was an open-source project I'd totally be willing to spend a ton of time working to fix an issue like this, but I guess there's not much we can do :(
     
  12. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    4,036
    confirmation and logged that build time is 2x slower in 2018.lts than in 4.6.9
    2X !
    how does it even pass the battery of test
     
  13. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    5,312
  14. darthdeus

    darthdeus

    Joined:
    Oct 13, 2013
    Posts:
    48
    For anyone interested, after some emailing with Unity customer support they opened a new ticket for the performance regression and reproduced it in 2019.4, 2020.1 and 2020.2 (couldn't do 2018.4 since my submitted project won't compile there). Here's a link to the issue https://issuetracker.unity3d.com/is...slow-asset-reimport-when-modifying-any-script if anyone wants to vote on it :)

    I'd say that this is super positive, though maybe if you guys notice the issue even in 2018.x you probably might want to submit a reproducible build for that too, so it can be linked to the issue?
     
    Lars-Steenhoff and LeonhardP like this.
  15. mrkotfw

    mrkotfw

    Joined:
    Oct 27, 2012
    Posts:
    10
    Thank you for submitting. Is there a project ZIP file I can download to verify on 2018.4.25f1?

    I'm looking at 4-8 hours of importing with my editor tool, and it's absolutely killing my productivity.
     
  16. darthdeus

    darthdeus

    Joined:
    Oct 13, 2013
    Posts:
    48
    I don't think you can, especially since I didn't really strip any of my assets out of the bug report, so it contains a lot of stuff from the asset store you probably shouldn't be able to just download.

    The problem with 2018.4.x in the case of my report is that I use ALINE and a few other things which require 2019.x, so it wouldn't really help you if you could download it I guess.
     
    mrkotfw likes this.
  17. calpolican

    calpolican

    Joined:
    Feb 2, 2015
    Posts:
    278
    I'm experiencing this too in 2020.1.3. Is impossible to work like this. I'm seeing things like AssetDatabase.Refresh() every time I save my scripts, and most of the time is around 30 seconds to 1 minute just for saving one line. Entering playmode is sometimes ok, but sometimes also very slow. I've already expected 30 seconds just to draw the gui of the inspector for a scriptable object.
     
    Last edited: Sep 4, 2020
    ConAim and jl2l like this.
  18. noonoox

    noonoox

    Joined:
    Nov 15, 2014
    Posts:
    10
    Since updating to Unity 2020, I've always been experiencing this. Horrendous. It is better now than in was in earlier 2020 version, but still getting 30+ seconds every time I save a script.
     
  19. VrTechEx

    VrTechEx

    Joined:
    Aug 4, 2013
    Posts:
    36
    SAME PROBLEM HERE :(
     
  20. calpolican

    calpolican

    Joined:
    Feb 2, 2015
    Posts:
    278
  21. budwheizzah99

    budwheizzah99

    Joined:
    Apr 4, 2014
    Posts:
    5
    Another great "feature" by Uniturd.

    Whoever thinks this is normal should be chained to a desk and asked to code something very quickly while having the goddamn asset database refresh every 5 minutes... nonstop until they pass out from exhaustion.

    Unity is developed by subhuman scum.
     
  22. calpolican

    calpolican

    Joined:
    Feb 2, 2015
    Posts:
    278
    In my experience, the workers of Unity are super smart, kind people. The problem seems to be more on the corporative side, that seems to be putting more emphasis in stuff to monetize, or to attract new clients, instead of solving the problems of those working with it on a daily basis. I do agree that they should give more times for the workers to actually use the software for game making, though.
    But, keep in mind that acording to the OP, this issue has been solved in 2020.2. Still Unity should patch 2020.1, since 2020.2 is still in beta.
     
    Last edited: Sep 30, 2020
unityunity