-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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
Run window launch options #34630
Comments
I think you should elaborate more on what you are proposing. From what I know, Godot does not get to pick which GPU the game process is allowed to use. It is the job of the OS to do such thing. |
I think this is about providing custom launch arguments when running from editor. This sounds like candidate for https://github.com/godotengine/godot-proposals/issues |
This already exists (Editor > Main Run Args in the Project Settings). However, there's no CLI argument for choosing the GPU to use. |
Then unless there's system command to do that, it's impossible. |
yes, that is almost what is needed, but for doing gpu switching we need to put something in the begining of cmd) if i'm right, then it needs to just put "prime-run " run cmd. |
I guess we could reuse Steam's
Yes, exactly 🙂
I think this is supposed to happen automatically in the first place, but it's not implemented for NVIDIA graphics cards on Linux yet. See #23463. |
No!) The prime-run is simply exporting some needed variables and launches the comand: |
@mintyleaf Maybe we can export those variables by default to get the same behavior as Mesa drivers? cc @akien-mga |
Well I need to read about Mesa drivers behaviour, cause I didn't understand about what you talking |
This is Linux specific, Windows doesn't let you select the GPU with a command wrapper like AFAIK AMD dGPU use the open source Mesa implementation which supports reverse prime offloading out of the box, and can be enabled by So adding an option to redefine the launch command with a substitution like Steam's But eventually, it might be better to simply wait for Vulkan support which lets you select the GPU you want to use via Vulkan itself, so we could properly implement a way to use different GPUs in the editor and in the running game. |
Exactly! I thought that such abilities like customizing the preview launch can be useful in many other ways)
wiki.archlinux.org/index.php/PRIME#PRIME_render_offload |
My bad, I mistook it for https://code.launchpad.net/ubuntu/+source/nvidia-prime Other distros rely on Bumblebee with its In short: there is no standardized support for Nvidia PRIME on Linux, beyond |
Hello there
It would be very useful to have an ability to change the preview launch command
For scenario like running Godot on Intel gpu for powersaving and launching the preview on Nvidia/AMD gpu on the notebooks with two gpus
(exporting env variable, launching prime run script e.t.c.)
The text was updated successfully, but these errors were encountered: