From 04021bc2e6b6e177959493bab85b3209e9c1f6c4 Mon Sep 17 00:00:00 2001 From: RogueException Date: Sat, 17 Oct 2015 03:17:40 -0300 Subject: [PATCH] Increase VoiceWebSocket.spinLockThreshold to 3ms. --- src/Discord.Net/WebSockets/Voice/VoiceWebSocket.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Discord.Net/WebSockets/Voice/VoiceWebSocket.cs b/src/Discord.Net/WebSockets/Voice/VoiceWebSocket.cs index 6156e84d8..7cf66e859 100644 --- a/src/Discord.Net/WebSockets/Voice/VoiceWebSocket.cs +++ b/src/Discord.Net/WebSockets/Voice/VoiceWebSocket.cs @@ -351,7 +351,7 @@ namespace Discord.WebSockets.Voice double nextTicks = 0.0; double ticksPerMillisecond = Stopwatch.Frequency / 1000.0; double ticksPerFrame = ticksPerMillisecond * _encoder.FrameLength; - double spinLockThreshold = 1.5 * ticksPerMillisecond; + double spinLockThreshold = 3 * ticksPerMillisecond; uint samplesPerFrame = (uint)_encoder.SamplesPerFrame; Stopwatch sw = Stopwatch.StartNew();