mirror of
https://github.com/moonlight-stream/Internet-Hosting-Tool.git
synced 2026-06-20 15:41:16 +00:00
Elevate priorities for the UDP relay threads
This commit is contained in:
@@ -21,6 +21,9 @@ UdpRelayThreadProc(LPVOID Context)
|
||||
PUDP_TUPLE tuple = (PUDP_TUPLE)Context;
|
||||
SOCKADDR_IN lastRemoteAddr;
|
||||
|
||||
// Ensure the relay threads aren't preempted by games or other CPU intensive activity
|
||||
SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_HIGHEST);
|
||||
|
||||
RtlZeroMemory(&lastRemoteAddr, sizeof(lastRemoteAddr));
|
||||
|
||||
for (;;) {
|
||||
|
||||
Reference in New Issue
Block a user