Unity 5 2d 物理滞后
Unity 5 2d physics lags
我用最新版本的Unity创建了一个项目(2D)。我添加了一个小圆圈并附加了一个物理 CircleCollider2D 和 RigidBody2D。当我启动游戏时,我看到球落下时几乎没有冻结。 Android 我也有。探查器显示巨大的渲染器负载。
如何处理这种糟糕的表现?
将Rigidbody2d->interpolate->none改为插值
引自 Rigidbody2d.interpolation 文档:
Interpolation is used to estimate the position of the Rigidbody between physics updates. It can be useful to switch this on when the graphics update is much more frequent than the physics update because the object can appear to move along in jerky "hops" rather than having smooth motion.
我用最新版本的Unity创建了一个项目(2D)。我添加了一个小圆圈并附加了一个物理 CircleCollider2D 和 RigidBody2D。当我启动游戏时,我看到球落下时几乎没有冻结。 Android 我也有。探查器显示巨大的渲染器负载。 如何处理这种糟糕的表现?
将Rigidbody2d->interpolate->none改为插值
引自 Rigidbody2d.interpolation 文档:
Interpolation is used to estimate the position of the Rigidbody between physics updates. It can be useful to switch this on when the graphics update is much more frequent than the physics update because the object can appear to move along in jerky "hops" rather than having smooth motion.