How to run OpenGL program on a graphics card using C ++ MFC?

I encoded an OpenGL program with C ++ MFC, but the rendering speed is unbearably slow .. I finally founded that the problem is that the program works using Integrated Graphics , and it works very smoothly and perfectly after I forced to install program using a graphics card in the NVIDIA panel ....

Can I change the default graphics for a program using a graphics card at the code level or VC project level? And how to do it?

Development environment: 64-bit Win7, Visual Studio 2010, C ++, MFC, OpenGL Hardware: i7-2670QM, NVIDA GeForce GT 540M with 2G memory

+3
source share
1 answer

, , "sop-setoptimusprofile":

http://drivenbynostalgia.com/stuff.html

, NVIDIA Optimus, . , Optimus. , NVIDIA NvAPI. . , , , , , . , , . , # ++.

-1

All Articles