Improve Frame Skip (Turbo Bug) #287

Closed
Ghabry opened this Issue Jul 1, 2014 · 2 comments

Projects

None yet

3 participants

@Ghabry
Member
Ghabry commented Jul 1, 2014

When the FPS drop below 60 the player character movement is not smooth anymore but "jumps"

@fdelapena
Member

Here is the Lazy Foo's Frame Independent Movement tutorial:
http://lazyfoo.net/tutorials/SDL/44_frame_independent_movement/index.php

@fdelapena fdelapena added this to the 0.3 milestone Mar 18, 2015
@Ghabry Ghabry was assigned by fdelapena Mar 26, 2015
@Ghabry Ghabry added a commit that closed this issue Mar 26, 2015
@Ghabry Ghabry Improve frame skipping code. Fixes #287
The new code takes into account that the non-graphic updates take some time, too and only when there is time in the current frame left the graphic is rendered. The game logic always runs at 60 updates per sec.
0cc8e7d
@Ghabry Ghabry closed this in 0cc8e7d Mar 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment