Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Normalized vectors vs. Angles

Name: Anonymous 2011-06-09 6:38

Hello /prog/riders,
I've noticed, while developing a seihou clone in C, that replacing angles (4-bytes float) with normalized vectors (2 4-bytes floats) gives a bit better performance, as I can access the sine and cosine values directly.
However, my ``bullet'' structure is already pretty big, and I wondered if the cache penalty would offset the benefits of avoiding transcental arithmetic in some conditions.

Name: Anonymous 2011-06-09 7:47

IF YOU DON'T HAVE A PERFORMANCE PROBLEM,
WELL
YOU DON'T HAVE A PERFORMANCE PROBLEM.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List