帧率修改
parent
db034c3010
commit
76ecaf26ce
|
|
@ -90,17 +90,18 @@ function SettingInfo:SetTipShow()
|
|||
end
|
||||
|
||||
function SettingInfo:SetReslutionTipShow()
|
||||
|
||||
if ServerConfigManager.IsSettingActive(ServerConfigManager.SettingConfig.IS_SELECT_RESLUTION) then
|
||||
local value = PlayerPrefs.GetInt("ResLution")
|
||||
this.selectResolution.value = value
|
||||
if value == 0 then
|
||||
UnityEngine.Application.targetFrameRate = 60;
|
||||
this.selectResolutionText.text = "高帧率"
|
||||
this.selectResolutionTip.gameObject:SetActive(true)
|
||||
else
|
||||
UnityEngine.Application.targetFrameRate = 30;
|
||||
this.selectResolutionText.text = "普通帧率"
|
||||
this.selectResolutionTip.gameObject:SetActive(false)
|
||||
else
|
||||
UnityEngine.Application.targetFrameRate = 60;
|
||||
this.selectResolutionText.text = "高帧率"
|
||||
this.selectResolutionTip.gameObject:SetActive(true)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue