Obiwobbles UltraLametm Flash Experiments

Part 2c: Port of the 'ol "Java Vectorballs". Woo hoo! I got a sizeable increase in speed this time. It seems the sorting is the major bottleneck in this little ditty. Now personally I'd have to say that ordering a list of 64 object references shouldn't really be presenting a modern CPU with much of a problem even in an interpreted language and when the sort key is double precision floats. ActionScript's sort() implementation must be wanky.

Good news though, I discovered the alternative sort function sortOn() which will sort on a named property. 'course this gives me back to front ordering but this is easily compensated. This alternative sort function is significantly quicker, see!....

 FLA AS

 

<< Back