Dewb / CosmicPraise

The BRC 2014 six o'clock keyhole installation - a 52' climbable steel tower covered in LEDs with a cosmic-ray-detecting spark chamber, covered in LEDs
http://douglasruuska.com/cosmic-praise
6 stars 5 forks source link

Less math in the tight loop #4

Closed directionless closed 10 years ago

directionless commented 10 years ago

There's probably more to be gained here

Dewb commented 10 years ago

Don't worry about optimizing the effects code yet, this code and its API is changing rapidly (I've already moved the angle calculation to be once per frame, not per-pixel.)

defining twopi is probably not a bad idea though.

Is 3.14159 really faster than pi??? That's kind of unacceptable.