Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
MissionBenchmark Class Reference
Inheritance diagram for MissionBenchmark:

Protected Member Functions

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

Static Protected Member Functions

static MissionBenchmark GetInstance ()

Protected Attributes

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

Static Protected Attributes

static MissionBenchmark m_Instance

Detailed Description

Definition at line 111 of file missionbenchmark.c.

Constructor & Destructor Documentation

◆ MissionBenchmark()

void MissionBenchmark ( )
inlineprotected

Definition at line 135 of file missionbenchmark.c.

References m_Instance.

Referenced by GetInstance().

◆ ~MissionBenchmark()

void ~MissionBenchmark ( )
inlineprotected

Definition at line 140 of file missionbenchmark.c.

References m_Instance.

Member Function Documentation

◆ AdvanceLocation()

void AdvanceLocation ( )
inlineprotected

◆ CreateCSVLog()

void CreateCSVLog ( )
inlineprotected

Definition at line 381 of file missionbenchmark.c.

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

Referenced by Start().

◆ CreatePlayer()

void CreatePlayer ( )
inlineprotected

Definition at line 364 of file missionbenchmark.c.

References GetGame(), and m_CurrentLocation.

Referenced by OnLocationSwitch().

◆ DisableWeatherChange()

void DisableWeatherChange ( )
inlineprotected

◆ FPSLog()

void FPSLog ( string position,
float frames )
inlineprotected

◆ GetConfig()

BenchmarkConfig GetConfig ( )
inlineprotected

Definition at line 150 of file missionbenchmark.c.

References m_Config.

◆ GetInstance()

MissionBenchmark GetInstance ( )
inlinestaticprotected

Definition at line 145 of file missionbenchmark.c.

References MissionBenchmark(), and m_Instance.

◆ LerpCamera()

void LerpCamera ( )
inlineprotected

◆ MeasureUpdate()

void MeasureUpdate ( float timeSlice)
inlineprotected

◆ OnBenchmarkEnd()

void OnBenchmarkEnd ( string reason)
inlineprotected

Definition at line 347 of file missionbenchmark.c.

References CloseFile(), GetGame(), IDC_MAIN_QUIT, m_Config, m_CSVLog, and Print().

Referenced by CreateCSVLog(), OnLocationSwitch(), and Start().

◆ OnLocationSwitch()

◆ OnUpdate()

override void OnUpdate ( float timeslice)
inlineprotected

◆ PreloadUpdate()

void PreloadUpdate ( )
inlineprotected

Definition at line 191 of file missionbenchmark.c.

References INITIAL_PRELOAD, m_Config, m_InitialLoadDone, m_IsPreloading, and m_TimeCounter.

Referenced by OnUpdate().

◆ Start()

void Start ( )
inlineprotected

◆ TeleportToPos()

void TeleportToPos ( BenchmarkLocation loc)
inlineprotected

Field Documentation

◆ INITIAL_PRELOAD

const int INITIAL_PRELOAD = 5
protected

Definition at line 113 of file missionbenchmark.c.

Referenced by PreloadUpdate().

◆ m_Config

ref BenchmarkConfig m_Config
protected

◆ m_CSVLog

FileHandle m_CSVLog
protected

Definition at line 127 of file missionbenchmark.c.

Referenced by CreateCSVLog(), FPSLog(), and OnBenchmarkEnd().

◆ m_CurrentLocation

BenchmarkLocation m_CurrentLocation
protected

◆ m_InitialLoadDone

bool m_InitialLoadDone
protected

Definition at line 116 of file missionbenchmark.c.

Referenced by PreloadUpdate().

◆ m_Instance

MissionBenchmark m_Instance
staticprotected

Definition at line 133 of file missionbenchmark.c.

Referenced by MissionBenchmark(), ~MissionBenchmark(), and GetInstance().

◆ m_IsPreloading

bool m_IsPreloading
protected

Definition at line 117 of file missionbenchmark.c.

Referenced by OnUpdate(), PreloadUpdate(), Start(), and TeleportToPos().

◆ m_LocationDone

bool m_LocationDone
protected

Definition at line 118 of file missionbenchmark.c.

◆ m_LocIndex

int m_LocIndex
protected

Definition at line 119 of file missionbenchmark.c.

Referenced by AdvanceLocation(), and OnLocationSwitch().

◆ m_MeasureLength

float m_MeasureLength
protected

Definition at line 124 of file missionbenchmark.c.

◆ m_MeasureStepTimer

float m_MeasureStepTimer = 1
protected

Definition at line 121 of file missionbenchmark.c.

Referenced by MeasureUpdate(), and OnLocationSwitch().

◆ m_MeasuringStep

int m_MeasuringStep
protected

Definition at line 120 of file missionbenchmark.c.

Referenced by AdvanceLocation(), MeasureUpdate(), and OnLocationSwitch().

◆ m_NextLocation

BenchmarkLocation m_NextLocation
protected

Definition at line 129 of file missionbenchmark.c.

Referenced by AdvanceLocation(), LerpCamera(), and OnLocationSwitch().

◆ m_StepDistance

float m_StepDistance
protected

Definition at line 125 of file missionbenchmark.c.

Referenced by LerpCamera(), and OnLocationSwitch().

◆ m_SumFPS

float m_SumFPS
protected

Definition at line 122 of file missionbenchmark.c.

Referenced by AdvanceLocation(), MeasureUpdate(), and OnLocationSwitch().

◆ m_TimeCounter

float m_TimeCounter
protected

◆ STEP_INTERVAL

const float STEP_INTERVAL = 1
protected

Definition at line 114 of file missionbenchmark.c.

Referenced by MeasureUpdate().


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