用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

相关文章:

  • 2021-10-08
  • 2022-12-23
  • 2022-12-23
  • 2021-10-08
  • 2021-12-17
  • 2021-12-31
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-23
  • 2022-01-08
  • 2021-11-17
  • 2021-07-30
  • 2022-12-23
相关资源
相似解决方案