Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Toggle Mic has a noticeable delay #60

Open
3 tasks done
Damglador opened this issue Feb 8, 2025 · 5 comments
Open
3 tasks done

[Bug] Toggle Mic has a noticeable delay #60

Damglador opened this issue Feb 8, 2025 · 5 comments
Labels
bug Something isn't working

Comments

@Damglador
Copy link

Damglador commented Feb 8, 2025

Discord Account

damglador

Operating System

Arcch Linux

Linux Only ~ Desktop Environment

Plasma 6.2.5 Wayland

Package Type

AUR

What happens when the bug or crash occurs?

Sending equibop --toggle-mic from a terminal, or using Plasma global hotkeys, toggles microphone with a ~1 second delay.

For clarity, the dalay is between when the command is ran and when it exits, toggling the mic, not after it exits.

What is the expected behaviour?

For delay to be at least a bit smaller

How do you recreate this bug or crash?

  1. Launch Equibop
  2. Do equibop --toggle-mic in a terminal
  3. Wait for mic to toggle

Debug Logs

┌─[damglador@Parasite][~]
└$ equibop
APPIMAGE env is not defined, current application is not an AppImage
Equibop v2.1.2
checkForUpdatesAndNotify called, downloadPromise is null
(node:98313) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [WebContents]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit
(Use `electron --trace-warnings ...` to show where the warning was created)
[arRPC > ipc] listening at /run/user/1000/discord-ipc-0
[arRPC > websocket] listening on 6463
[arRPC > process] started

Request Agreement

  • I have searched the existing issues and found no similar issue
  • I am using the latest Equibop and Equicord versions
  • This issue occurs on an official release (not just the AUR or Nix unofficial packages)
@Damglador Damglador added the bug Something isn't working label Feb 8, 2025
@Damglador
Copy link
Author

Damglador commented Feb 8, 2025

echo "VCD_TOGGLE_SELF_MUTE" >> $XDG_RUNTIME_DIR/vesktop-ipc does this instantly, I would even say a bit faster than the official client (maybe placebo, idk)

@refurbishing
Copy link
Member

refurbishing commented Feb 9, 2025

you're completely right.. the first implementation was fast but it didn't worked on flatpak i was supposed to improve the speed but never did, but now that the option is now handled internally in flatpak i'll see what i can do about it but it's not planned

@refurbishing
Copy link
Member

refurbishing commented Feb 24, 2025

echo "VCD_TOGGLE_SELF_MUTE" >> $XDG_RUNTIME_DIR/vesktop-ipc does this instantly, I would even say a bit faster than the official client (maybe placebo, idk)

may you try to see if now with 38f802f2 now atleast some of the speed might be improved?

as for me i saw a 40% increase of speed

@Damglador
Copy link
Author

Damglador commented Feb 25, 2025

There's another issue I've found, but forgot to mention. Passing a wrong parameter bricks the toggle mute.

┌─[damglador@Parasite][~]
└₴ equibop --toogle-mute
APPIMAGE env is not defined, current application is not an AppImage
Equibop v2.1.2
Equibop is already running. Quitting...
checkForUpdatesAndNotify called, downloadPromise is null
┌─[damglador@Parasite][~]
└₴ --toggle-mic <--- this one didn't work, and another three after it, completely restarting the app fixes it

I've installed equibop-git (it also doesn't show 108% on loading progress, nice), then tested it on equibop-bin again, it's roughly the same.

@Damglador
Copy link
Author

Damglador commented Feb 25, 2025

I was able to measure the time using time, it varies from launch to launch.

equibop-git:

┌─[damglador@Parasite][~]
└₴ time equibop --toggle-mic

real    0m0,421s
user    0m0,313s
sys     0m0,089s
┌─[damglador@Parasite][~]
└₴ time equibop --toggle-mic

real    0m0,447s
user    0m0,326s
sys     0m0,110s
┌─[damglador@Parasite][~]
└₴ time equibop --toggle-mic

real    0m0,479s
user    0m0,337s
sys     0m0,119s
┌─[damglador@Parasite][~]
└₴ time equibop --toggle-mic

real    0m0,436s
user    0m0,311s
sys     0m0,104s
┌─[damglador@Parasite][~]
└₴ time equibop --toggle-mic

real    0m0,410s
user    0m0,305s
sys     0m0,097s
┌─[damglador@Parasite][~]
└₴ time equibop --toggle-mic

real    0m0,419s
user    0m0,311s
sys     0m0,099s
┌─[damglador@Parasite][~]
└₴ time equibop --toggle-mic

real    0m0,416s
user    0m0,294s
sys     0m0,106s
┌─[damglador@Parasite][~]
└₴ time equibop --toggle-mic

real    0m0,412s
user    0m0,301s
sys     0m0,104s


equibop-bin:

┌─[damglador@Parasite][~]
└₴ time equibop --toggle-mic

real    0m0,380s
user    0m0,266s
sys     0m0,094s
┌─[damglador@Parasite][~]
└₴ time equibop --toggle-mic

real    0m0,420s
user    0m0,293s
sys     0m0,095s
┌─[damglador@Parasite][~]
└₴ time equibop --toggle-mic

real    0m0,435s
user    0m0,302s
sys     0m0,107s
┌─[damglador@Parasite][~]
└₴ time equibop --toggle-mic

real    0m0,441s
user    0m0,321s
sys     0m0,105s
┌─[damglador@Parasite][~]
└₴ time equibop --toggle-mic

real    0m0,445s
user    0m0,312s
sys     0m0,117s
┌─[damglador@Parasite][~]
└₴ time equibop --toggle-mic

real    0m0,464s
user    0m0,326s
sys     0m0,117s
┌─[damglador@Parasite][~]
└₴ time equibop --toggle-mic

real    0m0,447s
user    0m0,320s
sys     0m0,105s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants