Fuzzy maybe its your hardware, or somthing? Runs with 560 fps my laptop.
Qedo, 180°=32768 not 32767
Yes my function was optimised for giving more accuracy at still good speed (on my machine its 7 times faster than original GLBasic SIN). If you want pure speed (and thats why we create this functions^^), than you need to stick with the old calculations (which are still based on Gernots QSIN). How did you do your calculations, starting with Gernots one again, or just adding to our last version? I did all calculations from Gernots base again (to avoid adding up inaccuracies) and added some extra speed improvements.
No finally QQSIN is 10 times faster than original GLBasic SIN!
Of cause more testing is always useful and we optimised it so much that most new optimisations arent necessarily useful on every machine. E.g. on my windows tablet with crappy AMD-C50 CPU, my accuracy functions outruns every other function by far, even Oceans c lookup table (which is pretty slow on that machine)! I have no idea why, cuz it shouldnt... (maybe its 32bit float vs 64bit float?)
FUNCTION QQSIN: x // by Kitty Hello, Qedo, Kanonet
LOCAL xx% = bAND( x * 182.04166666666666666666666666667 , 65535 )
IF xx < 32768
x = ( 5.790101276423631e-5 - 1.767113300842517e-9 * xx ) * xx
RETURN ( 1.633843488304938 + x ) * x
ENDIF
xx = 32768 - xx
x = ( 5.790101276423631e-5 + 1.767113300842517e-9 * xx ) * xx
RETURN ( 1.633843488304938 - x ) * x
ENDFUNCTION