Sin and Cos Slow?

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

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Yes, it will definitely be slower.

However, whether it's "worth it", it will depend on your program and target platform as to whether you'd want to use a lookup table versus calculating the values in realtime.

If you call it a lot, I would say it would behoove you to use lookup tables. It's not hard, it's accurate enough, and it's faster. What could be wrong with that?

Alternatively, you can just use the Sin and Cos commands, see if it's fast enough for your needs, then change it later if you want.