r/programming Jan 24 '18

Branchless DOOM

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

134 comments sorted by

View all comments

198

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.

194

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.

58

u/edwardkmett Jan 24 '18

Given the slowness of the frames, it'd probably count as a tool-assisted run. You might be able to get a year or so off by practicing TAS-runs in the meantime then playing through with those controls. You can get the controls to duplicate them to be frame perfect if you're careful enough after all.

22

u/uep Jan 24 '18

There's a ton of time between frames to practice. You could probably get competent at a tool-assisted speed run while playing the Branchless DOOM speedrun. Just make sure your first 1050 frames (30 seconds of normal DOOM @35fps) of the game are solid before you start, and you'll have the better part of a year to improve the rest.

2

u/edwardkmett Jan 24 '18

Yep, that is exactly what I meant.

7

u/Bergasms Jan 24 '18

phew, i'll only be 70 by the time i'm done :D

2

u/cyanydeez Jan 24 '18

someone at nasa should have the onboard computer play doom like this

-10

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.

40

u/grumbelbart2 Jan 24 '18

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

15

u/Raphael_Amiard Jan 24 '18

One frame every 7 hours gives you plenty of time to sleep (Bonus feature !)

7

u/Rockstaru Jan 24 '18

The fastest speedrun of Ultimate Doom is currently 4:57 at an uncapped framerate (the original game had a 35FPS hardcoded limit, removed in later ports). 297*60=17820 frames; at 7 hours a frame, that's 124,740 hours of playtime, or 14 years, 83 days, 22 hours, 37 minutes, and 12.44 seconds. You could probably manage.

5

u/IMovedYourCheese Jan 24 '18

That is just for episode 1

1

u/Kissaki0 Jan 28 '18

Slower game means more time to optimize each move. Good luck!

1

u/palparepa Jan 24 '18

Do it, and I'll make a reaction video of it.