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

[New Feature] Adjust the audio recording thread to High Priority #60

Closed
mkckr0 opened this issue Mar 21, 2024 · 2 comments
Closed

[New Feature] Adjust the audio recording thread to High Priority #60

mkckr0 opened this issue Mar 21, 2024 · 2 comments
Labels
new feature This is a new feature

Comments

@mkckr0
Copy link
Owner

mkckr0 commented Mar 21, 2024

Describe the new feature you'd like
I propose to adjust the audio recording thread to high priority.

Describe the reason why you want to add the feature
I need this feature because it may reduce the latency.

Describe how to implement the feature if you can
Example: https://github.com/LizardByte/Sunshine/blob/nightly/src/audio.cpp

Additional context
#57

@airisama019
Copy link

airisama019 commented Mar 21, 2024

I think I've reduced delay by lowering as-cmd nice value on htop
Feels almost instant now

@mkckr0
Copy link
Owner Author

mkckr0 commented Mar 26, 2024

https://github.com/LizardByte/Sunshine/blob/89e8b9628c9e4d763443fe871c45afe1fcf39396/src/platform/linux/misc.cpp#L284-L287

Sunshine doesn't implement adjust_thread_priority on Linux. Maybe there are some other things slow down the performance.

@mkckr0 mkckr0 closed this as not planned Won't fix, can't repro, duplicate, stale Apr 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature This is a new feature
Projects
None yet
Development

No branches or pull requests

2 participants