I am writing a small shooting game using cocos2d. It's working good in simulator. But when testing in the device, the animations of sprites are slow and they are stucking. The images I used are CCSprites. And I used CCAnimation for the animation of开发者_StackOverflow中文版 the images. Why the game acting different in simulator and device ?
Thank you.
You must test your application on device always to avoid such problems. Applications in simulator are far better in performance than in device, so it is better to test your crucial application functionalities in device always.
You might want to check if you are using CCLog - this leads to huge performance drops on the device due to the need to communicate back and forth with the Xcode console.
精彩评论