From 5abb57e5f21069672ee8f1d8374dceea1761eb44 Mon Sep 17 00:00:00 2001 From: Ricardo Quesada Date: Sat, 31 Aug 2013 06:59:44 -0700 Subject: [PATCH] AddChild test fix `sortAllChildren` should not be part of the test. It is tested separatedly on another test --- .../Classes/PerformanceTest/PerformanceNodeChildrenTest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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++) {