Support for forcing to use dedicated GPUs (NVidia / AMD)
Brought to you by:
grzegok
add an option to flag an application to use NVidia / AMD GPUs on dual GPU laptop:
https://stackoverflow.com/questions/16823372/forcing-machine-to-use-dedicated-graphics-card
Enable dedicated graphics for NVIDIA:
extern "C"
{
__declspec(dllexport) unsigned long NvOptimusEnablement = 0x00000001;
}
Enable dedicated graphics for AMD Radeon:
extern "C"
{
__declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1;
}
should be straight forward for you, and would save us to wire a own wrapper just because of a missing flag ;-)
THX!!!
Are you using the JNI headers? Because I'm wondering if setting this in the standard headers will have any effect on the java application...
hi!
yes;
<launch4jConfig>
<headerType>gui</headerType>
since we have to run as 64bit application....
I would love to use jni, but I cant right now...
whats the outlook on 64 bit support?