The mathematical mystery inside the legendary ’90s shooter Quake 3
Summary
Scientific American examines the historic inverse square root trick used in Quake III, explaining how the 0x5f3759df magic constant and Newton-Raphson iterations enabled fast 3D math on 1990s hardware. It covers how the code was discovered after open-sourcing, the investigations into its origins, and why different starting values can yield slightly better results in practice. The piece highlights the balance between clever engineering and practical performance.