I'm having a problem with stutters during interpolation. Depending on what I'm doing it can happen every 10+ seconds, other times it will happen every few seconds, or more frequent.
I noticed when I use a view and move it the same thing will happen but more often.
In my sample code I have one sprite and background with interpolation, but the stutter will happen.
Now I'm wondering if this is an error in my code which I don't see, or is SFML clock causing an issue between frames which is causing a hiccup? It's not as noticeable with just a tiny sprite, but when you're drawing tiles and using a view for a camera the hiccup is every few seconds.
At the start of my Logic for Input I set the Prev Pos to the Current, then once in the Draw part I interpolate like so:
interpolation = float(mainClock.getElapsedTime().asMilliseconds() + skipTicks - nextTick) / float(skipTicks);
mySpritePositionDraw = mySpritePositionPrior + (interpolation * (mySpritePosition - mySpritePositionPrior));
mySprite.setPosition(sf::Vector2f(mySpritePositionDraw));
mainWindow.draw(mySprite);
Problem Fixed - was Joystick polling from SFML 2.4.2