Hi,

> So inside of all my Loops where I calculate the trig, I update an
> arraycollection(containing ObjectProxies) with the new values that I
> calculate.  Do you think if I passed this data to a regular array instead,
> and then over to the ArrayCollection when the processing was finished that I
> may be able to whittle away some of that 24 seconds?

I’d guess it’s probbaly likely as the number of updates are going to be large 
vs a single update of the entire array collection. But again would be worth a 
try as it can probably be done in a couple  of lines of code.

Given it's running reasonable quickly now (well comparatively) you may want to 
try replacing each of the conditions with a named function and see if any of 
those it taking up the time.

So if you had:

if (a ==b) {
…
}

Change it to:

function compareAB(var a:int, var b:int):boolean {
        return a == b;
}

…


if (compareAB(a,b)) {
...
}

This will run a little slower than having the code inlined but will enable you 
to work out if any of the conditions are taking up time and where you may be 
able to optimise further. It’s going to depend on what those conditions are - 
so that’s just a guess (again).

Thanks,
Justin

Reply via email to