【游戏帧率】默认修改为30帧
parent
8af3d5aa39
commit
6f108e2f5c
|
@ -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