Hello,
I have searched the forums and I couldn’t find an answer to this question, so I apologize if this has already been explained somewhere.
I have a very large movie clip that represents a level in my game (2500 x 1800 px). Inside this clip is a single large vector shape representing the walls of a cave-like area.
Currently, I have the cacheAsBitmap property of this movie clip set to true and I can move through the cave in my game without issue. However, I want to apply a dark inner glow filter to this shape to give the appearance of shading on the walls. When I try to do this, my frame rate slows dramatically.
As I understand it, filters are automatically cached as bitmaps, so I believe that moving my clip across the x and y axes should not result in redrawing of the filter. I am only scrolling this clip, not scaling or rotating.
Could someone please explain to me why moving a clip with a filter applied is so much more memory intensive than without? Shouldn’t cacheAsBitmap make the overhead equal for both cases? Can anyone suggest a solution to this issue?
Thanks very much