Jump to content
  • Advertisement
Sign in to follow this  

C# - Sharpdx - Enabling AMDExpress/NVOptimus

This topic is 531 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 have a laptop that currently is an AMD based cpu with an APU.  I'm looking to enable the correct integrated graphics device.   Apparently this can be problematic, but is fixed by using the declaration

extern "C"
__declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001;
__declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1;

That's fine, but I am using C#, and as such looking for ways to enable this.  I found this from a 2014 article for C# and enabling the Nvidia Optimus export (http://lucasmagder.com/blog/2014/05/exporting-data-symbols-in-c-for-nvidia-optimus/>).

I'm wondering on a number of fronts if this article is still relevant from:

1 - Nvidia/amd now enables this correctly and I no longer need to care about this.

2 - Its still needed and there is a more elegant way of performing this since this article (written in 2014).

3 - This is still the best way.

4 - Something I do not know of...


I've been digging for a while, and this seems to be the only information I can dig up from a c# perspective.  I although still need to validate that I have indeed is already enabled, and this should really be my first step.  Is this still an issue for lap tops for both Nvidia and AMD integrated graphics?

Thanks in advance.


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!