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

Cannot use different Rendering Backends(Desktop vs Mobile) from command line #53731

Closed
Tracked by #55871
qarmin opened this issue Oct 12, 2021 · 3 comments
Closed
Tracked by #55871

Comments

@qarmin
Copy link
Contributor

qarmin commented Oct 12, 2021

Godot version

4.0

System information

Ubuntu 21.04 - Nvidia GTX 970, Gnome shell 3.38 X11

Issue description

Currently I cannot use one time Mobile and other time Desktop Vulkan backend by just changing command line options.
I need to set this in project settings manually.

Not sure, but --rendering-driver seems to be proper option, but it is unimplemented

@Calinou
Copy link
Member

Calinou commented Oct 12, 2021

Not sure, but --rendering-driver seems to be proper option, but it is unimplemented

#53150 implements it, but Vulkan still only has one vulkan option there.

I presume we'll have to add a distinction between vulkan_clustered, vulkan_mobile and perhaps vulkan (use the project-defined setting, defaulting to vulkan_clustered on desktop and vulkan_mobile on mobile).

Alternatively, we should add a --set command line argument to set any project setting before the editor or project starts: --set some/project/setting "value"

@Anutrix
Copy link
Contributor

Anutrix commented Oct 29, 2021

Alternatively, we should add a --set command line argument to set any project setting before the editor or project starts: --set some/project/setting "value"

Sounds good but --set-setting might be more clear than --set.

Also, how to differentiate between project and editor settings?
A. Add them separately: --set-project-setting and --set-editor-setting.
or
B. First we check if it's a project setting with ProjectSettings::has_setting and then EditorSettings::has_setting if it's not a project setting.
Either or both options seem good to me,

@Calinou
Copy link
Member

Calinou commented Aug 18, 2024

This is fully fixed now in 4.2 and later (4.0-4.1 had some issues with --rendering-method not reliably working for toggling between Forward+ and Mobile):

  • --rendering-driver vulkan|d3d12|opengl3|opengl3_es|opengl3_angle
  • --rendering-method forward_plus|mobile|gl_compatibility

@Calinou Calinou closed this as completed Aug 18, 2024
@Calinou Calinou added this to the 4.2 milestone Aug 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants