How Quake III Broke the Rules of Math! @bitsundbolts
How Quake III Broke the Rules of Math!  @bitsundbolts
Uploaded April 2026 | Updated September 2026, 2 weeks ago
How did a 1999 shooter pull off high-end lighting on hardware that shouldn’t have been able to handle it? The answer lies in 0x5f3759df. In this video, we tear down the Fast Inverse Square Root, a piece of programming wizardry that uses bit-shifting and a "magic constant" to bypass heavy division and square root calculations. We will explore the Newton's Method approximation, the genius behind Id Software, and why this 25-year-old hack is still legendary today.

Repo: github.com/BitsUndBolts/RSQRT

▬▬▬▬ *Affiliate Links* ▬▬▬▬▬▬▬▬▬▬▬▬▬
Visit my website to find affiliate links to most of the tools and products I use
🔸bitsundbolts.com/affiliate

Thank you for your support!

▬▬▬▬ *Support Bits und Bolts* ▬▬▬▬▬▬▬▬▬▬
Patreon: 🔸patreon.com/BitsUndBolts
Bitcoin: bc1q2dvf9flf78lam33qjj9w9xgvfxdgre7g9x3rmw

Twitter/X: 🔸twitter.com/BitsUndBolts
Facebook: 🔸facebook.com/bitsundbolts

Website: 🔸bitsundbolts.com

▬▬▬▬ *Timestamps* ▬▬▬▬▬▬▬▬▬▬▬▬▬▬
00:00 Quake III Source Code
02:18 History
03:04 Why Does It Exist?
04:00 Floats in Memory
05:56 Fast Inverse Square Root
08:52 Newton Iteration
10:10 386DX-33 testing
17:05 486DX2-66 testing
20:45 Conclusion
How Quake III Broke the Rules of Math!One Slotket to Rule Them All: HAWK 370 TualatinThose are my last two broken 3Dfx Voodoo cards - Lets fix them!Design flaw or planned obsolescence? Quantum Go Drive 120MBHelp me find the faulty chip (EDO_ERR Part 1/3)FNIRSI HS-01: An intelligent and affordable soldering iron?Pentium III Drama: Removing, Resoldering, and Hoping for the Best!Reaching the limits of 3 1⁄2-inch diskettes using 2M4 Months Later: SOUND Brush 55 Restoration Results!Why S3 Cards Look Gray And How I Fixed It!The ultimate 3Dfx debugging tool: Witchery! Debug any Voodoo 2 and fix it! (Part 3/3)Forensics: Sound Blaster 32 CT3670 repair attempt
Bits und Bolts |

How Quake III Broke the Rules of Math!

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER