I wanted to ask if there is a workaround to improving performance of playback in Flash after adding filters like blur,glow e.t.c.Noticed some sort of lag in Flash.
Someone said something about converting the object with filters to bitmap in Flash.How is that done?I am kinda tired of exporting frames to photoshop to add filters.I use Flash cs5 or do the newer versions handle filters better.I use a quad core processor and 4 gig ram.
Thanks.
Replies
The thing is you can only cache as bitmap MovieClips (or displayObjectContainers in AS3 language vocabulary). The gif shows you the basics, create your content, wrap it into a MC and check "cache for bitmap".
You can do the same in Actionscript by setting
The thing is with these cache as bitmap, it only gets you better performance if you don't:
- rotate
- scale
- skew
the movieclip container with the cacheAsBitmap flag set. Because if you do that flash has to re-update that cached bitmap which comes close to wasted effort.So you can pretty much only re-position that cached bitmap otherwise you'll loose its benefit.
If you are making something that depends heavenly on performance such as high fps games avoiding this stuff is essential and like you said baking it in advance might be a better call.