PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
MissionBenchmark Class Reference

Private Member Functions

void MissionBenchmark ()
 
void ~MissionBenchmark ()
 
BenchmarkConfig GetConfig ()
 
void Start ()
 
override void OnUpdate (float timeslice)
 
protected void PreloadUpdate ()
 
protected void MeasureUpdate (float timeSlice)
 
protected void AdvanceLocation ()
 
protected void LerpCamera ()
 
protected void OnLocationSwitch ()
 
protected void TeleportToPos (BenchmarkLocation loc)
 
protected void OnBenchmarkEnd (string reason)
 
protected void CreatePlayer ()
 
protected void CreateCSVLog ()
 
protected void FPSLog (string position, float frames)
 

Static Private Member Functions

static MissionBenchmark GetInstance ()
 

Private Attributes

protected const int INITIAL_PRELOAD = 5
 
protected const float STEP_INTERVAL = 1
 
protected bool m_InitialLoadDone
 
protected bool m_IsPreloading
 
protected bool m_LocationDone
 
protected int m_LocIndex
 
protected int m_MeasuringStep
 
protected float m_MeasureStepTimer = 1
 
protected float m_SumFPS
 
protected float m_TimeCounter
 
protected float m_MeasureLength
 
protected float m_StepDistance
 
protected FileHandle m_CSVLog
 
protected BenchmarkLocation m_CurrentLocation
 
protected BenchmarkLocation m_NextLocation
 
protected ref BenchmarkConfig m_Config
 

Static Private Attributes

static protected MissionBenchmark m_Instance
 

Constructor & Destructor Documentation

◆ MissionBenchmark()

void MissionBenchmark ( )
inlineprivate

References m_Instance.

◆ ~MissionBenchmark()

void ~MissionBenchmark ( )
inlineprivate

References m_Instance.

Member Function Documentation

◆ AdvanceLocation()

◆ CreateCSVLog()

protected void CreateCSVLog ( )
inlineprivate

References FPrintln(), m_Config, m_CSVLog, OnBenchmarkEnd(), OpenFile(), and Print().

Referenced by Start().

◆ CreatePlayer()

protected void CreatePlayer ( )
inlineprivate

◆ FPSLog()

protected void FPSLog ( string  position,
float  frames 
)
inlineprivate

◆ GetConfig()

BenchmarkConfig GetConfig ( )
inlineprivate

References m_Config.

◆ GetInstance()

static MissionBenchmark GetInstance ( )
inlinestaticprivate

References m_Instance.

◆ LerpCamera()

◆ MeasureUpdate()

protected void MeasureUpdate ( float  timeSlice)
inlineprivate

◆ OnBenchmarkEnd()

protected void OnBenchmarkEnd ( string  reason)
inlineprivate

◆ OnLocationSwitch()

◆ OnUpdate()

override void OnUpdate ( float  timeslice)
inlineprivate

◆ PreloadUpdate()

protected void PreloadUpdate ( )
inlineprivate

◆ Start()

void Start ( )
inlineprivate

◆ TeleportToPos()

Field Documentation

◆ INITIAL_PRELOAD

protected const int INITIAL_PRELOAD = 5
private

Referenced by PreloadUpdate().

◆ m_Config

◆ m_CSVLog

protected FileHandle m_CSVLog
private

◆ m_CurrentLocation

protected BenchmarkLocation m_CurrentLocation
private

◆ m_InitialLoadDone

protected bool m_InitialLoadDone
private

Referenced by PreloadUpdate().

◆ m_Instance

protected MissionBenchmark m_Instance
staticprivate

◆ m_IsPreloading

protected bool m_IsPreloading
private

◆ m_LocationDone

protected bool m_LocationDone
private

◆ m_LocIndex

protected int m_LocIndex
private

◆ m_MeasureLength

protected float m_MeasureLength
private

◆ m_MeasureStepTimer

protected float m_MeasureStepTimer = 1
private

Referenced by MeasureUpdate(), and OnLocationSwitch().

◆ m_MeasuringStep

protected int m_MeasuringStep
private

◆ m_NextLocation

protected BenchmarkLocation m_NextLocation
private

◆ m_StepDistance

protected float m_StepDistance
private

Referenced by LerpCamera(), and OnLocationSwitch().

◆ m_SumFPS

protected float m_SumFPS
private

◆ m_TimeCounter

protected float m_TimeCounter
private

◆ STEP_INTERVAL

protected const float STEP_INTERVAL = 1
private

Referenced by MeasureUpdate().


The documentation for this class was generated from the following file: