Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

(Case 933679) BuildPipelineInterfaces causes slow EnterPlaymode performance (continuation)

Discussion in '2017.3 Beta' started by Peter77, Oct 26, 2017.

  1. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,618
    During 2017.2 beta, we found out that BuildPipelineInterfaces requires a good amount of time while entering play mode:
    https://forum.unity.com/threads/cas...causes-slow-enterplaymode-performance.484482/

    According to this post, it should be fixed in 2017.2.0f2. I tested this in 2017.3.0b6 and figured this issue isn't fixed. Either it hasn't been forward-ported (do you actually do this?) or the issue sneaked in again.

    Here is a screenshot in 2017.3.0b6 using the project from Case 933679:
    2017_3_0b6_case_933679.png
     
    LeonhardP likes this.
  2. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,136
    Peter77 likes this.
  3. fabmade

    fabmade

    Joined:
    Oct 2, 2016
    Posts:
    2
    i have this problem also in Unity 2017.2.0f3 (64-bit) it happens on every scene change...
     
  4. Mariusj

    Mariusj

    Unity Technologies

    Joined:
    Oct 27, 2016
    Posts:
    8
    This problem was fixed in 2017.2.0p1 and 2017.1.2p2. The fix will appear later in 2017.3.
     
    Last edited: Nov 13, 2017
    Peter77 likes this.
  5. MorCompediaNet

    MorCompediaNet

    Joined:
    Jan 22, 2017
    Posts:
    21
    Are you sure about this?
    I just downloaded 2017.2.0p1 and am still running into this issue:
    upload_2017-11-13_9-47-53.png
    upload_2017-11-13_9-48-20.png
    Both of these spikes are scene changes.

    Additionally, this case number isn't listed in the 2017.2.0p1 patch notes:
    https://unity3d.com/unity/qa/patch-releases/2017.2.0p1
    And the case is still marked as active in the issue tracker:
    https://issuetracker.unity3d.com/is...e-when-there-are-many-cs-files-in-the-project

    Am I missing something?
     
  6. Mariusj

    Mariusj

    Unity Technologies

    Joined:
    Oct 27, 2016
    Posts:
    8
    Hey @MorCompediaNet,

    I can again confirm that it was fixed there. The case is now closed and it will be updated on the issuetracker soon. About the patch notes, not all cases appear there due to various human errors.

    Okay, now about the issue itself. The problem that we fixed was "Improve BuildPipelineInterfaces performance when there are many cs files". In other words, it does not mean that we will not be doing that, but it will be much faster.
    I have made some testing on my end and with 1000 scripts, performance improved from ~1.1s to ~20ms (similar to your results).

    I hope this answers your question.
     
  7. MorCompediaNet

    MorCompediaNet

    Joined:
    Jan 22, 2017
    Posts:
    21
    It does.
    Thanks.