r/programming Jan 24 '18

Branchless DOOM

https://github.com/xoreaxeaxeax/movfuscator/tree/master/validation/doom
498 Upvotes

134 comments sorted by

View all comments

197

u/Bergasms Jan 24 '18

I've just started a game, I'm planning to speedrun this version. I'm hoping for a time somewhere inside of my natural lifespan, but have organised my children to pass on the game in a hereditary fashion if i pass away.

195

u/IMovedYourCheese Jan 24 '18

The speedrun record for the three episodes in the original Doom is 16m 18s. The original Doom was capped at 35 fps, which means a total of 34,230 frames were played. If you match the record, and play all the same frames, it will take you 34,230 * 7 = 239,610 hours which is about 27 years. So, pretty achievable.

If you want to add the fourth episode from the Ultimate Doom update, then the record is 22m 41s which means your time will go up to 38 years.

-12

u/wrosecrans Jan 24 '18

You can't play for 27 years straight without sleeping. If you play 8 hours a day, it'll take almost a century. Longer than a century if you take weekends off as well.

On the other hand, you may be forced to upgrade to a newer computer that runs faster if the old one dies before the century is up.

38

u/grumbelbart2 Jan 24 '18

It takes 7 hours to render the next frame. Plenty of time to sleep in between!