Hey guys,
As soem of you may or may not know there is an issue in java where trig calculatiosn over 45 degrees or under -45 degrees ar esignificantly slower in Java then C on the x86 processor. This is due to the fact that the x86 prcoessor is broken and its trig intrinsics fail Java’s accuracy gaurantees for anything otuside of that range, forcing Java to fall back on sofwtare calculation of those functions.
I’ve just posted my first gem on my gems page, which is tested code for Sin and Cos which will take an arbitrary Sin or Cos calculation and reduce it to one in that range, ensuring speedy calculation.
Enjoy.