[dispatcher] 100 times for Touch event dispatch test.

This commit is contained in:
James Chen 2013-09-15 18:26:17 +08:00
parent bfdc2a0efe
commit e3cce1fd0b
1 changed files with 8 additions and 5 deletions

View File

@ -249,11 +249,14 @@ void TouchesPerformTest3::onEnter()
auto dispatcher = EventDispatcher::getInstance();
CC_PROFILER_START(TOUCH_PROFILER_NAME);
dispatcher->dispatchEvent(&event);
CC_PROFILER_STOP(TOUCH_PROFILER_NAME);
for (int i = 0; i < 100; ++i)
{
CC_PROFILER_START(TOUCH_PROFILER_NAME);
dispatcher->dispatchEvent(&event, true);
CC_PROFILER_STOP(TOUCH_PROFILER_NAME);
}
CC_PROFILER_DISPLAY_TIMERS();