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

Add a --audio-output-latency command-line argument #78013

Merged

Conversation

Calinou
Copy link
Member

@Calinou Calinou commented Jun 8, 2023

This allows optimizing the audio output latency on higher-end CPUs, especially in projects that do not expose a way to override this setting.

It would be good to figure out a way to change this value at run-time, so that it can be exposed in game configuration menus as well. That said, it's better than nothing to be able to adjust the output latency somehow as a user – especially for small game projects which may not bother exposing a setting for it 🙂

@Calinou Calinou requested review from a team as code owners June 8, 2023 17:47
@Calinou Calinou added this to the 4.x milestone Jun 8, 2023
@akien-mga akien-mga modified the milestones: 4.x, 4.2 Jun 10, 2023
@Calinou Calinou force-pushed the cli-add-audio-output-latency-argument branch 2 times, most recently from 3ca00cb to e48c448 Compare June 10, 2023 20:24
Copy link
Member

@akien-mga akien-mga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems fine.

I'm a bit unsure about how many command line options we want to expose to tweak all possible settings a project may or may not intentionally expose... but @ellenhp approved this proposal so I think it's good to go.

@akien-mga
Copy link
Member

Needs rebase.

@Calinou Calinou force-pushed the cli-add-audio-output-latency-argument branch from e48c448 to 43fdcb4 Compare August 17, 2023 12:45
This allows optimizing the audio output latency on higher-end CPUs,
especially in projects that do not expose a way to override this setting.
@Calinou Calinou force-pushed the cli-add-audio-output-latency-argument branch from 43fdcb4 to 6f1152b Compare August 17, 2023 12:45
@akien-mga akien-mga merged commit 1537452 into godotengine:master Aug 17, 2023
15 checks passed
@akien-mga
Copy link
Member

Thanks!

@Calinou Calinou deleted the cli-add-audio-output-latency-argument branch August 17, 2023 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a --audio-output-latency command line argument to override the audio mix latency on any project
3 participants