Application.targetFrameRate doesnt work?

I have a 144Hz monitor and would like my games to run at that speed. I have finished the roll a ball tutorial and everything works, except I cannot increase the frame rate…

I have a GTX970 and i7 so its not that.

To an empty game object i have attached code like this:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class FrameRateSet : MonoBehaviour {

void Awake()
{
Application.targetFrameRate = 144;
}
}

The vsync count in quality settings is set to 0.

any idea why why the frame rate remains default?

Did you do this for all the graphic settings? By defalt the editor uses the highest settings preset.
Also check the FPS in a build instead of the editor and see if it takes effect there.

1 Like