mirror of
https://github.com/glest/glest-source.git
synced 2025-09-28 00:19:00 +02:00
- attempt to add a client LAG checker to notify and disconnect clients that fall too far behind.
This commit is contained in:
@@ -37,6 +37,7 @@ private:
|
||||
int gameSettingsUpdateCount;
|
||||
SwitchSetupRequest* switchSetupRequests[GameConstants::maxPlayers];
|
||||
Mutex serverSynchAccessor;
|
||||
int currentFrameCount;
|
||||
|
||||
//ConnectionSlotThread* slotThreads[GameConstants::maxPlayers];
|
||||
|
||||
@@ -78,6 +79,8 @@ public:
|
||||
|
||||
virtual void slotUpdateTask(ConnectionSlotEvent *event);
|
||||
bool hasClientConnection();
|
||||
int getCurrentFrameCount() const { return currentFrameCount; }
|
||||
bool clientLagCheck(ConnectionSlot* connectionSlot);
|
||||
|
||||
public:
|
||||
|
||||
|
Reference in New Issue
Block a user