Hi Malte,

My test with the 2 different versions of the function shows a 25% faster with the one using atan2 (test with 1000 and 10000 loops, 200 runs)... on a G4/1.67 GHz/RAM 2 Go/Mac OS X 10.4.2. Probably you loose time with testing x1=>x2... But you are right one loop was less than one millisecs and may not impair the overall performance.


Should the ArcadeEngine be optimized for speed from ...


It is. In my test using atan instead of atan2 was a few milliseconds
faster. Not too many though. in 350 loops and 50 test runs the atan
version was about 70 millisecs faster on a G4 - 400 MHz than the atan2
version. That´s why I chose the longer form. But ...

_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to