I have similar problems and have seen a few threads in the past asking the same question. It isn’t down to bad coding and as far as I know hasn’t been resolved. Perhaps someone can explain this:-
If you download the latest ccocos2d-1.0.1-x-0.13.0-beta and open the HellowWorld app, then add a “scheduleUpdate();” to the end of the “bool HelloWorld::init()” function, add the following function for the update call:
void HelloWorld::update( cocos2d::ccTime dt )
printf( "ccTime: %f\n",dt );
Run it on a iPhone 4, all the program is doing is showing the Cocos2DX logo and it “should” be calling the update function 60 times a second with a steady delta value of 0.166666 (that is 1/60). But instead it gives the following in the console output:
Some crazy values there, some are less than 0.16666 (that shouldn’t happen), Some are way too high like “0.018461” (remember the app isn’t actually doing anything more than displaying a sprite).
Trying to write code that uses the delta value to cope with speed changes obviously has problems. Anyone have any ideas???