ExperiMENTAL file caching bitmaps via ActionScript in Adobe Flash. Clicking the mouse within the Flash turns caching on improving performance of animated (tweened) sequences. **Faster computers may not see any difference in flow, speed, etc. – Purpose of this test is to optimize higher frame rate animation experiences for optimal viewing in legacy browser platforms and slower CPU clock speeds.
From Adobe Developer Connection:
“When you turn on bitmap caching for any given movie clip, the player converts the contents of the movie clip into a bitmap, which it generates and then stores in memory alongside the original vector data equivalent. The renderer then displays this bitmap in the place of the vector data by copying the image from memory onto the Stage.
This process essentially makes the renderer’s life easier, because it doesn’t have to update the movie clip each frame. Instead the process only has to draw the bitmap it generated once, and from then on it simply copies the bitmap from memory onto the Stage. If you change the movie clip or its contents, Flash regenerates the bitmap. There is little or no visual difference when a movie clip has bitmap caching turned on. You may notice a very slight difference because the vector data is snapped to the nearest whole pixel when the bitmap is generated. Bitmap caching also works perfectly well with nested movie clips (movie clips inside movie clips).
To put it in simple terms, by turning on bitmap caching for a movie clip, you are essentially telling Flash Player, “Hey Renderer, I’ll make your life a little easier. Freeze this movie clip and display it as a bitmap instead, because this movie clip or its contents are not going to change very often, if at all. They are static.”
Design|Dev Toolbox: Flash CS4, Photoshop, Illustrator, 3D Studio Max, ActionScript.
Share