unity, 设置帧率上限

用unity做了个demo,把所有开销大的特效都去了,在真机上运行仍然卡。显示帧率来看,最高到30。原来unity在ios设备上帧率默认限制为不超过30。

可以通过Application.targetFrameRate = 60;改成最高60。注意这个设置对编辑器无效。

参考:

http://answers.unity3d.com/questions/32841/is-it-possible-to-get-above-30-fps-on-an-ios-devic.html

http://unity3d.com/support/documentation/ScriptReference/Application-targetFrameRate.html

posted on 2015-06-23 12:44  wantnon  阅读(15647)  评论(0编辑  收藏  举报

导航