AdamFlores / Unity-FPS-Counter

Unity FPS counter with buffer

Home Page:https://nvjob.pro/unity/unity-fps-counter-with-buffer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#NVJOB FPS Counter and Graph - simple and fast (for Unity)

Version 1.2

FPS counter with graph.
The FPS counter has a buffer in which it stores values, then the mean arithmetic value is calculated from these values.

  • The graph is drawn after a given time (graphUpdate variable), and not once per frame.
  • Coroutine responsible for drawing the graph is run once in void Awake ().
  • Graph lines are stored in a static pool and are subsequently taken from there and returned there.
  • You can use FPS counter as a class by calling it from anywhere else:
public class Example : MonoBehaviour
{
using UnityEngine;
    void Update()
    {
       print(StFPS.Counter(60, Time.deltaTime));       
    }
}

https://www.youtube.com/watch?v=suy4ND4_hn4

https://www.youtube.com/watch?v=fnTN8IWTiNs

GitHub Logo

GitHub Logo


Authors

Designed by #NVJOB Nicholas Veselov | https://nvjob.pro | http://nvjob.dx.am | https://twitter.com/nvjob

License

This project is licensed under the MIT License - see the LICENSE file for details

Donate

You can thank me by a voluntary donation. https://nvjob.pro/donations.html

About

Unity FPS counter with buffer

https://nvjob.pro/unity/unity-fps-counter-with-buffer

License:MIT License


Languages

Language:C# 55.2%Language:HLSL 28.8%Language:ShaderLab 16.0%