Nov
15
Sine and Cosine lookup tables

Sometimes speed is essential.  So recently for one of my projects that called Math.sin and Math.cos 1000 each every frame, I decided to create a lookup table.  Now that I’ve finally had some time too, I got a chance to test what I though was a clear speed difference and I found some very surprising results.

Read the rest of this entry »

filed under: ActionScript, Interesting stuff, Math, Misc, Scripts | comments (2) | read more...

© 2012 pajamacode | Theme by DemusDesign, Theme Lab, and Search Optimization | Powered by WordPress