I have a Flash movie that is using 50-70% of CPU. I've never thought of
this as unusual, but our partner on this project finds this to be very
high, so I'm looking into how I can reduce this.
I am using AS2 and authoring for Flash Player 8. I'm testing under
Windows using Firefox, but I get similar results using IE. I have the
current Flash Player installed.
The first thing that I looked at was any intervals or onEnterFrame
events. I commented out all the onEnterFrames and extended the shortest
interval from 30ms to 300ms. This had virtually no impact on CPU usage.
Next I looked at my skin movie. The skin movie is a two frame movie
containing all the major movie clips in the GUI. If I load the skin
movie by itself into the browser, CPU usage is 30-35%, which is high,
but well under 50-70%.
Then I made a change so that the entire skin movie would remain
invisible when loaded into the main movie. This pushed the load back up
to the 50-70% range. So, it doesn't appear that the rendering the
graphics layer is responsible for the high CPU usage.
There's obviously a lot more going on in the project. Data is loaded in
from the server. TextFields and other place holders are created to
accept data. Event listeners are created. I don't know if more detail
would help here.
Where else should I be looking?
Thanks!
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders