Not yet rated

Problem

Transparency is a great feature, but on mobile devices it is very expensive

Solution

Do not use it, there are many ways to avoid it and provide similar UI experiences.

Detailed explanation

Do not use transparency The use of transparency should be limited. Instead, move any movie clips well off the screen when they are not to be visible. If the background image is transparent, and it's occupying the whole stage, the player cannot optimize its draw event.

Optimized draw events only draw the part of the screen where a change has occurred. If the whole screen contains a transparent image, it will dirty the whole screen and therefore it will need to redraw the whole screen for every frame. As a result every animation in the content will be slower.

+
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License. Permissions beyond the scope of this license, pertaining to the examples of code included within this work are available at Adobe.

Report abuse

Related recipes