I’m porting a cocos2d-iphone game from iOS to android cocos2d-x.
I have a parallaxNode there. When I add 5 sprites with repeated texture into it, FPS drops down to 20 on device (Acer A500), and 2 on emulator. (60FPS on ipad)
After some days of experiments I decided to “dive” into cocos2d-x sources: I went to the CCDirector::drawScene() function and commented everything, except calculateDeltaTime() and showFPS(). In showFPS() I added _android_log_print() instead of m_pFPSLabel->draw(), so there is no drawing routines left… And (suprise FPS is 50 instead of 60)
1. Why FPS drops without drawing?
2. Why FPS drops so much with 5 sprites?