- Home /
Question by
Stealthygolem · Jun 09, 2018 at 08:41 AM ·
frameratevsync
Refreshrates and vsyncCount, what code should be applied?
Hello! I've got a question related to vsyncCount which was discovered during playtesting on my game (which is a 2D unity pixel-graphics game). There seems to be some discrepancy on vsyncCount on different refreshrates for monitors.
What are the appropriate vsyncCount numbers based on the monitor's refreshrate? this is currently what I have applied, but, I'm missing a logical vsyncCount on 3. Can someone elaborate a bit on how I'm supposed to go about this concept?
public class GraphicsScript : MonoBehaviour {
Resolution res;
// Use this for initialization
void Start () {
res = Screen.currentResolution;
if (res.refreshRate == 60) {
QualitySettings.vSyncCount = 1;
}
if (res.refreshRate == 120) {
QualitySettings.vSyncCount = 2;
}
if (res.refreshRate == 144) {
QualitySettings.vSyncCount = 4;
}
Debug.Log(res.refreshRate);
}
Comment
Your answer
Follow this Question
Related Questions
Limiting framerate on android, unity 3.5.7 0 Answers
2D Stutter/Flickering when moving at high speeds 0 Answers
Unity game on Android capped at 30 fps 1 Answer
VSync not working properly in fullscreen? 0 Answers
vsynch not working In full screen 0 Answers