Air - How to choose the right hardware acceleration mode?

I am creating an Android note-taking application with Adobe Air 3.6, which is based only on a vector. What hardware acceleration mode is recommended for such an application? You can choose from three modes:

1. None 2. Direct 3. GPU 
+4
source share
2 answers

For just a vector (displayed list) application, Direct mode will not help, since it is intended for use with Direct3D. GPU mode will allow some graphical offloads on the GPU (mostly blitting and compositing, I think), which can be useful, especially if you use cacheAsBitmap and cacheAsBitmapMatrix where necessary.

In any case, you should do some testing before proceeding with the solution. The potential benefits depend heavily on what the application really displays.

+2
source

Adobe recommends using Direct render mode for mobile devices (see http://help.adobe.com/en_US/as3/mobile/WS5d37564e2b3bb78e5247b9e212ea639b4d7-8000.html ). However, historically I have had problems rendering vector graphics using Direct mode. In addition, the documentation makes reference to the use of Stage3D, which, in my opinion, does not support vector graphics.

Given this, the best way to determine which rendering mode to use is to compare your application. Adobe Scout can be used to determine how fast your application runs, so you can build your application using each of the different rendering modes and see which one works best. In addition, you may find that the content that is displayed in the No section will not display properly under Direct or GPU.

+2
source

Source: https://habr.com/ru/post/1494162/


All Articles