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

Method Pause

Code/CryEngine/CrySystem/System.cpp:1054–1067  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1052 }
1053
1054 int Pause()
1055 {
1056 if (m_bIsActive)
1057 {
1058 PhysicsVars* vars = gEnv->pPhysicalWorld->GetPhysVars();
1059 vars->lastTimeStep = 0;
1060 m_bIsActive = 0;
1061 m_stepRequested = min((float)m_stepRequested, 2.f * vars->maxWorldStep);
1062 while (m_bProcessing);
1063 return 1;
1064 }
1065 gEnv->pPhysicalWorld->GetPhysVars()->lastTimeStep = 0;
1066 return 0;
1067 }
1068 int Resume()
1069 {
1070 if (!m_bIsActive)

Callers 2

SetThreadStateMethod · 0.45
System.cppFile · 0.45

Calls 2

GetPhysVarsMethod · 0.80
minFunction · 0.50

Tested by

no test coverage detected