exmex / HC

Heroes Charge client and server
64 stars 76 forks source link

Proxy Emulator High CPU usage #2

Open exmex opened 6 years ago

exmex commented 6 years ago

Screenshot was taken while Proxy Emulator was idle.

lowkeywx commented 4 years ago

you need change this code in Main function. Main is in programs.cs while (true) { Thread.Sleep(50); }

lowkeywx commented 4 years ago

The server doesn't seem to be working properly

lowkeywx commented 4 years ago

I left out one piece of code. var bytesRead = _ns.EndRead(result); if (bytesRead == 0) { Thread.Sleep(10); //i add this code, modus vivendi _buffer = new byte[2048]; _ns.BeginRead(_buffer, 0, 2048, OnPacket, null); return; }