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

fix(voip/mumble): Voice cracking on high load #2744

Merged
merged 1 commit into from
Oct 3, 2024

Conversation

Ktos93
Copy link
Contributor

@Ktos93 Ktos93 commented Aug 23, 2024

Goal of this PR

Fix voice cracking on high load

How is this PR achieving the goal

Setting a higher thread priority for Mumble voice. These changes need to be tested on Canary; I can't see any other way to conduct large-scale tests. I tried to create this issue using two RedM clients and running a CPU stress test in the background, but there was no way to replicate this on my PC and my friend's PC.

This PR applies to the following area(s)

FiveM, RedM

Successfully tested on

Game builds: 1491

Platforms: Windows

Checklist

  • Code compiles and has been tested successfully.
  • Code explains itself well and/or is documented.
  • My commit message explains what the changes do and what they are for.
  • No extra compilation warnings are added by these changes.

Fixes issues

fixes #2742

@github-actions github-actions bot added RedM Issues/PRs related to RedM invalid Requires changes before it's considered valid and can be (re)triaged labels Aug 23, 2024
@prikolium-cfx prikolium-cfx added ready-to-merge This PR is enqueued for merging and removed invalid Requires changes before it's considered valid and can be (re)triaged labels Sep 19, 2024
@@ -1469,6 +1469,8 @@ void MumbleAudioOutput::ThreadFunc()

mmcssHandle = AvSetMmThreadCharacteristics(L"Audio", &mmcssTaskIndex);

SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_ABOVE_NORMAL);

This comment was marked as resolved.

@@ -96,6 +96,8 @@ void MumbleAudioInput::ThreadFunc()
{
SetThreadName(-1, "[Mumble] Audio Input Thread");

SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_ABOVE_NORMAL);

This comment was marked as resolved.

@prikolium-cfx prikolium-cfx merged commit 04dc42c into citizenfx:master Oct 3, 2024
2 of 6 checks passed
@kind-king
Copy link

kind-king commented Nov 8, 2024

i have this cracking issue only in "voice_useNativeAudio" mumble mode.
"voice_use3dAudio" and "voice_use2dAudio" in combine seems works more stable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge This PR is enqueued for merging RedM Issues/PRs related to RedM
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mumble voip crackling with poor computer hardware
7 participants