MCPcopy Create free account
hub / github.com/axmolengine/axmol / pause

Method pause

core/base/Director.cpp:1219–1233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1217}
1218
1219void Director::pause()
1220{
1221 if (_paused)
1222 {
1223 return;
1224 }
1225
1226 _oldAnimationInterval = _animationInterval;
1227
1228#if AX_REDUCE_PAUSED_CPU_USAGE
1229 // when paused, don't consume CPU
1230 setAnimationInterval(1 / 4.0, SetIntervalReason::BY_DIRECTOR_PAUSE);
1231#endif
1232 _paused = true;
1233}
1234
1235void Director::resume()
1236{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected