SFML 2.4.2 Stutter Issue
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
- [Windows] Replaced time-based joystick poll with a hardware event handler (#1179, #1195, #1198, #1199, #1421)
Back to work on my challenge!
Discussion