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

Prefer discrete GPU over integrated one #49506

Merged
merged 1 commit into from
Jun 11, 2021

Conversation

akien-mga
Copy link
Member

This unblocks launching on Linux laptops that default to the integrated
GPU which can not handle Vulkan in many instances.
Ideally a manual device selection, or an option for the optimal selection
strategy should be provided via CLI or config, but for the time being
this will unblock the Linux devs.

Partially addresses #42348 and #43714

Supersedes #46070.

This unblocks launching on Linux laptops that default to the integrated
GPU which can not handle Vulkan in many instances.
Ideally a manual device selection, or an option for the optimal selection
strategy should be provided via CLI or config, but for the time being
this will unblock the Linux devs.

Partially addresses godotengine#42348 and godotengine#43714
@akien-mga akien-mga added this to the 4.0 milestone Jun 11, 2021
@akien-mga akien-mga requested a review from a team as a code owner June 11, 2021 11:05
@akien-mga akien-mga merged commit ba82626 into godotengine:master Jun 11, 2021
@akien-mga akien-mga deleted the vulkan_prefer_discrete_gpu branch June 11, 2021 11:34
@bruvzg
Copy link
Member

bruvzg commented Jun 11, 2021

This might fail on some setups with multiple discrete GPUs (SLI / Crossfire), if linked GPU is selected instead of main one. Probably we should check each device to have presentation surface available before selecting it.

For the reference, previous reverted attempt: #36585

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.

3 participants