Original Post
When you move the game window around for a while, delta time gets really high and then the game characters move too much and gets stuck sometimes.
How do you fix this?
this is the game loop
while(!Window.IsClosed())
{
if(PeekMessage(&Msg, NULL, 0, 0, PM_REMOVE))
{
TranslateMessage(&Msg);
DispatchMessage(&Msg);
}
else if(Window.IsVisible())
{
CalculateFps();
if(!Game.Process(Timer.GetTime(), DeltaTime))
break;
Window.Swap();
}
else
{
CalculateFps();
WaitMessage();
}
}