- #Lag when screen sharing discord how to
- #Lag when screen sharing discord drivers
- #Lag when screen sharing discord update
Note that the PR above only reduces some of the boilerplate code you'd otherwise have to write - you do not have to wait for the PR to be merged to start using the new voice library. By using the boilerplate music player in the example, you can make it even easier to upgrade your code.
![lag when screen sharing discord lag when screen sharing discord](https://static.allofordesktop.com/750x0_thegeekpage.com/wp-content/uploads/2021/07/Power-Options-min.png)
#Lag when screen sharing discord how to
You can still use our new voice library before that PR lands - just take a look at our music bot example to see how to get started upgrading your voice code. We have a PR ( #5402) that adds native support for our new voice library - once this PR is merged, this issue will be closed. The new library solves many of the issues that users are facing, and as part of this, we're dropping built-in support for voice in our next major release. We're working on a new implementation of Discord's Voice API that has better playback quality and is more reliable than what we currently support in Discord.js v12 - check it out at ! However, there seems to be no limit to the lag, it keeps increasing indefinitely thus probably not just building up a set number of cached packets. I mention this because a low value means less cached opus packets or something like that, which would help the latency. Note: highWaterMark does not actually let me set "1", it tells me that any value below 12 is too low.
#Lag when screen sharing discord drivers
The GPU usually handles image processing in a computer, so having the best drivers available is important. It could be any of the causes listed above, but screen share lag is sometimes also caused due to bad audio or graphics drivers. Priority this issue should have – please be realistic and elaborate if possible: Discord screen share is affected by a lot of things.play ( stream, ) // start audio capturing ai. pipe ( stream ) // the transform stream into the discord voice channel const dispatcher = connection.
![lag when screen sharing discord lag when screen sharing discord](https://helpdeskgeek.com/wp-content/pictures/2021/06/Featured-How-to-Fix-Lag-Issues-in-Discord.jpg)
pipe the audio input into the transform stream and ai. (full code is part of the git repo above) The latency is actually worse in v12 than the discord-ambience-bot on v11 after 6 hours v11 was only up to about 15 seconds while v12 was far past 20 seconds of latency. Which reference latency issues with a bad voice implementation in v11.
#Lag when screen sharing discord update
Main test program: using the v12 api, updated by myself from which uses the v11 api (thinking that the v11->v12 update would fix the latency, but it didnt)įurther background: I updated the discord-ambience-bot to the v12 api after reading both #2461 and Include a reproducible code sample here, if possible: Using 12.5.1 (latest stable), latency from streaming live audio becomes progressively worse it begins at a fairly great 0.1 seconds before reaching over 20 seconds after about 6 hours of streaming. Please describe the problem you are having in as much detail as possible: