r/ProgrammerHumor • • Oct 23 '26

Meme iStillRememberTheFirstTimeDoingGameProgrammingCoursesAsAKid

Post image
1.6k Upvotes

66 comments sorted by

354

u/AbdullahMRiad Oct 23 '26

it all started making sense once you started studying physics

11

u/jumbledFox Oct 24 '26

fixed timestep >>>>>>

209

u/wolfram_segler Oct 23 '26

Useful for visuals and interpolation 

174

u/Bright-Historian-216 Oct 23 '26

also to make the gameplay independent from framerate.

81

u/Undernown Oct 23 '26

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

15

u/Wanderlust-King Oct 24 '26

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

-44

u/tutoredstatue95 Oct 23 '26

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 Oct 23 '26

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

15

u/tutoredstatue95 Oct 24 '26

Ah thanks for explaining

9

u/Morall_tach Oct 24 '26

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 Oct 24 '26

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 Oct 24 '26

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

2

u/vastlysuperiorman Oct 24 '26

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 Oct 24 '26

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 Oct 24 '26

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

-13

u/thewizarddephario Oct 24 '26 edited Oct 24 '26

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 Oct 24 '26

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

1

u/thewizarddephario Oct 24 '26 edited Oct 24 '26

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

Edit: changed delta to time step.

140

u/Auravendill Oct 23 '26

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 Oct 24 '26

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 Oct 24 '26

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 Oct 24 '26

Hero origin story right here!

1

u/ReptileCake Oct 24 '26

He's bricked up

11

u/Speedy_242 Oct 24 '26

Thanks for the reminder that I should watch MattKC again.

4

u/PegasusPizza Oct 24 '26

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

1

u/Aksds Oct 24 '26

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

61

u/the_hair_of_aenarion Oct 23 '26

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

/s for whoever needs it.

20

u/SeaNational3797 Oct 23 '26

It is the time since the previous frame, in seconds

8

u/Arctos_FI Oct 24 '26

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

7

u/Arekuankoku Oct 24 '26

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 Oct 24 '26

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 Oct 23 '26

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

16

u/Bright-Historian-216 Oct 23 '26

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

-9

u/Pretty_Eater Oct 23 '26

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

19

u/Bright-Historian-216 Oct 23 '26

then accept your destiny, sorry mate

-10

u/Pretty_Eater Oct 23 '26

Yeah your right, thanks for your help!

7

u/Bright-Historian-216 Oct 23 '26

literally took me five minutes of searching lmao

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

-19

u/Pretty_Eater Oct 23 '26

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 Oct 24 '26

get some help bro

5

u/Hau65 Oct 24 '26

you are dragging us through the mud brother

3

u/SprinksUp Oct 23 '26

For the frames or something

3

u/FewPhilosophy1040 Oct 24 '26

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

5

u/sebjapon Oct 24 '26

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

5

u/Oddant1 Oct 24 '26

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

13

u/_Wilder Oct 24 '26

I usually just drink it

2

u/PowerPleb2000 Oct 24 '26

Infuse that deltatime 👌

2

u/WingZeroCoder Oct 24 '26

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 Oct 24 '26

What is the right way to do it

1

u/NoAdsDude Oct 25 '26

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

2

u/EatingSolidBricks Oct 25 '26

Congratulations youre doing numerical integration be proud

5

u/DonKapot Oct 23 '26

Adjusting your framerate

6

u/YesIAmAHuman Oct 24 '26

Adjusts your physics based on framerate

0

u/Zephit0s Oct 25 '26

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 Oct 25 '26

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 Oct 23 '26

Well no

1

u/pente5 Oct 23 '26

Measure time difference?

1

u/twirlmydressaround Oct 24 '26

To make the game not run at unfun Mach speeds

1

u/Shadow9378 Oct 24 '26

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- Oct 26 '26

sometimes you exponentiate it