Skip to main content
Participating Frequently
November 29, 2012
Question

Performance with MXML screens

  • November 29, 2012
  • 1 reply
  • 419 views

We have an app that we started working on in iOS and are now porting to AIR. It's really just a lot of user interface screens with graphics. And we're having performance issues with doing simple tasks.

What we're doing is:

Creating a screen in MXML with an image background and a couple buttons on it.

Scaling it using scaleX = scaleY = someScale; to fit the particular device.

Sliding it in using transformation animations (we also tried TweenLite, with no performance boost)

We've tried renderMode GPU / direct, with a boost in performance but it still can be choppy on an iPad 3.

Is there anything we should be doing besides that? My hunch is the scale is what's causing the performance issues. But I don't know a better way (that's still easy to do) to make all our screens scale to the particular devices.

Using AIR 3.5

This topic has been closed for replies.

1 reply

Legend
November 29, 2012

Surprised if scale had that much of a hit on performance, however, it is easy to do your resizing via stylesheet if you include @media directives in your CSS to select all of you sizing parameters.

You can then rewrite your screens to position proportionately or calculate screen res dependent positions and everything should fit.

G