Jump to content

tinted BitmapText produces low FPS


liorfrenkel
 Share

Recommended Posts

Hi,

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?

thanks,
Lior

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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