[osg-users] Selecting a GPU to be used in a dual-GPU laptop
Alberto Luaces
aluaces at udc.es
Fri Oct 19 03:23:51 PDT 2018
Great! Thanks a lot, Florent!
COUDRET Florent writes:
> Hi Alberto,
>
> for NVidia and AMD graphics cards, we declare 2 public variables at
> global scope to force using GPU at run-time (even if there is no
> existing application profile).
>
>
> extern "C" {
>
> /// Declare this variable in public to enable the NVidia side of
> Optimus -
> http://developer.download.nvidia.com/devzone/devcenter/gamegraphics/files/OptimusRenderingPolicies.pdf
> __declspec(dllexport) int NvOptimusEnablement = 1;
>
> /// Declare this variable in public to enable the AMD side of AMD
> Switchable Graphics (13.35 driver or newer needed) -
> http://devgurus.amd.com/thread/169965
> __declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1;
>
> }
>
> Regards,
>
> Florent
--
Alberto
More information about the osg-users
mailing list