mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-11-29 20:44:20 +01:00
Minimize influence of stopwatch
This commit is contained in:
parent
8556b6ffdb
commit
a253daa95d
@ -660,6 +660,8 @@ namespace DS4Windows
|
||||
//outReportBuffer.CopyTo(outputReport, 0);
|
||||
if (outputPendCount > 0)
|
||||
outputPendCount--;
|
||||
|
||||
if (outputPendCount == 0)
|
||||
standbySw.Restart();
|
||||
}
|
||||
|
||||
@ -1201,10 +1203,12 @@ namespace DS4Windows
|
||||
if (change)
|
||||
{
|
||||
outputPendCount = 3;
|
||||
standbySw.Reset();
|
||||
}
|
||||
else if (outputPendCount > 0)
|
||||
outputPendCount--;
|
||||
|
||||
if (outputPendCount == 0)
|
||||
standbySw.Restart();
|
||||
|
||||
if (usingBT)
|
||||
@ -1244,6 +1248,7 @@ namespace DS4Windows
|
||||
if (change)
|
||||
{
|
||||
outputPendCount = 3;
|
||||
standbySw.Reset();
|
||||
}
|
||||
|
||||
Monitor.Pulse(outReportBuffer);
|
||||
|
Loading…
Reference in New Issue
Block a user