FPSCounter
A class in Root.Township, the global namespace.
Measures frame rate as a smoothed average each frame and exposes it statically. Server diagnostics, the frame limiter and physics timing read it.
- Listed in Global namespace: E to H
- Inherits or implements
MonoBehaviour
Constructors
| Member | What it is |
|---|---|
FPSCounter() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
2 private and internal fields
Properties
| Member | What it is |
|---|---|
static float FPS { get; private set; } | Smoothed frames per second. |
static AverageNumber FPSRecord { get; } | Running average of FPS values, reset and read by chunk loading profiling. |