mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-12-24 15:41:49 +01:00
Reduce latency queue capacity
This commit is contained in:
parent
13103ff7a8
commit
699436565c
@ -654,7 +654,7 @@ namespace DS4Windows
|
||||
{
|
||||
firstActive = DateTime.UtcNow;
|
||||
NativeMethods.HidD_SetNumInputBuffers(hDevice.safeReadHandle.DangerousGetHandle(), 2);
|
||||
Queue<long> latencyQueue = new Queue<long>(51); // Set capacity at max + 1 to avoid any resizing
|
||||
Queue<long> latencyQueue = new Queue<long>(31); // Set capacity at max + 1 to avoid any resizing
|
||||
int tempLatencyCount = 0;
|
||||
long oldtime = 0;
|
||||
string currerror = string.Empty;
|
||||
@ -676,7 +676,7 @@ namespace DS4Windows
|
||||
oldCharging = charging;
|
||||
currerror = string.Empty;
|
||||
|
||||
if (tempLatencyCount >= 50)
|
||||
if (tempLatencyCount >= 30)
|
||||
{
|
||||
latencyQueue.Dequeue();
|
||||
tempLatencyCount--;
|
||||
|
Loading…
Reference in New Issue
Block a user