I'm working an making a game in SFML right now, but I am getting stuck on movement without a framerate limit. Right now the only way I have figured out how to get consistent framerate on all computers is by using
window.setFramerateLimit(30);
I want to find a way to not have a framerate cap so it does look better on better computers and so that if anybody has a really slow computer, they can still play the game. What would be the best way to do this.
sf::Time deltaTime
(which is the time since the last frame) to each update function, and adjust your movement distances by this delta time. – Dunfermline