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.

Hi, I'm new to all this programming business, and have a set of 4 sprites, each of which can move in any angle (eg. 0 deg, 11.25deg, 22.50deg, etc...)

Regardless of which method* I choose, I use

dx = cos(a)
dy = sin(a)

*My question is, is it best to precalc these values and put them in a data structure (array,etc...) so its less cpu itensive

or

Every frame, do I just do the COS & SIN calcs for each of the 4 sprites, and to hell with the cpu intensity ?

Thanks in advance,
-Dax