Class FrameTimeStats
- Namespace
- LansMap.Diagnostics
- Assembly
- LansMap.Runtime.dll
public sealed class FrameTimeStats
- Inheritance
-
objectFrameTimeStats
Constructors
FrameTimeStats()
public FrameTimeStats()
FrameTimeStats(int, float)
public FrameTimeStats(int capacity, float recomputeIntervalSeconds)
Parameters
Fields
DefaultCapacity
public const int DefaultCapacity = 1000
Field Value
DefaultRecomputeIntervalSeconds
public const float DefaultRecomputeIntervalSeconds = 0.5
Field Value
Properties
AverageFps
Samples counted per second of wall clock, over whatever the caller fed AddFrame(float).
public float AverageFps { get; }
Property Value
Remarks
(assumed) On a caller sampling the update loop rather than a presented frame, this is an update rate, not a screen refresh rate - on single-threaded web builds the two can diverge sharply, since not every update-loop tick reaches the screen as a displayed frame.
Capacity
public int Capacity { get; }
Property Value
OnePercentLowFps
public float OnePercentLowFps { get; }
Property Value
P99FrameMs
public float P99FrameMs { get; }
Property Value
PointOnePercentLowFps
public float PointOnePercentLowFps { get; }
Property Value
SampleCount
public int SampleCount { get; }
Property Value
Methods
AddFrame(float)
public void AddFrame(float deltaSeconds)
Parameters
deltaSecondsfloat
Recompute()
public void Recompute()
Reset()
public void Reset()