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

Method mainLoop

core/base/Director.cpp:1583–1606  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1581#endif
1582
1583void Director::mainLoop()
1584{
1585#if defined(AX_PLATFORM_PC)
1586 processOperations();
1587#endif
1588
1589 if (_cleanupDirectorInNextLoop)
1590 {
1591 _cleanupDirectorInNextLoop = false;
1592 cleanupDirector();
1593 }
1594 else if (_restartDirectorInNextLoop)
1595 {
1596 _restartDirectorInNextLoop = false;
1597 restartDirector();
1598 }
1599 else if (!_invalid)
1600 {
1601 drawScene();
1602
1603 // release the objects
1604 PoolManager::getInstance()->getCurrentPool()->clear();
1605 }
1606}
1607
1608void Director::mainLoop(float dt)
1609{

Callers 5

renderFrameFunction · 0.45
OnRenderingMethod · 0.45
runMethod · 0.45
runMethod · 0.45

Calls 3

getInstanceFunction · 0.85
getCurrentPoolMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected