Search Unity

  1. The 2022.1 beta is now available for testing. To find out what's new, have a look at our 2022.1 beta blog post.
    Dismiss Notice

(Case 940805) Regression: Significant cost increase for Physics related features

Discussion in '2017.2 Beta' started by Peter77, Aug 10, 2017.

  1. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,171
    The Profiler in Unity 2017.2.0b6 shows a significant cost increase for Physics related features, compared to Unity 2017.1 and earlier versions. I even turned off Physics2D for these tests in 2017.2, otherwise it would have been even slower due to Case 940666. This issue occurs in a build and editor.

    I did notice that Unity provides a new API in 2017.2 to manually sync physics changes. However, the Unity 2017.2 default behavior makes the Physics system about 10x slower in my tests. This performance degradation is affecting my actual project and might affect many existing projects as well.

    Please see the video and screenshots attached to the bug-report.


    profiler_2017_2.png

    profiler_2017_1.png

    Reproduce
    • Open user project
    • Open Assets/Scene.unity
    • Open Window/Profiler
    • Press Play
    Write down time for ScriptRunBehaviourUpdate and CPU. Repeat these steps with Unity 2017.1 and observe 2017.2.0b6 is significantly slower.


    Expected
    Physics should not be slower than in a previous version.

    PS: I've also attached my test project to this forum post.
     

    Attached Files:

    Last edited: Aug 23, 2017
    laurentlavigne likes this.
  2. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,171
unityunity