MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / doLogic

Method doLogic

Source/Basic/Director.cpp:299–326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

297}
298
299void 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
328void Director::doRender() {
329 if (_paused || _stoped) return;

Callers 1

mainLogicMethod · 0.80

Calls 5

getDeltaTimeMethod · 0.45
updateMethod · 0.45
beginMethod · 0.45
clearChangesMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected