69
submitted 1 year ago by vpsxhtus@lemm.ee to c/gaming@beehaw.org

I recently tried to play Wolfenstein New Order, I realized that unlocking the framerate makes the game break. why? (sorry for bad english)

you are viewing a single comment's thread
view the rest of the comments
[-] nekusoul@lemmy.nekusoul.de 6 points 1 year ago* (last edited 1 year ago)

A big problem with an unlocked framerate is the physics system, which you can generally solve in two ways:

  1. You tie the physics to the framerate. Problem is that this introduces all sorts of weird behavior, caused by rounding errors and frequency of collision checks. For example, objects could start glitching through thin walls if their framerate is low because collisions are checked less often.
  2. You run the physics at a fixed internal interval. This solves a lot of problem with the first approach, but also means that you have to put in effort to mask the fixed framerate through interpolation/extrapolation if you still want to keep the actual framerate unlocked.

So Wolfenstein New Order probably went with the first approach, made sure their physics system stays stable within a certain FPS range (30-60), and then locked the FPS beyond that.

this post was submitted on 16 Jul 2023
69 points (100.0% liked)

Gaming

30617 readers
267 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