From 5c9aec9bd12989f0c5fe9fad2ca7be07196cdff5 Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Sun, 22 Jul 2018 01:22:13 -0500 Subject: [PATCH] Revert "Lower latency buffer to 10 items" This reverts commit 11c7f03244bf9265b4a1c7716b590cd4b41bac46. --- DS4Windows/DS4Library/DS4Device.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DS4Windows/DS4Library/DS4Device.cs b/DS4Windows/DS4Library/DS4Device.cs index 7054218..368de7c 100644 --- a/DS4Windows/DS4Library/DS4Device.cs +++ b/DS4Windows/DS4Library/DS4Device.cs @@ -717,7 +717,7 @@ namespace DS4Windows { firstActive = DateTime.UtcNow; NativeMethods.HidD_SetNumInputBuffers(hDevice.safeReadHandle.DangerousGetHandle(), 2); - Queue latencyQueue = new Queue(11); // Set capacity at max + 1 to avoid any resizing + Queue latencyQueue = new Queue(21); // Set capacity at max + 1 to avoid any resizing int tempLatencyCount = 0; long oldtime = 0; string currerror = string.Empty; @@ -746,7 +746,7 @@ namespace DS4Windows oldCharging = charging; currerror = string.Empty; - if (tempLatencyCount >= 10) + if (tempLatencyCount >= 20) { latencyQueue.Dequeue(); tempLatencyCount--;