Search Unity

[Solved] FPS of Android build with 2017.3

Discussion in 'Android' started by ifurkend, Dec 15, 2017.

  1. ifurkend

    ifurkend

    Joined:
    Sep 4, 2012
    Posts:
    349
    I am using HUDFPS script from Unity wiki to display FPS in my builds. My game generally maintains 60 FPS if it's built by 2017.1 or earlier versions (5.6). After switching to 2017.3, I tried to keep all the setting close to previous editors as much as possible, but the result is always capped at 30 FPS. I have even disabled V-sync for all quality levels but it doesn't help at all.

    Edit: Case closed with Application.targetFrameRate = 60;
     
    Last edited: Dec 15, 2017
  2. derkoi

    derkoi

    Joined:
    Jul 3, 2012
    Posts:
    2,009
    Just found this myself, taken from the targetFrameRate Unity 2017.3 docs

     
  3. Hoorza

    Hoorza

    Joined:
    May 8, 2016
    Posts:
    20
    Hmm, that explains a lot. You could go to 60 max on mobile previously is it not? I remember running my previous game on more than 30 for sure. Can that be bypassed somehow?
     
  4. derkoi

    derkoi

    Joined:
    Jul 3, 2012
    Posts:
    2,009
    Use Application.targetFrameRate = 60;