帧率修改

tcx_xiyou_dev
PC-202302260912\Administrator 2024-05-10 15:58:09 +08:00
parent db034c3010
commit 76ecaf26ce
1 changed files with 5 additions and 4 deletions

View File

@ -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