mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-11-26 11:04:21 +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);
|
//outReportBuffer.CopyTo(outputReport, 0);
|
||||||
if (outputPendCount > 0)
|
if (outputPendCount > 0)
|
||||||
outputPendCount--;
|
outputPendCount--;
|
||||||
|
|
||||||
|
if (outputPendCount == 0)
|
||||||
standbySw.Restart();
|
standbySw.Restart();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1201,10 +1203,12 @@ namespace DS4Windows
|
|||||||
if (change)
|
if (change)
|
||||||
{
|
{
|
||||||
outputPendCount = 3;
|
outputPendCount = 3;
|
||||||
|
standbySw.Reset();
|
||||||
}
|
}
|
||||||
else if (outputPendCount > 0)
|
else if (outputPendCount > 0)
|
||||||
outputPendCount--;
|
outputPendCount--;
|
||||||
|
|
||||||
|
if (outputPendCount == 0)
|
||||||
standbySw.Restart();
|
standbySw.Restart();
|
||||||
|
|
||||||
if (usingBT)
|
if (usingBT)
|
||||||
@ -1244,6 +1248,7 @@ namespace DS4Windows
|
|||||||
if (change)
|
if (change)
|
||||||
{
|
{
|
||||||
outputPendCount = 3;
|
outputPendCount = 3;
|
||||||
|
standbySw.Reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
Monitor.Pulse(outReportBuffer);
|
Monitor.Pulse(outReportBuffer);
|
||||||
|
Loading…
Reference in New Issue
Block a user