开发者

Flex 4.5.1 View State Transitions, how to optimize for mobile

开发者 https://www.devze.com 2023-03-23 14:07 出处:网络
I have decided to go the route of using ViewNavigator and having one view with 3 states.Each state is a \"page\".It runs just fine on the desktop but when compiled for mobile, the transitions between

I have decided to go the route of using ViewNavigator and having one view with 3 states. Each state is a "page". It runs just fine on the desktop but when compiled for mobile, the transitions between the pages is really laggy, even for the Samsung Galaxy S. The phone has the 2.7 runtime and I recompiled my application with ADT 2.7, still no performance increase.

I have also tried cacheAsBitmapMatrix on all 3 pages, which are all contained in a VBox and that hasn't shown any significant performance bumps. All I'm changing is the y component of the VBox for each transition.

Anyone have some suggestions?

EDIT: I have done some more research and I am now to the point where I have hardware acceleration turned on and cacheAsBitmap = true and cacheAsBitmapMatrix = new M开发者_高级运维atrix(). I am also using Stats.as to see the FPS. I notice on my state changes I go from 25 FPS to 2 and then it goes back up again.


Are you using VBox? You should only use Spark components in Flex mobile applications - MX components are NOT optimized...not at all.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号