Actually reduced cpu usage by 30%
This commit is contained in:
@@ -123,13 +123,11 @@ namespace ErgometerDoctorApplication
|
|||||||
{
|
{
|
||||||
while (running)
|
while (running)
|
||||||
{
|
{
|
||||||
if (loggedin && Server.Connected && Server.Available > 0)
|
if (loggedin && Server.Connected)
|
||||||
{
|
{
|
||||||
NetCommand command = NetHelper.ReadNetCommand(Server);
|
NetCommand command = NetHelper.ReadNetCommand(Server);
|
||||||
HandleNetCommand(command);
|
HandleNetCommand(command);
|
||||||
}
|
}
|
||||||
|
|
||||||
Thread.Sleep(10);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(Server != null)
|
if(Server != null)
|
||||||
|
|||||||
Reference in New Issue
Block a user