quick poll - precalc sin & cos or perform every frame ?

BlitzPlus Forums/BlitzPlus Programming/quick poll - precalc sin & cos or perform every frame ?

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.

I'd finish your game and see if you need the extra speed afterwards.

It's easy enough to create a couple of arrays afterwards.

Personally I always just use sin() and cos() I've not noticed any massive speed hit and I don't think it's really worth worrying about until you're getting to optimisation right at the end of your project.

It's a bit like worrying about floats and ints... I don't... I just use them as necessary.

PCs are so quick now I don't think it's worth spending too much time optimising unless you can get an extra 10 or 20%. To get an extra 3 cycles in 200 hardly seems worth the effort.