mirror of
https://github.com/glest/glest-source.git
synced 2025-08-27 09:54:26 +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
|
||||
else if(maxFrameCountLagAllowed > 0 && warnFrameCountLagPercent > 0 &&
|
||||
(clientLagCount > (maxFrameCountLagAllowed * warnFrameCountLagPercent))) {
|
||||
else if((maxFrameCountLagAllowed > 0 && warnFrameCountLagPercent > 0 &&
|
||||
clientLagCount > (maxFrameCountLagAllowed * warnFrameCountLagPercent)) ||
|
||||
(maxClientLagTimeAllowed > 0 && warnFrameCountLagPercent > 0 &&
|
||||
clientLagTime > (maxClientLagTimeAllowed * warnFrameCountLagPercent)) ) {
|
||||
if(connectionSlot->getLagCountWarning() == false) {
|
||||
connectionSlot->setLagCountWarning(true);
|
||||
|
||||
|
Reference in New Issue
Block a user