Minimize influence of stopwatch

This commit is contained in:
Travis Nickles 2019-01-09 19:30:05 -06:00
parent 8556b6ffdb
commit a253daa95d

View File

@ -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);