mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-12-26 16:41:50 +01:00
Minimize influence of stopwatch
This commit is contained in:
parent
8556b6ffdb
commit
a253daa95d
@ -660,7 +660,9 @@ namespace DS4Windows
|
||||
//outReportBuffer.CopyTo(outputReport, 0);
|
||||
if (outputPendCount > 0)
|
||||
outputPendCount--;
|
||||
standbySw.Restart();
|
||||
|
||||
if (outputPendCount == 0)
|
||||
standbySw.Restart();
|
||||
}
|
||||
|
||||
currentRumble = true;
|
||||
@ -1201,11 +1203,13 @@ namespace DS4Windows
|
||||
if (change)
|
||||
{
|
||||
outputPendCount = 3;
|
||||
standbySw.Reset();
|
||||
}
|
||||
else if (outputPendCount > 0)
|
||||
outputPendCount--;
|
||||
|
||||
standbySw.Restart();
|
||||
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