Jump to content
  • Advertisement
Sign in to follow this  
JvdWulp

Changing the rendering device (windows)

This topic is 1038 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi Guys,

 

I was wondering how to change the rendering device since it is easy to do in direct x and for some reason my laptop always defaults to the intel gpu instead of the nvidia one.

 

- Jaap

Share this post


Link to post
Share on other sites
Advertisement

From this thread: http://www.gamedev.net/topic/670562-cant-run-gl-nv-path-rendering-extension-demos/

 


Edit: This was caused my Nvidia's Optimus software for laptops. The solution is super simple, just export a flag on windows. Just add this to your main file with window.h and it will work great.

 

extern "C"
{
_declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001;
}

Share this post


Link to post
Share on other sites

Thanks, but that is not what I am looking for. With direct x you can specify what device to use. But from what I can see so far there is no such thing for open gl. :(

Share this post


Link to post
Share on other sites

That is incorrect, you can not normally specify what device you want to use from DirectX on Optimus laptops. Depending on your settings in the Nvidia control panel an app will use the Intel or the Nvidia one, and it can be overridden either way.

I hear DirectX 12 and the upcoming Vulkan changes this, but not any earlier versions, the driver handles that. If your battery is low for example the driver can make an app use the integrated instead of the discrete GPU.

 

What you are referring to can be done in DirectX when having two separate discrete graphics cards, which unfortunately is not in standard WGL, and Nvidia only exposes it in Quadro drivers, through https://www.opengl.org/registry/specs/NV/gpu_affinity.txt

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!