O'Reilly logo

Away3D 3.6 Cookbook by Michael Ivanov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Important tips for performance optimization

General Flash-related rules:

  1. Use the stage.quality property during runtime to relieve the CPU during memory intensive operations. For example, while you perform a camera flythrough, you can set stage.quality to LOW or MEDIUM as the camera transformation involves memory eating matrix calculations. At the end of the process, you can switch back to your preferred stage quality.
  2. The size of the stage matters. Keep the stage as small as your application specifications allow you to.
  3. Make use of bitwise operators as they speed up math calculations, in some cases, 100-300%.
  4. When working with loops where you iterate through long arrays of data, try using ActionScript 3.0 Vector instead of Array.
  5. ActionScript filters ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required