Hello.
I read the sfml game development book.
I amcurrently at the time step chapter.
void run()
{
renderWindow = new RenderWindow(sf::VideoMode(800, 600), "Test", sf::Style::Default);
// renderWindow.setFramerateLimit(60); //
// renderWindow.setVerticalSyncEnabled(true); //
sf::Clock deltaTime;
while(renderWindow.isOpen())
{
sf::Event events;
while(renderWindow.pollEvent(events))
{
handleEvents(events);
}
update(deltaTime.restart());
render(renderWindow);
}
}
What going different, if I set the frame rate Limit oder/and ther cSynchr ?
Whats the best Time Step method ?