Any ways to run program debugging in Visual Studio on NVIDIA graphics card?
The easiest way is to just add this piece of code somewhere in your program:
extern "C" {
_declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001;
}
For more info, take a look here : http://developer.download.nvidia.com/devzone/devcenter/gamegraphics/files/OptimusRenderingPolicies.pdf