mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-12-24 23:51:49 +01:00
Changed thread affinity of UdpServer instance
This commit is contained in:
parent
70a4cd8989
commit
b92156f57d
@ -135,7 +135,7 @@ namespace DS4Windows
|
|||||||
{
|
{
|
||||||
//sp.Stream = Properties.Resources.EE;
|
//sp.Stream = Properties.Resources.EE;
|
||||||
// Cause thread affinity to not be tied to main GUI thread
|
// Cause thread affinity to not be tied to main GUI thread
|
||||||
tempThread = new Thread(() => { x360Bus = new X360Device(); });
|
tempThread = new Thread(() => { x360Bus = new X360Device(); _udpServer = new UdpServer(GetPadDetailForIdx); });
|
||||||
tempThread.Priority = ThreadPriority.AboveNormal;
|
tempThread.Priority = ThreadPriority.AboveNormal;
|
||||||
tempThread.IsBackground = true;
|
tempThread.IsBackground = true;
|
||||||
tempThread.Start();
|
tempThread.Start();
|
||||||
@ -153,8 +153,6 @@ namespace DS4Windows
|
|||||||
PreviousState[i] = new DS4State();
|
PreviousState[i] = new DS4State();
|
||||||
ExposedState[i] = new DS4StateExposed(CurrentState[i]);
|
ExposedState[i] = new DS4StateExposed(CurrentState[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
_udpServer = new UdpServer(GetPadDetailForIdx);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void WarnExclusiveModeFailure(DS4Device device)
|
private void WarnExclusiveModeFailure(DS4Device device)
|
||||||
|
Loading…
Reference in New Issue
Block a user