Merge pull request #1594 from LukeUsher/prevent-nvnet-hogging-cpu

Prevent NVNet hogging cpu
This commit is contained in:
Luke Usher 2019-05-01 08:19:08 +01:00 committed by GitHub
commit 81741f3706
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -486,7 +486,8 @@ static void NVNetRecvThreadProc(NvNetState_t *s)
int size = g_NVNet->PCAPReceive(packet, 65536); int size = g_NVNet->PCAPReceive(packet, 65536);
if (size > 0) { if (size > 0) {
EmuNVNet_DMAPacketToGuest(packet, size); EmuNVNet_DMAPacketToGuest(packet, size);
} }
Sleep(1);
} }
} }