DIFF

class MissionBenchmarkSource

MissionBenchmark MissionGameplay MissionBase MissionBaseWorld Mission

All members, including inherited

Constructors 2

void MissionBenchmark()
References m_Instance
void ~MissionBenchmark()
References m_Instance

Constants 2

protected const int INITIAL_PRELOAD = 5

seconds, extra preload seconds to compensate for the game launching

Referenced by PreloadUpdate()
protected const float STEP_INTERVAL = 1

seconds, how much time passes between steps (fps measurements)

Referenced by MeasureUpdate()

Members 15

protected bool m_InitialLoadDone

extra time is added to first preload to make up for intial loading of the game

Referenced by PreloadUpdate()
protected bool m_IsPreloading

preload time between location measurements

Referenced by OnUpdate(), PreloadUpdate(), Start()
Show 1 more, TeleportToPos()
protected bool m_LocationDone

finished measuring current location

protected int m_LocIndex
protected int m_MeasuringStep
protected float m_MeasureStepTimer = 1
protected float m_SumFPS
protected float m_TimeCounter
Referenced by AdvanceLocation(), LerpCamera(), OnLocationSwitch()
Show 2 more, OnUpdate(), and PreloadUpdate()
protected float m_MeasureLength
protected float m_StepDistance
Referenced by LerpCamera(), and OnLocationSwitch()
protected FileHandle m_CSVLog
protected BenchmarkLocation m_CurrentLocation
Referenced by CreatePlayer(), LerpCamera(), OnLocationSwitch()
Show 2 more, OnUpdate(), and TeleportToPos()
protected BenchmarkLocation m_NextLocation
protected static MissionBenchmark m_Instance

Methods 15

static MissionBenchmark GetInstance()
References m_Instance
BenchmarkConfig GetConfig()
protected void PreloadUpdate()
Referenced by OnUpdate()
protected void CreateCSVLog()
Referenced by Start()
protected void FPSLog(string position, float frames)
Referenced by AdvanceLocation()