Game Development Reference
In-Depth Information
Table 6-1. The Average Frame Rates for Each Set of MovieClip s
Number of Movie Clips
Average Frame Rates
100 MovieClip s
107 FPS
500 MovieClip s
22 FPS
1,000 MovieClip s
9 FPS
5,000 MovieClip s
Less than 1 FPS
10,000 MovieClip s
Not tested
15,000 MovieClip s
Not tested
Testing individual object blits
This test used individual Sprite objects. I placed a Bitmap object inside each Sprite and put each
frame of the animation in a tile sheet. I used the copyPixels method of the BitmapData object
attached to each Bitmap object to copy the frame of animation from the tile sheet to the Bitmap
object.
The results are shown in Table 6-2.
Table 6-2. Results of the Individual Object Blit Test
Number of Sprites
Average Frame Rate
100
124 FPS
500
124 FPS
1,000
91 FPS
5,000
18 FPS
10,000
9 FPS
15,000
6 FPS
Testing the sprite full-screen blit
This test used a single BitmapData display canvas. The copyPixels method of the BitmapData
object was used to copy the tiles for animation from a tile sheet. Results are in Table 6-3.
Search WWH ::




Custom Search