Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proxy Emulator High CPU usage #2

Open
exmex opened this issue Mar 24, 2018 · 3 comments
Open

Proxy Emulator High CPU usage #2

exmex opened this issue Mar 24, 2018 · 3 comments

Comments

@exmex
Copy link
Owner

exmex commented Mar 24, 2018

Screenshot was taken while Proxy Emulator was idle.

@lowkeywx
Copy link

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

@lowkeywx
Copy link

The server doesn't seem to be working properly

@lowkeywx
Copy link

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;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants