Optimus-enabled Java Launcher

Started by Kai, August 29, 2015, 10:42:00

Previous topic - Next topic

Kai

Hi,

since people, who make games for Java with OpenGL, have problems with Nvidia Optimus laptops because javaw.exe does not force the Optimus driver to switch to the high-performance dedicated graphics card, I created a small Java launcher executable which does that.
The solution is an alternative to javaw.exe or java.exe (or their linux variants), though it does not support any JVM arguments at the moment; only application command line arguments. It has been successfully tested on two Optimus-enabled laptops running Windows x64 so far.
I was also being told that at least launch4j does simply invoke javaw.exe in the background, so launch4j-created launchers are not really useful launchers in that case.

So far, there are ready-to-use prebuilt executables for Windows 32-bit/64-bit and Linux 32-bit/64-bit. The executables can be freely renamed.

See the README for instructions on how to use it. And please ask for modifications if you need them!

Repository: https://github.com/httpdigest/optimustest