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.
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]
©2010 iPhone iOS 4 iTV iPad SDK Development Tutorials, Programming Tips, News. All Rights Reserved.
.
Share and Enjoy: