why is this not automatic when using directx?
this NvOptimusEnablement is only working when directx is used right? maybe also d2d?
The trick created the typelib for directx9 and direct2d, is it not possible to add NvOptimusEnablement in those typelibs?
Yes baka, it's only when a graphics library is used such as DirectX, OpenGL, or Vulkan. This one line of code taps into the GeForce part of your NVidea GeForce video card, unleashing superb speed.
Anyway I have all the GeForce tests here. Both their methods, and my C++ app. Unfortunately I could not include the DirectXTK part of my C++ app cause it was 158 megabytes, so that you would have to do manually using Project > Manage NuGet Packages... and add directxtk_desktop_2015
There is a bunch of symbols within the library "C", NvOptimusEnablement being one of them. I'm assuming Visual Studio automatically includes this in any C++ project. And that could potentially have something to do with it.
Last edited by Jacob Roman; May 5th, 2020 at 02:54 PM.