Comment by taikon
19 hours ago
How many 3D bodies are there? I'm curious because it renders really fast even on a relatively old mobile phone.
19 hours ago
How many 3D bodies are there? I'm curious because it renders really fast even on a relatively old mobile phone.
If I counted things correctly, 53,836.
I wanted to hook into the THREE object and explore the scene, but I wasn't able to figure out how to bring it back into scope after it's been optimized out of the js context, so instead I searched through the bundle to find where it unpacks the data and did that manually.
It just boggles the mind how you can simply write a 3D program with a ready-made library today, instantiate tens of thousands of objects in 3D space, and the whole thing will render in real time on a phone without you ever having to worry about how that incredible performance is possible.
The power of computers comes at least partly from the fact that for many practical problems, they let you effectively pretend that resource constraints don’t exist at all.
It does, it helps to stop and smell the roses occasionally and remember how far we’ve come.
My first proper computer (defined by programming on it) was a 3.5MHz single core processor with 48KB of RAM.
My current one is 16C/32T that can boost to 5.7GHz and has 64GB of RAM.
Considerably more than a million times the RAM and about a million times the processing power (if you factor clock speeds, core count, OOE, branch prediction, memory width and depending on workload etc).
I have more RAM in my house than every ZX Spectrum ever sold (about 5 million which comes out to ~240GB).
Adjusted for inflation a million spectrums (175 at 1982 prices) comes out to about 640 million quid.
My PC cost ~4000 in late 2022.
A million times faster for 0.000625% of the price, it’s been a hell of a ride.
1 reply →