mirror of
https://github.com/glest/glest-source.git
synced 2025-08-29 10:49:48 +02:00
- 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:
@@ -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 LAG_CHECK_GRACE_PERIOD = 15;
|
||||||
double maxFrameCountLagAllowed = 10;
|
double maxFrameCountLagAllowed = 10;
|
||||||
double maxClientLagTimeAllowed = 8;
|
double maxClientLagTimeAllowed = 8;
|
||||||
@@ -1160,6 +1162,7 @@ void ConnectionSlot::update(bool checkForNewClients,int lockedSlotIndex) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if(waitedForLaggingClient == true) {
|
if(waitedForLaggingClient == true) {
|
||||||
printf("*TESTING*: FINISHED Waiting for lagging client playerIndex = %d [%s]\n",playerIndex,name.c_str());
|
printf("*TESTING*: FINISHED Waiting for lagging client playerIndex = %d [%s]\n",playerIndex,name.c_str());
|
||||||
|
Reference in New Issue
Block a user