Bitmapfontatlas cocos2d performance issue
        Posted  
        
            by meboz
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by meboz
        
        
        
        Published on 2010-03-15T03:42:30Z
        Indexed on 
            2010/03/15
            3:49 UTC
        
        
        Read the original article
        Hit count: 387
        
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
© Stack Overflow or respective owner