views:

81

answers:

0

This question was also asked in the cocos2d forums but they are a little slower than here.

Hi,

Im trying to resolve a performance issue in my game.

I have all of my game images on the one spritesheet. I now have a score label for which i have generated a font file with the Hiero tool.

Ideally I'd like to update my score label with the current score on every update. However there seems to be a significant performance hit when doing so, which i believe is the result of the game images texture and the font texture swapping each update.

Can anyone suggest a way to avoid this? Possibly by combining the font images with the game images in the one image file to avoid the texture swapping?

Cheers