Class EnginePerformance
- Namespace
- OmegaEngine
- Assembly
- OmegaEngine.dll
Tracks the performance/speed of the Engine.
public sealed class EnginePerformance
- Inheritance
-
objectEnginePerformance
Constructors
EnginePerformance(Device, Action)
Tracks the performance/speed of the Engine.
public EnginePerformance(Device device, Action renderPure)
Parameters
deviceDevicerenderPureAction
Properties
Fps
Frames per second; auto-calculated by the engine.
public float Fps { get; }
Property Value
FrameMs
Average milliseconds per frame - auto-calculated by the engine.
public float FrameMs { get; }
Property Value
TotalFrames
How many frames the engine has rendered since it was started.
public long TotalFrames { get; }
Property Value
Methods
LogFrame(string, bool)
Logs a complete frame for performance profiling.
public void LogFrame(string path, bool stallGpu = true)