News for hackers. Stuff that matters.
Re:Many games are held together by duct tape by CoolGuySteve on Wednesday January 15, 2020 @12:29PM (#22056179)
As a counterpoint, the Quake -> Quake 2 -> Quake 3 original open source releases are remarkably clean. Quake 2 in particular is very minimalist and the game was developed in something like 10 months.

Granted, it's not really fair to compare anyone to the id software team of the time. But the requirements of the Quake series, basically a BSP renderer that is easy to modify and extend, probably forces it to be extensible and clean.

Re:Many games are held together by duct tape by winrid on Wednesday January 15, 2020 @01:00PM (#22056554)
Also, Carmack had a philosophy of rewriting things instead of just adding code.
Re:Many games are held together by duct tape by perseusmandate on Wednesday January 15, 2020 @04:39PM (#22058998)
The fast inverse square root algorithm Carmack invented for Quake 3's lighting is the definition of elegant code

https://en.wikipedia.org/wiki/Fast_inverse_square_root

Re:Many games are held together by duct tape by xsmasher on Wednesday January 15, 2020 @05:16PM (#22059381)
It's EFFICIENT, but it's the opposite of elegant. If you looked at the code you would have no idea what it is doing or meant to do.

Elegant code should be simple, readable, and apply some leverage to make a difficult problem more clear.

Re:Many games are held together by duct tape by dwd on Thursday January 16, 2020 @02:58AM (#22062479)
It was a very different time with serious limits on graphics, memory and disk space.

Going back even further some of the early 8bit games were engineering marvels where the only hacks were to squeeze out every last bit of memory.

Re:Many games are held together by duct tape by tluyben2 on Wednesday January 15, 2020 @12:55PM (#22056493)
Engines (Doom, Quake) need to be much cleaner and more consistent than (one-off) games.
Re:Many games are held together by duct tape by AstralStorm on Wednesday January 15, 2020 @01:12PM (#22056705)
Mind you both reused many ideas from previous ones. Doom reused Wolfenstein 3D, Quake reused pieces from Doom. (WAD format for example.)

The engines made for the games were indeed intended to be one offs.

Reuse of design and formats does not imply reuse of code.

This is very different from new "universal" engines like Unity, Unreal Engine, Ogre, Frostbite, Dawn Engine or Unigine. Those were designed to be separate from games.

Re:Many games are held together by duct tape by tracker1 on Wednesday January 15, 2020 @01:52PM (#22057166)
Sometimes the best code comes from making something that's meant to be temporary, replaced or duplicated instead of reused.
Re:Many games are held together by duct tape by tluyben2 on Wednesday January 15, 2020 @01:21PM (#22056819)
True; I guess ID had this internal engine strategy or it grew out of the culture there naturally? I read the Doom book but don’t remember if that was explained. I have the Doom black book but did not read it yet.
Re:Many games are held together by duct tape by winrid on Wednesday January 15, 2020 @04:06PM (#22058569)
I'd suggest Michael Abrash's Black Book which I recently read. He wrote it while working for ID and there's lots of little bits of gold in there. The PDF is free online. Note, it's very big.
Re:Many games are held together by duct tape by tluyben2 on Wednesday January 15, 2020 @04:35PM (#22058944)
I did read that too long ago; will reread: thanks!