title: Unity mobile device 30fps locked
body: <p>Since yesterday, my unity game is locked 30fps on an android device. Before it was like 150fps.. I disabled v-sync. This is the only script I added yesterday:</p>
  
  <pre><code>public static class SaveLoadProgress {
  
  public static void Save()
  {
      LevelManager levelManager = GameObject.Find ("GameManager").GetComponent&lt;LevelManager&gt; ();
      BinaryFormatter bf = new BinaryFormatter();
      FileStream file = File.Create (Application.persistentDataPath + "/savedProgress.1912");
      bf.Serialize(file, levelManager.levelReached);
      file.Close();
  }
  
  public static void Load() 
  {
      LevelManager levelManager = GameObject.Find ("GameManager").GetComponent&lt;LevelManager&gt; ();
      if(File.Exists(Application.persistentDataPath + "/savedProgress.1912")) 
      {
          BinaryFormatter bf = new BinaryFormatter();
          FileStream file = File.Open(Application.persistentDataPath + "/savedProgress.1912", FileMode.Open);
          levelManager.levelReached = (int)bf.Deserialize(file);
          file.Close();
      }
  }
  }
  </code></pre>
  
  <p>I don't this can be the problem. 
  I added this to the GameManager:</p>
  
  <pre><code>    void Awake()
  {
      Application.targetFrameRate = -1;
      QualitySettings.vSyncCount = 0;
  }
  </code></pre>
  
  <p>The profiler shows this:</p>
  
  <p><a href="https://i.stack.imgur.com/n7Oug.png" rel="noreferrer"><img src="https://i.stack.imgur.com/n7Oug.png" alt="https://i.gyazo.com/33a4f6d2f87899568472b1f890bca1ec.png"></a></p>
  
  <p>What should I do to unlock it from 30fps?</p>