- Home /
frame rate limit script not found
Hi guys ! I create this script to limit my frame rate at 50 FPS
using UnityEngine;
using System.Collections;
public class FrameRateScript : MonoBehaviour {
// Use this for initialization
void Awake ()
{
QualitySettings.vSyncCount = 0; // VSync must be disabled
Application.targetFrameRate = 50;
}
}
I attached this on my camera, but, when i play my game, in the stats i can see the FPS at 70, and my phone overheats, what are the problem ? Thank you guys !
Same, I have been having this problem for a while. for some reason running at 150 fps when it should be 60.
Answer by churu · Feb 14, 2017 at 05:54 AM
I quickly tried this myself and it works fine, the fps counter may say 70 fps, it did the same for me, i loaded up a game quickly at 15 fps and it said 40 fps for me, Try putting also the script in start and not awake. Also assuming your making a game for the phone try limiting the fps to 30 as this is the standard fps limit for mobile games
So the limit in the mobile phone is 30 FPS ? Ok thank you Bro, i try the start and not the awake :)
Your answer
![](https://koobas.hobune.stream/wayback/20220612111023im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Raycast consuming too much ! (VR) 2 Answers
FPS Measurement Issue 0 Answers
How to lock FPS? 1 Answer
How to change a large number of booleans as fast as possible without sacrificing framerate? 1 Answer
Changing animation duration 0 Answers