mirror of
https://github.com/moonlight-stream/GS-IPv6-Forwarder.git
synced 2026-06-18 22:40:54 +00:00
Increase priority class to high to ensure we aren't starved by games
This commit is contained in:
@@ -564,6 +564,9 @@ int Run(void)
|
|||||||
HANDLE ifaceChangeHandle;
|
HANDLE ifaceChangeHandle;
|
||||||
NotifyIpInterfaceChange(AF_INET6, IpInterfaceChangeNotificationCallback, ifaceChangeEvent, false, &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++) {
|
for (int i = 0; i < ARRAYSIZE(TCP_PORTS); i++) {
|
||||||
err = StartTcpRelay(TCP_PORTS[i]);
|
err = StartTcpRelay(TCP_PORTS[i]);
|
||||||
if (err != 0) {
|
if (err != 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user