| 297 | } |
| 298 | |
| 299 | void Director::doLogic() { |
| 300 | if (_stoped) return; |
| 301 | |
| 302 | double deltaTime = SharedApplication.getDeltaTime(); |
| 303 | |
| 304 | _profilerInfo.update(deltaTime); |
| 305 | |
| 306 | /* update system logic */ |
| 307 | _systemScheduler->update(deltaTime); |
| 308 | |
| 309 | if (_paused) return; |
| 310 | |
| 311 | /* update game logic */ |
| 312 | SharedImGui.begin(); |
| 313 | |
| 314 | handleTouchEvents(); |
| 315 | |
| 316 | _scheduler->update(deltaTime); |
| 317 | _postScheduler->update(deltaTime); |
| 318 | |
| 319 | handleUnmanagedNodes(); |
| 320 | Event::handlePostEvents(); |
| 321 | |
| 322 | SharedKeyboard.clearChanges(); |
| 323 | SharedController.clearChanges(); |
| 324 | |
| 325 | SharedImGui.end(); |
| 326 | } |
| 327 | |
| 328 | void Director::doRender() { |
| 329 | if (_paused || _stoped) return; |
no test coverage detected