MCPcopy Create free account
hub / github.com/MergHQ/CRYENGINE / SetSystemGlobalState

Method SetSystemGlobalState

Code/CryEngine/CrySystem/System.cpp:3035–3052  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3033}
3034
3035void CSystem::SetSystemGlobalState(const ESystemGlobalState systemGlobalState)
3036{
3037 static CTimeValue s_startTime = CTimeValue();
3038 if (systemGlobalState != m_systemGlobalState)
3039 {
3040 if (gEnv && gEnv->pTimer)
3041 {
3042 const CTimeValue endTime = gEnv->pTimer->GetAsyncTime();
3043 const float numSeconds = endTime.GetDifferenceInSeconds(s_startTime);
3044 CryLog("SetGlobalState %d->%d '%s'->'%s' %3.1f seconds",
3045 m_systemGlobalState, systemGlobalState,
3046 CSystem::GetSystemGlobalStateName(m_systemGlobalState), CSystem::GetSystemGlobalStateName(systemGlobalState),
3047 numSeconds);
3048 s_startTime = gEnv->pTimer->GetAsyncTime();
3049 }
3050 }
3051 m_systemGlobalState = systemGlobalState;
3052}
3053
3054//////////////////////////////////////////////////////////////////////////
3055void* CSystem::GetRootWindowMessageHandler()

Callers 6

LoadLevelMethod · 0.80
PrepareNextLevelMethod · 0.80
InitGameTypeMethod · 0.80
WorldStreamUpdateMethod · 0.80
LoadLevelMethod · 0.80
PostLoadLevelMethod · 0.80

Calls 4

CryLogFunction · 0.85
CTimeValueClass · 0.50
GetAsyncTimeMethod · 0.45

Tested by

no test coverage detected