Table of Contents

Class EnginePerformance

Namespace
OmegaEngine
Assembly
OmegaEngine.dll

Tracks the performance/speed of the Engine.

public sealed class EnginePerformance
Inheritance
object
EnginePerformance

Constructors

EnginePerformance(Device, Action)

Tracks the performance/speed of the Engine.

public EnginePerformance(Device device, Action renderPure)

Parameters

device Device
renderPure Action

Properties

Fps

Frames per second; auto-calculated by the engine.

public float Fps { get; }

Property Value

float

FrameMs

Average milliseconds per frame - auto-calculated by the engine.

public float FrameMs { get; }

Property Value

float

TotalFrames

How many frames the engine has rendered since it was started.

public long TotalFrames { get; }

Property Value

long

Methods

LogFrame(string, bool)

Logs a complete frame for performance profiling.

public void LogFrame(string path, bool stallGpu = true)

Parameters

path string

The path of the file to store the log in.

stallGpu bool

Stall the GPU after each draw call, to measure their individual impact.