Hello.
I’m looking for a solution to fix my device’s screen refresh rate, but I can’t find it.
First, I wrote the code like this,
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class RefreshRateManager : MonoBehaviour
{
public Text txt, txt1;
void Awake()
{
QualitySettings.vSyncCount = 0;
Application.targetFrameRate = 60;
//Screen.SetResolution(1280, 720, true, 60);
txt.text = "Refresh Rate : " + Screen.currentResolution.refreshRate.ToString();
txt1.text = "FPS : " + Application.targetFrameRate.ToString();
}
}
but, it doesn’t work.
Next, I found this thread( Set screen refresh rate on Android 11 ), so I followed it.
However, the result is same.
And now, I can’t find any other solution.
Please describe your problem.
Oh, I’m sorry.
Perhaps my question didn’t explain my problem so much.
I want to switch my android device’s refresh rate to 60Hz when I run my game, when the refresh rate of my device is 120Hz.
Can you describe why? Perhaps I’m not following. Might this help? https://support.unity.com/hc/en-us/articles/360000283043-Target-frame-rate-or-V-Blank-not-set-properly
Because my Galaxy S20+ overheats when its refresh rate is not 60Hz.
And I already set VSync Count to Don’t Sync, but it didn’t change my device’s refresh rate.