While older Android devices must rely on the CPU for everything being rendered within a mobile Adobe AIR project, many of the newer devices on the market have full support for Graphics Processing Unit (GPU) rendering and providing necessary hooks for our applications to take advantage of this. This recipe will demonstrate the necessary steps we must take to enable GPU acceleration upon application elements.
We will modify settings in the AIR descriptor file and enable DisplayObject
instances to take advantage of these modifications:
1. Locate the AIR descriptor file in your project. It is normally named something like
{MyProject}-app.xml
and resides at the project root.2. Browse the file for a node named
<initialWindow>
near the beginning of this document. This node contains many default settings dealing with the visual aspects of our application window.3. We now must locate the child node named
<renderMode>
. If...