- 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.
// You can use the FPS counter as a class.
public class Example : MonoBehaviour