Unity FPS Counter by nvjob - 10

Games & Projects

#NVJOB FPS Counter and Graph - simple and fast. Unity Asset.

Unity 2019.1.8f1MIT LicenseUpdated 3 days agoCreated on May 6th, 2019
Go to source

#NVJOB FPS Counter and Graph - simple and fast 1.2

nvjob.github.io/unity/nvjob-fps-counter-and-graph

GitHub Logo

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


Prerequisites

To work on the project, you will need a Unity version of at least 2019.1.8 (64-bit).

Information

  • 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));       
    }
}

Video manual:

youtube.com/watch?v=suy4ND4_hn4
youtube.com/watch?v=fnTN8IWTiNs


GitHub Logo


Authors: #NVJOB Nicholas Veselov - nvjob.github.io

License: MIT License. Clarification of licenses - nvjob.github.io/mit-license

Support: nvjob.github.io/support

Report a Problem / Issue Tracker / FAQ: nvjob.github.io/reportaproblem

Show all projects by nvjob