Skip to content

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

@GrainaSand

Description

@GrainaSand

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions