5 ms·
This is amazing. John Carmack has become like the Lone Ranger of code optimization. He shows up out of nowhere, makes your game run 20 times faster, then rides
by Analemma_ 11y ago
This is amazing. John Carmack has become like the Lone Ranger of code optimization. He shows up out of nowhere, makes your game run 20 times faster, then rides off into the sunset. "Who was that masked man?" "Oh, he's John Carmack."
- granos 11y agoI feel like this needs to be an xkcd
- wtallis 11y agoIf Carmack only made Minecraft 20x faster, that would be extremely disappointing. That's just the low-hanging fruit.
- Ralfp 11y agoJudging Minecraft by its blocky world is very unfair and shortsighted. Game world is not only de-facto voxels. Its transparent, masked and oblique voxels that interact with each other or other entities, like farm blocks by water blocks, lava blocks with burnable blocks nearby, plants growing up, hostile mobs spawns and lines of sights, mobs pathing as they follow player, fellow mobs or random points of interest for wandering, etc ect.
- wtallis 11y agoWhat makes you think I was judging Minecraft solely based on its low-detail graphics? Yes, its rendering code has historically been comically inefficient to the point that third-party hacks have made huge differences in frame rate and usable draw distance, but that's hardly the only thing Minecraft implements poorly. The combination of using Java and being coded naively means that there's a huge amount of pointer chasing and unnecessary dynamic memory allocation that can be easily cut out without even needing to dip into the data structures and algorithms literature to try for asymptotic improvements. There's no SIMD and no concern for cache locality. Last time I checked, it didn't even look like terrain generation was done in a separate thread from the interactive game logic, let alone in multiple threads. The game only simulates dynamics within ~128 blocks of a player, but if you've got two players miles apart they're still simulated on the same thread. I do fully understand that the dynamic modifiability of Minecraft's game world means that it is always going to be hungry for memory bandwidth and will be latency-sensitive. But that doesn't mean it has to be inefficient. The Pocket Edition (not Java) already showed that huge improvements are possible, because they were necessary to get anything resembling Minecraft onto mobile platforms. There's a lot more that can be done when you're back on a platform that has sufficient RAM capacity and a ton more CPU power relative to RAM speed. There's a lot of latency that can be eliminated and a lot more than can be hidden from the user without breaking the game. The development process meant that hardly any of the early fundamental implementation decisions were made with the much later features in mind.
- teamonkey 11y agoI think notch's success proves that it's better to make something than whine about how it's implemented
- eropple 11y agoOnly if your barometer of success is a monetary one. I happen to like playing Minecraft when I'm not making something and killing it and iterating (yeah bruv), and it makes my future computer from beyond the moon chug at times. (I don't point the blame at Java nearly as much as at the naivete of its development, however, and it has gotten somewhat better over time.)
- st3v3r 11y agoMinecraft already runs fine. Making it 20x faster is great, but beyond that, you're running into PCMasterRace type optimizations that only 6 people in the world can see.
- wtallis 11y agoMinecraft only runs fine on the fastest hardware. I've got an i7-4790k that runs at 4.4GHz for single-threaded tasks. Just flying through a minecraft world in a straight line in creative mode needs 80% of one core to keep pace with the world generation. No laptop can run the game smoothly as-is. That 20x performance improvement is needed just to get into the territory of reasonable performance on the kind of low-end hardware kids typically have available.
- Nullabillity 11y ago> Just flying through a minecraft world in a straight line in creative mode needs 80% of one core to keep pace with the world generation. But that's the absolute worst case, nobody actually plays the game like that.
- wlesieutre 11y agoPeople don't spend most of their time in-game that way, but they definitely do it. Especially when looking for an interesting places to set up. Multiplayer gets much worse though, god forbid you have several people exploring new terrain on a server. And god forbid you play with any of the mods that add faster railways[1] or jetpacks[2] or boots that make you walk faster[3], etc. It's a bummer that the optimizations are coming to the less moddable version, MC is a great platform for people to build new gameplay on. [1] http://ftbwiki.org/Railcraft http://ftbwiki.org/Railcraft [2] http://ftbwiki.org/Simply_Jetpacks http://ftbwiki.org/Simply_Jetpacks [3] http://ftbwiki.org/Boots_of_the_Traveller http://ftbwiki.org/Boots_of_the_Traveller
- mnx 11y agoOr, you can make it run on old hardware, and new underpowered hardware like netbooks, Raspberry Pi, and phones.
- FreeFull 11y agoNote that the article is about a C++ rewrite of Minecraft rather than the Java version.
- kelvin0 11y agoIt's the 'Mysterious Optimizer' Perk. In Fallout4 there is a perk you can unlock called: Mysterious Stranger. When you're stuck in a gunfight, this stranger has some probability of showing and assisting you. John Carmack to help me optimize my code ... awesome!
- brobinson 11y ago>In Fallout4 He's actually available in Fallout 1, 2, 3, 4, and New Vegas. :)
- Mandatum 11y agoIt's based on old spaghetti westerns like Shane, Pale Rider, etc with Clint Eastwood. He's always given the title akin "Mysterious Stranger" or "Man With No Name".
- bovermyer 11y agoWhich in turn is based on the protagonist from Yojimbo and Sanjuro, the "nameless rurouni."
- mhd 11y agoWasn't that why Michael Abrash was hired by id way back when?
- bitwize 11y agoHe's Michael Abrash's padawan, gone full Jedi.