用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
