| 1217 | } |
| 1218 | |
| 1219 | void 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 | |
| 1235 | void Director::resume() |
| 1236 | { |
no outgoing calls
no test coverage detected