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.
Video
2017.2.0b6 - Profiler
2017.1.1p1 - Profiler
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.
3178524–243924–Case_940805_Regression_Physics_10x_Slower.zip (491 KB)