Jump to content

tinted BitmapText produces low FPS


Recommended Posts


I had a FPS problem on the ipad so I made a test checking the fps when tinting a BitmapText:

create() {
    for (var i = 0; i < 100; i++) {
        var xxx = this.add.bitmapText(0, i * 5, "font_KEY", "ABCDEFG");
        xxx.fontSize = 64;
        xxx.tint = 0x000000;
render() {
    this.game.debug.text(this.game.time.fps.toString(), 500, 100, "#000000");

this brings the FPS on my computer to 12, and on the ipad to 0...

as soon as I comment the tint line:

//xxx.tint = 0x000000;

the FPS goes up to 60 on both the computer and ipad.

with only 1 tinted BitmapText object, the FPS on the ipad drops to around 20 fps.

I made this test with phaser 2.4.4 and 2.4.6

should I not tint BitmapText?


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...