The relationship between performance and coding practices?


i took on actionscript 3 air project friend , found program air comsume high usage of cpu espeically when

 

1. pages contain fl. datagrid custom skin , image column.

(around 18-25% of quard-core cpu , will not return normal if stop action)

 

2. scrolling page content.

(around 15-20% of quard-core cpu , return normal if stop action)

 

3. pages contain lot of urlrequest.

(around 8-15% of quard-core cpu , return normal if stop action)

 

 

also, found there no type definition on every variables among source.

 

e.g .  var mc = new movieclip();

          mc.x = 10; .....

 

i wondering if issue of high cpu usage related the  type definition variables or others factors.does has idea?

 

p.s. had  tried use bulkloader class replace urlrequest , see little bit improvement.

1. components tend resource hogs  datagrid benefit enabling cacheasbitmap property.  assigning cacheasbitmapmatrix consider less datagrid.

 

2.  enabling cacheasbitmap major help.

 

3. loaders should have cacheasbitmap property enabled.  assigning cacheasbitmapmatrix may helpful

 

code typed variables executes 4 times faster code untyped variables.  unless have millions of variables or millions of iterations on few variables, you're not notice difference.



More discussions in ActionScript 3


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support