mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-11-26 11:04:21 +01:00
Revert "Lower latency buffer to 10 items"
This reverts commit 11c7f03244
.
This commit is contained in:
parent
e04799db1a
commit
5c9aec9bd1
@ -717,7 +717,7 @@ namespace DS4Windows
|
|||||||
{
|
{
|
||||||
firstActive = DateTime.UtcNow;
|
firstActive = DateTime.UtcNow;
|
||||||
NativeMethods.HidD_SetNumInputBuffers(hDevice.safeReadHandle.DangerousGetHandle(), 2);
|
NativeMethods.HidD_SetNumInputBuffers(hDevice.safeReadHandle.DangerousGetHandle(), 2);
|
||||||
Queue<long> latencyQueue = new Queue<long>(11); // Set capacity at max + 1 to avoid any resizing
|
Queue<long> latencyQueue = new Queue<long>(21); // Set capacity at max + 1 to avoid any resizing
|
||||||
int tempLatencyCount = 0;
|
int tempLatencyCount = 0;
|
||||||
long oldtime = 0;
|
long oldtime = 0;
|
||||||
string currerror = string.Empty;
|
string currerror = string.Empty;
|
||||||
@ -746,7 +746,7 @@ namespace DS4Windows
|
|||||||
oldCharging = charging;
|
oldCharging = charging;
|
||||||
currerror = string.Empty;
|
currerror = string.Empty;
|
||||||
|
|
||||||
if (tempLatencyCount >= 10)
|
if (tempLatencyCount >= 20)
|
||||||
{
|
{
|
||||||
latencyQueue.Dequeue();
|
latencyQueue.Dequeue();
|
||||||
tempLatencyCount--;
|
tempLatencyCount--;
|
||||||
|
Loading…
Reference in New Issue
Block a user