[osg-users] Selecting a GPU to be used in a dual-GPU laptop

Chris Hanson xenon at alphapixel.com
Tue Oct 23 12:01:42 PDT 2018


That's the bit of code I was looking for. Thanks Florent!

On Fri, Oct 19, 2018 at 12:24 PM Alberto Luaces <aluaces at udc.es> wrote:

> 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
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>


-- 
Chris 'Xenon' Hanson, omo sanza lettere. Xenon at AlphaPixel.com
http://www.alphapixel.com/
Training • Consulting • Contracting
3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 •
GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
Legal/IP • Forensics • Imaging • UAVs • GIS • GPS •
osgEarth • Terrain • Telemetry • Cryptography • LIDAR • Embedded • Mobile •
iPhone/iPad/iOS • Android
@alphapixel <https://twitter.com/alphapixel> facebook.com/alphapixel (775)
623-PIXL [7495]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20181023/922710e2/attachment.html>


More information about the osg-users mailing list