heyx3 / Bplus.jl

A modern OpenGL 4.6 rendering framework, written in Julia.
Other
69 stars 3 forks source link

How to default to discrete GPU? #92

Open heyx3 opened 11 months ago

heyx3 commented 11 months ago

To hint to graphics drivers that this program requires a discrete card when available, we need to export the following constants in our executable:

uint32_t NvOptimusEnablement = 0x00000001; int AmdPowerXpressRequestHighPerformance = 1;

I haven't been able to figure out how to do it. I also have not been able to find any resources on patching it into an existing .exe file, and I suspect that route is functionally impossible.

I do have some open questions on forums about this topic: