lets try (again) if this makes things less choppy
This commit is contained in:
parent
44a498958c
commit
b6b0e989da
|
@ -1742,10 +1742,10 @@ void Game::update() {
|
||||||
updateLoops += frameDifference;
|
updateLoops += frameDifference;
|
||||||
}
|
}
|
||||||
// //If client is ahead maybe this fixes it ( by titi ):
|
// //If client is ahead maybe this fixes it ( by titi ):
|
||||||
// if(lastNetworkFrameFromServer > 0 && world.getFrameCount() > lastNetworkFrameFromServer && (world.getFrameCount()%gameSettings.getNetworkFramePeriod())==19 ){
|
if(lastNetworkFrameFromServer > 0 && world.getFrameCount() > lastNetworkFrameFromServer && (world.getFrameCount()%gameSettings.getNetworkFramePeriod())==19 ){
|
||||||
// printf("Client will slow down because no message has arrived yet. currentFrame=%d \n",world.getFrameCount());
|
printf("Client will slow down because no message has arrived yet. currentFrame=%d \n",world.getFrameCount());
|
||||||
// updateLoops = 0;
|
updateLoops = 0;
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user