In the Understanding GPU-Blend mode recipe, we spent time covering the intricacies of the GPU-rendering mode provided by Flash Professional CS5. Although GPU rendering is also supported for those using Flash Professional CS5.5, its implementation differs from CS5's.
In this recipe, we will cover how to select a rendering mode using CS5.5 and also use the same tests from the Understanding GPU-Blend mode recipe in order to see the performance difference between both GPU renderers.
Two FLAs have been provided—render-test-cpu.fla
and render-test-gpu.fla
—and can be found in the book's accompanying code bundle at chapter6\recipe3\
.
Both FLAs are identical, with each randomly re-positioning ten movie-clip instances on every frame update. After five seconds, the test will end and the average number of frames per second (FPS) that was achieved will be shown. The higher that number, the faster the rendering performance of the test.
The FLAs should only be compiled...