static public void Update() { NetworkSocket.ReceiveData(); if (Environment.TickCount >= tcpTick + 1000) { if (!Common.Configuration.Disconnected) { NetworkSocket.DiscoverServer(NetworkSocketEnum.LoginServer); NetworkSocket.DiscoverServer(NetworkSocketEnum.WorldServer); NetworkSocket.DiscoverServer(NetworkSocketEnum.GameServer); } tcpTick = Environment.TickCount; } //ping if (GameState == 6) { if (Environment.TickCount >= pingTick + 1000) { CommonPacket.RequestPing(); pingTick = Environment.TickCount; } } if (Environment.TickCount >= tickFPS + 1000) { FPS = pFPS; pFPS = 0; tickFPS = Environment.TickCount; } else { pFPS++; } }