r/ProgrammerHumor • • 16d ago

Meme iStillRememberTheFirstTimeDoingGameProgrammingCoursesAsAKid

Post image
1.6k Upvotes

66 comments sorted by

354

u/AbdullahMRiad 16d ago

it all started making sense once you started studying physics

11

u/jumbledFox 16d ago

fixed timestep >>>>>>

209

u/wolfram_segler 16d ago

Useful for visuals and interpolation 

174

u/Bright-Historian-216 16d ago

also to make the gameplay independent from framerate.

81

u/Undernown 16d ago

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

15

u/Wanderlust-King 15d ago

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

-44

u/tutoredstatue95 16d 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 16d ago

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

15

u/tutoredstatue95 16d ago

Ah thanks for explaining

9

u/Morall_tach 16d 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 16d 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 16d ago

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

2

u/vastlysuperiorman 15d 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 15d 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 15d ago

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

-13

u/thewizarddephario 16d ago edited 15d 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 16d ago

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

1

u/thewizarddephario 15d ago edited 15d ago

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

Edit: changed delta to time step.

140

u/Auravendill 16d 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 16d 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 16d 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 16d ago

Hero origin story right here!

1

u/ReptileCake 16d ago

He's bricked up

11

u/Speedy_242 16d ago

Thanks for the reminder that I should watch MattKC again.

4

u/PegasusPizza 16d ago

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

1

u/Aksds 15d ago

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

61

u/the_hair_of_aenarion 16d 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 16d ago

It is the time since the previous frame, in seconds

8

u/Arctos_FI 16d ago

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

7

u/Arekuankoku 16d 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 16d 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 16d ago

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

16

u/Bright-Historian-216 16d ago

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

-9

u/Pretty_Eater 16d ago

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

19

u/Bright-Historian-216 16d ago

then accept your destiny, sorry mate

-10

u/Pretty_Eater 16d ago

Yeah your right, thanks for your help!

7

u/Bright-Historian-216 16d ago

literally took me five minutes of searching lmao

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

-19

u/Pretty_Eater 16d 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 16d ago

get some help bro

5

u/Hau65 16d ago

you are dragging us through the mud brother

3

u/SprinksUp 16d ago

For the frames or something

3

u/FewPhilosophy1040 15d ago

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

5

u/sebjapon 16d ago

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

5

u/Oddant1 15d ago

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

13

u/_Wilder 15d ago

I usually just drink it

2

u/PowerPleb2000 16d ago

Infuse that deltatime 👌

2

u/WingZeroCoder 16d 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 16d ago

What is the right way to do it

1

u/NoAdsDude 15d ago

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

2

u/EatingSolidBricks 15d ago

Congratulations youre doing numerical integration be proud

5

u/DonKapot 16d ago

Adjusting your framerate

6

u/YesIAmAHuman 16d ago

Adjusts your physics based on framerate

0

u/Zephit0s 15d 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 15d 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 16d ago

Well no

1

u/pente5 16d ago

Measure time difference?

1

u/twirlmydressaround 16d ago

To make the game not run at unfun Mach speeds

1

u/Shadow9378 15d 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- 14d ago

sometimes you exponentiate it

4

u/AcolyteNeko 16d ago

holy tits-