Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Laggy fixed time step loop  (Read 8203 times)

0 Members and 1 Guest are viewing this topic.

Hapax

  • Hero Member
  • *****
  • Posts: 3379
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: Laggy fixed time step loop
« Reply #15 on: June 08, 2016, 01:31:42 am »
Here is the video I mentioned earlier:


The video was originally going to be 60 FPS but ended up not being so.

You can notice the stuttering at 0:29 - 0:33. This is with timestep of 60 FPS without interpolation. Notice that when the interpolation is activated, this stuttering never occurs. You can see when interpolation or extrapolation is enabled/disabled and which size timestep is currently in use by looking at the window's title bar.
You may also notice that when the timestep is at 5 FPS, using interpolation makes the movement just as smooth as with 60 FPS timestep; the only difference (in this case) is that the circle must move in larger amounts without stopping (the amount it moves without interpolation).

I'm not sure if this is the exact problem you're having but I hope it helps!
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

filipekczek7

  • Guest
Re: Laggy fixed time step loop
« Reply #16 on: June 11, 2016, 05:11:07 pm »
Sorry for not replying, but I didn't know that there's second page :)

Wow, 5 FPS movement with interpolation looks like 60 FPS. Very nice example. I'm sure that I'm gonna learn more about this interpolation, it improves movement very much.

 

anything