Search Unity

Resolved Unity build locked at 60 fps. Runs at 90 fps in the editor. Why? please. 8)

Discussion in 'Editor & General Support' started by Kinnith7, Jan 15, 2021.

  1. Kinnith7

    Kinnith7

    Joined:
    Jul 4, 2017
    Posts:
    84
    I have "Application.targetFrameRate = -1;" specified in my Game Manager. And when I run my game it has up to 90 fps in the editor. But if I build the exact same project it is locked at 60fps in the build version. I have even tried changing the -1 to 300 with the same result. Is there something else I am supposed to configure?
     
  2. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    Verify you aren't using vsync. I believe it is somewhere in quality settings. You can use the profiler to monitor a dev build to get a better idea what is going on. In more recent versions of Unity, the Profiler shows waiting for vsync as a separate category.
     
  3. Kinnith7

    Kinnith7

    Joined:
    Jul 4, 2017
    Posts:
    84
    Thanks! This fixed it immediately. I went from 60fps to 300fps. I appreciate it!
     
    Joe-Censored likes this.
  4. tinalexanderic

    tinalexanderic

    Joined:
    Jan 15, 2020
    Posts:
    1
    This worked for me, thank you so much!!!
     
    Joe-Censored likes this.