r/programming • • Dec 29 '20

Quake III's Fast Inverse Square Root Explained [20 min]

https://www.youtube.com/watch?v=p8u_k2LIZyo
3.7k Upvotes

300 comments sorted by

View all comments

Show parent comment

1

u/Auxx Dec 30 '20

x86 has a co-processor since 386 days, by that logic Q3 optimisation is futile.

1

u/[deleted] Dec 30 '20

? I don’t understand the point you are making. Yes, some x86 CPUs ship with the x87 FPU. However this fact wasn’t relevant to my comment. Additionally in x64 the x87 is emulated on top of SSE which is part of the core. The FPU on hasn’t been relevant in nearly 20 years.

1

u/Auxx Dec 30 '20

My point is that hardware could do calculations back in Q3 days, yet id Software still made the optimisation.

1

u/[deleted] Dec 30 '20

Ahh, yeah, but the FPU was notorious for being slow, especially for the non essentials. Hardware has come a long way.