Sin and Cos Slow?

Blitz3D Forums/Blitz3D Beginners Area/Sin and Cos Slow?

Use a lookup table like soja said.

Try this:
dim sintable#(360)

for x = 1 to 360
sintable(x) = sin(x)
next

then, later in your code, use sintable(60) instead of sin(60). It ends up being much faster.


-Later