![]() |
Advanced FPS Counter
1.5.4
FPS Counter on steroids!
|
Inherits UpdatableCounterData.
Public Member Functions | |
void | ResetAverage () |
void | ResetMinMax () |
void | Refresh () |
Public Attributes | |
int | warningLevelValue = 50 |
int | criticalLevelValue = 20 |
bool | resetAverageOnNewScene |
bool | resetMinMaxOnNewScene |
int | minMaxIntervalsToSkip = 3 |
Properties | |
bool | RealtimeFPS [get, set] |
bool | Milliseconds [get, set] |
bool | Average [get, set] |
bool | AverageMilliseconds [get, set] |
bool | AverageNewLine [get, set] |
int | AverageSamples [get, set] |
bool | MinMax [get, set] |
bool | MinMaxMilliseconds [get, set] |
bool | MinMaxNewLine [get, set] |
bool | MinMaxTwoLines [get, set] |
bool | Render [get, set] |
bool | RenderNewLine [get, set] |
bool | RenderAutoAdd [get, set] |
Color | ColorWarning [get, set] |
Color | ColorCritical [get, set] |
Color | ColorRender [get, set] |
int | LastValue [get] |
float | LastMillisecondsValue [get] |
float | LastRenderValue [get] |
int | LastAverageValue [get] |
float | LastAverageMillisecondsValue [get] |
int | LastMinimumValue [get] |
int | LastMaximumValue [get] |
float | LastMinMillisecondsValue [get] |
float | LastMaxMillisecondsValue [get] |
FPSLevel | CurrentFpsLevel [get] |
float | UpdateInterval [get, set] |
bool | Enabled [get, set] |
LabelAnchor | Anchor [get, set] |
Color | Color [get, set] |
FontStyle | Style [get, set] |
string | ExtraText [get, set] |
Events | |
Action< FPSLevel > | OnFPSLevelChange |
Shows frames per second counter.
|
inline |
Resets Average FPS counter accumulative data.
|
inline |
Resets minimum and maximum FPS readings.
|
inlineinherited |
Updates counter's value and forces current label refresh.
int warningLevelValue = 50 |
If FPS will drop below this value, ColorWarning will be used for counter text.
int criticalLevelValue = 20 |
If FPS will be equal or less this value, ColorCritical will be used for counter text.
bool resetAverageOnNewScene |
Average FPS counter accumulative data will be reset on new scene load if enabled.
bool resetMinMaxOnNewScene |
Minimum and maximum FPS readings will be reset on new scene load if enabled.
int minMaxIntervalsToSkip = 3 |
Amount of update intervals to skip before recording minimum and maximum FPS. Use it to skip initialization performance spikes and drops.
|
getset |
Shows realtime FPS at the moment of the counter update scene start. Allows to hide FPS readout if necessary.
|
getset |
Shows time in milliseconds spent to render 1 frame.
|
getset |
Shows Average FPS calculated from specified AverageSamples amount or since game / scene start, depending on AverageSamples value and resetAverageOnNewScene toggle.
|
getset |
Shows time in milliseconds for the average FPS.
|
getset |
Controls placing Average on the new line.
|
getset |
Amount of last samples to get average from. Set 0 to get average from all samples since startup or level load. One Sample recorded per one UpdateInterval.
|
getset |
Shows minimum and maximum FPS readouts since game / scene start, depending on resetMinMaxOnNewScene toggle.
|
getset |
Shows time in milliseconds for the Min Max FPS.
|
getset |
Controls placing Min Max on the new line.
|
getset |
Check to place Min Max on two separate lines. Otherwise they will be placed on a single line.
|
getset |
Shows approximate time in ms spent on Camera.Render excluding Image Effects and IMGUI. Requires AFPSRenderRecorder added to the cameras you wish to count.
NOTE: It doesn't take into account Image Effects and IMGUI!
|
getset |
Controls placing Render on the new line.
|
getset |
Check to let FPS Counter try automatically add AFPSRenderRecorder to the Camera with MainCamera tag.
You're free to add AFPSRenderRecorder to any cameras you wish to count.
This functionality is compatible with the Built-in Render Pipeline only. URP and other pipelines do include all cameras automatically.
|
getset |
Color of the FPS counter while FPS is between criticalLevelValue and warningLevelValue levels.
|
getset |
Color of the FPS counter while FPS is below criticalLevelValue.
|
getset |
Color of the Render Time output.
|
get |
Last realtime FPS value.
|
get |
Last calculated Milliseconds value.
|
get |
Last calculated Render Time value.
|
get |
Last calculated Average FPS value.
|
get |
Last calculated Milliseconds value for Average FPS.
|
get |
Last minimum FPS value.
|
get |
Last maximum FPS value.
|
get |
Last calculated Milliseconds value for Minimum FPS.
|
get |
Last calculated Milliseconds value for Maximum FPS.
|
get |
Current FPS level.
|
getsetinherited |
Update interval in seconds.
|
getsetinherited |
Enables or disables counter with immediate label refresh.
|
getsetinherited |
Current anchoring label for the counter output. Refreshes both previous and specified label when switching anchor.
|
getsetinherited |
Regular color of the counter output.
|
getsetinherited |
Controls bold text style.
|
getsetinherited |
Additional text to append to the end of the counter in normal Operation Mode.
Refresh() will be called on change.
Set to null to remove extra text.
Action<FPSLevel> OnFPSLevelChange |
Event to let you react on FPS level change.