Sunday, March 22, 2009

Integer vs Floating point

A long time ago, I used to program fixed-point trigonometry maths for 3D engines using integer operations. Over the last few years, with good floating point on all the platforms I've been programming games with, why wouldn't you use float and double?

Recently I've been doing a fixed-point trig for the ARM7 build on the robot. And I must say, it's a big pain - especially with looking out for overflow in complex expressions. Almost makes make wonder whether these set-up functions couldn't use floating point maths.

0 Comments:

Post a Comment

<< Home

Newer›  ‹Older