If you’re app makes extensive use of trigonometry (and if you’re working on game development then you probably are) then you probably make extensive use of the built in math functions. This isn’t the first open source iPhone math library to offer a speed increase, but it is the only one as far as I know that is still in active development.
According to Apple apps that make extensive use of floating point numbers should not make use of the thumb compiling option which reduces code size.
Dave Dribin has created a math library exclusively making use of integers, and based on the speed of the sine function vs. the standard libary sin and sinf functions it looks like Dave’s trigint library is at least 4x faster.
You can find the library and more info here:
Trigint: An Integer-Based Trigonmetry Library
Thanks for reading, please share this using the buttons below!
[via: Under The Bridge]