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

Use dGPU if both dGPU and iGPU are available on Windows #1531

Merged
merged 1 commit into from
Jan 29, 2025

Conversation

VReaperV
Copy link
Contributor

@VReaperV VReaperV commented Jan 28, 2025

Normally, to use the dGPU on Windows 10/11, you need to manually set it for the executable in Windows settings. This will set some registry values to tell the NVidia/AMD drivers to use the dGPU here.

I've confirmed that this works on Win10 with an NVidia dGPU, now just waiting for someone to test it with AMD.

@VReaperV VReaperV added T-Improvement Improvement for an existing feature A-Renderer labels Jan 28, 2025
@slipher
Copy link
Member

slipher commented Jan 28, 2025

We have a thing for that in the updater: https://github.com/Unvanquished/updater/blob/bd169b5f8539c5ef61cd8af87a1484ff8ebc383d/win.cpp#L322. But this way seems easier; maybe we can NUKE the updater bit.

@VReaperV
Copy link
Contributor Author

We have a thing for that in the updater: https://github.com/Unvanquished/updater/blob/bd169b5f8539c5ef61cd8af87a1484ff8ebc383d/win.cpp#L322. But this way seems easier; maybe we can NUKE the updater bit.

Hmm, the thing in the updater never worked for me I suppose, since I still had to set it manually.

Normally, to use the dGPU on Windows 10/11, you need to manually set it for the executable in Windows setting. This will set some registry values to tell the NVidia/AMD drivers to use the dGPU here.
@VReaperV
Copy link
Contributor Author

I've got confirmation that this works on AMD too.

Copy link
Member

@illwieckz illwieckz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@VReaperV VReaperV merged commit 98b3dbb into DaemonEngine:master Jan 29, 2025
9 checks passed
@VReaperV VReaperV deleted the use-dgpu-win branch January 29, 2025 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Renderer T-Improvement Improvement for an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants