Skip to content

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

Merged
akien-mga merged 1 commit into
godotengine:masterfrom
Calinou:cli-add-audio-output-latency-argument
Aug 17, 2023
Merged

Add a --audio-output-latency command-line argument#78013
akien-mga merged 1 commit into
godotengine:masterfrom
Calinou:cli-add-audio-output-latency-argument

Conversation

@Calinou

@Calinou Calinou commented Jun 8, 2023

Copy link
Copy Markdown
Member

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
Comment thread core/config/engine.cpp Outdated
@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

@akien-mga akien-mga left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
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
@akien-mga

Copy link
Copy Markdown
Member

Thanks!

@Calinou
Calinou deleted the cli-add-audio-output-latency-argument branch August 17, 2023 13:51
BendyLand pushed a commit to BendyLand/voltaire that referenced this pull request Aug 2, 2026
…t-latency-argument

Add a `--audio-output-latency` command-line argument
BendyLand pushed a commit to BendyLand/voltaire that referenced this pull request Aug 2, 2026
…t-latency-argument

Add a `--audio-output-latency` command-line argument
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