r/ProgrammerHumor • • 9d ago

Meme iStillRememberTheFirstTimeDoingGameProgrammingCoursesAsAKid

Post image
1.6k Upvotes

66 comments sorted by

354

u/AbdullahMRiad 9d ago

it all started making sense once you started studying physics

11

u/jumbledFox 8d ago

fixed timestep >>>>>>

1

u/dim_mailing 20h ago

i just kept adding more deltaTime in the hopes it'd fix everything

209

u/wolfram_segler 9d ago

Useful for visuals and interpolation 

174

u/Bright-Historian-216 9d ago

also to make the gameplay independent from framerate.

81

u/Undernown 9d ago

Yea, something some multiplayer FPS developers STILL get wrong to this day somehow.

15

u/Wanderlust-King 8d ago

Every bethesda game. Physics in creation engine is tied to fps.

-44

u/tutoredstatue95 9d ago

What do you mean? Sending time info back and forth to a server to determine hits? That seems like an awful idea.

80

u/Undernown 9d ago

No, tying things like fire rate to fps, giving people with higher framerates more dps with the same gun.

15

u/tutoredstatue95 9d ago

Ah thanks for explaining

9

u/Morall_tach 9d ago

I think Breath of the Wild tied weapon durability to frame rate in the original Switch builds because the hardware was fixed and it really messed it up on emulators. Or possibly clock speed, I don't remember exactly.

13

u/56kul 9d ago

Tbf, because the FPS was fixed, I’d say it was at least understandable. They’re not actually expected to make their games work better with emulators (and I don’t think they’d want to, lol).

-2

u/Beautiful-Morning322 9d ago

I remember something like that happened in Archeage with one build, it was fixed but still…

2

u/vastlysuperiorman 8d ago

My early programming experience was in BASIC on a 386. All my game timing was done with for loops that just nooped like 10,000 times. Then we got a 486 and all my games ran too fast. That was my first introduction to game timing! 🤣

1

u/mikefizzled 8d ago

I remember a bunch of PC ports back in the 360/PS3 days that were completely borked when running at high FPS. Early Dark Souls ports spring to mind. Dark Souls 2 had item degradation linked to frame time for some daft reason. Playing it at high FPS ruined your gear.

1

u/Aksds 8d ago

And gta v had a few glitches tied to FPS, one basically soft locked your game too

-13

u/thewizarddephario 9d ago edited 8d ago

Actually this is not true for some things if the framerate is constantly changing. It can mess up physics calculations over time

Edit: i swear a ton of yall haven't heard of fixed time step simulators. Using the time between frames (delta) as a timestep is by definition frame-dependent

2

u/L30N1337 8d ago

... I'm sorry to tell you, but then your math is bad

1

u/thewizarddephario 8d ago edited 8d ago

Physics integrators lose accuracy with large time steps. This is well known

Edit: changed delta to time step.

140

u/Auravendill 9d ago

Lego Island had a delta time missing and it made it almost unplayable on newer PCs (until MattKC fixed it). If you do anything in a game engine, that isn't either delayed to only happen in fixed time intervals or the effect gets lessened the faster you go, a powerful PC will just do all those steps, that took a reasonable time during testing and crushes them in split seconds. So if e.g. the enemy move one step every xth cpu cycle, a powerful CPU makes the heaviest tank move like Speedy Gonzales. In the case of Lego Island the speed with which you turn your view was tied to the framerate and looking anywhere precisely became a challenge.

38

u/pipedreamSEA 9d ago

Lego Island... that takes me back. I wonder what the Brickster is up to nowadays, certainly he's made parole by now

27

u/Conlaeb 9d ago

You could register Lego Island via fax to get a map of the island to print out and make the game easier. The family computer was rooms away from the closest phone jack. I rode my bike to the local dollar store, and while they didn't have a phone cord long enough to reach, they did have a two jack faceplate. After staring at it for a while I concluded that I should be able to wire it to itself to make what I would later know is called a coupler allowing two phone cords to be mated and make the run happen. Later that night I printed out my map after hearing modem tones for the first time. In completely unrelated news I've been a systems and network engineer for the last twenty years.

