LWJGL / lwjgl

[LEGACY] LWJGL 2.X - The Lightweight Java Game Library.
http://legacy.lwjgl.org/
546 stars 207 forks source link

Force using high performance GPU for AMD Switchable Graphics #132

Closed peterix closed 3 years ago

peterix commented 8 years ago

This is based on similar changes published elsewhere.

See: https://community.amd.com/thread/169965 https://github.com/glfw/glfw/commit/6d5753c54863877020a4f3d12960e417fb04824b

Spasi commented 8 years ago

Thanks, but I'm afraid these exports do not achieve anything when exported from DLLs. They only work when exported from the executable (i.e. java.exe).

A solution that is known to work is to build a small launcher that exports these symbols and creates the JVM via JNI.

peterix commented 8 years ago

Well, if that's the case, this doesn't really make sense.

I was planning to do that as a workaround the for the windows 10 intel driver issue anyway (and not declare the binary to be 'windows 10 compatible'). This is one more reason to do it.