News for hackers. Stuff that matters.
Re:Line drawing on a grid by forrestthewoods on Wednesday December 31, 2014 @04:30AM (#8818718)
This benchmark from 2001 with a Pentium III has bresenham about 7.5 times faster than DDA. There's another pair of algorithms that are a little faster still. http://www.edepot.com/algorithm.html

These days the limiting factor is probably going to be cache access rather than fixed vs floating point. I'm pretty sure bresenham is still the way to go but it'd be fun to see modern comparisons.

Re:Line drawing on a grid by vardump on Wednesday December 31, 2014 @04:42AM (#8818742)
Well, DDA should use fixed point, not doubles. Old stack based x87 FPU is just slow and converting doubles into integers in a loop... Well, I guess you can understand where the time is spent in the version you linked! I meant of course IDIV and fixed point, not FDIV FADD FISTP etc. madness!