1
General / Re: Weird behaviour when moving window
« on: February 28, 2015, 04:26:31 pm »
Sorry for refreshing, but i think i found better solution for this problem.
Just exclude events handling time in your delta. No need for fixed time step.
Just exclude events handling time in your delta. No need for fixed time step.
sf::Clock Clock;
float Time = 0;
while (Window.isOpen())
{
handleEvents();
Clock.restart();
updateGame(Time);
render();
Time = Clock.getElapsedTime().asSeconds();
}
float Time = 0;
while (Window.isOpen())
{
handleEvents();
Clock.restart();
updateGame(Time);
render();
Time = Clock.getElapsedTime().asSeconds();
}