mirror of
https://github.com/glest/glest-source.git
synced 2025-08-28 10:19:55 +02:00
- updated warnhing message condition to also check LAG time in addition to lag count
This commit is contained in:
@@ -263,8 +263,10 @@ bool ServerInterface::clientLagCheck(ConnectionSlot* connectionSlot) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// New lag check warning
|
// New lag check warning
|
||||||
else if(maxFrameCountLagAllowed > 0 && warnFrameCountLagPercent > 0 &&
|
else if((maxFrameCountLagAllowed > 0 && warnFrameCountLagPercent > 0 &&
|
||||||
(clientLagCount > (maxFrameCountLagAllowed * warnFrameCountLagPercent))) {
|
clientLagCount > (maxFrameCountLagAllowed * warnFrameCountLagPercent)) ||
|
||||||
|
(maxClientLagTimeAllowed > 0 && warnFrameCountLagPercent > 0 &&
|
||||||
|
clientLagTime > (maxClientLagTimeAllowed * warnFrameCountLagPercent)) ) {
|
||||||
if(connectionSlot->getLagCountWarning() == false) {
|
if(connectionSlot->getLagCountWarning() == false) {
|
||||||
connectionSlot->setLagCountWarning(true);
|
connectionSlot->setLagCountWarning(true);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user