http://developer.mapquest.com/web/guest
MapQuest Developer Network
  • Sign In  |
  • Create Account  |
  • Contact Us
  •   |
  • Quick Start  |
    For Businesses For Developers For Easy Mapping Tools Get MapQuest AppKey
  • Business Solutions  |
    Enterprise Solutions Business Listings
  • APIs  |
    Licensed Data APIs Open Data APIs Licensed vs. Open Data
  • Mapping Tools  |
    Overview Map Builder Route Planner Link to MapQuest Link to Route Planner Distance Calculator Latitude/Longitude Finder Static Map Wizard
  • Resources  |
    Licensed vs. Open Data Developer Guides Terms Overview Terms of Use
  • Blog  |
    MapQuest Developer Blog MapQuest Blog
  • Support
    FAQ Forums Contact
Answer ( Unmark )
Mark as an Answer

GPU Rendering on mobile

Forums

» SDKs - Flash Maps API » GPU Rendering on mobile
Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
GPU Rendering on mobile Ryan Moquin 3/9/12 1:25 PM
RE: GPU Rendering on mobile Ryan Moquin 3/12/12 11:59 PM
RE: GPU Rendering on mobile Brian Coakley 3/13/12 9:25 AM
Ryan Moquin
Ryan Moquin Rank: Youngling Posts: 11
Join Date: 11/10/11

Recent Posts
GPU Rendering on mobile
Answer (Unmark)
3/9/12 1:25 PM
I've been playing around with the Air 3.2 RC release the last week or so and since it adds GPU support for mobile devices, I was wondering if there was any recommended way to take advantage of it with the Flash Maps API on mobile. I've seen examples using Stage3D with open mapquest tiles which creates a really smooth interface, but that isn't going to integrate with the licensed flash maps API. The only other option I can think of is to use the cacheAsBitmap and cacheAsBitmapMatrix attributes on each loaded mapquest tile, I figured I would see if there is already a preferred method for doing this before I spend time experimenting to see if I can find a way to achieve this. Performance on mobile isn't too bad the way things are, but it doesn't seem to take much extra logic in the application to cause the map manipulation to become unusable, such as loading a bunch of features for display on the map (I realize that I could implement some sort of faux Actionscript threading, since it isn't supported natively) but I was hoping to find some other ways to mitigate the issue temporarily until I have the time to go back and optimize code to execute in very small chunks so that the UI has a chance to breathe. I had originally hoped that there was a way to perform logic in an event, such as an asynchronous even which would be handled behind the scenes in a non-UI thread like javascript seems to do. That doesn't seem to be the case though.

Also, I have seen the map completely become unresponsive in my app (in Android and IOS), as well as the sample mobile app on IOS. It seems to happen sometimes when a zoom is performed. It's very intermittent, but it seems to happen when either the app is executing some additional logic, or a background task on the mobile device kicks in to perform some work. The rest of the app will quickly become responsive again, but the map will be stuck in the middle of a zoom transition and doesn't seem to recover..

Thanks for any advice you can give me.

Ryan
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
  • Top
Ryan Moquin
Ryan Moquin Rank: Youngling Posts: 11
Join Date: 11/10/11

Recent Posts
RE: GPU Rendering on mobile
Answer (Unmark)
3/12/12 11:59 PM as a reply to Ryan Moquin.
I think what's going on, and it doesn't matter which version of air since the problem with the map becoming unresponsive can happen on iOS with the sample mobile app, is that if the device becomes too busy when the map is in the middle of zooming, the zoom animation timer expires but the map didn't have enough cycles o be able to finish it's zoom animation... or at least from what I can gather, that seems possible. That leaves the map in a strange state that it won't recover from and is unusable. Not sure if there is anyway around that issue...
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
  • Top
Brian Coakley
Brian Coakley Rank: Yoda Posts: 2320
Join Date: 10/13/09

Recent Posts
RE: GPU Rendering on mobile
Answer (Unmark)
3/13/12 9:25 AM as a reply to Ryan Moquin.
Thanks for the information Ryan. I will forward this on to the Flash team.
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
  • Top
Platforms & Technologies
Quick Start for Developers
Quick Start for Easy Mapping Tools
Licensed Data APIs
Open Data APIs
Popular Products
JavaScript Maps API
Flex Map API
Geocoding API Web Service
Directions API Web Service
Search API Web Service
Support
Licensing
Developer Forums
Contact Us
FAQ
Products
MapQuest.com
Mobile Products
Route Planner
Gas Prices
Follow MapQuest
MapQuest Developer Blog
MapQuest Blog
MapQuest on Facebook
MapQuest on Twitter
Join our Mailing List

©2012 MapQuest, Inc. All rights reserved.    Privacy Policy | Terms of Use

Site Map | Help

Loading......