【游戏帧率】默认修改为30帧
parent
6790df5983
commit
8500ce94ff
|
@ -17,6 +17,13 @@ function Game.Initialize()
|
|||
Screen.sleepTimeout = U3d.SleepTimeout.NeverSleep
|
||||
this.GlobalEvent = EventManager.New()
|
||||
this.InitManagers()
|
||||
-- 默认30帧
|
||||
if PlayerPrefs.HasKey("ResLution") then
|
||||
UnityEngine.Application.targetFrameRate = PlayerPrefs.GetInt("ResLution") == 0 and 30 or 60
|
||||
else
|
||||
UnityEngine.Application.targetFrameRate = 30
|
||||
end
|
||||
|
||||
-- 延迟
|
||||
Timer.New(function()
|
||||
UIManager.OpenPanel(UIName.LoginPanel)
|
||||
|
|
Loading…
Reference in New Issue