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

Implement the %command% placeholder in the Main Run Args setting #35992

Merged

Conversation

Calinou
Copy link
Member

@Calinou Calinou commented Feb 7, 2020

This can be used to tell Godot to run an executable that will run Godot rather than running Godot directly. This is useful to make Godot start on the dedicated GPU when using a NVIDIA Optimus setup on Linux: prime-run %command%

This is also useful for MangoHud, vkBasalt and the like.

The editor/main_run_args setting declaration was moved to make it visible in the ProjectSettings documentation.

This closes #34630.

@Calinou Calinou added this to the 4.0 milestone Mar 12, 2020
This can be used to tell Godot to run an executable that will run Godot
rather than running Godot directly. This is useful to make Godot start
on the dedicated GPU when using a NVIDIA Optimus setup on Linux:
`prime-run %command%`

The `editor/run/main_run_args` setting declaration was moved to make it
visible in the ProjectSettings documentation.
@Calinou Calinou force-pushed the main-run-args-command-placeholder branch from 79767bc to ce4aa07 Compare May 6, 2021 22:10
@Calinou Calinou requested a review from a team as a code owner May 6, 2021 22:10
@Calinou
Copy link
Member Author

Calinou commented May 6, 2021

Rebased and tested again, it works as expected.

Example with main_run_args set to mangohud %command% --hello:

image

--hello is passed to Godot as it was done before.

@akien-mga akien-mga added the cherrypick:3.x Considered for cherry-picking into a future 3.x release label May 6, 2021
@akien-mga akien-mga merged commit 3a5310c into godotengine:master May 6, 2021
@akien-mga
Copy link
Member

Thanks!

@akien-mga
Copy link
Member

Cherry-picked for 3.4.

@akien-mga akien-mga removed the cherrypick:3.x Considered for cherry-picking into a future 3.x release label May 9, 2021
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.

Run window launch options
2 participants