Browse Source

Increase VoiceWebSocket.spinLockThreshold to 3ms.

tags/docs-0.9
RogueException 9 years ago
parent
commit
04021bc2e6
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net/WebSockets/Voice/VoiceWebSocket.cs

+ 1
- 1
src/Discord.Net/WebSockets/Voice/VoiceWebSocket.cs 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();



Loading…
Cancel
Save