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 = 5seconds, extra preload seconds to compensate for the game launching
Referenced by PreloadUpdate()
protected const float STEP_INTERVAL = 1seconds, how much time passes between steps (fps measurements)
Referenced by MeasureUpdate()
Members 15
protected bool m_InitialLoadDoneextra time is added to first preload to make up for intial loading of the game
Referenced by PreloadUpdate()
protected bool m_IsPreloadingpreload time between location measurements
protected bool m_LocationDonefinished measuring current location
protected int m_LocIndexprotected int m_MeasuringStepprotected float m_MeasureStepTimer = 1protected float m_SumFPSprotected float m_TimeCounterReferenced by AdvanceLocation(), LerpCamera(), OnLocationSwitch()
Show 2 more
, OnUpdate(), and PreloadUpdate()protected float m_MeasureLengthprotected float m_StepDistanceprotected FileHandle m_CSVLogprotected BenchmarkLocation m_CurrentLocationReferenced by CreatePlayer(), LerpCamera(), OnLocationSwitch()
Show 2 more
, OnUpdate(), and TeleportToPos()protected BenchmarkLocation m_NextLocationprotected ref BenchmarkConfig m_ConfigReferenced by AdvanceLocation(), CreateCSVLog(), FPSLog()
Show 7 more
, GetConfig(), MeasureUpdate(), OnBenchmarkEnd(), OnLocationSwitch(), OnUpdate(), PreloadUpdate(), and Start()protected static MissionBenchmark m_InstanceMethods 15
static MissionBenchmark GetInstance()References m_Instance
BenchmarkConfig GetConfig()void Start()override void OnUpdate(float timeslice)References MeasureUpdate(), MissionGameplay.OnUpdate(), PreloadUpdate()
Show 5 more
, m_Config, m_CurrentLocation, m_IsPreloading, m_TimeCounter, and BenchmarkConfig.m_TimeMultiplierprotected void PreloadUpdate()References INITIAL_PRELOAD, m_Config, m_InitialLoadDone
Show 4 more
, m_IsPreloading, BenchmarkConfig.m_PreloadLength, m_TimeCounter, and BenchmarkConfig.m_TimeMultiplierReferenced by OnUpdate()
protected void MeasureUpdate(float timeSlice)Referenced by OnUpdate()
protected void DisableWeatherChange()Referenced by Start()
protected void AdvanceLocation()Referenced by LerpCamera()
protected void LerpCamera()Referenced by MeasureUpdate()
protected void OnLocationSwitch()References array.Count(), CreatePlayer(), vector.Distance()
Show 22 more
, string.Format(), GetGame(), CGame.GetPlayer(), OnBenchmarkEnd(), Print(), TeleportToPos(), m_Config, m_CurrentLocation, BenchmarkConfig.m_DoDevPrints, BenchmarkLocation.m_IsDummyTeleport, BenchmarkLocation.m_IsDummyWait, BenchmarkConfig.m_Locations, m_LocIndex, m_MeasureStepTimer, m_MeasuringStep, BenchmarkLocation.m_Name, m_NextLocation, BenchmarkLocation.m_StartLookAtPos, BenchmarkLocation.m_StartPos, m_StepDistance, m_SumFPS, and m_TimeCounterprotected void TeleportToPos(BenchmarkLocation loc)Referenced by OnLocationSwitch()
protected void OnBenchmarkEnd(string reason)protected void CreatePlayer()References Class.Cast(), CGame.CreatePlayer(), Entity.DisableSimulation()
Show 14 more
, GetGame(), FreeDebugCamera.GetInstance(), PlayerBase.GetStatEnergy(), PlayerBase.GetStatWater(), CGame.SelectPlayer(), PlayerStat.Set(), PlayerStat.Set(), Camera.SetActive(), Object.SetAllowDamage(), Object.SetCanBeDestroyed(), Camera.SetFOV(), PlayerBase.SetModifiers(), m_CurrentLocation, and BenchmarkLocation.m_StartPosReferenced by OnLocationSwitch()
protected void CreateCSVLog()References FPrintln(), OnBenchmarkEnd(), OpenFile()
Show 6 more
, Print(), string.Empty, m_Config, m_CSVLog, BenchmarkConfig.m_CSVName, and BenchmarkConfig.m_DoDevPrintsReferenced by Start()
References string.Format(), FPrintln(), GetHourMinuteSecondUTC()
Show 5 more
, GetYearMonthDay(), PrintToRPT(), m_Config, m_CSVLog, and BenchmarkConfig.m_LogToRPTReferenced by AdvanceLocation()