- Home /
Question by
NPT_Luuk · Jul 15, 2014 at 02:10 PM ·
optimizationphysics2d
Unity 4.3 vs 4.5 physics2D.simulate performance
Hi all,
So I switched my game to the newest Unity version: 4.5.2f. I have a 2D game which consists of 1000 units all with a kinematic rigidbody / collider.
I simply do a:
myTransform.position += myTransform.right * wanderSpeed * Time.deltaTime;
In 4.3 my performance is no issue at all I run at 200FPS. In 4.5 same scene, same project I run at 3 FPS. In profiler it seems Physics2D.Simulate is chunking away all the performance. I did see in the 4.5 changelog that there now is a Physics2D.Simulate property however if I set it to false I can't do any raycasting.
Unity 4.5 profiler screenie:
4.5performance.png
(110.6 kB)
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613154125im_/https://answers.unity.com/themes/thub/images/avi.jpg)