Jump to content

Question about cacheAsBitmap


Recommended Posts

Ok - I have Group that contains lots of images and sprites. I need to rotate and move this group without changing any of the children, so cacheAsBitmap seems to be a good option for speed.


From what I understand, cacheAsBitmap takes a snapshot of the Group, and uses that for subsequent rendering.


Later on in the game, one of the sprites inside this Group needs to animate. Does this mean the cached Bitmap gets regenerated on each frame of the animation? Would it be best to turn off cacheAsBitmap in this case?


(PS I put a console.log inside PIXI's _generateCachedSprite() which actually creates the cached bitmap and it only seems to get called once, and doesn't get called again after the animation starts playing, which seems odd.)



Link to comment
Share on other sites


  • Recently Browsing   0 members

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