Re:Source code for Quake 2 rerelease
by eddyfromtheblok on Friday August 11, 2023 @03:27AM
(#37086057)
That garbage code brought about the speed run culture, highlighted by charity events like Awesome Games Done Quick. The speed runner and their crew on stage will explain the latest level skips, wall clipping to avoid tedious areas, enemy weaknesses and exploits, and frame perfect input strings needed to accomplish those. And some will perform speed runs blindfolded with only the audio cues to work with.
[ Parent
| on HN ]
That hardly has to do with code quality, but instead that some edge-case "features" were not anticipated by the game designers, programmers and QA team, but "discovered" later by speedrunners.
Re:Source code for Quake 2 rerelease
by FartyMcFarter on Friday August 11, 2023 @06:38AM
(#37087137)
Sometimes it is about code quality. Defensive, well-documented code would not be as likely to suffer from such bugs.
It's not just subtle floating-point errors either, but also outright wrong maths that appears to work (see [1] for an example), buffer overflows [2] etc.
I think they made the right trade-off, back in the 90s on hardware that could barely run the game, sticking extra defensive checks to make sure you have not accidentally clipped through the geometry, or simpler ones like making sure you are not running too fast, seems excessive.
They weren't coding for some NASA space probe and they knew it.
Re:Source code for Quake 2 rerelease
by FartyMcFarter on Friday August 11, 2023 @08:41AM
(#37088042)
Typically you'd put the checks only in debug builds.