void SpriteMainScene::beginAutoTest() { _s_spritesQuatityIndex = 0; _s_nSpriteCurCase = 0; _s_saved_fps.clear(); _subtestNumber = 0; _quantityNodes = _s_spritesQuanityArray[_s_spritesQuatityIndex]; nextAutoTest(); }
void SpriteMainScene::updateAutoTest(float dt) { if (SpriteMainScene::_s_autoTest) { _executeTimes += 1; _vecFPS.push_back(Director::getInstance()->getFrameRate()); if ( _executeTimes >= SpriteMainScene::MAX_AUTO_TEST_TIMES ) { dumpProfilerFPS(); nextAutoTest(); } } }
void SpriteMainScene::updateAutoTest(float dt) { saveFPS(); nextAutoTest(); }