Unity3D优化之Optimizing Physics Performance
来源:互联网 发布:js trigger 不兼容 编辑:程序博客网 时间:2024/06/05 18:57
Optimizing Physics Performance 优化物理性能
The NVIDIA PhysX physics engine used by Unity is available on iOS but the performance limits of the hardware will be reached more easily on mobile platforms than desktops.
Unity所用的NVIDIA PhysX物理引擎目前可用于iOS系统上,但是在移动平台比台式机上更容易达到硬件的性能极限。
Here are some tips for tuning physics to get better performance on iOS:-
下面是一些提示,用来优化物理,让其在iOS上得到更好的性能:
You can adjust the Fixed Timestep setting (in theTime manager) to reduce the time spent on physics updates. Increasing the timestep will reduce the CPU overhead at the expense of the accuracy of the physics. Often, lower accuracy is an acceptable tradeoff for increased speed.您可以调整的固定的时间步长设置(在时间管理器内)来减少物理更新上花费的时间。增加时间步长将减少花费在物理准确性上的CPU开销。通常,较低的精度是提高速度的、可接受的折中办法。
Set theMaximum Allowed Timestep in theTime manager in the 8-10fps range to cap the time spent on physics in the worst case scenario.
在时间管理器重设置最大允许的时间步长为8-10fps,来限定最坏情况下的物理花费时间。
Mesh colliders have a much higher performance overhead than primitive colliders, so use them sparingly. It is often possible to approximate the shape of a mesh by using child objects with primitive colliders. The child colliders will be controlled collectively as a single compound collider by the rigidbody on the parent.
网格碰撞器比原始碰撞器具有更高的性能开销,所以尽量少用。通常是在子网格上使用原始碰撞器来模拟一个网格的近似形状。子网格的碰撞器将被母网格的刚体部分集合成为一个复合的碰撞器。
While wheel colliders are not strictly colliders in the sense of solid objects, they nonetheless have a high CPU overhead.
虽然轮碰撞器不是严格意义上的实体对象碰撞器,但是它们仍然有着很高的CPU开销。
The total amount of physics calculation depends on the number of non-sleeping rigid bodies and colliders in the scene and the complexity of the colliders. You can keep track of how many physics objects there are in the scene using the internal profiler.
物理计算总量取决于非休眠刚体数目、场景中碰撞器的数目和碰撞器的复杂性。您可以使用内部Profiler来检测场景中一共使用了多少物理对象。
备注:最近一直在研究Unity3D的性能优化问题,这段时间可能会多翻译这方面的文章,如有翻译不当之处还请多多指出。
原文地址:http://unity3d.com/support/documentation/Manual/iphone-Optimizing-Physics.html
- Unity3D优化之Optimizing Physics Performance
- Unity3D优化之Optimizing Script Performance
- Uniy3D优化之Optimizing Graphics Performance (一)
- Uniy3D优化之Optimizing Graphics Performance (二)
- Unity3D Optimizing Graphics Performance for iOS
- unity3d之physics
- Unity3D优化之Tuning Main Loop Performance
- 优化图形性能 Optimizing Graphics Performance
- Optimizing Graphics Performance-Unity图形性能优化
- 优化图形性能 Optimizing Graphics Performance
- Unity3D优化之Modeling Characters for Optimal Performance
- Unity3D优化之Optimizing the Size of the Built iOS Player
- Unity3D优化之Optimizing the Size of the Built iOS Player
- 优化Windows服务器网络性能 - Optimizing Network Performance
- Optimizing DLL Load Time Performance(优化 DLL 加载时间性能)
- optimizing magento for peak performance Magento的峰值性能优化
- unity3d Physics
- Optimizing Graphics Performance
- RHEL6 磁盘永久性命名方法
- Web_JavaWeb_Tomcat_Http_Https
- C#里面响应键盘的若干问题
- 在Android项目中,eclipse->project->clean之后 R文件消失 解决方法
- 分享几个设计ios寻觅灵感好去处
- Unity3D优化之Optimizing Physics Performance
- Ubuntu 10.04 LTS 安装 sun-java6-jdk 错误解决办法
- 关于C#应用程序重定向中读取不同步的处理方法
- 交叉编译中libtool相关的问题
- Linux上编译boost1.49
- 你真的有必要退出吗——再说Android程序的退出功能
- VC让鼠标指到按钮上变成手型
- PreTranslateMessage作用和使用方法
- JDK1.6.0下载安装与环境配置