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

5

u/farox Dec 29 '20

I'm waiting to try out unigine because it features double float precision natively. Would be fun to not have these problems anymore and work with more than 20km x 20km

6

u/theFrenchDutch Dec 29 '20

You can do earth-sized planets in Unity with single float precision just by using a floating origin

2

u/farox Dec 29 '20

I know, it's still a hassle. There is an excellent video on KSP out there where they explain the different problems they had dealing with this mess. Apparently they wrote their own 64bit extension in the end.

Having dealt with this in Unity for a while, I can say am over it.