Sign in to follow this  

Changing the rendering device (windows)

This topic is 815 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

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

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

This topic is 815 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this