- try to get threaded client working without lag

This commit is contained in:
Mark Vejvoda
2013-03-02 02:35:53 +00:00
parent 019c7edcc7
commit 951cd33ef4
2 changed files with 11 additions and 3 deletions

View File

@@ -198,10 +198,16 @@ void ClientInterface::update() {
networkMessageCommandList.getCommandCount() > 0 ||
(lastNetworkCommandListSendTime > 0 && lastSendElapsed >= ClientInterface::maxNetworkCommandListSendTimeWait)) {
lastNetworkCommandListSendTime = time(NULL);
//printf("#1 Client send currentFrameCount = %d\n",currentFrameCount );
sendMessage(&networkMessageCommandList);
if(SystemFlags::getSystemSettingType(SystemFlags::debugPerformance).enabled && chrono.getMillis() > 1) SystemFlags::OutputDebug(SystemFlags::debugPerformance,"In [%s::%s Line: %d] took %lld msecs\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chrono.getMillis());
}
else {
//printf("#2 SKIP Client send currentFrameCount = %d\n",currentFrameCount );
}
// Possible cause of out of synch since we have more commands that need
// to be sent in this frame