this post was submitted on 15 Jun 2023
73 points (100.0% liked)
Gaming
30540 readers
213 users here now
From video gaming to card games and stuff in between, if it's gaming you can probably discuss it here!
Please Note: Gaming memes are permitted to be posted on Meme Mondays, but will otherwise be removed in an effort to allow other discussions to take place.
See also Gaming's sister community Tabletop Gaming.
This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I imagine there is some reason we still see this. Any devs in the Industry lurking?
I'm not in the industry, but I've dabbled in Unity and that's just kind of how it works by default. You create a game object and it gets an Update() function that is called once per frame. You're encouraged to perform calculations and update it's position in that callback.
You're supposed to use
Time.deltaTime
to scale your calculations based on how long it's been since the last frame.But that takes effort and it's very easy to just not do that and your game will still work fine in most cases.
Unity also has FixedUpdate which is encouraged to be used for any physics related updates.