I'm having to use trigonometric functions in my opengl game, so I started looking for fast functions. I found some neat code here:
Fast Trig Functions
It uses some assembly code so I assumed it would be faster than the standard math library functions. However, to my surprise the standard math library was much faster. So, right now I'm using atan2, sin, and cos in my game and the performance hasn't noticable suffered. My question is, are there any faster trig functions than the ones in the standard math library? That is, on a relatively modern processor, P4. My laptop has a Mobile Intel Pentium 4 M 1.8GHz.



. Strange, I wouldn't expect it to be slower in debug, on any system. But 2x slower, that's really a surprise. On my system, the LUT is marginally faster in debug, but about 5x faster with optimizations as well. *shrug*
