Add this class to a gameObject with a Text component and it'll feed it the number of FPS in real time.
More...
|
virtual void | Start () |
| On Start(), we get the Text component and initialize our counter More...
|
|
virtual void | Update () |
| On Update, we increment our various counters, and if we've reached our UpdateInterval, we update our FPS counter with the number of frames displayed since the last counter update More...
|
|
Add this class to a gameObject with a Text component and it'll feed it the number of FPS in real time.
◆ Start()
virtual void MoreMountains.Tools.MMFPSCounter.Start |
( |
| ) |
|
|
protectedvirtual |
On Start(), we get the Text component and initialize our counter
◆ Update()
virtual void MoreMountains.Tools.MMFPSCounter.Update |
( |
| ) |
|
|
protectedvirtual |
On Update, we increment our various counters, and if we've reached our UpdateInterval, we update our FPS counter with the number of frames displayed since the last counter update
◆ _currentFPS
int MoreMountains.Tools.MMFPSCounter._currentFPS |
|
protected |
◆ _framesAccumulated
float MoreMountains.Tools.MMFPSCounter._framesAccumulated = 0f |
|
protected |
◆ _framesDrawnInTheInterval
float MoreMountains.Tools.MMFPSCounter._framesDrawnInTheInterval = 0f |
|
protected |
◆ _text
Text MoreMountains.Tools.MMFPSCounter._text |
|
protected |
◆ _timeLeft
float MoreMountains.Tools.MMFPSCounter._timeLeft |
|
protected |
◆ UpdateInterval
float MoreMountains.Tools.MMFPSCounter.UpdateInterval = 0.3f |
The frequency at which the FPS counter should update (in seconds)
The documentation for this class was generated from the following file:
- F:/Github/Store/MMFeedbacksStore/Assets/MMFeedbacks/MMTools/Tools/Performance/MMFPSCounter.cs