As you already know. Sometime, if we play an animation, it takes much time to load the bitmap and leads to FPS drop. Especially if we use larger image for the animation. However, I found a little trick that allow you to save the bitmap to cache, so i won't be loaded again in next time you play the animation.
The trick is so simple. Just comment out bitmap.dispose in Sprite_Base.
The question is whether this is a good idea or not? I just tested it in a small project and works perfectly. But I don't know if we use it in a whole game.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.