Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
fegu
· 4y ago · 0 comments
The doom square root trick. Reducing an expensive function to almost nothing with low error. Many writeups on the web far better than I could give.
Comments
[–]
jesse__
4y ago
I think you mean quakes fast inverse square root? Not aware doom had a clever sqrt routine, but I would be happy to be wrong!
[–]
pjscott
4y ago
You’re right. Doom used fixed-point math; at the time, hardware floating-point units were
far
from ubiquitous on the computers people wanted to use to play it.
[–]
intelVISA
4y ago
obligatory //what the fuck?
[–]
hinkley
4y ago
Doom redefining a circle to be 256 degrees, so that the angle calculations fit into one byte.
[–]
kabr
4y ago
*Quake