3. 0.038849 (sin float) + 0.038351 (cos float) = 0.0772
0.055449 (tan float)
so, 0.055449 / 0.0772 = 0.71825 = 28% faster.
Similar result I told in previous post.
1. you forgot float division, that's a heavy cpu instruction too
2. GM uses doubles and converts them to floats for Direct3D, that is one of the reasons GM is slow.
3. you said:
It speeds up around 25% instead of using tan
But at least you know how it is really, and that's good
btw, Box2D is easy to learn.
world = new b2World( worldAABB, gravity, true );
world.Step( timeDelta, iteration_count );
Edited by them4n!ac, 25 September 2008 - 02:37 PM.