How to draw ugly lines fast
cohost.org
How to draw ugly lines fast
1–10 of 47 posts
Re: How to draw ugly lines fast
#2Re: How to draw ugly lines fast
#3Re: How to draw ugly lines fast
#4I feel like I've gotten a better understanding of things I thought I knew already. The only question left in my mind is "why does he always need to write new subpixel-accurate line drawers?!"
Re: How to draw ugly lines fast
#5I know compute shaders exist, but I have found that with huge datasets and a wide variety of end-user hardware, it tends to end up with many lines of code and brittleness. So I’m curious about high performance CPU-only implementations.
Re: How to draw ugly lines fast
#6Re: How to draw ugly lines fast
#7Re: How to draw ugly lines fast
#8I personally prefer the fixed-point algorithm for its simplicity and performance: https://news.ycombinator.com/item?id=9954975
Re: How to draw ugly lines fast
#9Re: How to draw ugly lines fast
#10It would help if he defined what "subpixel accurate" means. I can't figure out why you'd care about subpixels if you're producing a bitmap image? Or is he doing something like cleartype but not antialiased?
For example, the standard algorithm would always generate lines that are symmetrical:
####
####
But the modified version lets you position the endpoints different, so that you'd get: ###
#####
or ##
######
etc