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
Designed by #NVJOB Nicholas Veselov | https://nvjob.pro | http://nvjob.dx.am | https://twitter.com/nvjob
This project is licensed under the MIT License - see the LICENSE file for details
You can thank me by a voluntary donation. https://nvjob.pro/donations.html