Skip to main content
GameDev.net gamedev.net

PRO Tired of ads? Read GameDev.net ad-free and help keep the community independent with GameDev Pro — $3/month.

SFML 2.4.2 Stutter Issue

SFML 2.4.2 Stutter Issue

Rutin
Rutin's Dev Blog · · 1 min read
2,204 4

I just spent a few hours attempting to figure out why my views were moving so choppy despite having a fixed time step and interpolation. When I was working on my Pac-Man challenge I knew this issue was present and to be honest I just left it alone because it was a small project. I've come from using many libraries and frameworks, but SFML is something I picked up at version 2.4.2 in 2017 and I've been banging my head about this issue for over a year now.

I turns out the cause of the problem was joystick polling. I first thought the SFML clock was having issues causing the initial problem, but when I updated to SFML 2.5.0 the problem went away. I know I could've just commented it out in the SFML source code, but to be honest I spent more time double guessing my code and not SFML. I'm glad I'm no longer worrying about this as I was about to just download SDL2 and move over.

If you're still using an older version of SFML get 2.5.0 !

https://www.sfml-dev.org/index.php

https://www.sfml-dev.org/changelog.php#sfml-2.5.0

Bugfixes

Back to work on my challenge!


Discussion

Loading comments...