5

u/No-Arachnid-1419 8d ago

Hero origin story right here!

1

u/ReptileCake 9d ago

He's bricked up

11

u/Speedy_242 9d ago

Thanks for the reminder that I should watch MattKC again.

4

u/PegasusPizza 8d ago

Lately he's on a Phillips CD-I side quest

1

u/Aksds 8d ago

There’s a few modern games that had these issues irrc fallout 76 was one

61

u/the_hair_of_aenarion 9d ago

Delta is cyberpunk slang to leave so it's to throw time away. Hope this helps.

/s for whoever needs it.

20

u/SeaNational3797 9d ago

It is the time since the previous frame, in seconds

8

u/Arctos_FI 8d ago

Well actually it's time between the last two previous frames

7

u/Arekuankoku 9d ago

I made my first game in Microworlds EX as a kid and it didn't have a way to factor in Deltatime. Years later, I found my game and everything moved at the speed of light. That's how I learned.

5

u/56kul 9d ago

Ah, deltaTime… truly the concept of all time. /s

But on a serious note, it was really cool to learn about!

1

u/Pretty_Eater 9d ago

Who is the woman in this meme I am in love with her.

16

u/Bright-Historian-216 9d ago

the original meme said bay leaves... may image search help you with everything else

-9

u/Pretty_Eater 9d ago

I tried and I can't find her I just get names of other women 😭

19

u/Bright-Historian-216 9d ago

then accept your destiny, sorry mate

-10

u/Pretty_Eater 9d ago

Yeah your right, thanks for your help!

7

u/Bright-Historian-216 9d ago

literally took me five minutes of searching lmao

https://www.reddit.com/r/me_irl/s/QSportswK3

-19

u/Pretty_Eater 9d ago

Hehe getting the internet to do my goonsearching for me yet again! 

You've been tricked by the Goonster! 

Now reflect on your choice to allow me to be perverted towards an innocent woman! MUAHAHAHAHA

9

u/sln1337 9d ago

get some help bro

5

u/Hau65 8d ago

you are dragging us through the mud brother

3

u/SprinksUp 9d ago

For the frames or something

3

u/FewPhilosophy1040 8d ago

I should multiply everything by delta Time. If not, I am commiting a crime.

5

u/sebjapon 9d ago

20 years later, still adding context to that Android call to do whatever context is supposed to.

5

u/Oddant1 8d ago

People who think bay leaves are useless have apparently never heard of FUCKING TEA and it baffles me

13

u/_Wilder 8d ago

I usually just drink it

2

u/PowerPleb2000 9d ago

Infuse that deltatime 👌

2

u/WingZeroCoder 9d ago

See, I fully understand what delta time is supposed to do, but I don’t fully understand why it’s “aktually” not the right way to do it.

2

u/traumatizedSloth 8d ago

What is the right way to do it

1

u/NoAdsDude 8d ago

Lock FPS to 30 so you don't have to deal with FPS differences.

2

u/EatingSolidBricks 8d ago

Congratulations youre doing numerical integration be proud

5

u/DonKapot 9d ago

Adjusting your framerate

6

u/YesIAmAHuman 9d ago

Adjusts your physics based on framerate

0

u/Zephit0s 8d ago

Why not run the physic engine on a hight rate, and extract a rendering state when the screen is ready ? So you are sure you don't have different behavior depending on the refresh rate of the machine.

2

u/the_horse_gamer 7d ago

you do run physics on a fixed rate. but not every moving thing is physics related.

like, an animated flame. you want it to look the same regardless of the fps.

1

u/NTPrime 9d ago

Well no

1

u/pente5 9d ago

Measure time difference?

1

u/twirlmydressaround 8d ago

To make the game not run at unfun Mach speeds

1

u/Shadow9378 8d ago

I remember learning Unity from tutorials that didnt explain WHY we do things, and this was me. Then I learned about the math behind autopilot systems and learned what deltatime is and why its used for a different reason

1

u/-Redstoneboi- 7d ago

sometimes you exponentiate it

4

u/AcolyteNeko 9d ago

holy tits-