Gracia Profile picture
Mar 21 4 tweets 2 min read
In 1999, calculating 3D lighting required doing 1 / sqrt(x) millions of times a second.

CPUs back then would completely choke on this math. so the developers of Quake III used this literal black magic code instead.

How the hell does 0x5f3759df calculate a square root?👇 Image The problem in 1999, floating-point division and square roots were massively expensive, taking dozens of clock cycles. normalizing vectors (the math needed for lighting/shadows) requires 1 / √x.

If you ran this the standard way millions of times a second in a fast-paced shooter, your game would instantly run at 2 frames per second.
Dec 25, 2024 23 tweets 6 min read
What the world looked like a century ago. A Thread🧵 Image 1. India around 120 years ago
Dec 10, 2024 23 tweets 8 min read
Thread: The Most Unexpected Celebrity Separations That Shook the World 🧵

Hollywood loves its love stories, but sometimes, those stories take shocking turns. Some celebrity separations have left fans speechless, sparking drama, heartbreak, and headlines. Let’s explore the most unexpected breakups, starting with Johnny Depp and Amber Heard.Image Johnny Depp & Amber Heard: Love Turned Legal Nightmare
Johnny and Amber met on the set of The Rum Diary in 2009, tying the knot in 2015. Their separation just a year later unraveled into a years-long legal war.

🔹 Key points:

Amber accused Johnny of domestic violence; Depp denied it, leading to lawsuits.

The defamation trial in 2022 revealed shocking claims from both sides, turning their private life into public spectacle.Image
Nov 25, 2024 17 tweets 8 min read
From Stardust to Black Holes: The Epic Life Cycle of a Star

✨ Let’s dive into the incredible journey of stars! From their birth to their spectacular end as supernovae, neutron stars, or black holes.

A detailed thread 🧵👇Image
Image
The life of a star is a story of creation, evolution, and transformation, governed by the interplay of nuclear fusion, gravity, and energy. Stars undergo dramatic changes based on their initial mass, culminating in diverse endpoints: white dwarfs, neutron stars, or black holes.Image