News for hackers. Stuff that matters.
Re:How to draw ugly lines fast by derefr on Tuesday December 20, 2022 @11:20AM (#34068027)
Can you avoid the error — without needing to use higher-precision math for every step — by 1. using higher-precision math only to calculate some control points along the line; and then 2. partitioning long lines into smaller overlapping lines that connect at the control points; so that you can then 3. draw those short lines with the cheap algorithm?
Re:How to draw ugly lines fast by danbruc on Tuesday December 20, 2022 @12:26PM (#34069088)
You probably could, but why? The only advantage that the algorithm could maybe claim is conceptual simplicity and this will be gone the moment you start trying to control those errors.