Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nvidia Optimus #97

Open
Ilohama opened this issue Apr 17, 2016 · 4 comments
Open

Nvidia Optimus #97

Ilohama opened this issue Apr 17, 2016 · 4 comments
Milestone

Comments

@Ilohama
Copy link
Contributor

Ilohama commented Apr 17, 2016

I'm working on a laptop with an Optimus option but when I run Sparky, it still using the intel graphic card and not my Nvidia card....

I found a way to force optimus enabled :

extern "C" {
    _declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001;
}

but i'm not sure it's the best way

@wallertech
Copy link

You doing this on OpenGL or directx?

@JeppeSRC
Copy link

It should be the same either way.

@Ilohama
Copy link
Contributor Author

Ilohama commented Apr 17, 2016

DirectX don't print it on consol but yeah, it's the same on both of them xD

@wallertech
Copy link

http://developer.download.nvidia.com/devzone/devcenter/gamegraphics/files/OptimusRenderingPolicies.pdf

That says you can also fix it the following way, but it doesn't mention wich one is the better way.

Static Library Bindings
For any application without an existing application profile, there is a set of libraries
which, when statically linked to a given application executable, will direct the Optimus
driver to render the application using High Performance Graphics. As of Release 302, the
current list of libraries are vcamp110.dll, vcamp110d.dll, nvapi.dll, nvapi64.dll, opencl.dll,
nvcuda.dll, and cudart_._.

@TheCherno TheCherno added this to the Backlog milestone Apr 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants