[Flashcoders] IPAD App code optimization

2013-01-11 Thread Sumeet Kumar
Hi All,

 

I am creating a very basic IPAD app. Adobe says we need to build the app
with code optimization. I have completed development of the app. 

 

For code optimization,  I am removing listeners, using sprites instead of
movieclip, clearing Timers etc...what else I can do to optimize my code..or
What do adobe really mean by code optimization.

 

Can anyone please guide me in this regard.

 

Regards

Sumeet Kumar

 

 

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] IPAD App code optimization

2013-01-11 Thread Deepanjan Das
Have a look at all possible ways of optimization:

https://deepanjandas.wordpress.com/category/code-optimization/

Best
Deepanjan Das


On Fri, Jan 11, 2013 at 4:27 PM, Sumeet Kumar sume...@sebiz.net wrote:

 Hi All,



 I am creating a very basic IPAD app. Adobe says we need to build the app
 with code optimization. I have completed development of the app.



 For code optimization,  I am removing listeners, using sprites instead of
 movieclip, clearing Timers etc...what else I can do to optimize my code..or
 What do adobe really mean by code optimization.



 Can anyone please guide me in this regard.



 Regards

 Sumeet Kumar





 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 
Greetings!
Hope this message of mine finds you in best of health and spirits.

..
Warm Regards
Deepanjan Das
+91.9836582808
Techie-Experts India
|| Om Manasamarthadata Shri Aniruddhaya Namah
||http://www.manasamarthyadata.com/
*Think of the environment before printing this email
__
*
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] IPAD App code optimization

2013-01-11 Thread Hans Wichman

Hi Sumeet,

some stuff is much more important than other stuff:
- DRY - don't repeat yourself: cache calculations (sinus tables, array 
lengths, radian conversion etc)

- Create as few objects as possible, eg use ObjectPooling
- try to stay away from movieclips and sprites, use bitmaps and 
spritesheets whereever possible

- if rendering performance is your bottleneck, starling might help
- only cacheAsBitmap / Matrix if you know what you are doing
- only optimize if required, is your app running slow? If so, when?
- use a framecounter (eg mr doobs stats) to see where the framerate 
drops are
- use a profiler to see what your app is doing with respect to object 
creation/memory

- dispose bitmapdatas if you no longer use them and can't reuse them
- etc etc

hth
JC


On 11-1-2013 11:57, Sumeet Kumar wrote:

Hi All,

  


I am creating a very basic IPAD app. Adobe says we need to build the app
with code optimization. I have completed development of the app.

  


For code optimization,  I am removing listeners, using sprites instead of
movieclip, clearing Timers etc...what else I can do to optimize my code..or
What do adobe really mean by code optimization.

  


Can anyone please guide me in this regard.

  


Regards

Sumeet Kumar

  

  


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders