using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class show_fps : MonoBehaviour {
// 固定的一个时间间隔
private float time_delta = 0.5f;
// Time.realtimeSinceStartup: 指的是我们当前从启动开始到现在运行的时间,单位(s)
private float prev_time = 0.0f; // 上一次统计FPS的时间;
private float fps = 0.0f
Unity游戏通用框架——FPS的显示和控制
于 2024-10-11 11:50:35 首次发布