- add a silent ini setting in case the auto lag code needs to be turned off down the road: AutoClientLagCorrection=true (hard coded, add and set as false in ini if required, this onhly affects game hosts)

This commit is contained in:
Mark Vejvoda
2012-09-22 05:37:43 +00:00
parent c5907717f0
commit fd9c9856cf

View File

@@ -1135,7 +1135,9 @@ void ConnectionSlot::update(bool checkForNewClients,int lockedSlotIndex) {
}
}
//!!!
// This may end up continuously lagging and not disconnecting players who have
// just the 'wrong' amount of lag (but not enough to be horrible for a disconnect)
if(Config::getInstance().getBool("AutoClientLagCorrection","true") == true) {
double LAG_CHECK_GRACE_PERIOD = 15;
double maxFrameCountLagAllowed = 10;
double maxClientLagTimeAllowed = 8;
@@ -1160,6 +1162,7 @@ void ConnectionSlot::update(bool checkForNewClients,int lockedSlotIndex) {
}
}
}
}
if(waitedForLaggingClient == true) {
printf("*TESTING*: FINISHED Waiting for lagging client playerIndex = %d [%s]\n",playerIndex,name.c_str());