unity, 设置帧率上限

时间:2015-06-23 13:23:21   收藏:0   阅读:1380

用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

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!