Moving from PFI to Air 2.6 for iOS development
Hi,
I have spent the past several weeks using the Packager for iPhone to develop a game on the iPad, I had put a lot of work into optimising the game to work on the GPU correctly and got it working at a very good frame rate.
I should say at this point that my game use only bitmaps (no vectors anywhere), and uses no filters, and just the additive blending mode sometimes.
I understand that air 2.6 uses the GPU differently than packager for iphone, I believe it uses GPU Vector mode instead of GPU blend so that all the rasterization is now done on the GPU instead of the CPU. So I compiled my game using adt, but it ran very slowly... I then spent a lot of time trying to get it to run at a better frame rate, but could not get it up to the same speed as I saw in packager for iphone...
1) I am still a bit confused as to when to use bitmap caching in air 2.6 - if I have a game which only uses bitmaps and they are never rotated - just moved about in x/y space - do I even need to enabled any kind of cacheAsBitmap or cacheAsBitmapMatrix?
2) What about if I want to change the alpha of a bitmap to fade them in/out? In PFI I dont think I needed to enable cacheAsBitmapMatrix for that - is that still the case?
3) I know that when using PFI if you apply cacheAsBitmapMatrix to too many things it can make the app freeze or slow it right down (especially if other apps are using memory) - is this still the case as it seemed like a bit of a bug...
4) When using PFI, whenever you loaded an image into GPU memory (by caching it and adding it to the display list), it would make the app stall for a period of time (I guess because it has to rasterize it on the CPU and upload it to GPU), do it still do this as the GPU vector mode rasterizes in GPU now?
5) Do I need to do anything special to make Flash CS5 work with AIR 2.6? at the moment I am just taking the SWF file I had and running it through adt. Just seems like I am getting worse performance, I didn't know if there was something special I had to do.
Any help would be very much appreciated, I have heard so many good things about Air 2.6 and I would love to get to grips with it ASAP.
Thanks,
Greg
