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

would this work better than bresenham?

Name: Anonymous 2013-08-08 12:39

function drawline(x0,y0,x1,y1){
dx = x1-x0
dy = y1-y0
len = sqrt(dx*dx+dy*dy)
dx /= len
dy /= len
    for (k=0;k<=len;k++){
        paint(floor(x0),floor(y0))
        x0 += dx
        y0 += dy
    }
}

Name: F r o z e n V o i d !!mJCwdV5J0Xy2A21 2013-08-10 1:58

http://pastebin.com/h9d5FKXG
Results are in:(fvdrawline is my implementation)
refdrawline cycles spent:2038507899
opdrawline cycles spent:37497993407
eflaedrawline cycles spent:1441633463
efladdrawline cycles spent:1393345337
eflacdrawline cycles spent:2200172517
eflabdrawline cycles spent:2361518832
eflaadrawline cycles spent:2836203472
optefladrawline cycles spent:8503438034
peronedrawline cycles spent:1526465395
unidrawline cycles spent:1182543
fvdrawline cycles spent:651216

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