News for hackers. Stuff that matters.
Re:Why do we round corners? by bobbylarrybobby on Monday February 14, 2022 @10:12PM (#30342247)
Were square roots really so slow that integer addition in a loop was faster??
Re:Why do we round corners? by the2and7 on Monday February 14, 2022 @10:28PM (#30342372)
68000 processor on the Mac didn't support floating point operations.
Re:Why do we round corners? by dahfizz on Monday February 14, 2022 @11:55PM (#30342942)
I wouldn't be surprised if that is still the case. Rule of thumb is that sqrt is on the order of 10x as expensive as integer addition, though this obviously depends on a lot of factors.