mirror of
https://github.com/moonlight-stream/GS-IPv6-Forwarder.git
synced 2025-07-03 00:05:29 +00:00
Increase priority class to high to ensure we aren't starved by games
This commit is contained in:
parent
aec480f8cd
commit
4364f98733
@ -564,6 +564,9 @@ int Run(void)
|
||||
HANDLE ifaceChangeHandle;
|
||||
NotifyIpInterfaceChange(AF_INET6, IpInterfaceChangeNotificationCallback, ifaceChangeEvent, false, &ifaceChangeHandle);
|
||||
|
||||
// Ensure we get adequate CPU time even when the PC is heavily loaded
|
||||
SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_CLASS);
|
||||
|
||||
for (int i = 0; i < ARRAYSIZE(TCP_PORTS); i++) {
|
||||
err = StartTcpRelay(TCP_PORTS[i]);
|
||||
if (err != 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user