diff --git a/samples/Cpp/TestCpp/Classes/PerformanceTest/PerformanceNodeChildrenTest.cpp b/samples/Cpp/TestCpp/Classes/PerformanceTest/PerformanceNodeChildrenTest.cpp index f01b8522bc..1eed2100c2 100644 --- a/samples/Cpp/TestCpp/Classes/PerformanceTest/PerformanceNodeChildrenTest.cpp +++ b/samples/Cpp/TestCpp/Classes/PerformanceTest/PerformanceNodeChildrenTest.cpp @@ -543,11 +543,11 @@ void AddSpriteSheet::update(float dt) { batchNode->addChild( sprites[i], zs[i], kTagBase+i); } - - batchNode->sortAllChildren(); - CC_PROFILER_STOP(this->profilerName()); + + batchNode->sortAllChildren(); + // remove them for( int i=0;i < totalToAdd;i++) {