Performance COCOS2d-x on the Blackbery Playbook platform.

Hi Everyone!

I am developing a game with COCOS2d-x and I have encountered with a performance problem on the Blackberry platform.

This is a result of my experiments:

COCOS 2.0.2:
Empty screen with one CCLabelTTF on the screen, sets FPS to 60

  • on the Windows - 60 fps and all is work;
  • on the Blackberry - 54…58 fps and custom *TTF fonts not works *;
    My game, sets FPS to 60
  • on the Windows - 60 fps and all is work;
  • on the Blackberry - 54…58 fps andcustom TTF fonts not works;

COCOS 2.0.4:
Empty screen with one CCLabelTTF on the screen, sets FPS to 60

  • on the Linux - 60 fps and all is work;
  • on the Windows - 60 fps and all is work;
  • on the Blackberry - 32…55 fps (!) and custom TTF works;
  • on the Android (KindleFire HD) - 58…62 fps and all is work;
    Empty screen with one CCLabelTTF on the screen, sets FPS to 30
  • on the Linux - 30 fps and all is work;
  • on the Windows - 30 fps and all is work;
  • on the Blackberry - 17…28 fps (!) and all is work;

COCOS beta3-2.1.1:
Empty screen with one CCLabelTTF on the screen, sets FPS to 60

  • on the Windows - 60 fps and all is work;
  • on the Blackberry - 52…58 fps (!) and all is work;
    Empty screen with one CCLabelTTF on the screen, sets FPS to 30
  • on the Windows - 30 fps and all is work;
  • on the Blackberry - 24…27 fps and all is work;

Why is fps on the Blackberry platform always less than set and fps is floating?

I need use a custom font on the Blackberry, but a scene of the game will be discrete (fps is floating) with version 2.0.4 or beta3-2.1.1…

Can you help me, please?

you might complain to blackberry :slight_smile: anyway I have 50fps in my playbook with the hello world project.

anyway, updating text based on ttf is so bad to performance (Im not sure if fps counter uses it), but you usually should use BM fonts instead of ttf. TTF requires the bitmap to be generated for each character on each frame. so bad. ttf should be forbidden in the engine :slight_smile:

Thanks!

I have acceptable (but not ideal) level of performance on the Blackbery Playbook platform only with CCLabelBMFont at now. CCLabelTTF was not works on Blackberry - it shown loss level performance and crush (!) application at sometimes…