i want to know how well my computer performs against my game and want to know how to get the fps pls help
3 Answers
3If you are in the editor, click play, then click the ‘stats’ button. The FPS will be next to graphics. It is next to the other buttons: ‘Maximize on play’, ‘Mute Audio’, and ‘Gizmos’.
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class showFPS : MonoBehaviour {
public Text fpsText;
public float deltaTime;
void Update () {
deltaTime += (Time.deltaTime - deltaTime) * 0.1f;
float fps = 1.0f / deltaTime;
fpsText.text = Mathf.Ceil (fps).ToString ();
}
}
just apply a UI Text object through inspector and you will get your FPS
Also…