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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2026 CODEPRJ.COM