Increase VoiceWebSocket.spinLockThreshold to 3ms.

This commit is contained in:
RogueException
2015-10-17 03:17:40 -03:00
parent 4aefd190f7
commit 04021bc2e6

View File

@@ -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();