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

Able to choose dedicated GPU if present? Possible solution inc. #10

Open
GrainaSand opened this issue May 30, 2023 · 0 comments
Open

Able to choose dedicated GPU if present? Possible solution inc. #10

GrainaSand opened this issue May 30, 2023 · 0 comments

Comments

@GrainaSand
Copy link

https://stackoverflow.com/questions/68469954/how-to-choose-specific-gpu-when-create-opengl-context

"Win32 GDI integration of OpenGL doesn't offer means to explicitly select the desired device"

Maybe add #defines to glApp.h, worked for me to pre-select Nvidia RTX3070Ti over Iris Xe
#define _declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001;
#define _declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 0x00000001;

When the Nvidia and AMD drivers see their respective symbol exported and set to nonzero in a program, they will take precedence over the integrated GPU when creating the OpenGL context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant