Makar8000 / ACT-Discord-Triggers

An ACT plugin for routing audio to discord
50 stars 14 forks source link

ACT Discord Triggers Laggy #36

Closed ArkfrostLumas closed 5 years ago

ArkfrostLumas commented 5 years ago

Hello. I got an issue: For some reason the Discord Callouts are extremely laggy and/or delayed.

I am only using two plugins (besides the ffxiv act plugin): ACT Discord Triggers and Cactbot (which provides the triggers that are being called out). I also have noticed, that it doesn't matter, if it's cactbot-raidboss triggers or normal ACT triggers. Both are really choppy.

I've tried deleting my old ACT logs as well as changing my Discord Server location, but neither of those things helped. Do you have any advice?

Makar8000 commented 5 years ago

The only thing I can think of is that your connection on your PC is unstable. Do you normally use a VPN or anything?

ArkfrostLumas commented 5 years ago

Nope, I don't use any kind of VPN. I'm also living at a university campus with a 260 MBit/s connection and steady 6-12ms ping to the ffxiv servers :/

megaoka commented 5 years ago

Does the voice sound distorted? Or are the callouts just late? Does the parser run behind? What is your CPU Priority (Options > Miscellaneous > CPU Priority..) set to? What is your parse mode set to (Plugins > FFXIV Settings > Parse Mode)?

Does this only happen on campus?

ArkfrostLumas commented 5 years ago

It sometimes sounds choppy and the callouts are mostly very late. My parser is usually running smoothly. CPU priority is set to above normal. Parse Mode is set to Network. I only tried it on campus, because I live here and don't have FFXIV anywhere else.

Makar8000 commented 5 years ago

How long is the delay? Some delay (maybe up to a full second sometimes) is expected. When ACT normally fires a trigger, it can happen pretty much instantly. When you are using the discord plugin, it has to send the audio to discord and then discord has to send the audio to you which creates the noticeable delay of usually around 200-400ms. This is also why it's basically impossible to have a karaoke night in discord voice chat. 🙂

Also keep in mind that when you use a trigger for the first time on startup, there is some setup going on that makes the delay of the first trigger to be about 2-3 seconds. You can avoid this by running a test trigger (in the custom triggers tab) on startup.

ArkfrostLumas commented 5 years ago

The delay can vary between 1-5 seconds and it even happens, if I repeatedly spam the test button in ACT to test the sound output.

Makar8000 commented 5 years ago

Well, repeatedly spamming the test button causing delay/lag makes sense. The audio the plugin sends to discord gets sent synchronously in a queue. When a trigger happens while audio is being sent, it gets delayed until the first one finishes. Can you confirm if the big lag (5 seconds) happens even if you have a trigger that runs by itself and outside the initial setup?

Makar8000 commented 5 years ago

Closing due to no response... Feel free to make a comment and ill reopen,