Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it currently possible to enable the mac's integrated graphics chip in a Java application?

Tags:

java

macos

gpu

Is there a way to get a Java application to use the integrated, rather than the discrete, GPU on a mac?

(I'm interested in ways to ship an app that won't push the user's Mac laptop into discrete mode, rather than ways to lock in integrated mode on my own laptop for all applications, like gfxCardStatus does.)

like image 562
Joshua Goldberg Avatar asked Jan 16 '14 19:01

Joshua Goldberg


1 Answers

Unfortunately, what you want is not possible using Java 7.

Some sources from around the web:

  • http://mail.openjdk.java.net/pipermail/macosx-port-dev/2012-September/004863.html
  • http://support.apple.com/kb/ts4044

You already mentioned gfxCardStatus, but that seems to be the only way

Theoretically you can disable OpenGL support, however this is not enough for it to not trigger that java needs discrete graphics. It appears that as part of the evaluation as to whether or not it should use openGL, it tickles the GPU, and the mac decides that it must fire up the discrete GPU for the lifetime of that application.

edit: it appears that not even gfxCardStatus can prevent the switch anymore.

like image 94
Paul Wagland Avatar answered Oct 06 '22 16:10

Paul Wagland